pub struct AuthorizationListItem {
pub chain_id: u64,
pub address: Address,
pub nonce: U256,
pub signature: MalleableTransactionSignature,
}
Fields§
§chain_id: u64
§address: Address
§nonce: U256
§signature: MalleableTransactionSignature
Implementations§
Source§impl AuthorizationListItem
impl AuthorizationListItem
Sourcepub fn signature(&self) -> Option<TransactionSignature>
pub fn signature(&self) -> Option<TransactionSignature>
Check and get the signature.
This checks that the signature is not malleable, but does not otherwise check or recover the public key.
Recover the authorizing address from the authorization signature according to EIP-7702
Create the authorization message hash according to EIP-7702
Trait Implementations§
Source§impl Clone for AuthorizationListItem
impl Clone for AuthorizationListItem
Source§fn clone(&self) -> AuthorizationListItem
fn clone(&self) -> AuthorizationListItem
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthorizationListItem
impl Debug for AuthorizationListItem
Source§impl Decodable for AuthorizationListItem
impl Decodable for AuthorizationListItem
Source§impl Encodable for AuthorizationListItem
impl Encodable for AuthorizationListItem
Source§impl PartialEq for AuthorizationListItem
impl PartialEq for AuthorizationListItem
impl Eq for AuthorizationListItem
impl StructuralPartialEq for AuthorizationListItem
Auto Trait Implementations§
impl Freeze for AuthorizationListItem
impl RefUnwindSafe for AuthorizationListItem
impl Send for AuthorizationListItem
impl Sync for AuthorizationListItem
impl Unpin for AuthorizationListItem
impl UnwindSafe for AuthorizationListItem
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