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
crypto_utils
Cryptographic utilities for the Thru ecosystem
rpc_types
tn_account
tn_block_packet
tn_public_address
tn_runtime_utils
Runtime error utilities for converting error codes to human-readable strings
tn_signature
tn_signature_encoding
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.