]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f fix a few missing payment_base -> payment key things Jeff caught
authorMatt Corallo <git@bluematt.me>
Sun, 3 May 2020 02:12:15 +0000 (22:12 -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 72a378e28dc90d0c7f9f577e862a1eb23fcdbfa4..a5d7a4c28d5a91b612247e23078dbd4b691612b5 100644 (file)
@@ -601,7 +601,7 @@ impl KeysInterface for KeysManager {
                }
                let funding_key = key_step!(b"funding key", commitment_seed);
                let revocation_base_key = key_step!(b"revocation base key", funding_key);
-               let payment_key = key_step!(b"payment base key", revocation_base_key);
+               let payment_key = key_step!(b"payment key", revocation_base_key);
                let delayed_payment_base_key = key_step!(b"delayed payment base key", payment_key);
                let htlc_base_key = key_step!(b"HTLC base key", delayed_payment_base_key);
 
index 944d92a82932bb009cb754d53f81653ef2d9cacd..842d9619b1f259c6a0a87c58930d447ad315e899 100644 (file)
@@ -277,8 +277,8 @@ 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 base point which is used (with derive_public_key) to derive a per-commitment payment
-       /// public key which receives immediately-spendable non-HTLC-encumbered funds.
+       /// The public key which receives immediately-spendable non-HTLC-encumbered funds. 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