Bitcoin/address validation: Difference between revisions

Content added Content deleted
m (upper case)
m (correction)
Line 5: Line 5:
A bitcoin address uses a base58 encoding, which uses an alphabet of the characters 0 .. 9, A ..Z, a .. z, but without the four characters 0, O, I and l.
A bitcoin address uses a base58 encoding, which uses an alphabet of the characters 0 .. 9, A ..Z, a .. z, but without the four characters 0, O, I and l.


With this encoded, a bitcoin address encodes a string 25 bytes:
With this encoding, a bitcoin address encodes a string 25 bytes:
* the first byte is the version number, which will be zero for this task ;
* the first byte is the version number, which will be zero for this task ;
* the next twenty bytes are a [[RIPEMD-160]] digest, but you don't have to know that for this task: you can consider them a pure arbitrary data ;
* the next twenty bytes are a [[RIPEMD-160]] digest, but you don't have to know that for this task: you can consider them a pure arbitrary data ;