Skip to main content

thruput_signing/
lib.rs

1//! Canonical off-chain signing and transaction construction helpers for
2//! Thruput.
3
4pub mod account;
5pub mod build;
6pub mod default_wallet;
7pub mod dev_account;
8pub mod dev_wallet;
9pub mod encode;
10pub mod error;
11pub mod hash;
12pub mod indices;
13pub mod local;
14pub mod mldsa;
15pub mod native_token;
16pub mod signer;
17pub mod strkey;
18
19pub use account::{DEFAULT_PUBKEY_ACCOUNT_NONCE, PubkeyAccount, public_key_hash};
20pub use build::{
21    BuildCallTransaction, BuildDeployTransaction, BuildDevWalletDoActionTransaction,
22    DEFAULT_TX_GAS_LIMIT, SignTransactionParams, WALLET_DEPLOY_ENTRYPOINT, build_call_transaction,
23    build_deploy_transaction, build_dev_wallet_do_action_transaction, derive_deploy_address,
24    dev_wallet_do_action_calldata, sign_and_encode_transaction_hex, sign_transaction,
25    source_address_auth_claim,
26};
27pub use dev_account::{
28    DEFAULT_DEV_ACCOUNT_COUNT, DEFAULT_DEV_ACCOUNT_SEED, derive_default_dev_account_signer,
29    derive_dev_account_signer,
30};
31pub use dev_wallet::{
32    NATIVE_TOKEN_DECIMALS, NATIVE_TOKEN_SCALE, NATIVE_TOKEN_TRANSFER_ENTRYPOINT,
33    native_token_transfer_calldata, wallet_contract_hash,
34};
35pub use encode::{encode_signed_transaction_xdr, encode_transaction_xdr};
36pub use error::SigningError;
37pub use hash::transaction_hash;
38pub use indices::PublicKeyId;
39pub use local::{LocalSigner, SchemeSigner};
40pub use mldsa::{
41    MLDSA65_PUBLIC_KEY_LEN, MLDSA65_SEED_LEN, MLDSA65_SIGNATURE_LEN, MlDsa65Signer, verify_mldsa65,
42};
43pub use native_token::{ParseNativeTokenAmountError, parse_native_token_amount};
44pub use signer::Signer;