MCPcopy Create free account
hub / github.com/ElementsProject/lightning / psbt_from_bytes

Function psbt_from_bytes

bitcoin/psbt.c:718–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718struct wally_psbt *psbt_from_bytes(const tal_t *ctx, const u8 *bytes,
719 size_t byte_len)
720{
721 struct wally_psbt *psbt;
722
723 tal_wally_start();
724 if (wally_psbt_from_bytes(bytes, byte_len, &psbt) == WALLY_OK)
725 tal_add_destructor(psbt, psbt_destroy);
726 else
727 psbt = NULL;
728 tal_wally_end_onto(ctx, psbt, struct wally_psbt);
729
730 return psbt;
731}
732
733void towire_wally_psbt(u8 **pptr, const struct wally_psbt *psbt)
734{

Callers 2

fromwire_wally_psbtFunction · 0.85
db_col_psbtFunction · 0.85

Calls 1

tal_wally_startFunction · 0.85

Tested by

no test coverage detected