I want to create a address bitcoin.
I have a payload with version like this:
00 in my version prefix, and
50d512c984b1656ef47c145c8fd5d5262d3904b1 is my payload.
Now I Want to add checksum, with sha256 twice, the result is
where the first 4 bytes is checksum 4550e204
Now I can convert to base58
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 ?