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