Making a P2PKH tackle – Bitcoin Stack Trade


I’ve been studying about how P2PKH addresses are generated so I believed I’d try to work via one myself manually. I begin with the next public key hash:

e049ccc9e524a9302c2187bf02c4d78741d9b039

Which I do know ought to come out to deal with:

1MSvmgVJvYkdtCsopFqsT2g3FNNhpcoeBG

I append the 00 prefix to my hash getting:

00e049ccc9e524a9302c2187bf02c4d78741d9b039

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

1110000001001001110011001100100111100101001001001010100100110000001011000010000110000111101111110000001011000100110101111000011101000001110110011011000000111001

After which working this via SHA256 twice which will get me:

a66d4caa10c1b665d6bca3f06788db9fbea6e9912a9fcf8101eb5992f9e8ab78

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

00e049ccc9e524a9302c2187bf02c4d78741d9b039a66d4caa

And I wind up with:

1MSvmgVJvYkdtCsopFqsT2g3FNNhsp8jXo

Can somebody assist me out with the place I’m going unsuitable?

EDIT: Forgot to transform it to binary first. However it nonetheless does not work.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top