mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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:
parent
0f0a0cf153
commit
18fc1b82b0
@ -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`
|
||||
|
@ -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
|
||||
|
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user