Author

Topic: which format is address in output of bitcoinrpc json (Read 952 times)

legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
Can anyone with a strong background in this stuff confirm for me that I'm doing this correctly?

Bitcoin testnet block #1 has a coinbase transaction with an output to

n3GNqMveyvaPvUbH469vDRadqpJMPc84JA

and I just want to be sure that this address, in WIF, is: 3VVW1m5SDnPrf7zG6LAMoyjC751yUgV4KvWDr9aVygwziXA

Actually, now that I find this page:

https://en.bitcoin.it/wiki/List_of_address_prefixes

I'm almost sure I'm doing it wrong.  Maybe the n3... version is actually already in WIF.  Hmmm.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
You can find the technical details of how a bitcoin address is created here:
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

You can find a list of commonly used version bytes here:
https://en.bitcoin.it/wiki/List_of_address_prefixes

Since the WIF addresses on testnet use a version byte of 0x6F, they will always start with m or n.

Very helpful.  If I'm doing this right, the address above is: 3VVW1m5SDnPrf7zG6LAMoyjC751yUgV4KvWDr9aVygwziXA

I'm going the leave the thread open in case someone else knows that this ^^^ is obviously wrong Smiley
legendary
Activity: 3472
Merit: 4801
You can find the technical details of how a bitcoin address is created here:
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

You can find a list of commonly used version bytes here:
https://en.bitcoin.it/wiki/List_of_address_prefixes

Since the WIF addresses on testnet use a version byte of 0x6F, they will always start with m or n.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
In, for example, block #1 of testnet3, I find this sort of representation for an output address.

n3GNqMveyvaPvUbH469vDRadqpJMPc84JA

I know that this is probably a hash of the public key, and I know from looking at the technical specs that there are a number of different representations.  Which one is this?  Can you point me to the right part of the spec where I can convert something like this to the "normal" address format WIF?

Thanks for any pointers.
Jump to: