Expand description
Byte-preserving text codecs. Network identity and account derivation are separate.
Machine interfaces use base58 only. The typed human-input helpers also accept
Thruput Z addresses and Stellar G/S StrKeys. No function guesses that an
arbitrary byte array is an address. Z identifies Thruput, not a specific network.
Enums§
- Error
- Invalid text or a violated byte-length limit. Never contains the supplied text.
Functions§
- address_
strkey - Format the same address bytes as a Thruput Z
StrKey. - decode
- Decode a machine value with a required maximum byte length.
- decode_
fixed - Decode exactly N bytes without a heap-allocated intermediate byte buffer.
- encode
- Encode using the case-sensitive Bitcoin/Solana alphabet, preserving leading zeros.
- max_
encoded_ len - Conservative text bound for a decoded byte limit; saturates on overflow.
- parse_
address - Parse a Thruput address from base58 or Z
StrKey, without deriving an account. - parse_
public_ key - Parse an Ed25519 public key from base58 or G
StrKey, never a wallet address. - parse_
secret_ seed - Parse a 32-byte Ed25519 seed from base58 or S
StrKey. - public_
key_ strkey - Format an Ed25519 key as a G
StrKey. No wallet derivation is performed. - secret_
seed_ strkey - Explicitly export an Ed25519 seed as an S
StrKeyin a zeroing buffer.