You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7.8 KiB

1# Clients should not give a bad request but not the HSM's decision to crash.
2#include <bitcoin/chainparams.h>
3# Start the HSM.
4#include <common/bip32.h>
5# Which identity to use for requests
6#include <common/derive_basepoints.h>
7# Get the basepoints and funding key for this specific channel.
8# Return signature for a funding tx.
9#include <common/utxo.h>
10# Master asks the HSM to sign a node_announcement
11# Sign a withdrawal request
12#include <bitcoin/psbt.h>
13# Sign an invoice
14# Master asks HSM to sign a commitment transaction.
15# of keys is derived differently...
16# Onchaind asks HSM to sign a local HTLC success or HTLC timeout tx.
17# Openingd/channeld asks HSM to sign the other sides' commitment tx.
18# channeld asks HSM to sign remote HTLC tx.
19# closingd asks HSM to sign mutual close tx.
20# Reply for all the above requests.
21# master -> hsmd: do you have a memleak?
22# channeld asks to check if claimed future commitment_secret is correct.
23# lightningd asks us to sign a string.
24# lightningd needs to get a scriptPubkey for a utxo with closeinfo
25# Sign a bolt12-style merkle hash