Skip to content

Commit a37cd6d

Browse files
committed
f fix a few missing payment_base -> payment key things Jeff caught
1 parent df18205 commit a37cd6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightning/src/chain/keysinterface.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ impl KeysInterface for KeysManager {
601601
}
602602
let funding_key = key_step!(b"funding key", commitment_seed);
603603
let revocation_base_key = key_step!(b"revocation base key", funding_key);
604-
let payment_key = key_step!(b"payment base key", revocation_base_key);
604+
let payment_key = key_step!(b"payment key", revocation_base_key);
605605
let delayed_payment_base_key = key_step!(b"delayed payment base key", payment_key);
606606
let htlc_base_key = key_step!(b"HTLC base key", delayed_payment_base_key);
607607

lightning/src/ln/chan_utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ pub struct ChannelPublicKeys {
277277
/// a commitment transaction so that their counterparty can claim all available funds if they
278278
/// broadcast an old state.
279279
pub revocation_basepoint: PublicKey,
280-
/// The base point which is used (with derive_public_key) to derive a per-commitment payment
281-
/// public key which receives immediately-spendable non-HTLC-encumbered funds.
280+
/// The public key which receives immediately-spendable non-HTLC-encumbered funds. This key is
281+
/// static across every commitment transaction.
282282
pub payment_point: PublicKey,
283283
/// The base point which is used (with derive_public_key) to derive a per-commitment payment
284284
/// public key which receives non-HTLC-encumbered funds which are only available for spending

0 commit comments

Comments
 (0)