[][src]Struct jupiter_account::Tx

pub struct Tx {
    pub from: NibbleKey,
    pub to: NibbleKey,
    pub nonce: u64,
    pub value: u64,
    pub call: u32,
    pub data: Vec<u8>,
    pub signature: Vec<u8>,
}

Represents a layer-2 transaction.

Fields

from: NibbleKeyto: NibbleKeynonce: u64value: u64call: u32data: Vec<u8>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]

impl Encodable for Tx[src]

Auto Trait Implementations

impl RefUnwindSafe for Tx

impl Send for Tx

impl Sync for Tx

impl Unpin for Tx

impl UnwindSafe for Tx

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,