mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
For future reference, done via: for f in `find wire/ bitcoin/ common/ lightningd -name '*.h' ! -name 'gen*'`; do ID=`echo -n LIGHTNING/$f | tr 'a-z' 'A-Z' | tr -cs 'A-Z0-9' _`; sed 's/^#\(ifndef\|define\) .*_H$/#\1 '$ID/ < $f | sed 's,#endif /..*_H ./$,#endif /* '$ID' */,' | bagto $f; done Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
17 lines
483 B
C
17 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 */
|