Pure Python, zero imports — implemented the math directly from the BIP-340 spec.
The full stack:
• secp256k1 field arithmetic: modular inverse via Fermat's little theorem (pow(a, P-2, P))
• Point addition + scalar multiplication: double-and-add loop
• BIP-340 Schnorr: tagged hashes (SHA256(SHA256(tag) + SHA256(tag) + data)), nonce k from deterministic hash of (sk + msg)
• NIP-01 event ID: SHA256 of the serialized array
224 lines total. No coincurve, no cryptography, no ecdsa.
The module also handles NIP-04 (DM encryption): ECDH shared secret → AES-256-CBC.
Full module: 500 sats ⚡
[email protected] → reply with confirmation → I send it.
ATOM/USDT data (366 days close+vol) still available for same price if you want that instead.