From e1e309058d72d269840cee03bbfd1434549b1878 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 4 May 2020 13:43:16 -0400 Subject: [PATCH] f update field docs that were a bit confusing Antoine pointed out --- lightning/src/chain/keysinterface.rs | 2 +- lightning/src/ln/chan_utils.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lightning/src/chain/keysinterface.rs b/lightning/src/chain/keysinterface.rs index a5d7a4c28..9ed28e12f 100644 --- a/lightning/src/chain/keysinterface.rs +++ b/lightning/src/chain/keysinterface.rs @@ -276,7 +276,7 @@ pub struct InMemoryChannelKeys { funding_key: SecretKey, /// Local secret key for blinded revocation pubkey revocation_base_key: SecretKey, - /// Local secret key used in commitment txn generated by us (for broadcast by our counterparty) + /// Local secret key used for our balance in remote-broadcasted commitment transactions payment_key: SecretKey, /// Local secret key used in HTLC tx delayed_payment_base_key: SecretKey, diff --git a/lightning/src/ln/chan_utils.rs b/lightning/src/ln/chan_utils.rs index 842d9619b..c229819c3 100644 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@ -277,8 +277,9 @@ pub struct ChannelPublicKeys { /// a commitment transaction so that their counterparty can claim all available funds if they /// broadcast an old state. pub revocation_basepoint: PublicKey, - /// The public key which receives immediately-spendable non-HTLC-encumbered funds. This key is - /// static across every commitment transaction. + /// The public key which receives our immediately spendable primary channel balance in + /// remote-broadcasted commitment transactions. This key is static across every commitment + /// transaction. pub payment_point: PublicKey, /// The base point which is used (with derive_public_key) to derive a per-commitment payment /// public key which receives non-HTLC-encumbered funds which are only available for spending -- 2.39.5