mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
32631b4278
For our own internal comms CSVs, we should always name explicit types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2.1 KiB
2.1 KiB
1 | # Clients should not give a bad request but not the HSM's decision to crash. |
---|---|
2 | hsmstatus_client_bad_request,1000 |
3 | hsmstatus_client_bad_request,,unique_id,u64 |
4 | hsmstatus_client_bad_request,,len,u16 |
5 | hsmstatus_client_bad_request,,msg,len*u8 |
6 | # Start the HSM. |
7 | hsmctl_init,1 |
8 | hsmctl_init,,new,bool |
9 | #include <common/bip32.h> |
10 | hsmctl_init_reply,101 |
11 | hsmctl_init_reply,,node_id,struct pubkey |
12 | hsmctl_init_reply,,peer_seed,struct secret |
13 | hsmctl_init_reply,,bip32,struct ext_key |
14 | # ECDH returns an fd. |
15 | hsmctl_hsmfd_ecdh,3 |
16 | hsmctl_hsmfd_ecdh,,unique_id,u64 |
17 | # No contents, just an fd. |
18 | hsmctl_hsmfd_ecdh_fd_reply,103 |
19 | # Return signature for a funding tx. |
20 | #include <common/utxo.h> |
21 | # FIXME: This should also take their commit sig & details, to verify. |
22 | hsmctl_sign_funding,4 |
23 | hsmctl_sign_funding,,satoshi_out,u64 |
24 | hsmctl_sign_funding,,change_out,u64 |
25 | hsmctl_sign_funding,,change_keyindex,u32 |
26 | hsmctl_sign_funding,,our_pubkey,struct pubkey |
27 | hsmctl_sign_funding,,their_pubkey,struct pubkey |
28 | hsmctl_sign_funding,,num_inputs,u16 |
29 | hsmctl_sign_funding,,inputs,num_inputs*struct utxo |
30 | hsmctl_sign_funding_reply,104 |
31 | hsmctl_sign_funding_reply,,num_sigs,u16 |
32 | hsmctl_sign_funding_reply,,sig,num_sigs*secp256k1_ecdsa_signature |
33 | # Request a client socket for a `channeld`, allows signing announcements |
34 | hsmctl_hsmfd_channeld,5 |
35 | hsmctl_hsmfd_channeld,,unique_id,u64 |
36 | # Empty reply, just an fd |
37 | hsmctl_hsmfd_channeld_reply,105 |
38 | # Master asks the HSM to sign a node_announcement |
39 | hsmctl_node_announcement_sig_req,6 |
40 | hsmctl_node_announcement_sig_req,,annlen,u16 |
41 | hsmctl_node_announcement_sig_req,,announcement,annlen*u8 |
42 | hsmctl_node_announcement_sig_reply,106 |
43 | hsmctl_node_announcement_sig_reply,,signature,secp256k1_ecdsa_signature |
44 | # Sign a withdrawal request |
45 | hsmctl_sign_withdrawal,7 |
46 | hsmctl_sign_withdrawal,,satoshi_out,u64 |
47 | hsmctl_sign_withdrawal,,change_out,u64 |
48 | hsmctl_sign_withdrawal,,change_keyindex,u32 |
49 | hsmctl_sign_withdrawal,,pkh,20*u8 |
50 | hsmctl_sign_withdrawal,,num_inputs,u16 |
51 | hsmctl_sign_withdrawal,,inputs,num_inputs*struct utxo |
52 | hsmctl_sign_withdrawal_reply,107 |
53 | hsmctl_sign_withdrawal_reply,,num_sigs,u16 |
54 | hsmctl_sign_withdrawal_reply,,sig,num_sigs*secp256k1_ecdsa_signature |