core-lightning/wire/onion_wire.csv
Rusty Russell 1ec6346f3d common: rename current onion message structures to obs2_.
Yes, we changed the spec again.  Hopefully for the last time!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-12-01 05:44:28 +10:30

3.5 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,...
31subtype,onionmsg_path
32subtypedata,onionmsg_path,node_id,point,
33subtypedata,onionmsg_path,enclen,u16,
34subtypedata,onionmsg_path,enctlv,byte,enclen
35msgtype,invalid_realm,PERM|1
36msgtype,temporary_node_failure,NODE|2
37msgtype,permanent_node_failure,PERM|NODE|2
38msgtype,required_node_feature_missing,PERM|NODE|3
39msgtype,invalid_onion_version,BADONION|PERM|4
40msgdata,invalid_onion_version,sha256_of_onion,sha256,
41msgtype,invalid_onion_hmac,BADONION|PERM|5
42msgdata,invalid_onion_hmac,sha256_of_onion,sha256,
43msgtype,invalid_onion_key,BADONION|PERM|6
44msgdata,invalid_onion_key,sha256_of_onion,sha256,
45msgtype,temporary_channel_failure,UPDATE|7
46msgdata,temporary_channel_failure,len,u16,
47msgdata,temporary_channel_failure,channel_update,byte,len
48msgtype,permanent_channel_failure,PERM|8
49msgtype,required_channel_feature_missing,PERM|9
50msgtype,unknown_next_peer,PERM|10
51msgtype,amount_below_minimum,UPDATE|11
52msgdata,amount_below_minimum,htlc_msat,u64,
53msgdata,amount_below_minimum,len,u16,
54msgdata,amount_below_minimum,channel_update,byte,len
55msgtype,fee_insufficient,UPDATE|12
56msgdata,fee_insufficient,htlc_msat,u64,
57msgdata,fee_insufficient,len,u16,
58msgdata,fee_insufficient,channel_update,byte,len
59msgtype,incorrect_cltv_expiry,UPDATE|13
60msgdata,incorrect_cltv_expiry,cltv_expiry,u32,
61msgdata,incorrect_cltv_expiry,len,u16,
62msgdata,incorrect_cltv_expiry,channel_update,byte,len
63msgtype,expiry_too_soon,UPDATE|14
64msgdata,expiry_too_soon,len,u16,
65msgdata,expiry_too_soon,channel_update,byte,len
66msgtype,incorrect_or_unknown_payment_details,PERM|15
67msgdata,incorrect_or_unknown_payment_details,htlc_msat,u64,
68msgdata,incorrect_or_unknown_payment_details,height,u32,
69msgtype,final_incorrect_cltv_expiry,18
70msgdata,final_incorrect_cltv_expiry,cltv_expiry,u32,
71msgtype,final_incorrect_htlc_amount,19
72msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64,
73msgtype,channel_disabled,UPDATE|20
74msgtype,expiry_too_far,21
75msgtype,invalid_onion_payload,PERM|22
76msgdata,invalid_onion_payload,type,bigsize,
77msgdata,invalid_onion_payload,offset,u16,
78msgtype,mpp_timeout,23