common: update bolt to neaten pubkey descriptions.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-02-11 08:38:36 +10:30
committed by Alex Myers
parent f20bea605b
commit b879cb475f
3 changed files with 11 additions and 13 deletions

View File

@@ -26,7 +26,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs # Where we keep the BOLT RFCs
BOLTDIR := ../bolts/ BOLTDIR := ../bolts/
DEFAULT_BOLTVERSION := 5dec5eb84957d70c9fedf27173e78f1b0b6b0217 DEFAULT_BOLTVERSION := fd83d7cee0369eb1d9068eb9864bff8b1f940938
# Can be overridden on cmdline. # Can be overridden on cmdline.
BOLTVERSION := $(DEFAULT_BOLTVERSION) BOLTVERSION := $(DEFAULT_BOLTVERSION)

View File

@@ -13,12 +13,11 @@
* *
* pubkey = basepoint + SHA256(per_commitment_point || basepoint) * G * pubkey = basepoint + SHA256(per_commitment_point || basepoint) * G
* *
* The `localpubkey` uses the local node's `payment_basepoint`; * - The `localpubkey` uses the local node's `payment_basepoint`;
* The `remotepubkey` uses the remote node's `payment_basepoint`; * - The `local_htlcpubkey` uses the local node's `htlc_basepoint`;
* the `local_htlcpubkey` uses the local node's `htlc_basepoint`; * - The `remote_htlcpubkey` uses the remote node's `htlc_basepoint`;
* the `remote_htlcpubkey` uses the remote node's `htlc_basepoint`; * - The `local_delayedpubkey` uses the local node's `delayed_payment_basepoint`;
* the `local_delayedpubkey` uses the local node's `delayed_payment_basepoint`; * - The `remote_delayedpubkey` uses the remote node's `delayed_payment_basepoint`.
* and the `remote_delayedpubkey` uses the remote node's `delayed_payment_basepoint`.
*... *...
* The `remotepubkey` is simply the remote node's `payment_basepoint`. * The `remotepubkey` is simply the remote node's `payment_basepoint`.
*/ */

View File

@@ -17,12 +17,11 @@ bool derive_keyset(const struct pubkey *per_commitment_point,
* *
* pubkey = basepoint + SHA256(per_commitment_point || basepoint) * G * pubkey = basepoint + SHA256(per_commitment_point || basepoint) * G
* *
* The `localpubkey` uses the local node's `payment_basepoint`; * - The `localpubkey` uses the local node's `payment_basepoint`;
* The `remotepubkey` uses the remote node's `payment_basepoint`; * - The `local_htlcpubkey` uses the local node's `htlc_basepoint`;
* the `local_htlcpubkey` uses the local node's `htlc_basepoint`; * - The `remote_htlcpubkey` uses the remote node's `htlc_basepoint`;
* the `remote_htlcpubkey` uses the remote node's `htlc_basepoint`; * - The `local_delayedpubkey` uses the local node's `delayed_payment_basepoint`;
* the `local_delayedpubkey` uses the local node's `delayed_payment_basepoint`; * - The `remote_delayedpubkey` uses the remote node's `delayed_payment_basepoint`.
* and the `remote_delayedpubkey` uses the remote node's `delayed_payment_basepoint`.
*/ */
if (!derive_simple_key(&self->payment, if (!derive_simple_key(&self->payment,
per_commitment_point, per_commitment_point,