bolt12: allow first_node_id in blinded path to be a scid.

We don't actually support it yet, but this threads through the type change,
puts it in "decode" etc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-05-09 13:06:20 +09:30
parent 1b9b160108
commit cb2c4963f2
40 changed files with 615 additions and 331 deletions

View File

@@ -608,7 +608,7 @@ static struct blinded_path *blinded_path(const tal_t *ctx,
nhops = tal_count(ids);
assert(nhops > 0);
path->first_node_id = ids[0];
sciddir_or_pubkey_from_pubkey(&path->first_node_id, &ids[0]);
assert(pubkey_eq(&ids[nhops-1], &local_id));
randombytes_buf(&first_blinding, sizeof(first_blinding));