Bitcoin Address = base58 encode [version][public key hash][checksum]
version = 00 (for P2PKH on mainnet)
public key hash = RIPEMD160(SHA256(public key))
checksum = first 4 bytes of SHA256(SHA256(version + public key hash))
| Type | Hex | Base58 |
|---|---|---|
| P2PKH | 00 | 1 |
| P2SH | 05 | 3 |
| Type | Hex | Base58 |
|---|---|---|
| P2PKH | 6F | m or n |
| P2SH | C4 | 2 |