[−][src]Struct jupiter_account::Tx
Represents a layer-2 transaction.
Fields
from: NibbleKey
to: NibbleKey
nonce: u64
value: u64
call: u32
signature: Vec<u8>
Implementations
impl Tx
[src]
pub fn new(from: Vec<u8>, to: Vec<u8>, nonce: u64) -> Self
[src]
pub fn sign(&mut self, skey: &[u8; 32])
[src]
pub fn sig_check(&self) -> (bool, NibbleKey)
[src]
Trait Implementations
impl Debug for Tx
[src]
impl Decodable for Tx
[src]
fn decode(rlp: &Rlp) -> Result<Self, DecoderError>
[src]
impl Encodable for Tx
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,