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§
Required Methods§
Sourcefn signature_hash(&self) -> B256
fn signature_hash(&self) -> B256
Heavy operation that return signature hash over rlp encoded transaction. It is only for signature signing or signer recovery.