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 re-derived signer through
ChannelSigner::provide_channel_parameters.
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.
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 ==.