Skip to main content

Crate thru_base

Crate thru_base 

Source

Re-exports§

pub use bintrie::BinTrie;
pub use bintrie::BinTriePair;
pub use tn_state_proof::StateProof;
pub use tn_state_proof::StateProofBody;
pub use tn_state_proof::StateProofHeader;
pub use tn_state_proof::StateProofType;
pub use tn_tools::KeyPair;
pub use tn_tools::Pubkey;
pub use tn_tools::Signature;
pub use txn_lib::Transaction;
pub use txn_tools::TransactionBuilder;
pub use crypto_utils::derive_manager_program_accounts;
pub use crypto_utils::derive_uploader_program_accounts;
pub use tn_public_address::create_program_defined_account_address;
pub use tn_public_address::create_program_defined_account_address_string;
pub use tn_public_address::pack_seed;
pub use tn_public_address::tn_pubkey_to_address_string;
pub use tn_public_address::tn_public_address_decode;
pub use tn_public_address::tn_public_address_encode;
pub use bintrie_error::BinTrieError;
pub use bintrie_proof::NonExistenceProof;
pub use bintrie_proof::Proof;
pub use bintrie_types::Hash as BinTrieHash;
pub use bintrie_types::Pubkey as BinTriePubkey;
pub use tn_runtime_utils::tn_vm_error_str;

Modules§

bintrie
bintrie_error
bintrie_proof
bintrie_types
block_parser
bootstrap_addresses
compression
Unsigned builders for the current managed compression program (u32 tags). The legacy system-test builders in txn_tools have a different wire format.
crypto_utils
Cryptographic utilities for the Thru ecosystem
key_file
Owner-only filesystem storage shared by signing keys and API credentials. Signing keys additionally require a private parent and a single hard link.
key_reference
Signing-key reference metadata (public_key + source) and the shared “open file source, read seed, match canonical ta public_key” check. File policy lives in key_file; this module never echoes secret input.
multisig
Client-side support for the on-chain multisig program (programs/c/examples/tn_multisig_program.{c,h}).
program_abi
Program + official ABI deploys in one Multicall transaction.
rpc_types
signer
Bring-your-own-signer surface (external-signer Workstream B).
tn_account
tn_block_packet
tn_public_address
tn_runtime_utils
Runtime error utilities for converting error codes to human-readable strings
tn_signature
Standardized Thru Ed25519 signing: RFC-8032 Ed25519 over a domain-separated message M = DST_domain ‖ context, where DST_domain is a fixed 16-byte ASCII tag. This is byte-identical to any stock Ed25519 signer over M (HSM / MPC / SDK), unlike the previous non-standard in-hash-domain scheme. See specs/mpc-hsm-signer-design.md §4.1.
tn_signature_encoding
tn_signature_legacy
Legacy (pre-RFC-8032) Thru Ed25519 signing/verification.
tn_state_proof
State proof structures and utilities
tn_tools
txn_lib
Transaction library: normal Rust struct, signing, serialization, accessors
txn_tools
version
Version string utilities for thru binaries.

Macros§

get_version
Generate a version string with git info.

Constants§

TN_EXECUTION_RESULT
TN_USER_ERROR_CODE_SYSCALL_INSUFFICIENT_BALANCE
TN_VM_ERROR_FEE_PAYER_ACCOUNT_DOES_NOT_EXIST
TN_VM_ERROR_REVERT

Functions§

is_c_printable_ascii_null_terminated
Checks if the given byte slice is a valid C-style null-terminated string containing only printable ASCII characters.