From e3f9454f5fcbe78cd49247f098da7ebf1d5fac2b Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Fri, 8 May 2020 17:19:19 -0400 Subject: [PATCH] Document better DynamicOutputP2WSH --- lightning/src/chain/keysinterface.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lightning/src/chain/keysinterface.rs b/lightning/src/chain/keysinterface.rs index 6e111980b..2dd32bc10 100644 --- a/lightning/src/chain/keysinterface.rs +++ b/lightning/src/chain/keysinterface.rs @@ -66,9 +66,16 @@ pub enum SpendableOutputDescriptor { /// delayed_payment_pubkey to chan_utils::get_revokeable_redeemscript. /// /// To derive the delayed_payment key corresponding to the channel state, you must pass the - /// channel's delayed_payment_key and the provided per_commitment_point to + /// local delayed_payment_base_key and the provided per_commitment_point to /// chan_utils::derive_private_key. The resulting key should be used to sign the spending /// transaction. + /// + /// To derive the revocation_pubkey corresponding to the channel state, you must pass the + /// remote revocation_basepoint and the provided per_commitment point to + /// chan_utils::derive_public_revocation_key. + /// + /// Both remote revocation_basepoint and local delayed_payment_base_key should be given + /// by ChannelKeys, either default implementation (InMemoryChannelKeys) or custom one. DynamicOutputP2WSH { /// The outpoint which is spendable outpoint: OutPoint, -- 2.39.5