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

Function towire_wally_psbt

bitcoin/psbt.c:733–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void towire_wally_psbt(u8 **pptr, const struct wally_psbt *psbt)
734{
735 /* Let's include the PSBT bytes */
736 size_t bytes_written;
737 const u8 *pbt_bytes = psbt_get_bytes(NULL, psbt, &bytes_written);
738 towire_u32(pptr, bytes_written);
739 towire_u8_array(pptr, pbt_bytes, bytes_written);
740 tal_free(pbt_bytes);
741}
742
743struct wally_psbt *fromwire_wally_psbt(const tal_t *ctx,
744 const u8 **cursor, size_t *max)

Callers 1

towire_bitcoin_txFunction · 0.70

Calls 4

psbt_get_bytesFunction · 0.85
tal_freeFunction · 0.85
towire_u32Function · 0.50
towire_u8_arrayFunction · 0.50

Tested by

no test coverage detected