pub struct Slip {
pub public_key: SaitoPublicKey,
pub amount: Currency,
pub slip_index: u8,
pub block_id: u64,
pub tx_ordinal: u64,
pub slip_type: SlipType,
pub utxoset_key: SaitoUTXOSetKey,
pub is_utxoset_key_set: bool,
}
Fields§
§public_key: SaitoPublicKey
§amount: Currency
§slip_index: u8
§block_id: u64
§tx_ordinal: u64
§slip_type: SlipType
§utxoset_key: SaitoUTXOSetKey
§is_utxoset_key_set: bool
Implementations§
Source§impl Slip
impl Slip
Sourcepub fn delete(&self, utxoset: &mut UtxoSet) -> bool
pub fn delete(&self, utxoset: &mut UtxoSet) -> bool
runs when block is purged for good or staking slip deleted
pub fn deserialize_from_net(bytes: &Vec<u8>) -> Result<Slip, Error>
pub fn generate_utxoset_key(&mut self)
pub fn get_utxoset_key(&self) -> SaitoUTXOSetKey
pub fn parse_slip_from_utxokey(key: &SaitoUTXOSetKey) -> Result<Slip, Error>
pub fn on_chain_reorganization(&self, utxoset: &mut UtxoSet, spendable: bool)
pub fn serialize_for_net(&self) -> Vec<u8> ⓘ
pub fn serialize_input_for_signature(&self) -> Vec<u8> ⓘ
pub fn serialize_output_for_signature(&self) -> Vec<u8> ⓘ
pub fn validate(&self, utxoset: &UtxoSet) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Slip
impl<'de> Deserialize<'de> for Slip
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Slip
Auto Trait Implementations§
impl Freeze for Slip
impl RefUnwindSafe for Slip
impl Send for Slip
impl Sync for Slip
impl Unpin for Slip
impl UnwindSafe for Slip
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