BOLTs: more catchup ("BOLT 4: More clarifying changes.")

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-10-15 09:55:01 +10:30
parent 76cfff7533
commit 905461f7c4
4 changed files with 5 additions and 5 deletions

View File

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

View File

@ -243,7 +243,7 @@ void blindedpath_next_path_key(const struct tlv_encrypted_data_tlv *enc,
/* BOLT #4:
* - $`E_{i+1} = SHA256(E_i || ss_i) * E_i`$
* ...
* - If `encrypted_data` contains a `next_path_key_override`:
* - If the `encrypted_data_tlv` contains a `next_path_key_override`:
* - MUST use it as the next `path_key`.
* - Otherwise:
* - MUST use $`E_{i+1} = SHA256(E_i || ss_i) * E_i`$ as the next `path_key`

View File

@ -204,7 +204,7 @@ int main(int argc, char *argv[])
struct pubkey alias, expected_alias;
assert(json_to_secret(json,
json_get_member(json, t, "ephemeral_privkey"),
json_get_member(json, t, "path_privkey"),
&s));
/* First blinding/replacement is stated, remainder are
@ -217,7 +217,7 @@ int main(int argc, char *argv[])
assert(secret_eq_consttime(&path_key.secret, &s));
assert(pubkey_from_privkey(&path_key, &pubkey));
json_to_pubkey(json, json_get_member(json, t, "ephemeral_pubkey"),
json_to_pubkey(json, json_get_member(json, t, "path_key"),
&expected_pubkey);
assert(pubkey_eq(&pubkey, &expected_pubkey));

View File

@ -9,7 +9,7 @@ tlvtype,payload,payment_data,8
tlvdata,payload,payment_data,payment_secret,byte,32
tlvdata,payload,payment_data,total_msat,tu64,
tlvtype,payload,encrypted_recipient_data,10
tlvdata,payload,encrypted_recipient_data,encrypted_data,byte,...
tlvdata,payload,encrypted_recipient_data,encrypted_recipient_data,byte,...
tlvtype,payload,current_path_key,12
tlvdata,payload,current_path_key,path_key,point,
tlvtype,payload,payment_metadata,16

1 #include <wire/onion_defs.h>
9 tlvdata,payload,payment_data,payment_secret,byte,32
10 tlvdata,payload,payment_data,total_msat,tu64,
11 tlvtype,payload,encrypted_recipient_data,10
12 tlvdata,payload,encrypted_recipient_data,encrypted_data,byte,... tlvdata,payload,encrypted_recipient_data,encrypted_recipient_data,byte,...
13 tlvtype,payload,current_path_key,12
14 tlvdata,payload,current_path_key,path_key,point,
15 tlvtype,payload,payment_metadata,16