From: Matt Corallo Date: Mon, 4 May 2020 17:43:16 +0000 (-0400) Subject: f update field docs that were a bit confusing Antoine pointed out X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e1e309058d72d269840cee03bbfd1434549b1878;p=rust-lightning f update field docs that were a bit confusing Antoine pointed out --- 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