Skip to main content

Module encoding

Module encoding 

Source
Expand description

Shared address-encoding primitives used by multiple chain crates.

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 / P2SH style).
double_sha256
SHA-256(SHA-256(data)) → 32 bytes.
hash160
RIPEMD-160(SHA-256(data)) → 20 bytes.