mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
wire: move towire/fromwire_preimage out to bitcoin/preimage.c.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
27220646c3
commit
4dbfce6057
@ -5,6 +5,7 @@ BITCOIN_SRC := \
|
|||||||
bitcoin/block.c \
|
bitcoin/block.c \
|
||||||
bitcoin/chainparams.c \
|
bitcoin/chainparams.c \
|
||||||
bitcoin/locktime.c \
|
bitcoin/locktime.c \
|
||||||
|
bitcoin/preimage.c \
|
||||||
bitcoin/privkey.c \
|
bitcoin/privkey.c \
|
||||||
bitcoin/pubkey.c \
|
bitcoin/pubkey.c \
|
||||||
bitcoin/pullpush.c \
|
bitcoin/pullpush.c \
|
||||||
|
14
bitcoin/preimage.c
Normal file
14
bitcoin/preimage.c
Normal file
@ -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));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -10,4 +10,7 @@ struct preimage {
|
|||||||
/* Define preimage_eq */
|
/* Define preimage_eq */
|
||||||
STRUCTEQ_DEF(preimage, 0, r);
|
STRUCTEQ_DEF(preimage, 0, r);
|
||||||
|
|
||||||
|
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage);
|
||||||
|
void towire_preimage(u8 **pptr, const struct preimage *preimage);
|
||||||
|
|
||||||
#endif /* LIGHTNING_BITCOIN_PREIMAGE_H */
|
#endif /* LIGHTNING_BITCOIN_PREIMAGE_H */
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
#include <wire/wire.h>
|
#include <wire/wire.h>
|
||||||
|
|
||||||
/* AUTOGENERATED MOCKS START */
|
/* AUTOGENERATED MOCKS START */
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -28,6 +31,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -31,6 +31,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -77,6 +80,9 @@ void json_object_end(struct json_stream *js UNNEEDED)
|
|||||||
/* Generated stub for json_object_start */
|
/* Generated stub for json_object_start */
|
||||||
void json_object_start(struct json_stream *ks UNNEEDED, const char *fieldname UNNEEDED)
|
void json_object_start(struct json_stream *ks UNNEEDED, const char *fieldname UNNEEDED)
|
||||||
{ fprintf(stderr, "json_object_start called!\n"); abort(); }
|
{ fprintf(stderr, "json_object_start called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -27,6 +27,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -51,6 +54,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -27,6 +27,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -60,6 +63,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -27,6 +27,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -51,6 +54,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
#include "../utxo.c"
|
#include "../utxo.c"
|
||||||
|
|
||||||
/* AUTOGENERATED MOCKS START */
|
/* AUTOGENERATED MOCKS START */
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -57,6 +60,9 @@ u64 fromwire_u64(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -30,6 +30,9 @@ size_t bigsize_get(const u8 *p UNNEEDED, size_t max UNNEEDED, bigsize_t *val UNN
|
|||||||
/* Generated stub for memleak_remove_htable */
|
/* Generated stub for memleak_remove_htable */
|
||||||
void memleak_remove_htable(struct htable *memtable UNNEEDED, const struct htable *ht UNNEEDED)
|
void memleak_remove_htable(struct htable *memtable UNNEEDED, const struct htable *ht UNNEEDED)
|
||||||
{ fprintf(stderr, "memleak_remove_htable called!\n"); abort(); }
|
{ fprintf(stderr, "memleak_remove_htable called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -23,6 +23,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -69,6 +72,9 @@ void json_object_end(struct json_stream *js UNNEEDED)
|
|||||||
/* Generated stub for json_object_start */
|
/* Generated stub for json_object_start */
|
||||||
void json_object_start(struct json_stream *ks UNNEEDED, const char *fieldname UNNEEDED)
|
void json_object_start(struct json_stream *ks UNNEEDED, const char *fieldname UNNEEDED)
|
||||||
{ fprintf(stderr, "json_object_start called!\n"); abort(); }
|
{ fprintf(stderr, "json_object_start called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -28,6 +28,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -52,6 +55,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -27,6 +27,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -51,6 +54,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -23,6 +23,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -47,6 +50,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -30,6 +30,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -54,6 +57,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -30,6 +30,9 @@ bool amount_sat_eq(struct amount_sat a UNNEEDED, struct amount_sat b UNNEEDED)
|
|||||||
struct amount_sat a UNNEEDED,
|
struct amount_sat a UNNEEDED,
|
||||||
struct amount_sat b UNNEEDED)
|
struct amount_sat b UNNEEDED)
|
||||||
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
{ fprintf(stderr, "amount_sat_sub called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -54,6 +57,9 @@ u16 fromwire_u16(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
|||||||
/* Generated stub for fromwire_u8 */
|
/* Generated stub for fromwire_u8 */
|
||||||
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
u8 fromwire_u8(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_u8 called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -27,6 +27,9 @@ bool derive_keyset(const struct pubkey *per_commitment_point UNNEEDED,
|
|||||||
/* Generated stub for dump_memleak */
|
/* Generated stub for dump_memleak */
|
||||||
bool dump_memleak(struct htable *memtable UNNEEDED)
|
bool dump_memleak(struct htable *memtable UNNEEDED)
|
||||||
{ fprintf(stderr, "dump_memleak called!\n"); abort(); }
|
{ fprintf(stderr, "dump_memleak called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -202,6 +205,9 @@ u8 *to_self_wscript(const tal_t *ctx UNNEEDED,
|
|||||||
u16 to_self_delay UNNEEDED,
|
u16 to_self_delay UNNEEDED,
|
||||||
const struct keyset *keyset UNNEEDED)
|
const struct keyset *keyset UNNEEDED)
|
||||||
{ fprintf(stderr, "to_self_wscript called!\n"); abort(); }
|
{ fprintf(stderr, "to_self_wscript called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -28,6 +28,9 @@ bool derive_keyset(const struct pubkey *per_commitment_point UNNEEDED,
|
|||||||
/* Generated stub for dump_memleak */
|
/* Generated stub for dump_memleak */
|
||||||
bool dump_memleak(struct htable *memtable UNNEEDED)
|
bool dump_memleak(struct htable *memtable UNNEEDED)
|
||||||
{ fprintf(stderr, "dump_memleak called!\n"); abort(); }
|
{ fprintf(stderr, "dump_memleak called!\n"); abort(); }
|
||||||
|
/* Generated stub for fromwire */
|
||||||
|
const u8 *fromwire(const u8 **cursor UNNEEDED, size_t *max UNNEEDED, void *copy UNNEEDED, size_t n UNNEEDED)
|
||||||
|
{ fprintf(stderr, "fromwire called!\n"); abort(); }
|
||||||
/* Generated stub for fromwire_amount_sat */
|
/* Generated stub for fromwire_amount_sat */
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
struct amount_sat fromwire_amount_sat(const u8 **cursor UNNEEDED, size_t *max UNNEEDED)
|
||||||
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "fromwire_amount_sat called!\n"); abort(); }
|
||||||
@ -217,6 +220,9 @@ u8 *to_self_wscript(const tal_t *ctx UNNEEDED,
|
|||||||
u16 to_self_delay UNNEEDED,
|
u16 to_self_delay UNNEEDED,
|
||||||
const struct keyset *keyset UNNEEDED)
|
const struct keyset *keyset UNNEEDED)
|
||||||
{ fprintf(stderr, "to_self_wscript called!\n"); abort(); }
|
{ fprintf(stderr, "to_self_wscript called!\n"); abort(); }
|
||||||
|
/* Generated stub for towire */
|
||||||
|
void towire(u8 **pptr UNNEEDED, const void *data UNNEEDED, size_t len UNNEEDED)
|
||||||
|
{ fprintf(stderr, "towire called!\n"); abort(); }
|
||||||
/* Generated stub for towire_amount_sat */
|
/* Generated stub for towire_amount_sat */
|
||||||
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
void towire_amount_sat(u8 **pptr UNNEEDED, const struct amount_sat sat UNNEEDED)
|
||||||
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
{ fprintf(stderr, "towire_amount_sat called!\n"); abort(); }
|
||||||
|
@ -74,7 +74,7 @@ wire/gen_peer_wire_csv wire/gen_onion_wire_csv: config.vars
|
|||||||
# for testing and to prevent compile error about them being unused.
|
# for testing and to prevent compile error about them being unused.
|
||||||
# This will be easier if test vectors are moved to separate files.
|
# This will be easier if test vectors are moved to separate files.
|
||||||
wire/gen_peer_wire.h: wire/gen_peer_wire_csv $(WIRE_BOLT_DEPS) wire/Makefile
|
wire/gen_peer_wire.h: wire/gen_peer_wire_csv $(WIRE_BOLT_DEPS) wire/Makefile
|
||||||
$(BOLT_GEN) --include='common/channel_id.h' --include='bitcoin/tx.h' -s --expose-tlv-type=n1 --expose-tlv-type=n2 --page header $@ wire_type < $< > $@
|
$(BOLT_GEN) --include='common/channel_id.h' --include='bitcoin/tx.h' --include='bitcoin/preimage.h' -s --expose-tlv-type=n1 --expose-tlv-type=n2 --page header $@ wire_type < $< > $@
|
||||||
|
|
||||||
wire/gen_peer_wire.c: wire/gen_peer_wire_csv $(WIRE_BOLT_DEPS) wire/Makefile
|
wire/gen_peer_wire.c: wire/gen_peer_wire_csv $(WIRE_BOLT_DEPS) wire/Makefile
|
||||||
$(BOLT_GEN) -s --expose-tlv-type=n1 --expose-tlv-type=n2 --page impl ${@:.c=.h} wire_type < $< > $@
|
$(BOLT_GEN) -s --expose-tlv-type=n1 --expose-tlv-type=n2 --page impl ${@:.c=.h} wire_type < $< > $@
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "wire.h"
|
#include "wire.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <bitcoin/chainparams.h>
|
#include <bitcoin/chainparams.h>
|
||||||
#include <bitcoin/preimage.h>
|
|
||||||
#include <bitcoin/pubkey.h>
|
#include <bitcoin/pubkey.h>
|
||||||
#include <bitcoin/shadouble.h>
|
#include <bitcoin/shadouble.h>
|
||||||
#include <bitcoin/tx.h>
|
#include <bitcoin/tx.h>
|
||||||
@ -266,11 +265,6 @@ void fromwire_sha256_double(const u8 **cursor, size_t *max,
|
|||||||
fromwire_sha256(cursor, max, &sha256d->sha);
|
fromwire_sha256(cursor, max, &sha256d->sha);
|
||||||
}
|
}
|
||||||
|
|
||||||
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage)
|
|
||||||
{
|
|
||||||
fromwire(cursor, max, preimage, sizeof(*preimage));
|
|
||||||
}
|
|
||||||
|
|
||||||
void fromwire_ripemd160(const u8 **cursor, size_t *max, struct ripemd160 *ripemd)
|
void fromwire_ripemd160(const u8 **cursor, size_t *max, struct ripemd160 *ripemd)
|
||||||
{
|
{
|
||||||
fromwire(cursor, max, ripemd, sizeof(*ripemd));
|
fromwire(cursor, max, ripemd, sizeof(*ripemd));
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#include "wire.h"
|
#include "wire.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <bitcoin/chainparams.h>
|
|
||||||
#include <bitcoin/preimage.h>
|
|
||||||
#include <bitcoin/shadouble.h>
|
|
||||||
#include <ccan/crypto/ripemd160/ripemd160.h>
|
#include <ccan/crypto/ripemd160/ripemd160.h>
|
||||||
#include <ccan/crypto/siphash24/siphash24.h>
|
#include <ccan/crypto/siphash24/siphash24.h>
|
||||||
#include <ccan/endian/endian.h>
|
#include <ccan/endian/endian.h>
|
||||||
@ -172,11 +169,6 @@ void towire_sha256_double(u8 **pptr, const struct sha256_double *sha256d)
|
|||||||
towire_sha256(pptr, &sha256d->sha);
|
towire_sha256(pptr, &sha256d->sha);
|
||||||
}
|
}
|
||||||
|
|
||||||
void towire_preimage(u8 **pptr, const struct preimage *preimage)
|
|
||||||
{
|
|
||||||
towire(pptr, preimage, sizeof(*preimage));
|
|
||||||
}
|
|
||||||
|
|
||||||
void towire_ripemd160(u8 **pptr, const struct ripemd160 *ripemd)
|
void towire_ripemd160(u8 **pptr, const struct ripemd160 *ripemd)
|
||||||
{
|
{
|
||||||
towire(pptr, ripemd, sizeof(*ripemd));
|
towire(pptr, ripemd, sizeof(*ripemd));
|
||||||
|
@ -18,11 +18,9 @@
|
|||||||
#include <secp256k1_recovery.h>
|
#include <secp256k1_recovery.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
struct preimage;
|
struct preimage;
|
||||||
struct ripemd160;
|
struct ripemd160;
|
||||||
struct siphash_seed;
|
struct siphash_seed;
|
||||||
struct witscript;
|
|
||||||
|
|
||||||
/* Makes generate-wire.py work */
|
/* Makes generate-wire.py work */
|
||||||
typedef char wirestring;
|
typedef char wirestring;
|
||||||
@ -52,7 +50,6 @@ void towire_short_channel_id_dir(u8 **pptr,
|
|||||||
const struct short_channel_id_dir *scidd);
|
const struct short_channel_id_dir *scidd);
|
||||||
void towire_sha256(u8 **pptr, const struct sha256 *sha256);
|
void towire_sha256(u8 **pptr, const struct sha256 *sha256);
|
||||||
void towire_sha256_double(u8 **pptr, const struct sha256_double *sha256d);
|
void towire_sha256_double(u8 **pptr, const struct sha256_double *sha256d);
|
||||||
void towire_preimage(u8 **pptr, const struct preimage *preimage);
|
|
||||||
void towire_ripemd160(u8 **pptr, const struct ripemd160 *ripemd);
|
void towire_ripemd160(u8 **pptr, const struct ripemd160 *ripemd);
|
||||||
void towire_amount_msat(u8 **pptr, const struct amount_msat msat);
|
void towire_amount_msat(u8 **pptr, const struct amount_msat msat);
|
||||||
void towire_amount_sat(u8 **pptr, const struct amount_sat sat);
|
void towire_amount_sat(u8 **pptr, const struct amount_sat sat);
|
||||||
@ -102,7 +99,6 @@ void fromwire_short_channel_id_dir(const u8 **cursor, size_t *max,
|
|||||||
void fromwire_sha256(const u8 **cursor, size_t *max, struct sha256 *sha256);
|
void fromwire_sha256(const u8 **cursor, size_t *max, struct sha256 *sha256);
|
||||||
void fromwire_sha256_double(const u8 **cursor, size_t *max,
|
void fromwire_sha256_double(const u8 **cursor, size_t *max,
|
||||||
struct sha256_double *sha256d);
|
struct sha256_double *sha256d);
|
||||||
void fromwire_preimage(const u8 **cursor, size_t *max, struct preimage *preimage);
|
|
||||||
void fromwire_ripemd160(const u8 **cursor, size_t *max, struct ripemd160 *ripemd);
|
void fromwire_ripemd160(const u8 **cursor, size_t *max, struct ripemd160 *ripemd);
|
||||||
struct amount_msat fromwire_amount_msat(const u8 **cursor, size_t *max);
|
struct amount_msat fromwire_amount_msat(const u8 **cursor, size_t *max);
|
||||||
struct amount_sat fromwire_amount_sat(const u8 **cursor, size_t *max);
|
struct amount_sat fromwire_amount_sat(const u8 **cursor, size_t *max);
|
||||||
|
Loading…
Reference in New Issue
Block a user