TxHashRef

Trait TxHashRef 

pub trait TxHashRef {
    // Required method
    fn tx_hash(&self) -> &FixedBytes<32>;
}
Expand description

Trait for types that provide access to a transaction hash reference.

This trait is implemented by types that contain or can provide a reference to a transaction hash ([TxHash]). It provides a standard interface for accessing transaction hashes without requiring ownership.

Required Methods§

fn tx_hash(&self) -> &FixedBytes<32>

Returns a reference to the transaction hash.

This assumes the implementing type already owns or has computed the transaction hash.

Implementations on Foreign Types§

§

impl TxHashRef for OpPooledTransaction

§

fn tx_hash(&self) -> &FixedBytes<32>

§

impl TxHashRef for OpTxEnvelope

§

fn tx_hash(&self) -> &FixedBytes<32>

§

impl<'a, T> TxHashRef for &'a T
where T: 'a + TxHashRef + ?Sized,

§

fn tx_hash(&self) -> &FixedBytes<32>

§

impl<'a, T> TxHashRef for &'a mut T
where T: 'a + TxHashRef + ?Sized,

§

fn tx_hash(&self) -> &FixedBytes<32>

§

impl<T> TxHashRef for Box<T>
where T: TxHashRef + ?Sized,

§

fn tx_hash(&self) -> &FixedBytes<32>

Implementors§

Source§

impl<B, T> TxHashRef for Extended<B, T>
where B: TxHashRef, T: TxHashRef,

§

impl<Eip4844> TxHashRef for EthereumTxEnvelope<Eip4844>
where Eip4844: RlpEcdsaEncodableTx,

§

impl<T> TxHashRef for Recovered<T>
where T: TxHashRef,

§

impl<T> TxHashRef for WithEncoded<T>
where T: TxHashRef,

§

impl<T, Sig> TxHashRef for Signed<T, Sig>
where T: TxHashable<Sig>,