type_to_string: support preimage.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-09-16 09:04:06 +09:30
parent 86313383a7
commit 9123d6d45e

View File

@@ -1,3 +1,4 @@
#include <bitcoin/preimage.h>
#include <ccan/crypto/ripemd160/ripemd160.h>
#include <ccan/crypto/sha256/sha256.h>
#include <ccan/tal/str/str.h>
@@ -8,6 +9,8 @@
/* We need at least one, and these are in CCAN so register it here. */
REGISTER_TYPE_TO_HEXSTR(sha256);
REGISTER_TYPE_TO_HEXSTR(ripemd160);
/* This one in bitcoin/ but doesn't have its own C file */
REGISTER_TYPE_TO_HEXSTR(preimage);
char *type_to_string_(const tal_t *ctx, const char *typename,
union printable_types u)