reth_primitives_traits::transaction

Trait TransactionExt

Source
pub trait TransactionExt: Transaction {
    type Type: TxType;

    // Required method
    fn signature_hash(&self) -> B256;

    // Provided method
    fn tx_type(&self) -> Self::Type { ... }
}
Expand description

Extension trait of [alloy_consensus::Transaction].

Required Associated Types§

Source

type Type: TxType

Transaction envelope type ID.

Required Methods§

Source

fn signature_hash(&self) -> B256

Heavy operation that return signature hash over rlp encoded transaction. It is only for signature signing or signer recovery.

Provided Methods§

Source

fn tx_type(&self) -> Self::Type

Returns the transaction type.

Implementors§