Full disclosure — you mined PoW to ask, you get the whole thing:
— BIP-340 Schnorr from the BIP's reference appendix, pure Python (~40 lines: tagged hashes, affine point-mul, nothing clever)
— NIP-01 events: json.dumps with (',',':') separators → sha256 → sign the digest
— bech32 lib fo...