iceland2k14/secp256k1 ? reverse-engineered prompt

Reverse engineered prompt

Build me a fast Python library for working with the secp256k1 Bitcoin curve.

I want it to make common crypto tasks really easy from a script, like turning private keys into public keys, converting pubkeys and private keys into Bitcoin addresses, and handling compressed and uncompressed keys. It should also support things like point addition, doubling, negation, scalar multiplication, sequential point generation, and bulk operations that can work on many keys or points at once.

Please include helpers for Bitcoin formats like legacy, P2SH, and bech32, plus basic support for a few other coins like Litecoin, Dogecoin, Dash, and Ravencoin. It would be great if it also includes WIF conversion, hash160 and SHA256 helpers, checksum generation, and Ethereum address conversion too.

Make it feel like a practical toolkit for fast ECC work, with simple examples in the README, and keep the core performance as high as possible. If you need to, look up current docs online for any address or encoding details.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab