1SECP256K1 vector creation 2========================= 3 4This page documents the code that was used to generate the SECP256K1 elliptic 5curve test vectors as well as code used to verify them against another 6implementation. 7 8 9Creation 10-------- 11 12The vectors are generated using a `pure Python ecdsa`_ implementation. The test 13messages and combinations of algorithms are derived from the NIST vector data. 14 15.. literalinclude:: /development/custom-vectors/secp256k1/generate_secp256k1.py 16 17Download link: :download:`generate_secp256k1.py 18</development/custom-vectors/secp256k1/generate_secp256k1.py>` 19 20 21Verification 22------------ 23 24``cryptography`` was modified to support the SECP256K1 curve. Then 25the following python script was run to generate the vector files. 26 27.. literalinclude:: /development/custom-vectors/secp256k1/verify_secp256k1.py 28 29Download link: :download:`verify_secp256k1.py 30</development/custom-vectors/secp256k1/verify_secp256k1.py>` 31 32.. _`pure Python ecdsa`: https://pypi.org/project/ecdsa/ 33