[−][src]Enum lightning::chain::keysinterface::SpendableOutputDescriptor
When on-chain outputs are created by rust-lightning (which our counterparty is not able to claim at any point in the future) an event is generated which you must track and be able to spend on-chain. The information needed to do this is provided in this enum, including the outpoint describing which txid and output index is available, the full output which exists at that txid/index, and any keys or other information required to sign.
Variants
An output to a script which was provided via KeysInterface, thus you should already know how to spend it. No keys are provided as rust-lightning was never given any keys - only the script_pubkey as it appears in the output. These may include outputs from a transaction punishing our counterparty or claiming an HTLC on-chain using the payment preimage or after it has timed out.
Fields of StaticOutput
An output to a P2WSH script which can be spent with a single signature after a CSV delay.
The private key which should be used to sign the transaction is provided, as well as the
full witness redeemScript which is hashed in the output script_pubkey.
The witness in the spending input should be:
<BIP 143 signature generated with the given key>
Fields of DynamicOutputP2WSH
outpoint: OutPoint
The outpoint which is spendable
key: SecretKey
The secret key which must be used to sign the spending transaction
witness_script: Script
The witness redeemScript which is hashed to create the script_pubkey in the given output
to_self_delay: u16
The nSequence value which must be set in the spending input to satisfy the OP_CSV in the witness_script.
output: TxOut
The output which is referenced by the given outpoint
An output to a P2WPKH, spendable exclusively by the given private key.
The witness in the spending input, is, thus, simply:
<BIP 143 signature generated with the given key>
Fields of DynamicOutputP2WPKH
Trait Implementations
impl Clone for SpendableOutputDescriptor
[src]
fn clone(&self) -> SpendableOutputDescriptor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<SpendableOutputDescriptor> for SpendableOutputDescriptor
[src]
fn eq(&self, other: &SpendableOutputDescriptor) -> bool
[src]
fn ne(&self, other: &SpendableOutputDescriptor) -> bool
[src]
impl Readable for SpendableOutputDescriptor
[src]
impl StructuralPartialEq for SpendableOutputDescriptor
[src]
impl Writeable for SpendableOutputDescriptor
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpendableOutputDescriptor
impl Send for SpendableOutputDescriptor
impl Sync for SpendableOutputDescriptor
impl Unpin for SpendableOutputDescriptor
impl UnwindSafe for SpendableOutputDescriptor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,