daemon: primitive privkey handling.

Eventually this will be in a separate process, etc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-01-22 06:41:48 +10:30
parent 29c8611e53
commit 9449f387ac
5 changed files with 117 additions and 1 deletions

15
daemon/secrets.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef LIGHTNING_DAEMON_SECRETS_H
#define LIGHTNING_DAEMON_SECRETS_H
/* Routines to handle private keys. */
#include "config.h"
struct peer;
struct lightningd_state;
struct signature;
void privkey_sign(struct peer *peer, const void *src, size_t len,
struct signature *sig);
void secrets_init(struct lightningd_state *state);
#endif /* LIGHTNING_DAEMON_SECRETS_H */