Skip to main content

Module tempo_transaction

Module tempo_transaction 

Source

Modulesยง

Call_flags ๐Ÿ”’
SignatureType_flags ๐Ÿ”’
TempoTransaction_flags ๐Ÿ”’
serde_input ๐Ÿ”’ serde
Helper module for serializing and deserializing the input field of a Call as either input or data fields.

Structsยง

Call
CallFlags
Fieldset that facilitates compacting the parent type. Used bytes: 1 | Unused bits: 1
SignatureTypeFlags
Fieldset that facilitates compacting the parent type. Used bytes: 1 | Unused bits: 0
TempoTransaction
Tempo transaction following the Tempo spec.
TempoTransactionFlags
Fieldset that facilitates compacting the parent type. Used bytes: 5 | Unused bits: 7

Enumsยง

SignatureType
Signature type enumeration

Constantsยง

FEE_PAYER_SIGNATURE_MAGIC_BYTE
Magic byte for the fee payer signature
MAX_WEBAUTHN_SIGNATURE_LENGTH
P256_SIGNATURE_LENGTH
SECP256K1_SIGNATURE_LENGTH
Signature type constants
TEMPO_EXPIRING_NONCE_KEY
Nonce key marking an expiring nonce transaction (uses tx hash for replay protection).
TEMPO_EXPIRING_NONCE_MAX_EXPIRY_SECS
Maximum allowed expiry window for expiring nonce transactions (30 seconds).
TEMPO_TX_TYPE_ID
Tempo transaction type byte (0x76)

Functionsยง

rlp_header ๐Ÿ”’
Helper function to create an RLP header for a list with the given payload length
validate_calls
Validates the calls list structure for Tempo transactions.