Expand description
Shared Z/G/S text encodings; independent of either CLI.
Text encodings shared by native clients. StrKeys encode type and checksum, not network.
Contract addresses, public keys and private seeds are deliberately separate operations.
Enums§
- Error
- Invalid encoding, checksum, length or
StrKeytype. Never includes the supplied text.
Functions§
- format_
contract_ address - Encode the same contract address bytes as a Z
StrKey; no address derivation is performed. - format_
public_ key - Encode raw Ed25519 public key bytes as a G
StrKey, not a wallet address. - format_
secret_ seed - Explicitly export a private seed as an S
StrKey. The returned buffer is zeroed on drop. - parse_
contract_ address - Parse a checksummed Z
StrKeyor base58 address of exactly 32 bytes. - parse_
public_ key - Parse a G
StrKeyor base58 public key. Does not derive an account address. - parse_
secret_ seed - Parse an S
StrKeyor base58 seed of exactly 32 bytes. Secret buffers are zeroed on drop. The caller must also protect and clear the input string it owns.