Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions shared across primitive modules.

Includes hex encoding/decoding, Base58 encoding/decoding, and Base58Check encoding/decoding with checksum verification.

Functionsยง

base58_check_decode
Decode a Base58Check string, verifying the checksum.
base58_check_encode
Encode data with a prefix using Base58Check (includes 4-byte checksum).
base58_decode
Decode a Base58 string to bytes.
base58_encode
Encode bytes to a Base58 string.
from_hex
Decode a hexadecimal string into bytes.
to_hex
Encode bytes as a hexadecimal string.