This file contains 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
# Reference - https://stackoverflow.com/a/53488466 | |
# pre req with python3 | |
# pip3 install ecdsa | |
# pip3 install pysha3 # sha3 won't work | |
from ecdsa import SigningKey, SECP256k1 | |
import sha3, random, binascii | |
private_key = "<some private key in hex string>" | |
private_key = bytes(private_key, 'utf-8') |