Skip to content

Instantly share code, notes, and snippets.

@spiiin
Created December 24, 2017 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spiiin/f929da13d7f4c2ee31365f59ac22bb02 to your computer and use it in GitHub Desktop.
Save spiiin/f929da13d7f4c2ee31365f59ac22bb02 to your computer and use it in GitHub Desktop.
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