core-lightning/wire/onion_wire.csv
Rusty Russell 3b536400f9 specs: update CSV files.
Regenerate from current BOLTS via `make extract-bolt-csv`

1. The remote_addr field was added manually into peer_wire.csv: this
   needs to be a patch otherwise it vanishes on regen.
2. We never brought into the channel_disabled fields, because it was
   too much hassle (we never actually generate this!).  Do it now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-04-02 09:40:18 +10:30

4.9 KiB

1#include <wire/onion_defs.h>
2tlvtype,tlv_payload,amt_to_forward,2
3tlvdata,tlv_payload,amt_to_forward,amt_to_forward,tu64,
4tlvtype,tlv_payload,outgoing_cltv_value,4
5tlvdata,tlv_payload,outgoing_cltv_value,outgoing_cltv_value,tu32,
6tlvtype,tlv_payload,short_channel_id,6
7tlvdata,tlv_payload,short_channel_id,short_channel_id,short_channel_id,
8tlvtype,tlv_payload,payment_data,8
9tlvdata,tlv_payload,payment_data,payment_secret,byte,32
10tlvdata,tlv_payload,payment_data,total_msat,tu64,
11tlvtype,obs2_onionmsg_payload,reply_path,2
12tlvdata,obs2_onionmsg_payload,reply_path,first_node_id,point,
13tlvdata,obs2_onionmsg_payload,reply_path,blinding,point,
14tlvdata,obs2_onionmsg_payload,reply_path,path,onionmsg_path,...
15tlvtype,obs2_onionmsg_payload,enctlv,10
16tlvdata,obs2_onionmsg_payload,enctlv,enctlv,byte,...
17tlvtype,obs2_onionmsg_payload,invoice_request,64
18tlvdata,obs2_onionmsg_payload,invoice_request,invoice_request,byte,...
19tlvtype,obs2_onionmsg_payload,invoice,66
20tlvdata,obs2_onionmsg_payload,invoice,invoice,byte,...
21tlvtype,obs2_onionmsg_payload,invoice_error,68
22tlvdata,obs2_onionmsg_payload,invoice_error,invoice_error,byte,...
23tlvtype,obs2_encmsg_tlvs,padding,1
24tlvdata,obs2_encmsg_tlvs,padding,pad,byte,...
25tlvtype,obs2_encmsg_tlvs,next_node_id,4
26tlvdata,obs2_encmsg_tlvs,next_node_id,node_id,point,
27tlvtype,obs2_encmsg_tlvs,next_blinding,12
28tlvdata,obs2_encmsg_tlvs,next_blinding,blinding,point,
29tlvtype,obs2_encmsg_tlvs,self_id,14
30tlvdata,obs2_encmsg_tlvs,self_id,data,byte,...
31tlvtype,tlv_payload,encrypted_recipient_data,10
32tlvdata,tlv_payload,encrypted_recipient_data,encrypted_data,byte,...
33tlvtype,tlv_payload,blinding_point,12
34tlvdata,tlv_payload,blinding_point,blinding,point,
35tlvtype,encrypted_data_tlv,padding,1
36tlvdata,encrypted_data_tlv,padding,padding,byte,...
37tlvtype,encrypted_data_tlv,short_channel_id,2
38tlvdata,encrypted_data_tlv,short_channel_id,short_channel_id,short_channel_id,
39tlvtype,encrypted_data_tlv,next_node_id,4
40tlvdata,encrypted_data_tlv,next_node_id,node_id,point,
41tlvtype,encrypted_data_tlv,path_id,6
42tlvdata,encrypted_data_tlv,path_id,data,byte,...
43tlvtype,encrypted_data_tlv,next_blinding_override,8
44tlvdata,encrypted_data_tlv,next_blinding_override,blinding,point,
45tlvtype,onionmsg_payload,reply_path,2
46tlvdata,onionmsg_payload,reply_path,first_node_id,point,
47tlvdata,onionmsg_payload,reply_path,blinding,point,
48tlvdata,onionmsg_payload,reply_path,path,onionmsg_path,...
49tlvtype,onionmsg_payload,encrypted_data_tlv,4
50tlvdata,onionmsg_payload,encrypted_data_tlv,encrypted_data_tlv,byte,...
51tlvtype,onionmsg_payload,invoice_request,64
52tlvdata,onionmsg_payload,invoice_request,invoice_request,byte,...
53tlvtype,onionmsg_payload,invoice,66
54tlvdata,onionmsg_payload,invoice,invoice,byte,...
55tlvtype,onionmsg_payload,invoice_error,68
56tlvdata,onionmsg_payload,invoice_error,invoice_error,byte,...
57subtype,onionmsg_path
58subtypedata,onionmsg_path,node_id,point,
59subtypedata,onionmsg_path,enclen,u16,
60subtypedata,onionmsg_path,encrypted_recipient_data,byte,enclen
61msgtype,invalid_realm,PERM|1
62msgtype,temporary_node_failure,NODE|2
63msgtype,permanent_node_failure,PERM|NODE|2
64msgtype,required_node_feature_missing,PERM|NODE|3
65msgtype,invalid_onion_version,BADONION|PERM|4
66msgdata,invalid_onion_version,sha256_of_onion,sha256,
67msgtype,invalid_onion_hmac,BADONION|PERM|5
68msgdata,invalid_onion_hmac,sha256_of_onion,sha256,
69msgtype,invalid_onion_key,BADONION|PERM|6
70msgdata,invalid_onion_key,sha256_of_onion,sha256,
71msgtype,temporary_channel_failure,UPDATE|7
72msgdata,temporary_channel_failure,len,u16,
73msgdata,temporary_channel_failure,channel_update,byte,len
74msgtype,permanent_channel_failure,PERM|8
75msgtype,required_channel_feature_missing,PERM|9
76msgtype,unknown_next_peer,PERM|10
77msgtype,amount_below_minimum,UPDATE|11
78msgdata,amount_below_minimum,htlc_msat,u64,
79msgdata,amount_below_minimum,len,u16,
80msgdata,amount_below_minimum,channel_update,byte,len
81msgtype,fee_insufficient,UPDATE|12
82msgdata,fee_insufficient,htlc_msat,u64,
83msgdata,fee_insufficient,len,u16,
84msgdata,fee_insufficient,channel_update,byte,len
85msgtype,incorrect_cltv_expiry,UPDATE|13
86msgdata,incorrect_cltv_expiry,cltv_expiry,u32,
87msgdata,incorrect_cltv_expiry,len,u16,
88msgdata,incorrect_cltv_expiry,channel_update,byte,len
89msgtype,expiry_too_soon,UPDATE|14
90msgdata,expiry_too_soon,len,u16,
91msgdata,expiry_too_soon,channel_update,byte,len
92msgtype,incorrect_or_unknown_payment_details,PERM|15
93msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64,
94msgdata,incorrect_or_unknown_payment_details,height,u32,
95msgtype,final_incorrect_cltv_expiry,18
96msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32,
97msgtype,final_incorrect_htlc_amount,19
98msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64,
99msgtype,channel_disabled,UPDATE|20
100msgdata,channel_disabled,flags,u16,
101msgdata,channel_disabled,len,u16,
102msgdata,channel_disabled,channel_update,byte,len
103msgtype,expiry_too_far,21
104msgtype,invalid_onion_payload,PERM|22
105msgdata,invalid_onion_payload,type,bigsize,
106msgdata,invalid_onion_payload,offset,u16,
107msgtype,mpp_timeout,23