pub struct Breakdown {
pub msgpack: Vec<u8>,
pub action_hash: [u8; 32],
pub payload: String,
pub digest: [u8; 32],
}Expand description
The stages of one L1 signature, in order.
Fields§
§msgpack: Vec<u8>The action as msgpack, keys in wire order: the first part of the hash.
action_hash: [u8; 32]keccak256(msgpack || nonce || vault marker || optional expiry): the connection id the
phantom agent carries.
payload: StringThe EIP-712 typed data a wallet is asked to sign (eth_signTypedData_v4): the phantom
agent Agent{source, connectionId} under Exchange/1/1337/0x0, as JSON.
digest: [u8; 32]What a key signs: the EIP-712 digest of the payload.
Implementations§
Source§impl Breakdown
impl Breakdown
Sourcepub fn of<A: L1Action + ?Sized>(
action: &A,
nonce: u64,
vault: Option<Address>,
network: Network,
) -> Breakdown
pub fn of<A: L1Action + ?Sized>( action: &A, nonce: u64, vault: Option<Address>, network: Network, ) -> Breakdown
The stages for action at nonce, for vault when it acts for one, on network.
Trait Implementations§
impl Eq for Breakdown
impl StructuralPartialEq for Breakdown
Auto Trait Implementations§
impl Forget for Breakdown
impl Freeze for Breakdown
impl Move for Breakdown
impl RefUnwindSafe for Breakdown
impl Send for Breakdown
impl Sync for Breakdown
impl Unpin for Breakdown
impl UnsafeUnpin for Breakdown
impl UnwindSafe for Breakdown
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.