core-lightning/hsmd/hsmd_wire.csv
Rusty Russell e8a38f111d hsmd: create an hsm variant to sign a bolt12 invoice using a tweak on our key.
The current interface, if given a tweak, uses a *different secret key*
and tweaks it.  This was an early experiment: we will switch to using
a secret tweak for invoice_requests like we do for invoice path ids.

To make sure there's no funny business, *hsmd* hashes to form the
tweak (i.e. no zero tweaks!).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-01 12:31:48 +09:30

19 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
269# Prior to HSM_VERSION 6 we will return an old_commitment_secret
270msgtype,hsmd_get_per_commitment_point,18
271msgdata,hsmd_get_per_commitment_point,n,u64,
272# IMPORTANT - Beginning HSM_VERSION 6 we never return an old_commitment_secret
273msgtype,hsmd_get_per_commitment_point_reply,118
274msgdata,hsmd_get_per_commitment_point_reply,per_commitment_point,pubkey,
275msgdata,hsmd_get_per_commitment_point_reply,old_commitment_secret,?secret,
276# master -> hsmd: do you have a memleak?
277msgtype,hsmd_dev_memleak,33
278msgtype,hsmd_dev_memleak_reply,133
279msgdata,hsmd_dev_memleak_reply,leak,bool,
280# channeld asks to check if claimed future commitment_secret is correct.
281msgtype,hsmd_check_future_secret,22
282msgdata,hsmd_check_future_secret,n,u64,
283msgdata,hsmd_check_future_secret,commitment_secret,secret,
284msgtype,hsmd_check_future_secret_reply,122
285msgdata,hsmd_check_future_secret_reply,correct,bool,
286# lightningd asks us to sign a string.
287msgtype,hsmd_sign_message,23
288msgdata,hsmd_sign_message,len,u16,
289msgdata,hsmd_sign_message,msg,u8,len
290msgtype,hsmd_sign_message_reply,123
291msgdata,hsmd_sign_message_reply,sig,secp256k1_ecdsa_recoverable_signature,
292# lightningd needs to get a scriptPubkey for a utxo with closeinfo
293msgtype,hsmd_get_output_scriptpubkey,24
294msgdata,hsmd_get_output_scriptpubkey,channel_id,u64,
295msgdata,hsmd_get_output_scriptpubkey,peer_id,node_id,
296msgdata,hsmd_get_output_scriptpubkey,commitment_point,?pubkey,
297msgtype,hsmd_get_output_scriptpubkey_reply,124
298msgdata,hsmd_get_output_scriptpubkey_reply,script_len,u16,
299msgdata,hsmd_get_output_scriptpubkey_reply,script,u8,script_len
300# Sign a bolt12-style merkle hash
301msgtype,hsmd_sign_bolt12,25
302msgdata,hsmd_sign_bolt12,messagename,wirestring,
303msgdata,hsmd_sign_bolt12,fieldname,wirestring,
304msgdata,hsmd_sign_bolt12,merkleroot,sha256,
305# This is for invreq payer_id (temporary keys)
306msgdata,hsmd_sign_bolt12,publictweaklen,u16,
307msgdata,hsmd_sign_bolt12,publictweak,u8,publictweaklen
308msgtype,hsmd_sign_bolt12_reply,125
309msgdata,hsmd_sign_bolt12_reply,sig,bip340sig,
310# Sign a bolt12-style merkle hash (modern)
311msgtype,hsmd_sign_bolt12_2,41
312msgdata,hsmd_sign_bolt12_2,messagename,wirestring,
313msgdata,hsmd_sign_bolt12_2,fieldname,wirestring,
314msgdata,hsmd_sign_bolt12_2,merkleroot,sha256,
315# This is for signing with an alias (temporary key), used if *publictweak* not empty.
316# derive_secret with info, then tweak privkey with SHA256(derived_secret || publictweak).
317msgdata,hsmd_sign_bolt12_2,infolen,u16,
318msgdata,hsmd_sign_bolt12_2,info,u8,infolen
319msgdata,hsmd_sign_bolt12_2,publictweaklen,u16,
320msgdata,hsmd_sign_bolt12_2,publictweak,u8,publictweaklen
321msgtype,hsmd_sign_bolt12_2_reply,141
322msgdata,hsmd_sign_bolt12_2_reply,sig,bip340sig,
323# Sign an option_will_fund offer hash
324msgtype,hsmd_sign_option_will_fund_offer,26
325msgdata,hsmd_sign_option_will_fund_offer,funding_pubkey,pubkey,
326msgdata,hsmd_sign_option_will_fund_offer,blockheight,u32,
327msgdata,hsmd_sign_option_will_fund_offer,channel_fee_base_max_msat,u32,
328msgdata,hsmd_sign_option_will_fund_offer,channel_fee_proportional_basis_max,u16,
329msgtype,hsmd_sign_option_will_fund_offer_reply,126
330msgdata,hsmd_sign_option_will_fund_offer_reply,rsig,secp256k1_ecdsa_signature,
331# Derive pseudorandom secret
332msgtype,hsmd_derive_secret,27
333msgdata,hsmd_derive_secret,len,u16,
334msgdata,hsmd_derive_secret,info,u8,len
335# Reply with the derived secret
336msgtype,hsmd_derive_secret_reply,127
337msgdata,hsmd_derive_secret_reply,secret,secret,
338# Sanity check this pubkey derivation is correct (unhardened only)
339msgtype,hsmd_check_pubkey,28
340msgdata,hsmd_check_pubkey,index,u32,
341msgdata,hsmd_check_pubkey,pubkey,pubkey,
342# Reply
343msgtype,hsmd_check_pubkey_reply,128
344msgdata,hsmd_check_pubkey_reply,ok,bool,
345msgtype,hsmd_sign_anchorspend,147
346msgdata,hsmd_sign_anchorspend,peerid,node_id,
347msgdata,hsmd_sign_anchorspend,channel_dbid,u64,
348msgdata,hsmd_sign_anchorspend,num_inputs,u16,
349msgdata,hsmd_sign_anchorspend,inputs,utxo,num_inputs
350msgdata,hsmd_sign_anchorspend,psbt,wally_psbt,
351msgtype,hsmd_sign_anchorspend_reply,148
352msgdata,hsmd_sign_anchorspend_reply,psbt,wally_psbt,
353# These are where lightningd asks for signatures on onchaind's behalf.
354msgtype,hsmd_sign_any_delayed_payment_to_us,142
355msgdata,hsmd_sign_any_delayed_payment_to_us,commit_num,u64,
356msgdata,hsmd_sign_any_delayed_payment_to_us,tx,bitcoin_tx,
357msgdata,hsmd_sign_any_delayed_payment_to_us,wscript_len,u16,
358msgdata,hsmd_sign_any_delayed_payment_to_us,wscript,u8,wscript_len
359msgdata,hsmd_sign_any_delayed_payment_to_us,input,u32,
360msgdata,hsmd_sign_any_delayed_payment_to_us,peerid,node_id,
361msgdata,hsmd_sign_any_delayed_payment_to_us,channel_dbid,u64,
362msgtype,hsmd_sign_any_remote_htlc_to_us,143
363msgdata,hsmd_sign_any_remote_htlc_to_us,remote_per_commitment_point,pubkey,
364msgdata,hsmd_sign_any_remote_htlc_to_us,tx,bitcoin_tx,
365msgdata,hsmd_sign_any_remote_htlc_to_us,wscript_len,u16,
366msgdata,hsmd_sign_any_remote_htlc_to_us,wscript,u8,wscript_len
367msgdata,hsmd_sign_any_remote_htlc_to_us,option_anchor_outputs,bool,
368msgdata,hsmd_sign_any_remote_htlc_to_us,input,u32,
369msgdata,hsmd_sign_any_remote_htlc_to_us,peerid,node_id,
370msgdata,hsmd_sign_any_remote_htlc_to_us,channel_dbid,u64,
371msgtype,hsmd_sign_any_penalty_to_us,144
372msgdata,hsmd_sign_any_penalty_to_us,revocation_secret,secret,
373msgdata,hsmd_sign_any_penalty_to_us,tx,bitcoin_tx,
374msgdata,hsmd_sign_any_penalty_to_us,wscript_len,u16,
375msgdata,hsmd_sign_any_penalty_to_us,wscript,u8,wscript_len
376msgdata,hsmd_sign_any_penalty_to_us,input,u32,
377msgdata,hsmd_sign_any_penalty_to_us,peerid,node_id,
378msgdata,hsmd_sign_any_penalty_to_us,channel_dbid,u64,
379msgtype,hsmd_sign_any_local_htlc_tx,146
380msgdata,hsmd_sign_any_local_htlc_tx,commit_num,u64,
381msgdata,hsmd_sign_any_local_htlc_tx,tx,bitcoin_tx,
382msgdata,hsmd_sign_any_local_htlc_tx,wscript_len,u16,
383msgdata,hsmd_sign_any_local_htlc_tx,wscript,u8,wscript_len
384msgdata,hsmd_sign_any_local_htlc_tx,option_anchor_outputs,bool,
385msgdata,hsmd_sign_any_local_htlc_tx,input,u32,
386msgdata,hsmd_sign_any_local_htlc_tx,peerid,node_id,
387msgdata,hsmd_sign_any_local_htlc_tx,channel_dbid,u64,
388msgtype,hsmd_sign_htlc_tx_mingle,149
389msgdata,hsmd_sign_htlc_tx_mingle,peerid,node_id,
390msgdata,hsmd_sign_htlc_tx_mingle,channel_dbid,u64,
391msgdata,hsmd_sign_htlc_tx_mingle,num_inputs,u16,
392msgdata,hsmd_sign_htlc_tx_mingle,inputs,utxo,num_inputs
393msgdata,hsmd_sign_htlc_tx_mingle,psbt,wally_psbt,
394msgtype,hsmd_sign_htlc_tx_mingle_reply,150
395msgdata,hsmd_sign_htlc_tx_mingle_reply,psbt,wally_psbt,