pub struct AnchorDescriptor {
pub channel_derivation_parameters: ChannelDerivationParameters,
pub outpoint: OutPoint,
pub value: Amount,
}Expand description
A descriptor used to sign for a commitment transaction’s anchor output.
Fields§
§channel_derivation_parameters: ChannelDerivationParametersThe parameters required to derive the signer for the anchor input.
outpoint: OutPointThe transaction input’s outpoint corresponding to the commitment transaction’s anchor output.
value: AmountZero-fee-commitment anchors have variable value, which is tracked here.
Implementations§
Source§impl AnchorDescriptor
impl AnchorDescriptor
Sourcepub fn previous_utxo(&self) -> TxOut
pub fn previous_utxo(&self) -> TxOut
Returns the UTXO to be spent by the anchor input, which can be obtained via
Self::unsigned_tx_input.
Sourcepub fn unsigned_tx_input(&self) -> TxIn
pub fn unsigned_tx_input(&self) -> TxIn
Returns the unsigned transaction input spending the anchor output in the commitment transaction.
Sourcepub fn tx_input_witness(&self, signature: &Signature) -> Witness
pub fn tx_input_witness(&self, signature: &Signature) -> Witness
Returns the fully signed witness required to spend the anchor output in the commitment transaction.
Trait Implementations§
Source§impl Clone for AnchorDescriptor
impl Clone for AnchorDescriptor
Source§fn clone(&self) -> AnchorDescriptor
fn clone(&self) -> AnchorDescriptor
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 AnchorDescriptor
impl Debug for AnchorDescriptor
Source§impl PartialEq for AnchorDescriptor
impl PartialEq for AnchorDescriptor
impl Eq for AnchorDescriptor
impl StructuralPartialEq for AnchorDescriptor
Auto Trait Implementations§
impl Freeze for AnchorDescriptor
impl RefUnwindSafe for AnchorDescriptor
impl Send for AnchorDescriptor
impl Sync for AnchorDescriptor
impl Unpin for AnchorDescriptor
impl UnwindSafe for AnchorDescriptor
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