wire: add new field invreq_paths from spec.

This is the blinded path for offerless invoice_requests.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-08-01 09:33:20 +09:30
parent 0f0a0cf153
commit 18fc1b82b0
3 changed files with 12 additions and 4 deletions

View File

@ -526,6 +526,9 @@ static u64 get_offer_type(const char *name)
* 1. type: 89 (`invreq_payer_note`)
* 2. data:
* * [`...*utf8`:`note`]
* 1. type: 90 (`invreq_paths`)
* 2. data:
* * [`...*blinded_path`:`paths`]
* 1. type: 240 (`signature`)
* 2. data:
* * [`bip340sig`:`sig`]
@ -537,6 +540,7 @@ static u64 get_offer_type(const char *name)
{ "invreq_quantity", 86 },
{ "invreq_payer_id", 88 },
{ "invreq_payer_note", 89 },
{ "invreq_paths", 90 },
{ "signature", 240 },
/* BOLT-offers #12:
* 1. `tlv_stream`: `invoice`

View File

@ -72,6 +72,8 @@ tlvtype,invoice_request,invreq_payer_id,88
tlvdata,invoice_request,invreq_payer_id,key,point,
tlvtype,invoice_request,invreq_payer_note,89
tlvdata,invoice_request,invreq_payer_note,note,utf8,...
tlvtype,invoice_request,invreq_paths,90
tlvdata,invoice_request,invreq_paths,paths,blinded_path,...
tlvtype,invoice_request,invreq_recurrence_counter,2212121212
tlvdata,invoice_request,invreq_recurrence_counter,counter,tu32,
tlvtype,invoice_request,invreq_recurrence_start,2212121214
@ -122,6 +124,8 @@ tlvtype,invoice,invreq_payer_id,88
tlvdata,invoice,invreq_payer_id,key,point,
tlvtype,invoice,invreq_payer_note,89
tlvdata,invoice,invreq_payer_note,note,utf8,...
tlvtype,invoice,invreq_paths,90
tlvdata,invoice,invreq_paths,paths,blinded_path,...
tlvtype,invoice,invreq_recurrence_counter,2212121212
tlvdata,invoice,invreq_recurrence_counter,counter,tu32,
tlvtype,invoice,invreq_recurrence_start,2212121214

1 tlvtype,offer,offer_chains,2
72 tlvdata,invoice_request,invreq_payer_id,key,point,
73 tlvtype,invoice_request,invreq_payer_note,89
74 tlvdata,invoice_request,invreq_payer_note,note,utf8,...
75 tlvtype,invoice_request,invreq_paths,90
76 tlvdata,invoice_request,invreq_paths,paths,blinded_path,...
77 tlvtype,invoice_request,invreq_recurrence_counter,2212121212
78 tlvdata,invoice_request,invreq_recurrence_counter,counter,tu32,
79 tlvtype,invoice_request,invreq_recurrence_start,2212121214
124 tlvdata,invoice,invreq_payer_id,key,point,
125 tlvtype,invoice,invreq_payer_note,89
126 tlvdata,invoice,invreq_payer_note,note,utf8,...
127 tlvtype,invoice,invreq_paths,90
128 tlvdata,invoice,invreq_paths,paths,blinded_path,...
129 tlvtype,invoice,invreq_recurrence_counter,2212121212
130 tlvdata,invoice,invreq_recurrence_counter,counter,tu32,
131 tlvtype,invoice,invreq_recurrence_start,2212121214

View File

@ -31,9 +31,9 @@
tlvdata,invoice_request,invreq_chain,chain,chain_hash,
tlvtype,invoice_request,invreq_amount,82
@@ -60,6 +84,10 @@
tlvdata,invoice_request,invreq_payer_id,key,point,
tlvtype,invoice_request,invreq_payer_note,89
tlvdata,invoice_request,invreq_payer_note,note,utf8,...
tlvtype,invoice_request,invreq_paths,90
tlvdata,invoice_request,invreq_paths,paths,blinded_path,...
+tlvtype,invoice_request,invreq_recurrence_counter,2212121212
+tlvdata,invoice_request,invreq_recurrence_counter,counter,tu32,
+tlvtype,invoice_request,invreq_recurrence_start,2212121214
@ -56,9 +56,9 @@
tlvdata,invoice,invreq_chain,chain,chain_hash,
tlvtype,invoice,invreq_amount,82
@@ -101,6 +141,10 @@
tlvdata,invoice,invreq_payer_id,key,point,
tlvtype,invoice,invreq_payer_note,89
tlvdata,invoice,invreq_payer_note,note,utf8,...
tlvtype,invoice,invreq_paths,90
tlvdata,invoice,invreq_paths,paths,blinded_path,...
+tlvtype,invoice,invreq_recurrence_counter,2212121212
+tlvdata,invoice,invreq_recurrence_counter,counter,tu32,
+tlvtype,invoice,invreq_recurrence_start,2212121214