This page documents the code that was used to generate the SECP256K1 elliptic curve test vectors as well as code used to verify them against another implementation.
The vectors are generated using a pure Python ecdsa implementation. The test messages and combinations of algorithms are derived from the NIST vector data.
/development/custom-vectors/secp256k1/generate_secp256k1.py
Download link: generate_secp256k1.py
</development/custom-vectors/secp256k1/generate_secp256k1.py>
cryptography
was modified to support the SECP256K1 curve. Then the following python script was run to generate the vector files.
/development/custom-vectors/secp256k1/verify_secp256k1.py
Download link: verify_secp256k1.py
</development/custom-vectors/secp256k1/verify_secp256k1.py>