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

Function psbt_to_b64

bitcoin/psbt.c:682–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682char *psbt_to_b64(const tal_t *ctx, const struct wally_psbt *psbt)
683{
684 char *serialized_psbt;
685 int ret;
686
687 tal_wally_start();
688 ret = wally_psbt_to_base64(psbt, 0, &serialized_psbt);
689 assert(ret == WALLY_OK);
690 tal_wally_end_onto(ctx, serialized_psbt, char);
691
692 return serialized_psbt;
693}
694REGISTER_TYPE_TO_STRING(wally_psbt, psbt_to_b64);
695
696const u8 *psbt_get_bytes(const tal_t *ctx, const struct wally_psbt *psbt,

Callers 2

json_add_psbtFunction · 0.85
mw_after_fundpsbtFunction · 0.85

Calls 1

tal_wally_startFunction · 0.85

Tested by

no test coverage detected