Skip to content

Commit bafac6a

Browse files
committed
BOLTs: more catchup ("BOLT 4: More clarifying changes.")
Signed-off-by: Rusty Russell <[email protected]>
1 parent af35a1f commit bafac6a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CCANDIR := ccan
2626

2727
# Where we keep the BOLT RFCs
2828
BOLTDIR := ../bolts/
29-
DEFAULT_BOLTVERSION := 6654c5711a2765f48a31389064c04a153670d73b
29+
DEFAULT_BOLTVERSION := 22b9c874531f67ec66975dcd9f7ec42ced012933
3030
# Can be overridden on cmdline.
3131
BOLTVERSION := $(DEFAULT_BOLTVERSION)
3232

common/blindedpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void blindedpath_next_path_key(const struct tlv_encrypted_data_tlv *enc,
243243
/* BOLT #4:
244244
* - $`E_{i+1} = SHA256(E_i || ss_i) * E_i`$
245245
* ...
246-
* - If `encrypted_data` contains a `next_path_key_override`:
246+
* - If the `encrypted_data_tlv` contains a `next_path_key_override`:
247247
* - MUST use it as the next `path_key`.
248248
* - Otherwise:
249249
* - MUST use $`E_{i+1} = SHA256(E_i || ss_i) * E_i`$ as the next `path_key`

common/test/run-route_blinding_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
204204
struct pubkey alias, expected_alias;
205205

206206
assert(json_to_secret(json,
207-
json_get_member(json, t, "ephemeral_privkey"),
207+
json_get_member(json, t, "path_privkey"),
208208
&s));
209209

210210
/* First blinding/replacement is stated, remainder are
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
217217
assert(secret_eq_consttime(&path_key.secret, &s));
218218

219219
assert(pubkey_from_privkey(&path_key, &pubkey));
220-
json_to_pubkey(json, json_get_member(json, t, "ephemeral_pubkey"),
220+
json_to_pubkey(json, json_get_member(json, t, "path_key"),
221221
&expected_pubkey);
222222
assert(pubkey_eq(&pubkey, &expected_pubkey));
223223

wire/onion_wire.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tlvtype,payload,payment_data,8
99
tlvdata,payload,payment_data,payment_secret,byte,32
1010
tlvdata,payload,payment_data,total_msat,tu64,
1111
tlvtype,payload,encrypted_recipient_data,10
12-
tlvdata,payload,encrypted_recipient_data,encrypted_data,byte,...
12+
tlvdata,payload,encrypted_recipient_data,encrypted_recipient_data,byte,...
1313
tlvtype,payload,current_path_key,12
1414
tlvdata,payload,current_path_key,path_key,point,
1515
tlvtype,payload,payment_metadata,16

0 commit comments

Comments
 (0)