Creating a P2PKH address – Bitcoin Stack Exchange

on

|

views

and

comments


I have been learning about how P2PKH addresses are generated so I thought I would try and work through one myself manually. I start with the following public key hash:

e049ccc9e524a9302c2187bf02c4d78741d9b039

Which I know should come out to address:

1MSvmgVJvYkdtCsopFqsT2g3FNNhpcoeBG

I append the 00 prefix to my hash getting:

00e049ccc9e524a9302c2187bf02c4d78741d9b039

I then go to calculate the checksum by converting this to binary:

1110000001001001110011001100100111100101001001001010100100110000001011000010000110000111101111110000001011000100110101111000011101000001110110011011000000111001

And then running this through SHA256 twice which gets me:

a66d4caa10c1b665d6bca3f06788db9fbea6e9912a9fcf8101eb5992f9e8ab78

I take the first 4 bytes a66d4caa and put them onto the end of my prefix+hash:

00e049ccc9e524a9302c2187bf02c4d78741d9b039a66d4caa

And I wind up with:

1MSvmgVJvYkdtCsopFqsT2g3FNNhsp8jXo

Can someone help me out with where I am going wrong?

EDIT: Forgot to convert it to binary first. But it still doesn’t work.

Share this
Tags

Must-read

The Great Bitcoin Crash of 2024

Bitcoin Crash The cryptocurrency world faced the hell of early 2024 when the most popular Bitcoin crashed by over 80% in a matter of weeks,...

Bitcoin Gambling: A comprehensive guide in 2024

Bitcoin Gambling With online currencies rapidly gaining traditional acceptance, the intriguing convergence of the crypto-trek and gambling industries is taking place. Cryptocurrency gambling, which started...

The Rise of Bitcoin Extractor: A comprehensive guide 2024

Bitcoin Extractor  Crypto mining is resources-thirsty with investors in mining hardware and those investing in the resources needed as the main beneficiaries. In this sense,...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here