Struct alloy_consensus::transaction::Recovered
source · pub struct Recovered<T> { /* private fields */ }
Expand description
Signed transaction with recovered signer.
Implementations§
source§impl<T> Recovered<T>
impl<T> Recovered<T>
sourcepub const fn signer_ref(&self) -> &Address
pub const fn signer_ref(&self) -> &Address
Reference to the signer of transaction recovered from signature
sourcepub fn into_parts(self) -> (T, Address)
pub fn into_parts(self) -> (T, Address)
Dissolve Self to its component
sourcepub const fn new_unchecked(tx: T, signer: Address) -> Self
pub const fn new_unchecked(tx: T, signer: Address) -> Self
sourcepub fn map_transaction<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>
pub fn map_transaction<Tx>(self, f: impl FnOnce(T) -> Tx) -> Recovered<Tx>
Applies the given closure to the inner transactions.
Trait Implementations§
source§impl<T: Encodable2718> Encodable2718 for Recovered<T>
impl<T: Encodable2718> Encodable2718 for Recovered<T>
source§fn encode_2718_len(&self) -> usize
fn encode_2718_len(&self) -> usize
The length of the 2718 encoded envelope. This is the length of the type
flag + the length of the inner encoding.
source§fn encode_2718(&self, out: &mut dyn BufMut)
fn encode_2718(&self, out: &mut dyn BufMut)
source§fn trie_hash(&self) -> B256
fn trie_hash(&self) -> B256
Compute the hash as committed to in the MPT trie. This hash is used
ONLY by the Ethereum merkle-patricia trie and associated proofs. Do not
call this method unless you are building a full or light client. Read more
source§fn encoded_2718(&self) -> Vec<u8> ⓘ
fn encoded_2718(&self) -> Vec<u8> ⓘ
Encode the transaction according to [EIP-2718] rules. First a 1-byte
type flag in the range 0x0-0x7f, then the body of the transaction. Read more
source§fn network_len(&self) -> usize
fn network_len(&self) -> usize
The length of the 2718 encoded envelope in network format. This is the
length of the header + the length of the type flag and inner encoding.
source§fn network_encode(&self, out: &mut dyn BufMut)
fn network_encode(&self, out: &mut dyn BufMut)
Encode in the network format. The network format is used ONLY by the
Ethereum p2p protocol. Do not call this method unless you are building
a p2p protocol client. Read more
source§impl<T: PartialEq> PartialEq for Recovered<T>
impl<T: PartialEq> PartialEq for Recovered<T>
impl<T: Eq> Eq for Recovered<T>
impl<T> StructuralPartialEq for Recovered<T>
Auto Trait Implementations§
impl<T> Freeze for Recovered<T>where
T: Freeze,
impl<T> RefUnwindSafe for Recovered<T>where
T: RefUnwindSafe,
impl<T> Send for Recovered<T>where
T: Send,
impl<T> Sync for Recovered<T>where
T: Sync,
impl<T> Unpin for Recovered<T>where
T: Unpin,
impl<T> UnwindSafe for Recovered<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.