Skip to content

Instantly share code, notes, and snippets.

@badmofo
Created January 20, 2016 19:38
Show Gist options
  • Save badmofo/9eed0ecf5c3b6d10bb27 to your computer and use it in GitHub Desktop.
Save badmofo/9eed0ecf5c3b6d10bb27 to your computer and use it in GitHub Desktop.
Bitcoin Keypair Generator
from __future__ import print_function
import bitcoin
privkey = bitcoin.encode_privkey(bitcoin.random_key(), 'wif_compressed')
pubkey = bitcoin.privtopub(privkey)
print('Private Key: ', privkey)
print('Public Key: ', pubkey)
@AugiBlutz
Copy link

I've been looking for this for 5 months [DUH]
2020-07-29 7:57:50.60 GMT +7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment