Skip to content

Commit 71d1faf

Browse files
author
Antoine Riard
committed
Document better DynamicOutputP2WSH
1 parent 20a8f79 commit 71d1faf

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
@@ -66,9 +66,16 @@ pub enum SpendableOutputDescriptor {
6666
/// delayed_payment_pubkey to chan_utils::get_revokeable_redeemscript.
6767
///
6868
/// To derive the delayed_payment key corresponding to the channel state, you must pass the
69-
/// channel's delayed_payment_key and the provided per_commitment_point to
69+
/// local delayed_payment_base_key and the provided per_commitment_point to
7070
/// chan_utils::derive_private_key. The resulting key should be used to sign the spending
7171
/// transaction.
72+
///
73+
/// To derive the revocation_pubkey corresponding to the channel state, you must pass the
74+
/// remote revocation_basepoint and the provided per_commitment point to
75+
/// chan_utils::derive_public_revocation_key.
76+
///
77+
/// Both remote revocation_basepoint and local delayed_payment_base_key should be given
78+
/// by ChannelKeys, either default implementation (InMemoryChannelKeys) or custom one.
7279
DynamicOutputP2WSH {
7380
/// The outpoint which is spendable
7481
outpoint: OutPoint,

0 commit comments

Comments
 (0)