core-lightning/wire/bolt12_wire.csv
Rusty Russell 18b6aa5e66 BOLT 12: update to include replace_invoice options.
We don't support it (yet), but update the spec to include it.

We include the previous field (recurrence_signature) as a shim for the
moment, for compat with existing nodes.  It's ugly, but next release
we'll stop *sending* it, then finally we'll stop accepting it!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-03 12:13:45 +09:30

5.4 KiB

1tlvtype,offer,chains,2
2tlvdata,offer,chains,chains,chain_hash,...
3tlvtype,offer,currency,6
4tlvdata,offer,currency,iso4217,utf8,...
5tlvtype,offer,amount,8
6tlvdata,offer,amount,amount,tu64,
7tlvtype,offer,description,10
8tlvdata,offer,description,description,utf8,...
9tlvtype,offer,features,12
10tlvdata,offer,features,features,byte,...
11tlvtype,offer,absolute_expiry,14
12tlvdata,offer,absolute_expiry,seconds_from_epoch,tu64,
13tlvtype,offer,paths,16
14tlvdata,offer,paths,paths,blinded_path,...
15tlvtype,offer,vendor,20
16tlvdata,offer,vendor,vendor,utf8,...
17tlvtype,offer,quantity_min,22
18tlvdata,offer,quantity_min,min,tu64,
19tlvtype,offer,quantity_max,24
20tlvdata,offer,quantity_max,max,tu64,
21tlvtype,offer,recurrence,26
22tlvdata,offer,recurrence,time_unit,byte,
23tlvdata,offer,recurrence,period,tu32,
24tlvtype,offer,recurrence_paywindow,64
25tlvdata,offer,recurrence_paywindow,seconds_before,u32,
26tlvdata,offer,recurrence_paywindow,proportional_amount,byte,
27tlvdata,offer,recurrence_paywindow,seconds_after,tu32,
28tlvtype,offer,recurrence_limit,66
29tlvdata,offer,recurrence_limit,max_period,tu32,
30tlvtype,offer,recurrence_base,28
31tlvdata,offer,recurrence_base,start_any_period,byte,
32tlvdata,offer,recurrence_base,basetime,tu64,
33tlvtype,offer,node_id,30
34tlvdata,offer,node_id,node_id,pubkey32,
35tlvtype,offer,send_invoice,54
36tlvtype,offer,refund_for,34
37tlvdata,offer,refund_for,refunded_payment_hash,sha256,
38tlvtype,offer,signature,240
39tlvdata,offer,signature,sig,bip340sig,
40subtype,blinded_path
41subtypedata,blinded_path,blinding,point,
42subtypedata,blinded_path,num_hops,u16,
43subtypedata,blinded_path,path,onionmsg_path,num_hops
44tlvtype,invoice_request,chains,2
45tlvdata,invoice_request,chains,chains,chain_hash,...
46tlvtype,invoice_request,offer_id,4
47tlvdata,invoice_request,offer_id,offer_id,sha256,
48tlvtype,invoice_request,amount,8
49tlvdata,invoice_request,amount,msat,tu64,
50tlvtype,invoice_request,features,12
51tlvdata,invoice_request,features,features,byte,...
52tlvtype,invoice_request,quantity,32
53tlvdata,invoice_request,quantity,quantity,tu64,
54tlvtype,invoice_request,recurrence_counter,36
55tlvdata,invoice_request,recurrence_counter,counter,tu32,
56tlvtype,invoice_request,recurrence_start,68
57tlvdata,invoice_request,recurrence_start,period_offset,tu32,
58tlvtype,invoice_request,payer_key,38
59tlvdata,invoice_request,payer_key,key,pubkey32,
60tlvtype,invoice_request,payer_note,39
61tlvdata,invoice_request,payer_note,note,utf8,...
62tlvtype,invoice_request,payer_info,50
63tlvdata,invoice_request,payer_info,blob,byte,...
64tlvtype,invoice_request,replace_invoice,56
65tlvdata,invoice_request,replace_invoice,payment_hash,sha256,
66tlvtype,invoice_request,payer_signature,241
67tlvdata,invoice_request,payer_signature,sig,bip340sig,
68tlvtype,invoice_request,recurrence_signature,240
69tlvdata,invoice_request,recurrence_signature,sig,bip340sig,
70tlvtype,invoice,chains,2
71tlvdata,invoice,chains,chains,chain_hash,...
72tlvtype,invoice,offer_id,4
73tlvdata,invoice,offer_id,offer_id,sha256,
74tlvtype,invoice,amount,8
75tlvdata,invoice,amount,msat,tu64,
76tlvtype,invoice,description,10
77tlvdata,invoice,description,description,utf8,...
78tlvtype,invoice,features,12
79tlvdata,invoice,features,features,byte,...
80tlvtype,invoice,paths,16
81tlvdata,invoice,paths,paths,blinded_path,...
82tlvtype,invoice,blindedpay,18
83tlvdata,invoice,blindedpay,payinfo,blinded_payinfo,...
84tlvtype,invoice,blinded_capacities,19
85tlvdata,invoice,blinded_capacities,incoming_msat,u64,...
86tlvtype,invoice,vendor,20
87tlvdata,invoice,vendor,vendor,utf8,...
88tlvtype,invoice,node_id,30
89tlvdata,invoice,node_id,node_id,pubkey32,
90tlvtype,invoice,quantity,32
91tlvdata,invoice,quantity,quantity,tu64,
92tlvtype,invoice,refund_for,34
93tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
94tlvtype,invoice,recurrence_counter,36
95tlvdata,invoice,recurrence_counter,counter,tu32,
96tlvtype,invoice,send_invoice,54
97tlvtype,invoice,recurrence_start,68
98tlvdata,invoice,recurrence_start,period_offset,tu32,
99tlvtype,invoice,recurrence_basetime,64
100tlvdata,invoice,recurrence_basetime,basetime,tu64,
101tlvtype,invoice,payer_key,38
102tlvdata,invoice,payer_key,key,pubkey32,
103tlvtype,invoice,payer_note,39
104tlvdata,invoice,payer_note,note,utf8,...
105tlvtype,invoice,payer_info,50
106tlvdata,invoice,payer_info,blob,byte,...
107tlvtype,invoice,timestamp,40
108tlvdata,invoice,timestamp,timestamp,tu64,
109tlvtype,invoice,payment_hash,42
110tlvdata,invoice,payment_hash,payment_hash,sha256,
111tlvtype,invoice,relative_expiry,44
112tlvdata,invoice,relative_expiry,seconds_from_timestamp,tu32,
113tlvtype,invoice,cltv,46
114tlvdata,invoice,cltv,min_final_cltv_expiry,tu32,
115tlvtype,invoice,fallbacks,48
116tlvdata,invoice,fallbacks,num,u8,
117tlvdata,invoice,fallbacks,fallbacks,fallback_address,num
118tlvtype,invoice,refund_signature,52
119tlvdata,invoice,refund_signature,payer_signature,bip340sig,
120tlvtype,invoice,replace_invoice,56
121tlvdata,invoice,replace_invoice,payment_hash,sha256,
122tlvtype,invoice,signature,240
123tlvdata,invoice,signature,sig,bip340sig,
124subtype,blinded_payinfo
125subtypedata,blinded_payinfo,fee_base_msat,u32,
126subtypedata,blinded_payinfo,fee_proportional_millionths,u32,
127subtypedata,blinded_payinfo,cltv_expiry_delta,u16,
128subtypedata,blinded_payinfo,flen,u16,
129subtypedata,blinded_payinfo,features,byte,flen
130subtype,fallback_address
131subtypedata,fallback_address,version,byte,
132subtypedata,fallback_address,len,u16,
133subtypedata,fallback_address,address,byte,len
134tlvtype,invoice_error,erroneous_field,1
135tlvdata,invoice_error,erroneous_field,tlv_fieldnum,tu64,
136tlvtype,invoice_error,suggested_value,3
137tlvdata,invoice_error,suggested_value,value,byte,...
138tlvtype,invoice_error,error,5
139tlvdata,invoice_error,error,msg,utf8,...