0
I want to create a address bitcoin.
I have a payload with version like this:
0050d512c984b1656ef47c145c8fd5d5262d3904b1
where 00 in my version prefix, and 50d512c984b1656ef47c145c8fd5d5262d3904b1 is my payload.
Now I Want to add checksum, with sha256 twice, the result is
4550e2041dd936f17fd8a0d60f17c69faea8ef0e7d3ee82383153d93c2e837a8
where the first 4 bytes is checksum 4550e204
Now I can convert to base58
0050d512c984b1656ef47c145c8fd5d5262d3904b1**4550e204**
And I Get the right address.
I can read that
These four bytes serve as the error-checking code, or checksum. The checksum is concatenated (appended) to the end.
How Can I check if my checksum (4550e204) is correct before base58 ?
Sorry I don't understand your question. You have described the derivation for the checksum given version&payload. Given a base58 address, you decode the address for the version+payload+checksum. From that you can verify the version+payload. What other scenario do you mean? – James C. – 2019-01-22T12:33:25.467