BOLTs: update to more recent bolt12 spec.

It's 2b7ad577d7a790b302bd1aa044b22c809c76e49d, which reverts the
point32 changes.

It also restores send_invoice in `invoice`, which we had removed
from spec and put into the recurrence patch.

I originally had implemented compatibility, but other changes
which followed this are far too widespread.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-EXPERIMENTAL: offers: complete rework of spec from other teams (yay!) breaks previous compatibility (boo!)
This commit is contained in:
Rusty Russell
2022-10-17 11:07:05 +10:30
parent eac8401f84
commit e30ea91908
17 changed files with 89 additions and 193 deletions

View File

@@ -31,7 +31,7 @@ tlvtype,offer,recurrence_base,28
tlvdata,offer,recurrence_base,start_any_period,byte,
tlvdata,offer,recurrence_base,basetime,tu64,
tlvtype,offer,node_id,30
tlvdata,offer,node_id,node_id,point32,
tlvdata,offer,node_id,node_id,point,
tlvtype,offer,send_invoice,54
tlvtype,offer,refund_for,34
tlvdata,offer,refund_for,refunded_payment_hash,sha256,
@@ -57,7 +57,7 @@ tlvdata,invoice_request,recurrence_counter,counter,tu32,
tlvtype,invoice_request,recurrence_start,68
tlvdata,invoice_request,recurrence_start,period_offset,tu32,
tlvtype,invoice_request,payer_key,38
tlvdata,invoice_request,payer_key,key,point32,
tlvdata,invoice_request,payer_key,key,point,
tlvtype,invoice_request,payer_note,39
tlvdata,invoice_request,payer_note,note,utf8,...
tlvtype,invoice_request,payer_info,50
@@ -85,20 +85,19 @@ tlvdata,invoice,blinded_capacities,incoming_msat,u64,...
tlvtype,invoice,issuer,20
tlvdata,invoice,issuer,issuer,utf8,...
tlvtype,invoice,node_id,30
tlvdata,invoice,node_id,node_id,point32,
tlvdata,invoice,node_id,node_id,point,
tlvtype,invoice,quantity,32
tlvdata,invoice,quantity,quantity,tu64,
tlvtype,invoice,refund_for,34
tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
tlvtype,invoice,recurrence_counter,36
tlvdata,invoice,recurrence_counter,counter,tu32,
tlvtype,invoice,send_invoice,54
tlvtype,invoice,recurrence_start,68
tlvdata,invoice,recurrence_start,period_offset,tu32,
tlvtype,invoice,recurrence_basetime,64
tlvdata,invoice,recurrence_basetime,basetime,tu64,
tlvtype,invoice,payer_key,38
tlvdata,invoice,payer_key,key,point32,
tlvdata,invoice,payer_key,key,point,
tlvtype,invoice,payer_note,39
tlvdata,invoice,payer_note,note,utf8,...
tlvtype,invoice,created_at,40
@@ -115,6 +114,7 @@ tlvtype,invoice,payer_info,50
tlvdata,invoice,payer_info,blob,byte,...
tlvtype,invoice,refund_signature,52
tlvdata,invoice,refund_signature,payer_signature,bip340sig,
tlvtype,invoice,send_invoice,54
tlvtype,invoice,replace_invoice,56
tlvdata,invoice,replace_invoice,payment_hash,sha256,
tlvtype,invoice,signature,240
@@ -123,6 +123,8 @@ subtype,blinded_payinfo
subtypedata,blinded_payinfo,fee_base_msat,u32,
subtypedata,blinded_payinfo,fee_proportional_millionths,u32,
subtypedata,blinded_payinfo,cltv_expiry_delta,u16,
subtypedata,blinded_payinfo,htlc_minimum_msat,u64,
subtypedata,blinded_payinfo,htlc_maximum_msat,u64,
subtypedata,blinded_payinfo,flen,u16,
subtypedata,blinded_payinfo,features,byte,flen
subtype,fallback_address
1 tlvtype,offer,chains,2
31 tlvdata,offer,recurrence_base,start_any_period,byte,
32 tlvdata,offer,recurrence_base,basetime,tu64,
33 tlvtype,offer,node_id,30
34 tlvdata,offer,node_id,node_id,point32, tlvdata,offer,node_id,node_id,point,
35 tlvtype,offer,send_invoice,54
36 tlvtype,offer,refund_for,34
37 tlvdata,offer,refund_for,refunded_payment_hash,sha256,
57 tlvtype,invoice_request,recurrence_start,68
58 tlvdata,invoice_request,recurrence_start,period_offset,tu32,
59 tlvtype,invoice_request,payer_key,38
60 tlvdata,invoice_request,payer_key,key,point32, tlvdata,invoice_request,payer_key,key,point,
61 tlvtype,invoice_request,payer_note,39
62 tlvdata,invoice_request,payer_note,note,utf8,...
63 tlvtype,invoice_request,payer_info,50
85 tlvtype,invoice,issuer,20
86 tlvdata,invoice,issuer,issuer,utf8,...
87 tlvtype,invoice,node_id,30
88 tlvdata,invoice,node_id,node_id,point32, tlvdata,invoice,node_id,node_id,point,
89 tlvtype,invoice,quantity,32
90 tlvdata,invoice,quantity,quantity,tu64,
91 tlvtype,invoice,refund_for,34
92 tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
93 tlvtype,invoice,recurrence_counter,36
94 tlvdata,invoice,recurrence_counter,counter,tu32,
tlvtype,invoice,send_invoice,54
95 tlvtype,invoice,recurrence_start,68
96 tlvdata,invoice,recurrence_start,period_offset,tu32,
97 tlvtype,invoice,recurrence_basetime,64
98 tlvdata,invoice,recurrence_basetime,basetime,tu64,
99 tlvtype,invoice,payer_key,38
100 tlvdata,invoice,payer_key,key,point32, tlvdata,invoice,payer_key,key,point,
101 tlvtype,invoice,payer_note,39
102 tlvdata,invoice,payer_note,note,utf8,...
103 tlvtype,invoice,created_at,40
114 tlvdata,invoice,payer_info,blob,byte,...
115 tlvtype,invoice,refund_signature,52
116 tlvdata,invoice,refund_signature,payer_signature,bip340sig,
117 tlvtype,invoice,send_invoice,54
118 tlvtype,invoice,replace_invoice,56
119 tlvdata,invoice,replace_invoice,payment_hash,sha256,
120 tlvtype,invoice,signature,240
123 subtypedata,blinded_payinfo,fee_base_msat,u32,
124 subtypedata,blinded_payinfo,fee_proportional_millionths,u32,
125 subtypedata,blinded_payinfo,cltv_expiry_delta,u16,
126 subtypedata,blinded_payinfo,htlc_minimum_msat,u64,
127 subtypedata,blinded_payinfo,htlc_maximum_msat,u64,
128 subtypedata,blinded_payinfo,flen,u16,
129 subtypedata,blinded_payinfo,features,byte,flen
130 subtype,fallback_address

View File

@@ -31,7 +31,7 @@ tlvtype,offer,recurrence_base,28
tlvdata,offer,recurrence_base,start_any_period,byte,
tlvdata,offer,recurrence_base,basetime,tu64,
tlvtype,offer,node_id,30
tlvdata,offer,node_id,node_id,point32,
tlvdata,offer,node_id,node_id,point,
tlvtype,offer,send_invoice,54
tlvtype,offer,refund_for,34
tlvdata,offer,refund_for,refunded_payment_hash,sha256,
@@ -57,7 +57,7 @@ tlvdata,invoice_request,recurrence_counter,counter,tu32,
tlvtype,invoice_request,recurrence_start,68
tlvdata,invoice_request,recurrence_start,period_offset,tu32,
tlvtype,invoice_request,payer_key,38
tlvdata,invoice_request,payer_key,key,point32,
tlvdata,invoice_request,payer_key,key,point,
tlvtype,invoice_request,payer_note,39
tlvdata,invoice_request,payer_note,note,utf8,...
tlvtype,invoice_request,payer_info,50
@@ -85,20 +85,19 @@ tlvdata,invoice,blinded_capacities,incoming_msat,u64,...
tlvtype,invoice,issuer,20
tlvdata,invoice,issuer,issuer,utf8,...
tlvtype,invoice,node_id,30
tlvdata,invoice,node_id,node_id,point32,
tlvdata,invoice,node_id,node_id,point,
tlvtype,invoice,quantity,32
tlvdata,invoice,quantity,quantity,tu64,
tlvtype,invoice,refund_for,34
tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
tlvtype,invoice,recurrence_counter,36
tlvdata,invoice,recurrence_counter,counter,tu32,
tlvtype,invoice,send_invoice,54
tlvtype,invoice,recurrence_start,68
tlvdata,invoice,recurrence_start,period_offset,tu32,
tlvtype,invoice,recurrence_basetime,64
tlvdata,invoice,recurrence_basetime,basetime,tu64,
tlvtype,invoice,payer_key,38
tlvdata,invoice,payer_key,key,point32,
tlvdata,invoice,payer_key,key,point,
tlvtype,invoice,payer_note,39
tlvdata,invoice,payer_note,note,utf8,...
tlvtype,invoice,created_at,40
@@ -115,6 +114,7 @@ tlvtype,invoice,payer_info,50
tlvdata,invoice,payer_info,blob,byte,...
tlvtype,invoice,refund_signature,52
tlvdata,invoice,refund_signature,payer_signature,bip340sig,
tlvtype,invoice,send_invoice,54
tlvtype,invoice,replace_invoice,56
tlvdata,invoice,replace_invoice,payment_hash,sha256,
tlvtype,invoice,signature,240
@@ -123,6 +123,8 @@ subtype,blinded_payinfo
subtypedata,blinded_payinfo,fee_base_msat,u32,
subtypedata,blinded_payinfo,fee_proportional_millionths,u32,
subtypedata,blinded_payinfo,cltv_expiry_delta,u16,
subtypedata,blinded_payinfo,htlc_minimum_msat,u64,
subtypedata,blinded_payinfo,htlc_maximum_msat,u64,
subtypedata,blinded_payinfo,flen,u16,
subtypedata,blinded_payinfo,features,byte,flen
subtype,fallback_address
1 tlvtype,offer,chains,2
31 tlvdata,offer,recurrence_base,start_any_period,byte,
32 tlvdata,offer,recurrence_base,basetime,tu64,
33 tlvtype,offer,node_id,30
34 tlvdata,offer,node_id,node_id,point32, tlvdata,offer,node_id,node_id,point,
35 tlvtype,offer,send_invoice,54
36 tlvtype,offer,refund_for,34
37 tlvdata,offer,refund_for,refunded_payment_hash,sha256,
57 tlvtype,invoice_request,recurrence_start,68
58 tlvdata,invoice_request,recurrence_start,period_offset,tu32,
59 tlvtype,invoice_request,payer_key,38
60 tlvdata,invoice_request,payer_key,key,point32, tlvdata,invoice_request,payer_key,key,point,
61 tlvtype,invoice_request,payer_note,39
62 tlvdata,invoice_request,payer_note,note,utf8,...
63 tlvtype,invoice_request,payer_info,50
85 tlvtype,invoice,issuer,20
86 tlvdata,invoice,issuer,issuer,utf8,...
87 tlvtype,invoice,node_id,30
88 tlvdata,invoice,node_id,node_id,point32, tlvdata,invoice,node_id,node_id,point,
89 tlvtype,invoice,quantity,32
90 tlvdata,invoice,quantity,quantity,tu64,
91 tlvtype,invoice,refund_for,34
92 tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
93 tlvtype,invoice,recurrence_counter,36
94 tlvdata,invoice,recurrence_counter,counter,tu32,
tlvtype,invoice,send_invoice,54
95 tlvtype,invoice,recurrence_start,68
96 tlvdata,invoice,recurrence_start,period_offset,tu32,
97 tlvtype,invoice,recurrence_basetime,64
98 tlvdata,invoice,recurrence_basetime,basetime,tu64,
99 tlvtype,invoice,payer_key,38
100 tlvdata,invoice,payer_key,key,point32, tlvdata,invoice,payer_key,key,point,
101 tlvtype,invoice,payer_note,39
102 tlvdata,invoice,payer_note,note,utf8,...
103 tlvtype,invoice,created_at,40
114 tlvdata,invoice,payer_info,blob,byte,...
115 tlvtype,invoice,refund_signature,52
116 tlvdata,invoice,refund_signature,payer_signature,bip340sig,
117 tlvtype,invoice,send_invoice,54
118 tlvtype,invoice,replace_invoice,56
119 tlvdata,invoice,replace_invoice,payment_hash,sha256,
120 tlvtype,invoice,signature,240
123 subtypedata,blinded_payinfo,fee_base_msat,u32,
124 subtypedata,blinded_payinfo,fee_proportional_millionths,u32,
125 subtypedata,blinded_payinfo,cltv_expiry_delta,u16,
126 subtypedata,blinded_payinfo,htlc_minimum_msat,u64,
127 subtypedata,blinded_payinfo,htlc_maximum_msat,u64,
128 subtypedata,blinded_payinfo,flen,u16,
129 subtypedata,blinded_payinfo,features,byte,flen
130 subtype,fallback_address

View File

@@ -32,13 +32,12 @@ index 726c3c0a1..a53ca3cdf 100644
tlvtype,invoice_request,payer_key,38
tlvdata,invoice_request,payer_key,key,point32,
tlvtype,invoice_request,payer_note,39
@@ -74,6 +94,13 @@ tlvtype,invoice,quantity,32
@@ -74,6 +94,12 @@ tlvtype,invoice,quantity,32
tlvdata,invoice,quantity,quantity,tu64,
tlvtype,invoice,refund_for,34
tlvdata,invoice,refund_for,refunded_payment_hash,sha256,
+tlvtype,invoice,recurrence_counter,36
+tlvdata,invoice,recurrence_counter,counter,tu32,
+tlvtype,invoice,send_invoice,54
+tlvtype,invoice,recurrence_start,68
+tlvdata,invoice,recurrence_start,period_offset,tu32,
+tlvtype,invoice,recurrence_basetime,64