Rusty Russell
5 years ago
committed by
Christian Decker
22 changed files with 106 additions and 19 deletions
@ -0,0 +1,14 @@ |
|||
#include <bitcoin/preimage.h> |
|||
#include <wire/wire.h> |
|||
|
|||
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage) |
|||
{ |
|||
fromwire(cursor, max, preimage, sizeof(*preimage)); |
|||
} |
|||
|
|||
void towire_preimage(u8 **pptr, const struct preimage *preimage) |
|||
{ |
|||
towire(pptr, preimage, sizeof(*preimage)); |
|||
} |
|||
|
|||
|
Loading…
Reference in new issue