Author

Topic: Good reference for converting Bitcoin public key to address (Read 479 times)

sr. member
Activity: 335
Merit: 255
Counterparty Developer
Look at this code : https://github.com/weex/addrgen

you can do something like this:

pubkey = ".........".decode('hex')
hash160 = rhash(pubkey)
addr = base58_check_encode(hash160, self.version)
newbie
Activity: 31
Merit: 0
I was debugging some code to convert a bitcoin public key to an address, and had great use of this diagram posted by etothepi:

http://dl.dropbox.com/u/1139081/BitcoinImg/PubKeyToAddr.png
Jump to: