mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
1ec6346f3d
Yes, we changed the spec again. Hopefully for the last time! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
3.5 KiB
3.5 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 | subtype,onionmsg_path |
32 | subtypedata,onionmsg_path,node_id,point, |
33 | subtypedata,onionmsg_path,enclen,u16, |
34 | subtypedata,onionmsg_path,enctlv,byte,enclen |
35 | msgtype,invalid_realm,PERM|1 |
36 | msgtype,temporary_node_failure,NODE|2 |
37 | msgtype,permanent_node_failure,PERM|NODE|2 |
38 | msgtype,required_node_feature_missing,PERM|NODE|3 |
39 | msgtype,invalid_onion_version,BADONION|PERM|4 |
40 | msgdata,invalid_onion_version,sha256_of_onion,sha256, |
41 | msgtype,invalid_onion_hmac,BADONION|PERM|5 |
42 | msgdata,invalid_onion_hmac,sha256_of_onion,sha256, |
43 | msgtype,invalid_onion_key,BADONION|PERM|6 |
44 | msgdata,invalid_onion_key,sha256_of_onion,sha256, |
45 | msgtype,temporary_channel_failure,UPDATE|7 |
46 | msgdata,temporary_channel_failure,len,u16, |
47 | msgdata,temporary_channel_failure,channel_update,byte,len |
48 | msgtype,permanent_channel_failure,PERM|8 |
49 | msgtype,required_channel_feature_missing,PERM|9 |
50 | msgtype,unknown_next_peer,PERM|10 |
51 | msgtype,amount_below_minimum,UPDATE|11 |
52 | msgdata,amount_below_minimum,htlc_msat,u64, |
53 | msgdata,amount_below_minimum,len,u16, |
54 | msgdata,amount_below_minimum,channel_update,byte,len |
55 | msgtype,fee_insufficient,UPDATE|12 |
56 | msgdata,fee_insufficient,htlc_msat,u64, |
57 | msgdata,fee_insufficient,len,u16, |
58 | msgdata,fee_insufficient,channel_update,byte,len |
59 | msgtype,incorrect_cltv_expiry,UPDATE|13 |
60 | msgdata,incorrect_cltv_expiry,cltv_expiry,u32, |
61 | msgdata,incorrect_cltv_expiry,len,u16, |
62 | msgdata,incorrect_cltv_expiry,channel_update,byte,len |
63 | msgtype,expiry_too_soon,UPDATE|14 |
64 | msgdata,expiry_too_soon,len,u16, |
65 | msgdata,expiry_too_soon,channel_update,byte,len |
66 | msgtype,incorrect_or_unknown_payment_details,PERM|15 |
67 | msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64, |
68 | msgdata,incorrect_or_unknown_payment_details,height,u32, |
69 | msgtype,final_incorrect_cltv_expiry,18 |
70 | msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32, |
71 | msgtype,final_incorrect_htlc_amount,19 |
72 | msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64, |
73 | msgtype,channel_disabled,UPDATE|20 |
74 | msgtype,expiry_too_far,21 |
75 | msgtype,invalid_onion_payload,PERM|22 |
76 | msgdata,invalid_onion_payload,type,bigsize, |
77 | msgdata,invalid_onion_payload,offset,u16, |
78 | msgtype,mpp_timeout,23 |