pub struct DelayedTimelockSignClause {
pub pubkey: PublicKey,
pub timelock_height: BlockHeight,
pub block_delta: BlockDelta,
}Expand description
A clause that allows to sign and spend the UTXO after a relative timelock, with an additional absolute one.
Fields§
§pubkey: PublicKey§timelock_height: BlockHeight§block_delta: BlockDeltaImplementations§
Trait Implementations§
Source§impl Clone for DelayedTimelockSignClause
impl Clone for DelayedTimelockSignClause
Source§fn clone(&self) -> DelayedTimelockSignClause
fn clone(&self) -> DelayedTimelockSignClause
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 DelayedTimelockSignClause
impl Debug for DelayedTimelockSignClause
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 TapScriptClause for DelayedTimelockSignClause
impl TapScriptClause for DelayedTimelockSignClause
Source§type WitnessData = Signature
type WitnessData = Signature
The type of witness data required to sign the clause.
Source§fn witness(
&self,
signature: &Self::WitnessData,
control_block: &ControlBlock,
) -> Witness
fn witness( &self, signature: &Self::WitnessData, control_block: &ControlBlock, ) -> Witness
Constructs the witness for the clause.
Source§fn witness_size(&self, vtxo: &Vtxo) -> usize
fn witness_size(&self, vtxo: &Vtxo) -> usize
Computes the total witness size in bytes for spending via this clause.
Source§fn control_block(&self, vtxo: &Vtxo) -> ControlBlock
fn control_block(&self, vtxo: &Vtxo) -> ControlBlock
Construct the taproot control block for spending the VTXO using this clause
Auto Trait Implementations§
impl Freeze for DelayedTimelockSignClause
impl RefUnwindSafe for DelayedTimelockSignClause
impl Send for DelayedTimelockSignClause
impl Sync for DelayedTimelockSignClause
impl Unpin for DelayedTimelockSignClause
impl UnwindSafe for DelayedTimelockSignClause
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