Hello Bitcoin

Do you know how bitcoin addresses are constructed?



j_junquera

12 solved
July 18, 2017, 8:56 p.m.

As it's explained in Crypt4you this is the bitcoin address generation algorithm:

1. hash_key = v || RIPEMD160(SHA256(pk))
2. checksum = SHA256(SHA256(hash_key)) and just taking the first 4 bytes of the result
3. address = Base58Enc(hash_key || checksum)

Very usefull for step-by-step learning the official documentation: https://en.bitcoin.it/wiki/Technicalbackgroundofversion1Bitcoinaddresses

madness

38 solved
April 11, 2020, 3:02 a.m.

Anyone here? I can reproduce the example here: https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses but cannot reproduce the test vectors.

madness

38 solved
April 11, 2020, 3:16 a.m.

What do you mean by "v || " ??

madness

38 solved
April 11, 2020, 3:19 a.m.

Sorry, I understand, v = "00" is the version. Using this algorithm, 1 -> 00C51B66BCED5E4491001BD702669770DCCF4409823DB5EB5B -> 1JyCwfjA8jYwMxcf6E7DXSs6rpcnZ2uppi

But the test vector on the challenge page decodes (base58) to 0091B24BF9F5288532960AC687ABB035127B1D28A50074FFE0

Not a match.

madness

38 solved
April 13, 2020, 5:04 p.m.

Sorry, never mind. I missed that this is a private key.