mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
e02f5f5bb8
Importantly, adds the version number at the *front* to help future parsing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Header from folded patch 'fix-hsm-check-pubkey.patch': fixup! hsmd: capability addition: ability to check pubkeys.
25 lines
752 B
C
25 lines
752 B
C
#ifndef LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
struct lightningd;
|
|
struct node_id;
|
|
struct ext_key;
|
|
|
|
/* Ask HSM for a new fd for a subdaemon to use. */
|
|
int hsm_get_client_fd(struct lightningd *ld,
|
|
const struct node_id *id,
|
|
u64 dbid,
|
|
int capabilities);
|
|
|
|
/* Ask HSM for an fd for a global subdaemon to use (gossipd, connectd) */
|
|
int hsm_get_global_fd(struct lightningd *ld, int capabilities);
|
|
|
|
/* Is this capability supported by the HSM? (So far, always a message
|
|
* number) */
|
|
bool hsm_capable(struct lightningd *ld, u32 msgtype);
|
|
|
|
struct ext_key *hsm_init(struct lightningd *ld);
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_CONTROL_H */
|