Module base58

Module base58 

Source
Expand description

Fixed-width base58 codec for 32-byte addresses.

UMSH addresses render as exactly 44 base58 digits (Bitcoin alphabet), left-padded with 1 — the zero digit — so that character positions are stable across all key values. See the “Addressing” chapter of the protocol specification.

Constants§

ENCODED_LEN
Length of the fixed-width base58 encoding of a 32-byte value.

Functions§

decode
Decode exactly ENCODED_LEN base58 digits into 32 bytes.
encode
Encode 32 bytes as exactly ENCODED_LEN base58 digits.