2015-06-26 03:24:07 +01:00
|
|
|
#ifndef LIGHTNING_BITCOIN_PRIVKEY_H
|
|
|
|
#define LIGHTNING_BITCOIN_PRIVKEY_H
|
2016-01-21 20:08:08 +00:00
|
|
|
#include "config.h"
|
2015-06-26 03:24:07 +01:00
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
|
2017-05-06 03:19:44 +01:00
|
|
|
/* General 256-bit secret, which must be private. Used in various places. */
|
|
|
|
struct secret {
|
|
|
|
u8 data[32];
|
|
|
|
};
|
|
|
|
|
2015-06-26 03:24:07 +01:00
|
|
|
/* This is a private key. Keep it secret. */
|
|
|
|
struct privkey {
|
2017-05-06 03:19:44 +01:00
|
|
|
struct secret secret;
|
2015-06-26 03:24:07 +01:00
|
|
|
};
|
|
|
|
#endif /* LIGHTNING_BITCOIN_PRIVKEY_H */
|