Expand description
Shared address-encoding primitives used by multiple chain crates.
hash160— Bitcoin / Cosmos / XRPL account-id style digestsdouble_sha256— Bitcoin-style checksumsbase58check_encode— Bitcoin alphabet + 4-byte double-SHA-256 checksum
Chain crates keep HRP, alphabet variants (XRPL), and script templates
locally; only the repeated hash / Base58Check steps live here.
Functions§
- base58check_
encode - Bitcoin-alphabet
Base58Check:Base58(payload ‖ checksum4). - base58check_
versioned - Convenience: version byte + 20-byte payload (
P2PKH/P2SHstyle). - double_
sha256 SHA-256(SHA-256(data))→ 32 bytes.- hash160
RIPEMD-160(SHA-256(data))→ 20 bytes.