Skip to content

Commit d5ecadf

Browse files
author
Antoine Riard
committed
Document better DynamicOutputP2WSH
1 parent c0d0f1c commit d5ecadf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,16 @@ pub enum SpendableOutputDescriptor {
6464
/// delayed_payment_pubkey to chan_utils::get_revokeable_redeemscript.
6565
///
6666
/// To derive the delayed_payment key corresponding to the channel state, you must pass the
67-
/// channel's delayed_payment_key and the provided per_commitment_point to
67+
/// local delayed_payment_base_key and the provided per_commitment_point to
6868
/// chan_utils::derive_private_key. The resulting key should be used to sign the spending
6969
/// transaction.
70+
///
71+
/// To derive the revocation_pubkey corresponding to the channel state, you must pass the
72+
/// remote revocation_basepoint and the provided per_commitment point to
73+
/// chan_utils::derive_public_revocation_key.
74+
///
75+
/// Both remote revocation_basepoint and local delayed_payment_base_key should be given
76+
/// by ChannelKeys, either default implementation (InMemoryChannelKeys) or custom one.
7077
DynamicOutputP2WSH {
7178
/// The outpoint which is spendable
7279
outpoint: OutPoint,

0 commit comments

Comments
 (0)