Skip to main content

Module txn_lib

Module txn_lib 

Source
Expand description

Transaction library: normal Rust struct, signing, serialization, accessors

Structs§

Transaction
Normal Rust struct for transaction construction
WireTxnHdrV1
On-wire transaction header (matches TnTxnHdrV1 layout)

Enums§

RpcError

Constants§

TN_ACCOUNT_META_FOOTPRINT
TN_STATE_PROOF_HDR_SIZE
TN_STATE_PROOF_TYPE_CREATION
TN_STATE_PROOF_TYPE_EXISTING
TN_STATE_PROOF_TYPE_UPDATING
TN_TXN_FLAG_HAS_FEE_PAYER_PROOF_BIT
TN_TXN_FLAG_MAY_COMPRESS_ACCOUNT_BIT
TN_TXN_SIGNATURE_SZ
Size of the signature in bytes (always at end of transaction)

Functions§

tn_txn_size
validate_wire_transaction
Validate a wire-format transaction for protocol correctness (matching C tn_txn_parse_core).

Type Aliases§

TnHash
TnPubkey
TnSignature