Files
palladum-lightning/hsmd/hsmd_wire.csv
Rusty Russell f6a4e79420 global: remove unnecessary includes from headers.
Each header should only include the other headers it needs to compile;
`devtools/reduce-includes.sh */*.h` does this.  The C files then need
additional includes if they don't compile.

And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-10-23 06:44:04 +10:30

20 KiB

1# Clients should not give a bad request but not the HSM's decision to crash.
2msgtype,hsmstatus_client_bad_request,1000
3msgdata,hsmstatus_client_bad_request,id,node_id,
4msgdata,hsmstatus_client_bad_request,description,wirestring,
5msgdata,hsmstatus_client_bad_request,len,u16,
6msgdata,hsmstatus_client_bad_request,msg,u8,len
7# We use this to set dev flags (before init!). It's a TLV, so we can
8# extend easily. Normal TLV rules apply: ignore odd fields you don't
9# understand.
10msgtype,hsmd_dev_preinit,99
11msgdata,hsmd_dev_preinit,tlvs,hsmd_dev_preinit_tlvs,
12tlvtype,hsmd_dev_preinit_tlvs,fail_preapprove,1
13tlvdata,hsmd_dev_preinit_tlvs,fail_preapprove,fail,bool,
14tlvtype,hsmd_dev_preinit_tlvs,no_preapprove_check,3
15tlvdata,hsmd_dev_preinit_tlvs,no_preapprove_check,disable,bool,
16tlvtype,hsmd_dev_preinit_tlvs,warn_on_overgrind,5
17tlvdata,hsmd_dev_preinit_tlvs,warn_on_overgrind,enable,bool,
18#include <bitcoin/chainparams.h>
19# Start the HSM.
20msgtype,hsmd_init,11
21msgdata,hsmd_init,bip32_key_version,bip32_key_version,
22msgdata,hsmd_init,chainparams,chainparams,
23msgdata,hsmd_init,hsm_encryption_key,?secret,
24msgdata,hsmd_init,dev_force_privkey,?privkey,
25msgdata,hsmd_init,dev_force_bip32_seed,?secret,
26msgdata,hsmd_init,dev_force_channel_secrets,?secrets,
27msgdata,hsmd_init,dev_force_channel_secrets_shaseed,?sha256,
28msgdata,hsmd_init,hsm_wire_min_version,u32,
29msgdata,hsmd_init,hsm_wire_max_version,u32,
30#include <common/bip32.h>
31# Sorry: I should have put version in v2 :(
32msgtype,hsmd_init_reply_v4,114
33# This gets upgraded when the wire protocol changes in incompatible
34# ways:
35msgdata,hsmd_init_reply_v4,hsm_version,u32,
36# Capabilities, by convention are message numbers, indicating
37# that the HSM supports you sending this message.
38msgdata,hsmd_init_reply_v4,num_hsm_capabilities,u16,
39msgdata,hsmd_init_reply_v4,hsm_capabilities,u32,num_hsm_capabilities
40msgdata,hsmd_init_reply_v4,node_id,node_id,
41msgdata,hsmd_init_reply_v4,bip32,ext_key,
42msgdata,hsmd_init_reply_v4,bolt12,pubkey,
43# Declare a new channel.
44msgtype,hsmd_new_channel,30
45msgdata,hsmd_new_channel,id,node_id,
46msgdata,hsmd_new_channel,dbid,u64,
47# No value returned.
48msgtype,hsmd_new_channel_reply,130
49# Get a new HSM FD, with the specified permissions
50msgtype,hsmd_client_hsmfd,9
51# Which identity to use for requests
52msgdata,hsmd_client_hsmfd,id,node_id,
53# Database id for this client, if any.
54msgdata,hsmd_client_hsmfd,dbid,u64,
55msgdata,hsmd_client_hsmfd,permissions,u64,
56# No content, just an fd.
57msgtype,hsmd_client_hsmfd_reply,109
58#include <common/derive_basepoints.h>
59# Get the basepoints and funding key for this specific channel.
60msgtype,hsmd_get_channel_basepoints,10
61msgdata,hsmd_get_channel_basepoints,peerid,node_id,
62msgdata,hsmd_get_channel_basepoints,dbid,u64,
63msgtype,hsmd_get_channel_basepoints_reply,110
64msgdata,hsmd_get_channel_basepoints_reply,basepoints,basepoints,
65msgdata,hsmd_get_channel_basepoints_reply,funding_pubkey,pubkey,
66#include <common/channel_type.h>
67# Provide channel parameters.
68msgtype,hsmd_setup_channel,31
69msgdata,hsmd_setup_channel,is_outbound,bool,
70msgdata,hsmd_setup_channel,channel_value,amount_sat,
71msgdata,hsmd_setup_channel,push_value,amount_msat,
72msgdata,hsmd_setup_channel,funding_txid,bitcoin_txid,
73msgdata,hsmd_setup_channel,funding_txout,u16,
74msgdata,hsmd_setup_channel,local_to_self_delay,u16,
75msgdata,hsmd_setup_channel,local_shutdown_script_len,u16,
76msgdata,hsmd_setup_channel,local_shutdown_script,u8,local_shutdown_script_len
77msgdata,hsmd_setup_channel,local_shutdown_wallet_index,?u32,
78msgdata,hsmd_setup_channel,remote_basepoints,basepoints,
79msgdata,hsmd_setup_channel,remote_funding_pubkey,pubkey,
80msgdata,hsmd_setup_channel,remote_to_self_delay,u16,
81msgdata,hsmd_setup_channel,remote_shutdown_script_len,u16,
82msgdata,hsmd_setup_channel,remote_shutdown_script,u8,remote_shutdown_script_len
83msgdata,hsmd_setup_channel,channel_type,channel_type,
84# No value returned.,
85msgtype,hsmd_setup_channel_reply,131
86# check if the signer agrees that a funding candidate outpoint is buried
87msgtype,hsmd_check_outpoint,32
88msgdata,hsmd_check_outpoint,funding_txid,bitcoin_txid,
89msgdata,hsmd_check_outpoint,funding_txout,u16,
90msgtype,hsmd_check_outpoint_reply,132
91msgdata,hsmd_check_outpoint_reply,is_buried,bool,
92# change the funding/splice state to locked
93msgtype,hsmd_lock_outpoint,37
94msgdata,hsmd_lock_outpoint,funding_txid,bitcoin_txid,
95msgdata,hsmd_lock_outpoint,funding_txout,u16,
96# No value returned.
97msgtype,hsmd_lock_outpoint_reply,137
98# Forget channel.
99msgtype,hsmd_forget_channel,34
100msgdata,hsmd_forget_channel,id,node_id,
101msgdata,hsmd_forget_channel,dbid,u64,
102# No value returned.
103msgtype,hsmd_forget_channel_reply,134
104# Return signature for a funding tx.
105#include <hsmd/hsm_utxo.h>
106# Master asks the HSM to sign a node_announcement
107msgtype,hsmd_node_announcement_sig_req,6
108msgdata,hsmd_node_announcement_sig_req,annlen,u16,
109msgdata,hsmd_node_announcement_sig_req,announcement,u8,annlen
110msgtype,hsmd_node_announcement_sig_reply,106
111msgdata,hsmd_node_announcement_sig_reply,signature,secp256k1_ecdsa_signature,
112# Sign a withdrawal request
113#include <bitcoin/psbt.h>
114msgtype,hsmd_sign_withdrawal,7
115msgdata,hsmd_sign_withdrawal,num_inputs,u16,
116msgdata,hsmd_sign_withdrawal,inputs,hsm_utxo,num_inputs
117msgdata,hsmd_sign_withdrawal,psbt,wally_psbt,
118msgtype,hsmd_sign_withdrawal_reply,107
119msgdata,hsmd_sign_withdrawal_reply,psbt,wally_psbt,
120# Sign an invoice
121msgtype,hsmd_sign_invoice,8
122msgdata,hsmd_sign_invoice,len,u16,
123msgdata,hsmd_sign_invoice,u5bytes,u8,len
124msgdata,hsmd_sign_invoice,hrplen,u16,
125msgdata,hsmd_sign_invoice,hrp,u8,hrplen
126msgtype,hsmd_sign_invoice_reply,108
127msgdata,hsmd_sign_invoice_reply,sig,secp256k1_ecdsa_recoverable_signature,
128# Preapprove an invoice for payment
129msgtype,hsmd_preapprove_invoice,38
130msgdata,hsmd_preapprove_invoice,invstring,wirestring,
131# Result is true if approved, declined if false
132msgtype,hsmd_preapprove_invoice_reply,138
133msgdata,hsmd_preapprove_invoice_reply,approved,bool,
134# Preapprove a keysend payment
135msgtype,hsmd_preapprove_keysend,39
136msgdata,hsmd_preapprove_keysend,destination,node_id,
137msgdata,hsmd_preapprove_keysend,payment_hash,sha256,
138msgdata,hsmd_preapprove_keysend,amount_msat,amount_msat,
139# Result is true if approved, declined if false
140msgtype,hsmd_preapprove_keysend_reply,139
141msgdata,hsmd_preapprove_keysend_reply,approved,bool,
142msgtype,hsmd_preapprove_invoice_check,51
143msgdata,hsmd_preapprove_invoice_check,invstring,wirestring,
144msgdata,hsmd_preapprove_invoice_check,check_only,bool,
145# Result is true if approved, declined if false
146msgtype,hsmd_preapprove_invoice_check_reply,151
147msgdata,hsmd_preapprove_invoice_check_reply,approved,bool,
148msgtype,hsmd_preapprove_keysend_check,52
149msgdata,hsmd_preapprove_keysend_check,destination,node_id,
150msgdata,hsmd_preapprove_keysend_check,payment_hash,sha256,
151msgdata,hsmd_preapprove_keysend_check,amount_msat,amount_msat,
152msgdata,hsmd_preapprove_keysend_check,check_only,bool,
153# Result is true if approved, declined if false
154msgtype,hsmd_preapprove_keysend_check_reply,152
155msgdata,hsmd_preapprove_keysend_check_reply,approved,bool,
156# Give me ECDH(node-id-secret,point)
157msgtype,hsmd_ecdh_req,1
158msgdata,hsmd_ecdh_req,point,pubkey,
159msgtype,hsmd_ecdh_resp,100
160msgdata,hsmd_ecdh_resp,ss,secret,
161msgtype,hsmd_cannouncement_sig_req,2
162msgdata,hsmd_cannouncement_sig_req,calen,u16,
163msgdata,hsmd_cannouncement_sig_req,ca,u8,calen
164msgtype,hsmd_cannouncement_sig_reply,102
165msgdata,hsmd_cannouncement_sig_reply,node_signature,secp256k1_ecdsa_signature,
166msgdata,hsmd_cannouncement_sig_reply,bitcoin_signature,secp256k1_ecdsa_signature,
167msgtype,hsmd_sign_any_cannouncement_req,4
168msgdata,hsmd_sign_any_cannouncement_req,calen,u16,
169msgdata,hsmd_sign_any_cannouncement_req,ca,u8,calen
170msgdata,hsmd_sign_any_cannouncement_req,peerid,node_id,
171msgdata,hsmd_sign_any_cannouncement_req,channel_dbid,u64,
172
173msgtype,hsmd_sign_any_cannouncement_reply,104
174msgdata,hsmd_sign_any_cannouncement_reply,node_signature,secp256k1_ecdsa_signature,
175msgdata,hsmd_sign_any_cannouncement_reply,bitcoin_signature,secp256k1_ecdsa_signature,
176msgtype,hsmd_cupdate_sig_req,3
177msgdata,hsmd_cupdate_sig_req,culen,u16,
178msgdata,hsmd_cupdate_sig_req,cu,u8,culen
179msgtype,hsmd_cupdate_sig_reply,103
180msgdata,hsmd_cupdate_sig_reply,culen,u16,
181msgdata,hsmd_cupdate_sig_reply,cu,u8,culen
182# Master asks HSM to sign a commitment transaction.
183msgtype,hsmd_sign_commitment_tx,5
184msgdata,hsmd_sign_commitment_tx,peer_id,node_id,
185msgdata,hsmd_sign_commitment_tx,channel_dbid,u64,
186msgdata,hsmd_sign_commitment_tx,tx,bitcoin_tx,
187msgdata,hsmd_sign_commitment_tx,remote_funding_key,pubkey,
188msgdata,hsmd_sign_commitment_tx,commit_num,u64,
189msgtype,hsmd_sign_commitment_tx_reply,105
190msgdata,hsmd_sign_commitment_tx_reply,sig,bitcoin_signature,
191#include <common/htlc_wire.h> // For enum side and towire_side
192subtype,hsm_htlc
193subtypedata,hsm_htlc,side,enum side,
194subtypedata,hsm_htlc,amount,amount_msat,
195subtypedata,hsm_htlc,payment_hash,sha256,
196subtypedata,hsm_htlc,cltv_expiry,u32,
197# Validate the counterparty's commitment signatures.
198msgtype,hsmd_validate_commitment_tx,35
199msgdata,hsmd_validate_commitment_tx,tx,bitcoin_tx,
200msgdata,hsmd_validate_commitment_tx,num_htlcs,u16,
201msgdata,hsmd_validate_commitment_tx,htlcs,hsm_htlc,num_htlcs
202msgdata,hsmd_validate_commitment_tx,commit_num,u64,
203msgdata,hsmd_validate_commitment_tx,feerate,u32,
204msgdata,hsmd_validate_commitment_tx,sig,bitcoin_signature,
205msgdata,hsmd_validate_commitment_tx,num_htlc_sigs,u16,
206msgdata,hsmd_validate_commitment_tx,htlc_sigs,bitcoin_signature,num_htlc_sigs
207msgtype,hsmd_validate_commitment_tx_reply,135
208msgdata,hsmd_validate_commitment_tx_reply,old_commitment_secret,?secret,
209msgdata,hsmd_validate_commitment_tx_reply,next_per_commitment_point,pubkey,
210# Revoke our local commitment, returns the revocation secret and next point
211msgtype,hsmd_revoke_commitment_tx,40
212msgdata,hsmd_revoke_commitment_tx,commit_num,u64,
213msgtype,hsmd_revoke_commitment_tx_reply,140
214msgdata,hsmd_revoke_commitment_tx_reply,old_commitment_secret,secret,
215msgdata,hsmd_revoke_commitment_tx_reply,next_per_commitment_point,pubkey,
216# Vaidate the counterparty's revocation secret
217msgtype,hsmd_validate_revocation,36
218msgdata,hsmd_validate_revocation,revoke_num,u64,
219msgdata,hsmd_validate_revocation,per_commitment_secret,secret,
220# No value returned.
221msgtype,hsmd_validate_revocation_reply,136
222# Onchaind asks HSM to sign a spend to-us. Four variants, since each set
223# of keys is derived differently...
224msgtype,hsmd_sign_delayed_payment_to_us,12
225msgdata,hsmd_sign_delayed_payment_to_us,commit_num,u64,
226msgdata,hsmd_sign_delayed_payment_to_us,tx,bitcoin_tx,
227msgdata,hsmd_sign_delayed_payment_to_us,wscript_len,u16,
228msgdata,hsmd_sign_delayed_payment_to_us,wscript,u8,wscript_len
229msgtype,hsmd_sign_remote_htlc_to_us,13
230msgdata,hsmd_sign_remote_htlc_to_us,remote_per_commitment_point,pubkey,
231msgdata,hsmd_sign_remote_htlc_to_us,tx,bitcoin_tx,
232msgdata,hsmd_sign_remote_htlc_to_us,wscript_len,u16,
233msgdata,hsmd_sign_remote_htlc_to_us,wscript,u8,wscript_len
234msgdata,hsmd_sign_remote_htlc_to_us,option_anchor_outputs,bool,
235msgtype,hsmd_sign_penalty_to_us,14
236msgdata,hsmd_sign_penalty_to_us,revocation_secret,secret,
237msgdata,hsmd_sign_penalty_to_us,tx,bitcoin_tx,
238msgdata,hsmd_sign_penalty_to_us,wscript_len,u16,
239msgdata,hsmd_sign_penalty_to_us,wscript,u8,wscript_len
240# Onchaind asks HSM to sign a local HTLC success or HTLC timeout tx.
241msgtype,hsmd_sign_local_htlc_tx,16
242msgdata,hsmd_sign_local_htlc_tx,commit_num,u64,
243msgdata,hsmd_sign_local_htlc_tx,tx,bitcoin_tx,
244msgdata,hsmd_sign_local_htlc_tx,wscript_len,u16,
245msgdata,hsmd_sign_local_htlc_tx,wscript,u8,wscript_len
246msgdata,hsmd_sign_local_htlc_tx,option_anchor_outputs,bool,
247# Openingd/channeld asks HSM to sign the other sides' commitment tx.
248msgtype,hsmd_sign_remote_commitment_tx,19
249msgdata,hsmd_sign_remote_commitment_tx,tx,bitcoin_tx,
250msgdata,hsmd_sign_remote_commitment_tx,remote_funding_key,pubkey,
251msgdata,hsmd_sign_remote_commitment_tx,remote_per_commit,pubkey,
252msgdata,hsmd_sign_remote_commitment_tx,option_static_remotekey,bool,
253msgdata,hsmd_sign_remote_commitment_tx,commit_num,u64,
254msgdata,hsmd_sign_remote_commitment_tx,num_htlcs,u16,
255msgdata,hsmd_sign_remote_commitment_tx,htlcs,hsm_htlc,num_htlcs
256msgdata,hsmd_sign_remote_commitment_tx,feerate,u32,
257# channeld asks HSM to sign remote HTLC tx.
258msgtype,hsmd_sign_remote_htlc_tx,20
259msgdata,hsmd_sign_remote_htlc_tx,tx,bitcoin_tx,
260msgdata,hsmd_sign_remote_htlc_tx,len,u16,
261msgdata,hsmd_sign_remote_htlc_tx,wscript,u8,len
262msgdata,hsmd_sign_remote_htlc_tx,remote_per_commit_point,pubkey,
263msgdata,hsmd_sign_remote_htlc_tx,option_anchor_outputs,bool,
264# closingd asks HSM to sign mutual close tx.
265msgtype,hsmd_sign_mutual_close_tx,21
266msgdata,hsmd_sign_mutual_close_tx,tx,bitcoin_tx,
267msgdata,hsmd_sign_mutual_close_tx,remote_funding_key,pubkey,
268# channeld asks HSM to sign splice tx.
269msgtype,hsmd_sign_splice_tx,29
270msgdata,hsmd_sign_splice_tx,tx,bitcoin_tx,
271msgdata,hsmd_sign_splice_tx,remote_funding_key,pubkey,
272msgdata,hsmd_sign_splice_tx,input_index,u32,
273# Reply for all the above requests.
274msgtype,hsmd_sign_tx_reply,112
275msgdata,hsmd_sign_tx_reply,sig,bitcoin_signature,
276# Openingd/channeld/onchaind asks for Nth per_commitment_point
277# Prior to HSM_VERSION 6 we will return an old_commitment_secret
278msgtype,hsmd_get_per_commitment_point,18
279msgdata,hsmd_get_per_commitment_point,n,u64,
280# IMPORTANT - Beginning HSM_VERSION 6 we never return an old_commitment_secret
281msgtype,hsmd_get_per_commitment_point_reply,118
282msgdata,hsmd_get_per_commitment_point_reply,per_commitment_point,pubkey,
283msgdata,hsmd_get_per_commitment_point_reply,old_commitment_secret,?secret,
284# master -> hsmd: do you have a memleak?
285msgtype,hsmd_dev_memleak,33
286msgtype,hsmd_dev_memleak_reply,133
287msgdata,hsmd_dev_memleak_reply,leak,bool,
288# channeld asks to check if claimed future commitment_secret is correct.
289msgtype,hsmd_check_future_secret,22
290msgdata,hsmd_check_future_secret,n,u64,
291msgdata,hsmd_check_future_secret,commitment_secret,secret,
292msgtype,hsmd_check_future_secret_reply,122
293msgdata,hsmd_check_future_secret_reply,correct,bool,
294# lightningd asks us to sign a string.
295msgtype,hsmd_sign_message,23
296msgdata,hsmd_sign_message,len,u16,
297msgdata,hsmd_sign_message,msg,u8,len
298msgtype,hsmd_sign_message_reply,123
299msgdata,hsmd_sign_message_reply,sig,secp256k1_ecdsa_recoverable_signature,
300# sign a raw message with a derived key
301msgtype,hsmd_bip137_sign_message,45
302msgdata,hsmd_bip137_sign_message,len,u16,
303msgdata,hsmd_bip137_sign_message,msg,u8,len
304msgdata,hsmd_bip137_sign_message,keyidx,u32,
305msgtype,hsmd_bip137_sign_message_reply,145
306msgdata,hsmd_bip137_sign_message_reply,sig,secp256k1_ecdsa_recoverable_signature,
307# lightningd needs to get a scriptPubkey for a utxo with closeinfo
308msgtype,hsmd_get_output_scriptpubkey,24
309msgdata,hsmd_get_output_scriptpubkey,channel_id,u64,
310msgdata,hsmd_get_output_scriptpubkey,peer_id,node_id,
311msgdata,hsmd_get_output_scriptpubkey,commitment_point,?pubkey,
312msgtype,hsmd_get_output_scriptpubkey_reply,124
313msgdata,hsmd_get_output_scriptpubkey_reply,script_len,u16,
314msgdata,hsmd_get_output_scriptpubkey_reply,script,u8,script_len
315# Sign a bolt12-style merkle hash
316msgtype,hsmd_sign_bolt12,25
317msgdata,hsmd_sign_bolt12,messagename,wirestring,
318msgdata,hsmd_sign_bolt12,fieldname,wirestring,
319msgdata,hsmd_sign_bolt12,merkleroot,sha256,
320# This is for invreq payer_id (temporary keys)
321msgdata,hsmd_sign_bolt12,publictweaklen,u16,
322msgdata,hsmd_sign_bolt12,publictweak,u8,publictweaklen
323#include <bitcoin/signature.h>
324msgtype,hsmd_sign_bolt12_reply,125
325msgdata,hsmd_sign_bolt12_reply,sig,bip340sig,
326# Sign a bolt12-style merkle hash (modern)
327msgtype,hsmd_sign_bolt12_2,41
328msgdata,hsmd_sign_bolt12_2,messagename,wirestring,
329msgdata,hsmd_sign_bolt12_2,fieldname,wirestring,
330msgdata,hsmd_sign_bolt12_2,merkleroot,sha256,
331# This is for signing with an alias (temporary key), used if *publictweak* not empty.
332# derive_secret with info, then tweak privkey with SHA256(derived_secret || publictweak).
333msgdata,hsmd_sign_bolt12_2,infolen,u16,
334msgdata,hsmd_sign_bolt12_2,info,u8,infolen
335msgdata,hsmd_sign_bolt12_2,publictweaklen,u16,
336msgdata,hsmd_sign_bolt12_2,publictweak,u8,publictweaklen
337msgtype,hsmd_sign_bolt12_2_reply,141
338msgdata,hsmd_sign_bolt12_2_reply,sig,bip340sig,
339# Sign an option_will_fund offer hash
340msgtype,hsmd_sign_option_will_fund_offer,26
341msgdata,hsmd_sign_option_will_fund_offer,funding_pubkey,pubkey,
342msgdata,hsmd_sign_option_will_fund_offer,blockheight,u32,
343msgdata,hsmd_sign_option_will_fund_offer,channel_fee_base_max_msat,u32,
344msgdata,hsmd_sign_option_will_fund_offer,channel_fee_proportional_basis_max,u16,
345msgtype,hsmd_sign_option_will_fund_offer_reply,126
346msgdata,hsmd_sign_option_will_fund_offer_reply,rsig,secp256k1_ecdsa_signature,
347# Derive pseudorandom secret
348msgtype,hsmd_derive_secret,27
349msgdata,hsmd_derive_secret,len,u16,
350msgdata,hsmd_derive_secret,info,u8,len
351# Reply with the derived secret
352msgtype,hsmd_derive_secret_reply,127
353msgdata,hsmd_derive_secret_reply,secret,secret,
354# Sanity check this pubkey derivation is correct (unhardened only)
355msgtype,hsmd_check_pubkey,28
356msgdata,hsmd_check_pubkey,index,u32,
357msgdata,hsmd_check_pubkey,pubkey,pubkey,
358# Reply
359msgtype,hsmd_check_pubkey_reply,128
360msgdata,hsmd_check_pubkey_reply,ok,bool,
361msgtype,hsmd_sign_anchorspend,147
362msgdata,hsmd_sign_anchorspend,peerid,node_id,
363msgdata,hsmd_sign_anchorspend,channel_dbid,u64,
364msgdata,hsmd_sign_anchorspend,num_inputs,u16,
365msgdata,hsmd_sign_anchorspend,inputs,hsm_utxo,num_inputs
366msgdata,hsmd_sign_anchorspend,psbt,wally_psbt,
367msgtype,hsmd_sign_anchorspend_reply,148
368msgdata,hsmd_sign_anchorspend_reply,psbt,wally_psbt,
369# These are where lightningd asks for signatures on onchaind's behalf.
370msgtype,hsmd_sign_any_delayed_payment_to_us,142
371msgdata,hsmd_sign_any_delayed_payment_to_us,commit_num,u64,
372msgdata,hsmd_sign_any_delayed_payment_to_us,tx,bitcoin_tx,
373msgdata,hsmd_sign_any_delayed_payment_to_us,wscript_len,u16,
374msgdata,hsmd_sign_any_delayed_payment_to_us,wscript,u8,wscript_len
375msgdata,hsmd_sign_any_delayed_payment_to_us,input,u32,
376msgdata,hsmd_sign_any_delayed_payment_to_us,peerid,node_id,
377msgdata,hsmd_sign_any_delayed_payment_to_us,channel_dbid,u64,
378msgtype,hsmd_sign_any_remote_htlc_to_us,143
379msgdata,hsmd_sign_any_remote_htlc_to_us,remote_per_commitment_point,pubkey,
380msgdata,hsmd_sign_any_remote_htlc_to_us,tx,bitcoin_tx,
381msgdata,hsmd_sign_any_remote_htlc_to_us,wscript_len,u16,
382msgdata,hsmd_sign_any_remote_htlc_to_us,wscript,u8,wscript_len
383msgdata,hsmd_sign_any_remote_htlc_to_us,option_anchor_outputs,bool,
384msgdata,hsmd_sign_any_remote_htlc_to_us,input,u32,
385msgdata,hsmd_sign_any_remote_htlc_to_us,peerid,node_id,
386msgdata,hsmd_sign_any_remote_htlc_to_us,channel_dbid,u64,
387msgtype,hsmd_sign_any_penalty_to_us,144
388msgdata,hsmd_sign_any_penalty_to_us,revocation_secret,secret,
389msgdata,hsmd_sign_any_penalty_to_us,tx,bitcoin_tx,
390msgdata,hsmd_sign_any_penalty_to_us,wscript_len,u16,
391msgdata,hsmd_sign_any_penalty_to_us,wscript,u8,wscript_len
392msgdata,hsmd_sign_any_penalty_to_us,input,u32,
393msgdata,hsmd_sign_any_penalty_to_us,peerid,node_id,
394msgdata,hsmd_sign_any_penalty_to_us,channel_dbid,u64,
395msgtype,hsmd_sign_any_local_htlc_tx,146
396msgdata,hsmd_sign_any_local_htlc_tx,commit_num,u64,
397msgdata,hsmd_sign_any_local_htlc_tx,tx,bitcoin_tx,
398msgdata,hsmd_sign_any_local_htlc_tx,wscript_len,u16,
399msgdata,hsmd_sign_any_local_htlc_tx,wscript,u8,wscript_len
400msgdata,hsmd_sign_any_local_htlc_tx,option_anchor_outputs,bool,
401msgdata,hsmd_sign_any_local_htlc_tx,input,u32,
402msgdata,hsmd_sign_any_local_htlc_tx,peerid,node_id,
403msgdata,hsmd_sign_any_local_htlc_tx,channel_dbid,u64,
404msgtype,hsmd_sign_htlc_tx_mingle,149
405msgdata,hsmd_sign_htlc_tx_mingle,peerid,node_id,
406msgdata,hsmd_sign_htlc_tx_mingle,channel_dbid,u64,
407msgdata,hsmd_sign_htlc_tx_mingle,num_inputs,u16,
408msgdata,hsmd_sign_htlc_tx_mingle,inputs,hsm_utxo,num_inputs
409msgdata,hsmd_sign_htlc_tx_mingle,psbt,wally_psbt,
410msgtype,hsmd_sign_htlc_tx_mingle_reply,150
411msgdata,hsmd_sign_htlc_tx_mingle_reply,psbt,wally_psbt,