core-lightning/hsmd/hsmd_wire.csv
Rusty Russell 6ea95da342 hsmd: add variant of preapprove commands to have it check only, not do anything.
Apparently VLS actually does something when we preapprove: if caller is just
checking we want to tell it not to do that!

I put in a flag so we can test both old and new APIs.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-05-06 20:51:19 -05:00

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