mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +01:00
b3af5f5a2c
This is from 6e99c5feaf60cb797507d181fe583224309318e9 We renamed the enctlv field to encrypted_recipient_data in the spec, and the new onion_message is message 513. We don't handle it until the next patch. Two renames: 1. blinding_seed -> blinding_point. 2. enctlv -> encrypted_recipient_data. We don't do a compat cycle for our JSON APIs for these experimental features only used by our own plugins, we just rename. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
4.8 KiB
4.8 KiB
1 | #include <wire/onion_defs.h> |
---|---|
2 | tlvtype,tlv_payload,amt_to_forward,2 |
3 | tlvdata,tlv_payload,amt_to_forward,amt_to_forward,tu64, |
4 | tlvtype,tlv_payload,outgoing_cltv_value,4 |
5 | tlvdata,tlv_payload,outgoing_cltv_value,outgoing_cltv_value,tu32, |
6 | tlvtype,tlv_payload,short_channel_id,6 |
7 | tlvdata,tlv_payload,short_channel_id,short_channel_id,short_channel_id, |
8 | tlvtype,tlv_payload,payment_data,8 |
9 | tlvdata,tlv_payload,payment_data,payment_secret,byte,32 |
10 | tlvdata,tlv_payload,payment_data,total_msat,tu64, |
11 | tlvtype,obs2_onionmsg_payload,reply_path,2 |
12 | tlvdata,obs2_onionmsg_payload,reply_path,first_node_id,point, |
13 | tlvdata,obs2_onionmsg_payload,reply_path,blinding,point, |
14 | tlvdata,obs2_onionmsg_payload,reply_path,path,onionmsg_path,... |
15 | tlvtype,obs2_onionmsg_payload,enctlv,10 |
16 | tlvdata,obs2_onionmsg_payload,enctlv,enctlv,byte,... |
17 | tlvtype,obs2_onionmsg_payload,invoice_request,64 |
18 | tlvdata,obs2_onionmsg_payload,invoice_request,invoice_request,byte,... |
19 | tlvtype,obs2_onionmsg_payload,invoice,66 |
20 | tlvdata,obs2_onionmsg_payload,invoice,invoice,byte,... |
21 | tlvtype,obs2_onionmsg_payload,invoice_error,68 |
22 | tlvdata,obs2_onionmsg_payload,invoice_error,invoice_error,byte,... |
23 | tlvtype,obs2_encmsg_tlvs,padding,1 |
24 | tlvdata,obs2_encmsg_tlvs,padding,pad,byte,... |
25 | tlvtype,obs2_encmsg_tlvs,next_node_id,4 |
26 | tlvdata,obs2_encmsg_tlvs,next_node_id,node_id,point, |
27 | tlvtype,obs2_encmsg_tlvs,next_blinding,12 |
28 | tlvdata,obs2_encmsg_tlvs,next_blinding,blinding,point, |
29 | tlvtype,obs2_encmsg_tlvs,self_id,14 |
30 | tlvdata,obs2_encmsg_tlvs,self_id,data,byte,... |
31 | tlvtype,tlv_payload,encrypted_recipient_data,10 |
32 | tlvdata,tlv_payload,encrypted_recipient_data,encrypted_data,byte,... |
33 | tlvtype,tlv_payload,blinding_point,12 |
34 | tlvdata,tlv_payload,blinding_point,blinding,point, |
35 | tlvtype,encrypted_data_tlv,padding,1 |
36 | tlvdata,encrypted_data_tlv,padding,padding,byte,... |
37 | tlvtype,encrypted_data_tlv,short_channel_id,2 |
38 | tlvdata,encrypted_data_tlv,short_channel_id,short_channel_id,short_channel_id, |
39 | tlvtype,encrypted_data_tlv,next_node_id,4 |
40 | tlvdata,encrypted_data_tlv,next_node_id,node_id,point, |
41 | tlvtype,encrypted_data_tlv,path_id,6 |
42 | tlvdata,encrypted_data_tlv,path_id,data,byte,... |
43 | tlvtype,encrypted_data_tlv,next_blinding_override,8 |
44 | tlvdata,encrypted_data_tlv,next_blinding_override,blinding,point, |
45 | tlvtype,onionmsg_payload,reply_path,2 |
46 | tlvdata,onionmsg_payload,reply_path,first_node_id,point, |
47 | tlvdata,onionmsg_payload,reply_path,blinding,point, |
48 | tlvdata,onionmsg_payload,reply_path,path,onionmsg_path,... |
49 | tlvtype,onionmsg_payload,encrypted_data_tlv,4 |
50 | tlvdata,onionmsg_payload,encrypted_data_tlv,encrypted_data_tlv,byte,... |
51 | tlvtype,onionmsg_payload,invoice_request,64 |
52 | tlvdata,onionmsg_payload,invoice_request,invoice_request,byte,... |
53 | tlvtype,onionmsg_payload,invoice,66 |
54 | tlvdata,onionmsg_payload,invoice,invoice,byte,... |
55 | tlvtype,onionmsg_payload,invoice_error,68 |
56 | tlvdata,onionmsg_payload,invoice_error,invoice_error,byte,... |
57 | subtype,onionmsg_path |
58 | subtypedata,onionmsg_path,node_id,point, |
59 | subtypedata,onionmsg_path,enclen,u16, |
60 | subtypedata,onionmsg_path,encrypted_recipient_data,byte,enclen |
61 | msgtype,invalid_realm,PERM|1 |
62 | msgtype,temporary_node_failure,NODE|2 |
63 | msgtype,permanent_node_failure,PERM|NODE|2 |
64 | msgtype,required_node_feature_missing,PERM|NODE|3 |
65 | msgtype,invalid_onion_version,BADONION|PERM|4 |
66 | msgdata,invalid_onion_version,sha256_of_onion,sha256, |
67 | msgtype,invalid_onion_hmac,BADONION|PERM|5 |
68 | msgdata,invalid_onion_hmac,sha256_of_onion,sha256, |
69 | msgtype,invalid_onion_key,BADONION|PERM|6 |
70 | msgdata,invalid_onion_key,sha256_of_onion,sha256, |
71 | msgtype,temporary_channel_failure,UPDATE|7 |
72 | msgdata,temporary_channel_failure,len,u16, |
73 | msgdata,temporary_channel_failure,channel_update,byte,len |
74 | msgtype,permanent_channel_failure,PERM|8 |
75 | msgtype,required_channel_feature_missing,PERM|9 |
76 | msgtype,unknown_next_peer,PERM|10 |
77 | msgtype,amount_below_minimum,UPDATE|11 |
78 | msgdata,amount_below_minimum,htlc_msat,u64, |
79 | msgdata,amount_below_minimum,len,u16, |
80 | msgdata,amount_below_minimum,channel_update,byte,len |
81 | msgtype,fee_insufficient,UPDATE|12 |
82 | msgdata,fee_insufficient,htlc_msat,u64, |
83 | msgdata,fee_insufficient,len,u16, |
84 | msgdata,fee_insufficient,channel_update,byte,len |
85 | msgtype,incorrect_cltv_expiry,UPDATE|13 |
86 | msgdata,incorrect_cltv_expiry,cltv_expiry,u32, |
87 | msgdata,incorrect_cltv_expiry,len,u16, |
88 | msgdata,incorrect_cltv_expiry,channel_update,byte,len |
89 | msgtype,expiry_too_soon,UPDATE|14 |
90 | msgdata,expiry_too_soon,len,u16, |
91 | msgdata,expiry_too_soon,channel_update,byte,len |
92 | msgtype,incorrect_or_unknown_payment_details,PERM|15 |
93 | msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64, |
94 | msgdata,incorrect_or_unknown_payment_details,height,u32, |
95 | msgtype,final_incorrect_cltv_expiry,18 |
96 | msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32, |
97 | msgtype,final_incorrect_htlc_amount,19 |
98 | msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64, |
99 | msgtype,channel_disabled,UPDATE|20 |
100 | msgtype,expiry_too_far,21 |
101 | msgtype,invalid_onion_payload,PERM|22 |
102 | msgdata,invalid_onion_payload,type,bigsize, |
103 | msgdata,invalid_onion_payload,offset,u16, |
104 | msgtype,mpp_timeout,23 |