pub enum VtxoClause {
DelayedSign(DelayedSignClause),
TimelockSign(TimelockSignClause),
DelayedTimelockSign(DelayedTimelockSignClause),
HashDelaySign(HashDelaySignClause),
}Variants§
DelayedSign(DelayedSignClause)
TimelockSign(TimelockSignClause)
DelayedTimelockSign(DelayedTimelockSignClause)
HashDelaySign(HashDelaySignClause)
Implementations§
Source§impl VtxoClause
impl VtxoClause
Sourcepub fn sequence(&self) -> Option<Sequence>
pub fn sequence(&self) -> Option<Sequence>
Returns the input sequence for this clause, if applicable.
Sourcepub fn control_block(&self, vtxo: &Vtxo) -> ControlBlock
pub fn control_block(&self, vtxo: &Vtxo) -> ControlBlock
Computes the total witness size in bytes for spending the VTXO via this clause.
Sourcepub fn witness_size(&self, vtxo: &Vtxo) -> usize
pub fn witness_size(&self, vtxo: &Vtxo) -> usize
Computes the total witness size in bytes for spending the VTXO via this clause.
Trait Implementations§
Source§impl Clone for VtxoClause
impl Clone for VtxoClause
Source§fn clone(&self) -> VtxoClause
fn clone(&self) -> VtxoClause
Returns a duplicate 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 VtxoClause
impl Debug for VtxoClause
Source§impl Into<VtxoClause> for DelayedSignClause
impl Into<VtxoClause> for DelayedSignClause
Source§fn into(self) -> VtxoClause
fn into(self) -> VtxoClause
Converts this type into the (usually inferred) input type.
Source§impl Into<VtxoClause> for DelayedTimelockSignClause
impl Into<VtxoClause> for DelayedTimelockSignClause
Source§fn into(self) -> VtxoClause
fn into(self) -> VtxoClause
Converts this type into the (usually inferred) input type.
Source§impl Into<VtxoClause> for HashDelaySignClause
impl Into<VtxoClause> for HashDelaySignClause
Source§fn into(self) -> VtxoClause
fn into(self) -> VtxoClause
Converts this type into the (usually inferred) input type.
Source§impl Into<VtxoClause> for TimelockSignClause
impl Into<VtxoClause> for TimelockSignClause
Source§fn into(self) -> VtxoClause
fn into(self) -> VtxoClause
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for VtxoClause
impl RefUnwindSafe for VtxoClause
impl Send for VtxoClause
impl Sync for VtxoClause
impl Unpin for VtxoClause
impl UnwindSafe for VtxoClause
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