Created
December 24, 2017 15:39
-
-
Save spiiin/f929da13d7f4c2ee31365f59ac22bb02 to your computer and use it in GitHub Desktop.
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
from pybitcoin import BitcoinPrivateKey, BitcoinPublicKey | |
import hashlib | |
pk = hashlib.sha256("satoshi nakamoto") | |
print pk.hexdigest() | |
privateKey = BitcoinPrivateKey(pk, False) | |
publicKey = privateKey.public_key() | |
a1 = publicKey.address() | |
print(a1) | |
#1Q7f2rL2irjpvsKVys5W2cmKJYss82rNCy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment