mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +01:00
15 lines
309 B
C
15 lines
309 B
C
|
#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));
|
||
|
}
|
||
|
|
||
|
|