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§
- Blob
Transaction - A response to
GetPooledTransactions
that includes blob data, their commitments, and their corresponding proofs. - Recovered
Tx - Signed transaction with recovered signer.
- Transaction
Meta - Additional fields in the context of a block that contains this transaction.
- Transaction
Signed - Signed transaction.
- With
Encoded - Generic wrapper with encoded Bytes, such as transaction data.
Enums§
- Invalid
Transaction Error - Represents error variants that can happen when trying to validate a transaction.
- Pooled
Transactions Element - A response to
GetPooledTransactions
. This can include either a blob transaction, or a non-4844 signed transaction. - Transaction
- A raw transaction.
- Transaction
Conversion Error - Represents error variants that can happen when trying to convert a transaction to pooled transaction.
- TryFrom
Recovered Transaction Error - 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§
- Fill
TxEnv - Implements behaviour to fill a
TxEnv
from another transaction. - Signed
Transaction Into Recovered Ext - Extension trait for
SignedTransaction
to convert it intoRecoveredTx
.
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§
- Pooled
Transactions Element EcRecovered - A signed pooled transaction with recovered signer.
- Transaction
Signed EcRecovered - Type alias kept for backward compatibility.