mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
bbed5e3411
We leave the *build* results in lightningd/ for ease of in-place testing though. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
18 lines
483 B
C
18 lines
483 B
C
/* API to ask the HSM for things. */
|
|
#ifndef LIGHTNING_LIGHTNINGD_HSM_CLIENT_H
|
|
#define LIGHTNING_LIGHTNINGD_HSM_CLIENT_H
|
|
#include "config.h"
|
|
#include <ccan/endian/endian.h>
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct pubkey;
|
|
struct secret;
|
|
|
|
/* Setup communication to the HSM */
|
|
void hsm_setup(int fd);
|
|
|
|
/* Do ECDH using this node id secret. */
|
|
bool hsm_do_ecdh(struct secret *ss, const struct pubkey *point);
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_CLIENT_H */
|