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.
17 lines
462 B
17 lines
462 B
/* API to ask the HSM for things. */
|
|
#ifndef LIGHTNING_LIGHTNINGD_HSM_H
|
|
#define LIGHTNING_LIGHTNINGD_HSM_H
|
|
#include "config.h"
|
|
#include <ccan/endian/endian.h>
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct pubkey;
|
|
struct sha256;
|
|
|
|
/* Setup communication to the HSM */
|
|
void hsm_setup(int fd);
|
|
|
|
/* Do ECDH using this node id secret. */
|
|
bool hsm_do_ecdh(struct sha256 *ss, const struct pubkey *point);
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_H */
|
|
|