Created
March 20, 2018 11:50
-
-
Save davidp94/0f61b7afb5e9a00376ba8083069d0f05 to your computer and use it in GitHub Desktop.
generate secp256k1 and print in hex string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# might require pip install ecdsa | |
from ecdsa import SigningKey, SECP256k1 | |
sk = SigningKey.generate(curve=SECP256k1) # uses SECP256k1 | |
vk = sk.get_verifying_key() | |
print('This is the secret key {} \nThis is the public key {}'.format(sk.to_string().hex(), vk.to_string().hex())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash script to generate multiple:
for n in {1..15}; do python3 generate_secp256k1.py ; done; exit 0;