f update field docs that were a bit confusing Antoine pointed out
authorMatt Corallo <git@bluematt.me>
Mon, 4 May 2020 17:43:16 +0000 (13:43 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 4 May 2020 17:58:13 +0000 (13:58 -0400)
lightning/src/chain/keysinterface.rs
lightning/src/ln/chan_utils.rs

index a5d7a4c28d5a91b612247e23078dbd4b691612b5..9ed28e12fe8e983dc40f3a2abb7d00a36a018763 100644 (file)
@@ -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,
index 842d9619b1f259c6a0a87c58930d447ad315e899..c229819c3b64e6d3e875002c814190a1d40e153e 100644 (file)
@@ -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