pub enum SpendableOutputDescriptor {
    StaticOutput {
        outpoint: OutPoint,
        output: TxOut,
    },
    DynamicOutput {
        outpoint: OutPoint,
        local_delayedkey: SecretKey,
        witness_script: Script,
        to_self_delay: u16,
    },
}
Expand description

When on-chain outputs are created by rust-lightning an event is generated which informs the user thereof. This enum describes the format of the output and provides the OutPoint.

Variants

StaticOutput

Fields

outpoint: OutPoint

The outpoint spendable by user wallet

output: TxOut

The output which is referenced by the given outpoint

Outpoint with an output to a script which was provided via KeysInterface, thus you should have stored somewhere how to spend script_pubkey! Outputs from a justice tx, claim tx or preimage tx

DynamicOutput

Fields

outpoint: OutPoint

Outpoint spendable by user wallet

local_delayedkey: SecretKey

local_delayedkey = delayed_payment_basepoint_secret + SHA256(per_commitment_point || delayed_payment_basepoint

witness_script: Script

witness redeemScript encumbering output

to_self_delay: u16

nSequence input must commit to self_delay to satisfy script’s OP_CSV

Outpoint commits to a P2WSH, should be spend by the following witness : <local_delayedsig> 0 With input nSequence set to_self_delay. Outputs from a HTLC-Success/Timeout tx

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.