Module transaction

Expand description

Transaction types.

Modules§

serde_bincode_compat
Bincode-compatible transaction type serde implementations.
signature
Handling transaction signature operations, including signature recovery, applying chain IDs, and EIP-2 validation.
util
Utility functions for signature.

Structs§

BlobTransaction
A response to GetPooledTransactions that includes blob data, their commitments, and their corresponding proofs.
RecoveredTx
Signed transaction with recovered signer.
TransactionMeta
Additional fields in the context of a block that contains this transaction.
TransactionSigned
Signed transaction.
WithEncoded
Generic wrapper with encoded Bytes, such as transaction data.

Enums§

InvalidTransactionError
Represents error variants that can happen when trying to validate a transaction.
PooledTransactionsElement
A response to GetPooledTransactions. This can include either a blob transaction, or a non-4844 signed transaction.
Transaction
A raw transaction.
TransactionConversionError
Represents error variants that can happen when trying to convert a transaction to pooled transaction.
TryFromRecoveredTransactionError
Represents error variants than can happen when trying to convert a recovered transaction.
TxType
Transaction Type

Constants§

COMPACT_EXTENDED_IDENTIFIER_FLAG
For backwards compatibility purposes only 2 bits of the type are encoded in the identifier parameter. In the case of a COMPACT_EXTENDED_IDENTIFIER_FLAG, the full transaction type is read from the buffer as a single byte.
COMPACT_IDENTIFIER_EIP1559
Identifier parameter for EIP-1559 transaction
COMPACT_IDENTIFIER_EIP2930
Identifier parameter for EIP-2930 transaction
COMPACT_IDENTIFIER_LEGACY
Identifier parameter for legacy transaction

Statics§

PARALLEL_SENDER_RECOVERY_THRESHOLD
Expected number of transactions where we can expect a speed-up by recovering the senders in parallel.

Traits§

FillTxEnv
Implements behaviour to fill a TxEnv from another transaction.
SignedTransactionIntoRecoveredExt
Extension trait for SignedTransaction to convert it into RecoveredTx.

Functions§

recover_signer
Recover signer address from message hash. This ensures that the signature S value is greater than secp256k1n / 2, as specified in EIP-2.
recover_signer_unchecked
Recover signer from message hash, without ensuring that the signature has a low s value.
recover_signers
Recovers a list of signers from a transaction list iterator.
recover_signers_unchecked
Recovers a list of signers from a transaction list iterator without ensuring that the signature has a low s value.

Type Aliases§

PooledTransactionsElementEcRecovered
A signed pooled transaction with recovered signer.
TransactionSignedEcRecovered
Type alias kept for backward compatibility.