pub struct WalletSlip {
pub utxokey: SaitoUTXOSetKey,
pub amount: Currency,
pub block_id: u64,
pub tx_ordinal: u64,
pub lc: bool,
pub slip_index: u8,
pub spent: bool,
pub slip_type: SlipType,
}
Expand description
The WalletSlip
stores the essential information needed to track which
slips are spendable and managing them as they move onto and off of the
longest-chain.
Please note that the wallet in this Saito Rust client is intended primarily to hold the public/private_key and that slip-spending and tracking code is not coded in a way intended to be robust against chain-reorganizations but rather for testing of basic functions like transaction creation. Slips that are spent on one fork are not recaptured on chains, for instance, and once a slip is spent it is marked as spent.
Fields§
§utxokey: SaitoUTXOSetKey
§amount: Currency
§block_id: u64
§tx_ordinal: u64
§lc: bool
§slip_index: u8
§spent: bool
§slip_type: SlipType
Implementations§
Source§impl WalletSlip
impl WalletSlip
Trait Implementations§
Source§impl Clone for WalletSlip
impl Clone for WalletSlip
Source§fn clone(&self) -> WalletSlip
fn clone(&self) -> WalletSlip
Returns a copy 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 WalletSlip
impl Debug for WalletSlip
Source§impl Display for WalletSlip
impl Display for WalletSlip
Source§impl PartialEq for WalletSlip
impl PartialEq for WalletSlip
impl StructuralPartialEq for WalletSlip
Auto Trait Implementations§
impl Freeze for WalletSlip
impl RefUnwindSafe for WalletSlip
impl Send for WalletSlip
impl Sync for WalletSlip
impl Unpin for WalletSlip
impl UnwindSafe for WalletSlip
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