Expand description
Canonical off-chain signing and transaction construction helpers for Thruput.
Re-exports§
pub use account::DEFAULT_PUBKEY_ACCOUNT_NONCE;pub use account::PubkeyAccount;pub use build::BuildCallTransaction;pub use build::BuildDeployTransaction;pub use build::BuildDevWalletDoActionTransaction;pub use build::DEFAULT_TX_GAS_LIMIT;pub use build::SignTransactionParams;pub use build::WALLET_DEPLOY_ENTRYPOINT;pub use build::build_call_transaction;pub use build::build_deploy_transaction;pub use build::build_dev_wallet_do_action_transaction;pub use build::derive_deploy_address;pub use build::dev_wallet_do_action_calldata;pub use build::sign_and_encode_transaction_hex;pub use build::sign_transaction;pub use build::source_address_auth_claim;pub use dev_account::DEFAULT_DEV_ACCOUNT_COUNT;pub use dev_account::DEFAULT_DEV_ACCOUNT_SEED;pub use dev_account::derive_default_dev_account_signer;pub use dev_account::derive_dev_account_signer;pub use dev_wallet::NATIVE_TOKEN_DECIMALS;pub use dev_wallet::NATIVE_TOKEN_SCALE;pub use dev_wallet::NATIVE_TOKEN_TRANSFER_ENTRYPOINT;pub use dev_wallet::native_token_transfer_calldata;pub use dev_wallet::wallet_contract_hash;pub use encode::encode_signed_transaction_xdr;pub use encode::encode_transaction_xdr;pub use error::SigningError;pub use hash::transaction_hash;pub use indices::PublicKeyId;pub use local::LocalSigner;pub use local::SchemeSigner;pub use mldsa::MLDSA65_PUBLIC_KEY_LEN;pub use mldsa::MLDSA65_SEED_LEN;pub use mldsa::MLDSA65_SIGNATURE_LEN;pub use mldsa::MlDsa65Signer;pub use mldsa::verify_mldsa65;pub use native_token::ParseNativeTokenAmountError;pub use native_token::parse_native_token_amount;pub use signer::Signer;
Modules§
- account
- Pubkey-account helpers.
- build
- Transaction and signed-transaction builders.
- default_
wallet - Native
DefaultWallettransactions for pubkey accounts. - dev_
account - Deterministic local-dev account signer derivation.
- dev_
wallet - Shared helpers for the dev-wallet contract wire format.
- encode
- XDR encoding helpers.
- error
- Error types for signing and transaction construction.
- hash
- Canonical transaction hashing.
- indices
- Strongly-typed indices used when constructing signatures.
- local
- Local Ed25519 signer backed by
ed25519-dalek. - mldsa
- Local ML-DSA-65 signer backed by the
ml-dsacrate. - native_
token - Decimal amounts for the native token.
- signer
- Signing abstraction used by Thruput transaction builders.
- strkey
- Text encodings shared by native clients.
StrKeysencode type and checksum, not network. Contract addresses, public keys and private seeds are deliberately separate operations.
Functions§
- public_
key_ hash - Hashes a public key, scheme included:
SHA256(cxs(DomainSeparator("PublicKey")) || cxs(PublicKey)).