pub struct StaticPaymentOutputDescriptor {
pub outpoint: OutPoint,
pub output: TxOut,
pub channel_keys_id: [u8; 32],
pub channel_value_satoshis: u64,
pub channel_transaction_parameters: Option<ChannelTransactionParameters>,
}Expand description
Information about a spendable output to our “payment key”.
See SpendableOutputDescriptor::StaticPaymentOutput for more details on how to spend this.
Fields§
§outpoint: OutPointThe outpoint which is spendable.
output: TxOutThe output which is referenced by the given outpoint.
channel_keys_id: [u8; 32]Arbitrary identification information returned by a call to ChannelSigner::channel_keys_id.
This may be useful in re-deriving keys used in the channel to spend the output.
channel_value_satoshis: u64The value of the channel which this transactions spends.
channel_transaction_parameters: Option<ChannelTransactionParameters>The necessary channel parameters that need to be provided to the signer.
Added as optional, but always Some if the descriptor was produced in v0.0.117 or later.
Implementations§
Source§impl StaticPaymentOutputDescriptor
impl StaticPaymentOutputDescriptor
Sourcepub fn witness_script(&self) -> Option<ScriptBuf>
pub fn witness_script(&self) -> Option<ScriptBuf>
Returns the witness_script of the spendable output.
Note that this will only return Some for StaticPaymentOutputDescriptors that
originated from an anchor outputs channel, as they take the form of a P2WSH script.
Sourcepub fn max_witness_length(&self) -> u64
pub fn max_witness_length(&self) -> u64
The maximum length a well-formed witness spending one of these should have.
Note: If you have the grind_signatures feature enabled, this will be at least 1 byte
shorter.
Sourcepub fn needs_csv_1_for_spend(&self) -> bool
pub fn needs_csv_1_for_spend(&self) -> bool
Returns true if spending this output requires a transaction with a CheckSequenceVerify value of at least 1.
Trait Implementations§
Source§impl Clone for StaticPaymentOutputDescriptor
impl Clone for StaticPaymentOutputDescriptor
Source§fn clone(&self) -> StaticPaymentOutputDescriptor
fn clone(&self) -> StaticPaymentOutputDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Hash for StaticPaymentOutputDescriptor
impl Hash for StaticPaymentOutputDescriptor
Source§impl PartialEq for StaticPaymentOutputDescriptor
impl PartialEq for StaticPaymentOutputDescriptor
Source§fn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
fn eq(&self, other: &StaticPaymentOutputDescriptor) -> bool
self and other values to be equal, and is used by ==.Source§impl Writeable for StaticPaymentOutputDescriptor
impl Writeable for StaticPaymentOutputDescriptor
impl Eq for StaticPaymentOutputDescriptor
impl StructuralPartialEq for StaticPaymentOutputDescriptor
Auto Trait Implementations§
impl Freeze for StaticPaymentOutputDescriptor
impl RefUnwindSafe for StaticPaymentOutputDescriptor
impl Send for StaticPaymentOutputDescriptor
impl Sync for StaticPaymentOutputDescriptor
impl Unpin for StaticPaymentOutputDescriptor
impl UnwindSafe for StaticPaymentOutputDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Self in from the given LengthLimitedRead.