mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
15f8e1e63c
"BOLT 4: Remove legacy format, make var_onion_optin compulsory." This also renamed the redundant "tlv_payload" to "payload", so we replace "tlv_tlv_payload" with "tlv_payload" everyhere! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4.8 KiB
4.8 KiB
1 | #include <wire/onion_defs.h> |
---|---|
2 | tlvtype,payload,amt_to_forward,2 |
3 | tlvdata,payload,amt_to_forward,amt_to_forward,tu64, |
4 | tlvtype,payload,outgoing_cltv_value,4 |
5 | tlvdata,payload,outgoing_cltv_value,outgoing_cltv_value,tu32, |
6 | tlvtype,payload,short_channel_id,6 |
7 | tlvdata,payload,short_channel_id,short_channel_id,short_channel_id, |
8 | tlvtype,payload,payment_data,8 |
9 | tlvdata,payload,payment_data,payment_secret,byte,32 |
10 | tlvdata,payload,payment_data,total_msat,tu64, |
11 | tlvtype,payload,payment_metadata,16 |
12 | tlvdata,payload,payment_metadata,payment_metadata,byte,... |
13 | tlvtype,payload,encrypted_recipient_data,10 |
14 | tlvdata,payload,encrypted_recipient_data,encrypted_data,byte,... |
15 | tlvtype,payload,blinding_point,12 |
16 | tlvdata,payload,blinding_point,blinding,point, |
17 | tlvtype,payload,total_amount_msat,18 |
18 | tlvdata,payload,total_amount_msat,total_msat,tu64, |
19 | tlvtype,encrypted_data_tlv,padding,1 |
20 | tlvdata,encrypted_data_tlv,padding,padding,byte,... |
21 | tlvtype,encrypted_data_tlv,short_channel_id,2 |
22 | tlvdata,encrypted_data_tlv,short_channel_id,short_channel_id,short_channel_id, |
23 | tlvtype,encrypted_data_tlv,next_node_id,4 |
24 | tlvdata,encrypted_data_tlv,next_node_id,node_id,point, |
25 | tlvtype,encrypted_data_tlv,path_id,6 |
26 | tlvdata,encrypted_data_tlv,path_id,data,byte,... |
27 | tlvtype,encrypted_data_tlv,next_blinding_override,8 |
28 | tlvdata,encrypted_data_tlv,next_blinding_override,blinding,point, |
29 | tlvtype,encrypted_data_tlv,payment_relay,10 |
30 | tlvdata,encrypted_data_tlv,payment_relay,cltv_expiry_delta,u16, |
31 | tlvdata,encrypted_data_tlv,payment_relay,fee_proportional_millionths,u32, |
32 | tlvdata,encrypted_data_tlv,payment_relay,fee_base_msat,tu32, |
33 | tlvtype,encrypted_data_tlv,payment_constraints,12 |
34 | tlvdata,encrypted_data_tlv,payment_constraints,max_cltv_expiry,u32, |
35 | tlvdata,encrypted_data_tlv,payment_constraints,htlc_minimum_msat,tu64, |
36 | tlvtype,encrypted_data_tlv,allowed_features,14 |
37 | tlvdata,encrypted_data_tlv,allowed_features,features,byte,... |
38 | tlvtype,onionmsg_tlv,reply_path,2 |
39 | tlvdata,onionmsg_tlv,reply_path,path,blinded_path, |
40 | tlvtype,onionmsg_tlv,encrypted_recipient_data,4 |
41 | tlvdata,onionmsg_tlv,encrypted_recipient_data,encrypted_recipient_data,byte,... |
42 | tlvtype,onionmsg_tlv,invoice_request,64 |
43 | tlvdata,onionmsg_tlv,invoice_request,invoice_request,byte,... |
44 | tlvtype,onionmsg_tlv,invoice,66 |
45 | tlvdata,onionmsg_tlv,invoice,invoice,byte,... |
46 | tlvtype,onionmsg_tlv,invoice_error,68 |
47 | tlvdata,onionmsg_tlv,invoice_error,invoice_error,byte,... |
48 | subtype,blinded_path |
49 | subtypedata,blinded_path,first_node_id,point, |
50 | subtypedata,blinded_path,blinding,point, |
51 | subtypedata,blinded_path,num_hops,byte, |
52 | subtypedata,blinded_path,path,onionmsg_hop,num_hops |
53 | subtype,onionmsg_hop |
54 | subtypedata,onionmsg_hop,blinded_node_id,point, |
55 | subtypedata,onionmsg_hop,enclen,u16, |
56 | subtypedata,onionmsg_hop,encrypted_recipient_data,byte,enclen |
57 | msgtype,invalid_realm,PERM|1 |
58 | msgtype,temporary_node_failure,NODE|2 |
59 | msgtype,permanent_node_failure,PERM|NODE|2 |
60 | msgtype,required_node_feature_missing,PERM|NODE|3 |
61 | msgtype,invalid_onion_version,BADONION|PERM|4 |
62 | msgdata,invalid_onion_version,sha256_of_onion,sha256, |
63 | msgtype,invalid_onion_hmac,BADONION|PERM|5 |
64 | msgdata,invalid_onion_hmac,sha256_of_onion,sha256, |
65 | msgtype,invalid_onion_key,BADONION|PERM|6 |
66 | msgdata,invalid_onion_key,sha256_of_onion,sha256, |
67 | msgtype,temporary_channel_failure,UPDATE|7 |
68 | msgdata,temporary_channel_failure,len,u16, |
69 | msgdata,temporary_channel_failure,channel_update,byte,len |
70 | msgtype,permanent_channel_failure,PERM|8 |
71 | msgtype,required_channel_feature_missing,PERM|9 |
72 | msgtype,unknown_next_peer,PERM|10 |
73 | msgtype,amount_below_minimum,UPDATE|11 |
74 | msgdata,amount_below_minimum,htlc_msat,u64, |
75 | msgdata,amount_below_minimum,len,u16, |
76 | msgdata,amount_below_minimum,channel_update,byte,len |
77 | msgtype,fee_insufficient,UPDATE|12 |
78 | msgdata,fee_insufficient,htlc_msat,u64, |
79 | msgdata,fee_insufficient,len,u16, |
80 | msgdata,fee_insufficient,channel_update,byte,len |
81 | msgtype,incorrect_cltv_expiry,UPDATE|13 |
82 | msgdata,incorrect_cltv_expiry,cltv_expiry,u32, |
83 | msgdata,incorrect_cltv_expiry,len,u16, |
84 | msgdata,incorrect_cltv_expiry,channel_update,byte,len |
85 | msgtype,expiry_too_soon,UPDATE|14 |
86 | msgdata,expiry_too_soon,len,u16, |
87 | msgdata,expiry_too_soon,channel_update,byte,len |
88 | msgtype,incorrect_or_unknown_payment_details,PERM|15 |
89 | msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64, |
90 | msgdata,incorrect_or_unknown_payment_details,height,u32, |
91 | msgtype,final_incorrect_cltv_expiry,18 |
92 | msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32, |
93 | msgtype,final_incorrect_htlc_amount,19 |
94 | msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64, |
95 | msgtype,channel_disabled,UPDATE|20 |
96 | msgdata,channel_disabled,disabled_flags,u16, |
97 | msgdata,channel_disabled,len,u16, |
98 | msgdata,channel_disabled,channel_update,byte,len |
99 | msgtype,expiry_too_far,21 |
100 | msgtype,invalid_onion_payload,PERM|22 |
101 | msgdata,invalid_onion_payload,type,bigsize, |
102 | msgdata,invalid_onion_payload,offset,u16, |
103 | msgtype,mpp_timeout,23 |
104 | msgtype,invalid_onion_blinding,BADONION|PERM|24 |
105 | msgdata,invalid_onion_blinding,sha256_of_onion,sha256, |