core-lightning/wire/peer_wire.csv
Rusty Russell 1b30ea4b82 doc: update BOLTs to bc86304b4b0af5fd5ce9d24f74e2ebbceb7e2730
This contains the zeroconf stuff, with funding_locked renamed to
channel_ready.  I change that everywhere, and try to fix up the
comments.

Also the `alias` field is called `short_channel_id`.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: Protocol: `funding_locked` is now called `channel_ready` as per latest BOLTs.
2022-09-12 09:34:52 +09:30

15 KiB

1msgtype,init,16
2msgdata,init,gflen,u16,
3msgdata,init,globalfeatures,byte,gflen
4msgdata,init,flen,u16,
5msgdata,init,features,byte,flen
6msgdata,init,tlvs,init_tlvs,
7tlvtype,init_tlvs,networks,1
8tlvdata,init_tlvs,networks,chains,chain_hash,...
9tlvtype,init_tlvs,remote_addr,3
10tlvdata,init_tlvs,remote_addr,data,byte,...
11msgtype,error,17
12msgdata,error,channel_id,channel_id,
13msgdata,error,len,u16,
14msgdata,error,data,byte,len
15msgtype,warning,1
16msgdata,warning,channel_id,channel_id,
17msgdata,warning,len,u16,
18msgdata,warning,data,byte,len
19msgtype,ping,18
20msgdata,ping,num_pong_bytes,u16,
21msgdata,ping,byteslen,u16,
22msgdata,ping,ignored,byte,byteslen
23msgtype,pong,19
24msgdata,pong,byteslen,u16,
25msgdata,pong,ignored,byte,byteslen
26tlvtype,n1,tlv1,1
27tlvdata,n1,tlv1,amount_msat,tu64,
28tlvtype,n1,tlv2,2
29tlvdata,n1,tlv2,scid,short_channel_id,
30tlvtype,n1,tlv3,3
31tlvdata,n1,tlv3,node_id,point,
32tlvdata,n1,tlv3,amount_msat_1,u64,
33tlvdata,n1,tlv3,amount_msat_2,u64,
34tlvtype,n1,tlv4,254
35tlvdata,n1,tlv4,cltv_delta,u16,
36tlvtype,n2,tlv1,0
37tlvdata,n2,tlv1,amount_msat,tu64,
38tlvtype,n2,tlv2,11
39tlvdata,n2,tlv2,cltv_expiry,tu32,
40msgtype,tx_add_input,66
41msgdata,tx_add_input,channel_id,channel_id,
42msgdata,tx_add_input,serial_id,u64,
43msgdata,tx_add_input,prevtx_len,u16,
44msgdata,tx_add_input,prevtx,byte,prevtx_len
45msgdata,tx_add_input,prevtx_vout,u32,
46msgdata,tx_add_input,sequence,u32,
47msgdata,tx_add_input,script_sig_len,u16,
48msgdata,tx_add_input,script_sig,byte,script_sig_len
49msgtype,tx_add_output,67
50msgdata,tx_add_output,channel_id,channel_id,
51msgdata,tx_add_output,serial_id,u64,
52msgdata,tx_add_output,sats,u64,
53msgdata,tx_add_output,scriptlen,u16,
54msgdata,tx_add_output,script,byte,scriptlen
55msgtype,tx_remove_input,68
56msgdata,tx_remove_input,channel_id,channel_id,
57msgdata,tx_remove_input,serial_id,u64,
58msgtype,tx_remove_output,69
59msgdata,tx_remove_output,channel_id,channel_id,
60msgdata,tx_remove_output,serial_id,u64,
61msgtype,tx_complete,70
62msgdata,tx_complete,channel_id,channel_id,
63msgtype,tx_signatures,71
64msgdata,tx_signatures,channel_id,channel_id,
65msgdata,tx_signatures,txid,sha256,
66msgdata,tx_signatures,num_witnesses,u16,
67msgdata,tx_signatures,witness_stack,witness_stack,num_witnesses
68subtype,witness_stack
69subtypedata,witness_stack,num_input_witness,u16,
70subtypedata,witness_stack,witness_element,witness_element,num_input_witness
71subtype,witness_element
72subtypedata,witness_element,len,u16,
73subtypedata,witness_element,witness,byte,len
74msgtype,open_channel,32
75msgdata,open_channel,chain_hash,chain_hash,
76msgdata,open_channel,temporary_channel_id,byte,32
77msgdata,open_channel,funding_satoshis,u64,
78msgdata,open_channel,push_msat,u64,
79msgdata,open_channel,dust_limit_satoshis,u64,
80msgdata,open_channel,max_htlc_value_in_flight_msat,u64,
81msgdata,open_channel,channel_reserve_satoshis,u64,
82msgdata,open_channel,htlc_minimum_msat,u64,
83msgdata,open_channel,feerate_per_kw,u32,
84msgdata,open_channel,to_self_delay,u16,
85msgdata,open_channel,max_accepted_htlcs,u16,
86msgdata,open_channel,funding_pubkey,point,
87msgdata,open_channel,revocation_basepoint,point,
88msgdata,open_channel,payment_basepoint,point,
89msgdata,open_channel,delayed_payment_basepoint,point,
90msgdata,open_channel,htlc_basepoint,point,
91msgdata,open_channel,first_per_commitment_point,point,
92msgdata,open_channel,channel_flags,byte,
93msgdata,open_channel,tlvs,open_channel_tlvs,
94tlvtype,open_channel_tlvs,upfront_shutdown_script,0
95tlvdata,open_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,...
96tlvtype,open_channel_tlvs,channel_type,1
97tlvdata,open_channel_tlvs,channel_type,type,byte,...
98msgtype,accept_channel,33
99msgdata,accept_channel,temporary_channel_id,byte,32
100msgdata,accept_channel,dust_limit_satoshis,u64,
101msgdata,accept_channel,max_htlc_value_in_flight_msat,u64,
102msgdata,accept_channel,channel_reserve_satoshis,u64,
103msgdata,accept_channel,htlc_minimum_msat,u64,
104msgdata,accept_channel,minimum_depth,u32,
105msgdata,accept_channel,to_self_delay,u16,
106msgdata,accept_channel,max_accepted_htlcs,u16,
107msgdata,accept_channel,funding_pubkey,point,
108msgdata,accept_channel,revocation_basepoint,point,
109msgdata,accept_channel,payment_basepoint,point,
110msgdata,accept_channel,delayed_payment_basepoint,point,
111msgdata,accept_channel,htlc_basepoint,point,
112msgdata,accept_channel,first_per_commitment_point,point,
113msgdata,accept_channel,tlvs,accept_channel_tlvs,
114tlvtype,accept_channel_tlvs,upfront_shutdown_script,0
115tlvdata,accept_channel_tlvs,upfront_shutdown_script,shutdown_scriptpubkey,byte,...
116tlvtype,accept_channel_tlvs,channel_type,1
117tlvdata,accept_channel_tlvs,channel_type,type,byte,...
118msgtype,funding_created,34
119msgdata,funding_created,temporary_channel_id,byte,32
120msgdata,funding_created,funding_txid,sha256,
121msgdata,funding_created,funding_output_index,u16,
122msgdata,funding_created,signature,signature,
123msgtype,funding_signed,35
124msgdata,funding_signed,channel_id,channel_id,
125msgdata,funding_signed,signature,signature,
126msgtype,channel_ready,36
127msgdata,channel_ready,channel_id,channel_id,
128msgdata,channel_ready,second_per_commitment_point,point,
129msgdata,channel_ready,tlvs,channel_ready_tlvs,
130tlvtype,channel_ready_tlvs,short_channel_id,1
131tlvdata,channel_ready_tlvs,short_channel_id,alias,short_channel_id,
132msgtype,open_channel2,64
133msgdata,open_channel2,chain_hash,chain_hash,
134msgdata,open_channel2,channel_id,channel_id,
135msgdata,open_channel2,funding_feerate_perkw,u32,
136msgdata,open_channel2,commitment_feerate_perkw,u32,
137msgdata,open_channel2,funding_satoshis,u64,
138msgdata,open_channel2,dust_limit_satoshis,u64,
139msgdata,open_channel2,max_htlc_value_in_flight_msat,u64,
140msgdata,open_channel2,htlc_minimum_msat,u64,
141msgdata,open_channel2,to_self_delay,u16,
142msgdata,open_channel2,max_accepted_htlcs,u16,
143msgdata,open_channel2,locktime,u32,
144msgdata,open_channel2,funding_pubkey,point,
145msgdata,open_channel2,revocation_basepoint,point,
146msgdata,open_channel2,payment_basepoint,point,
147msgdata,open_channel2,delayed_payment_basepoint,point,
148msgdata,open_channel2,htlc_basepoint,point,
149msgdata,open_channel2,first_per_commitment_point,point,
150msgdata,open_channel2,channel_flags,byte,
151msgdata,open_channel2,tlvs,opening_tlvs,
152tlvtype,opening_tlvs,option_upfront_shutdown_script,1
153tlvdata,opening_tlvs,option_upfront_shutdown_script,shutdown_len,u16,
154tlvdata,opening_tlvs,option_upfront_shutdown_script,shutdown_scriptpubkey,byte,shutdown_len
155tlvtype,opening_tlvs,request_funds,3
156tlvdata,opening_tlvs,request_funds,requested_sats,u64,
157tlvdata,opening_tlvs,request_funds,blockheight,u32,
158msgtype,accept_channel2,65
159msgdata,accept_channel2,channel_id,channel_id,
160msgdata,accept_channel2,funding_satoshis,u64,
161msgdata,accept_channel2,dust_limit_satoshis,u64,
162msgdata,accept_channel2,max_htlc_value_in_flight_msat,u64,
163msgdata,accept_channel2,htlc_minimum_msat,u64,
164msgdata,accept_channel2,minimum_depth,u32,
165msgdata,accept_channel2,to_self_delay,u16,
166msgdata,accept_channel2,max_accepted_htlcs,u16,
167msgdata,accept_channel2,funding_pubkey,point,
168msgdata,accept_channel2,revocation_basepoint,point,
169msgdata,accept_channel2,payment_basepoint,point,
170msgdata,accept_channel2,delayed_payment_basepoint,point,
171msgdata,accept_channel2,htlc_basepoint,point,
172msgdata,accept_channel2,first_per_commitment_point,point,
173msgdata,accept_channel2,tlvs,accept_tlvs,
174tlvtype,accept_tlvs,option_upfront_shutdown_script,1
175tlvdata,accept_tlvs,option_upfront_shutdown_script,shutdown_len,u16,
176tlvdata,accept_tlvs,option_upfront_shutdown_script,shutdown_scriptpubkey,byte,shutdown_len
177tlvtype,accept_tlvs,will_fund,2
178tlvdata,accept_tlvs,will_fund,signature,signature,
179tlvdata,accept_tlvs,will_fund,lease_rates,lease_rates,
180subtype,lease_rates
181subtypedata,lease_rates,funding_weight,u16,
182subtypedata,lease_rates,lease_fee_basis,u16,
183subtypedata,lease_rates,channel_fee_max_proportional_thousandths,u16,
184subtypedata,lease_rates,lease_fee_base_sat,u32,
185subtypedata,lease_rates,channel_fee_max_base_msat,tu32,
186msgtype,init_rbf,72
187msgdata,init_rbf,channel_id,channel_id,
188msgdata,init_rbf,funding_satoshis,u64,
189msgdata,init_rbf,locktime,u32,
190msgdata,init_rbf,funding_feerate_perkw,u32,
191msgtype,ack_rbf,73
192msgdata,ack_rbf,channel_id,channel_id,
193msgdata,ack_rbf,funding_satoshis,u64,
194msgtype,shutdown,38
195msgdata,shutdown,channel_id,channel_id,
196msgdata,shutdown,len,u16,
197msgdata,shutdown,scriptpubkey,byte,len
198msgdata,shutdown,tlvs,shutdown_tlvs,
199tlvtype,shutdown_tlvs,wrong_funding,100
200tlvdata,shutdown_tlvs,wrong_funding,txid,sha256,
201tlvdata,shutdown_tlvs,wrong_funding,outnum,u32,
202msgtype,closing_signed,39
203msgdata,closing_signed,channel_id,channel_id,
204msgdata,closing_signed,fee_satoshis,u64,
205msgdata,closing_signed,signature,signature,
206msgdata,closing_signed,tlvs,closing_signed_tlvs,
207tlvtype,closing_signed_tlvs,fee_range,1
208tlvdata,closing_signed_tlvs,fee_range,min_fee_satoshis,u64,
209tlvdata,closing_signed_tlvs,fee_range,max_fee_satoshis,u64,
210msgtype,update_add_htlc,128
211msgdata,update_add_htlc,channel_id,channel_id,
212msgdata,update_add_htlc,id,u64,
213msgdata,update_add_htlc,amount_msat,u64,
214msgdata,update_add_htlc,payment_hash,sha256,
215msgdata,update_add_htlc,cltv_expiry,u32,
216msgdata,update_add_htlc,onion_routing_packet,byte,1366
217msgtype,update_fulfill_htlc,130
218msgdata,update_fulfill_htlc,channel_id,channel_id,
219msgdata,update_fulfill_htlc,id,u64,
220msgdata,update_fulfill_htlc,payment_preimage,byte,32
221msgtype,update_fail_htlc,131
222msgdata,update_fail_htlc,channel_id,channel_id,
223msgdata,update_fail_htlc,id,u64,
224msgdata,update_fail_htlc,len,u16,
225msgdata,update_fail_htlc,reason,byte,len
226msgtype,update_fail_malformed_htlc,135
227msgdata,update_fail_malformed_htlc,channel_id,channel_id,
228msgdata,update_fail_malformed_htlc,id,u64,
229msgdata,update_fail_malformed_htlc,sha256_of_onion,sha256,
230msgdata,update_fail_malformed_htlc,failure_code,u16,
231msgtype,commitment_signed,132
232msgdata,commitment_signed,channel_id,channel_id,
233msgdata,commitment_signed,signature,signature,
234msgdata,commitment_signed,num_htlcs,u16,
235msgdata,commitment_signed,htlc_signature,signature,num_htlcs
236msgtype,revoke_and_ack,133
237msgdata,revoke_and_ack,channel_id,channel_id,
238msgdata,revoke_and_ack,per_commitment_secret,byte,32
239msgdata,revoke_and_ack,next_per_commitment_point,point,
240msgtype,update_fee,134
241msgdata,update_fee,channel_id,channel_id,
242msgdata,update_fee,feerate_per_kw,u32,
243msgtype,update_blockheight,137
244msgdata,update_blockheight,channel_id,channel_id,
245msgdata,update_blockheight,blockheight,u32,
246msgtype,channel_reestablish,136
247msgdata,channel_reestablish,channel_id,channel_id,
248msgdata,channel_reestablish,next_commitment_number,u64,
249msgdata,channel_reestablish,next_revocation_number,u64,
250msgdata,channel_reestablish,your_last_per_commitment_secret,byte,32
251msgdata,channel_reestablish,my_current_per_commitment_point,point,
252msgtype,announcement_signatures,259
253msgdata,announcement_signatures,channel_id,channel_id,
254msgdata,announcement_signatures,short_channel_id,short_channel_id,
255msgdata,announcement_signatures,node_signature,signature,
256msgdata,announcement_signatures,bitcoin_signature,signature,
257msgtype,channel_announcement,256
258msgdata,channel_announcement,node_signature_1,signature,
259msgdata,channel_announcement,node_signature_2,signature,
260msgdata,channel_announcement,bitcoin_signature_1,signature,
261msgdata,channel_announcement,bitcoin_signature_2,signature,
262msgdata,channel_announcement,len,u16,
263msgdata,channel_announcement,features,byte,len
264msgdata,channel_announcement,chain_hash,chain_hash,
265msgdata,channel_announcement,short_channel_id,short_channel_id,
266msgdata,channel_announcement,node_id_1,point,
267msgdata,channel_announcement,node_id_2,point,
268msgdata,channel_announcement,bitcoin_key_1,point,
269msgdata,channel_announcement,bitcoin_key_2,point,
270msgtype,node_announcement,257
271msgdata,node_announcement,signature,signature,
272msgdata,node_announcement,flen,u16,
273msgdata,node_announcement,features,byte,flen
274msgdata,node_announcement,timestamp,u32,
275msgdata,node_announcement,node_id,point,
276msgdata,node_announcement,rgb_color,byte,3
277msgdata,node_announcement,alias,byte,32
278msgdata,node_announcement,addrlen,u16,
279msgdata,node_announcement,addresses,byte,addrlen
280msgdata,node_announcement,tlvs,node_ann_tlvs,
281tlvtype,node_ann_tlvs,option_will_fund,1
282tlvdata,node_ann_tlvs,option_will_fund,lease_rates,lease_rates,
283msgtype,channel_update,258
284msgdata,channel_update,signature,signature,
285msgdata,channel_update,chain_hash,chain_hash,
286msgdata,channel_update,short_channel_id,short_channel_id,
287msgdata,channel_update,timestamp,u32,
288msgdata,channel_update,message_flags,byte,
289msgdata,channel_update,channel_flags,byte,
290msgdata,channel_update,cltv_expiry_delta,u16,
291msgdata,channel_update,htlc_minimum_msat,u64,
292msgdata,channel_update,fee_base_msat,u32,
293msgdata,channel_update,fee_proportional_millionths,u32,
294msgdata,channel_update,htlc_maximum_msat,u64,,option_channel_htlc_max
295msgtype,query_short_channel_ids,261,gossip_queries
296msgdata,query_short_channel_ids,chain_hash,chain_hash,
297msgdata,query_short_channel_ids,len,u16,
298msgdata,query_short_channel_ids,encoded_short_ids,byte,len
299msgdata,query_short_channel_ids,tlvs,query_short_channel_ids_tlvs,
300tlvtype,query_short_channel_ids_tlvs,query_flags,1
301tlvdata,query_short_channel_ids_tlvs,query_flags,encoding_type,byte,
302tlvdata,query_short_channel_ids_tlvs,query_flags,encoded_query_flags,byte,...
303msgtype,reply_short_channel_ids_end,262,gossip_queries
304msgdata,reply_short_channel_ids_end,chain_hash,chain_hash,
305msgdata,reply_short_channel_ids_end,full_information,byte,
306msgtype,query_channel_range,263,gossip_queries
307msgdata,query_channel_range,chain_hash,chain_hash,
308msgdata,query_channel_range,first_blocknum,u32,
309msgdata,query_channel_range,number_of_blocks,u32,
310msgdata,query_channel_range,tlvs,query_channel_range_tlvs,
311tlvtype,query_channel_range_tlvs,query_option,1
312tlvdata,query_channel_range_tlvs,query_option,query_option_flags,bigsize,
313msgtype,reply_channel_range,264,gossip_queries
314msgdata,reply_channel_range,chain_hash,chain_hash,
315msgdata,reply_channel_range,first_blocknum,u32,
316msgdata,reply_channel_range,number_of_blocks,u32,
317msgdata,reply_channel_range,sync_complete,byte,
318msgdata,reply_channel_range,len,u16,
319msgdata,reply_channel_range,encoded_short_ids,byte,len
320msgdata,reply_channel_range,tlvs,reply_channel_range_tlvs,
321tlvtype,reply_channel_range_tlvs,timestamps_tlv,1
322tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoding_type,byte,
323tlvdata,reply_channel_range_tlvs,timestamps_tlv,encoded_timestamps,byte,...
324tlvtype,reply_channel_range_tlvs,checksums_tlv,3
325tlvdata,reply_channel_range_tlvs,checksums_tlv,checksums,channel_update_checksums,...
326subtype,channel_update_timestamps
327subtypedata,channel_update_timestamps,timestamp_node_id_1,u32,
328subtypedata,channel_update_timestamps,timestamp_node_id_2,u32,
329subtype,channel_update_checksums
330subtypedata,channel_update_checksums,checksum_node_id_1,u32,
331subtypedata,channel_update_checksums,checksum_node_id_2,u32,
332msgtype,gossip_timestamp_filter,265,gossip_queries
333msgdata,gossip_timestamp_filter,chain_hash,chain_hash,
334msgdata,gossip_timestamp_filter,first_timestamp,u32,
335msgdata,gossip_timestamp_filter,timestamp_range,u32,
336msgtype,obs2_onion_message,387,option_onion_messages
337msgdata,obs2_onion_message,blinding,point,
338msgdata,obs2_onion_message,len,u16,
339msgdata,obs2_onion_message,onionmsg,byte,len
340msgtype,onion_message,513,option_onion_messages
341msgdata,onion_message,blinding,point,
342msgdata,onion_message,len,u16,
343msgdata,onion_message,onionmsg,byte,len