core-lightning/wire/onion_wire.csv
Rusty Russell e01abf0b34 bolt11: support payment_metadata.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-04-02 09:40:18 +10:30

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