pub struct Authorization {
pub chain_id: u32,
pub contract: EthereumAddress,
pub nonce: U256,
pub y_parity: bool,
pub r: Vec<u8>,
pub s: Vec<u8>,
}Fields§
§chain_id: u32§contract: EthereumAddress§nonce: U256§y_parity: bool§r: Vec<u8>§s: Vec<u8>Implementations§
Source§impl Authorization
impl Authorization
pub fn digest(&self) -> Vec<u8> ⓘ
pub fn sign(&mut self, rs: Vec<u8>, recid: u8)
pub fn restore_sender(&self) -> Result<EthereumAddress, TransactionError>
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Authorization
impl Debug for Authorization
Source§impl Decodable for Authorization
impl Decodable for Authorization
Source§impl Encodable for Authorization
impl Encodable for Authorization
Source§impl Hash for Authorization
impl Hash for Authorization
Source§impl Ord for Authorization
impl Ord for Authorization
Source§fn cmp(&self, other: &Authorization) -> Ordering
fn cmp(&self, other: &Authorization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl PartialOrd for Authorization
impl PartialOrd for Authorization
impl Eq for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
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