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.
13 lines
447 B
13 lines
447 B
#ifndef LIGHTNING_BITCOIN_SHADOUBLE_H
|
|
#define LIGHTNING_BITCOIN_SHADOUBLE_H
|
|
#include <ccan/crypto/sha256/sha256.h>
|
|
|
|
/* To explicitly distinguish between single sha and bitcoin's standard double */
|
|
struct sha256_double {
|
|
struct sha256 sha;
|
|
};
|
|
|
|
void sha256_double(struct sha256_double *shadouble, const void *p, size_t len);
|
|
|
|
void sha256_double_done(struct sha256_ctx *sha256, struct sha256_double *res);
|
|
#endif /* LIGHTNING_BITCOIN_SHADOUBLE_H */
|
|
|