2017-02-02 05:05:45 +01:00
|
|
|
#ifndef LIGHTNING_BITCOIN_PREIMAGE_H
|
|
|
|
#define LIGHTNING_BITCOIN_PREIMAGE_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
2018-07-04 07:30:02 +02:00
|
|
|
#include <ccan/structeq/structeq.h>
|
2017-02-02 05:05:45 +01:00
|
|
|
|
|
|
|
struct preimage {
|
|
|
|
u8 r[32];
|
|
|
|
};
|
2018-07-04 07:30:02 +02:00
|
|
|
/* Define preimage_eq */
|
|
|
|
STRUCTEQ_DEF(preimage, 0, r);
|
|
|
|
|
2020-05-15 12:31:24 +02:00
|
|
|
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage);
|
|
|
|
void towire_preimage(u8 **pptr, const struct preimage *preimage);
|
|
|
|
|
2017-02-02 05:05:45 +01:00
|
|
|
#endif /* LIGHTNING_BITCOIN_PREIMAGE_H */
|