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

Function psbt_from_b64

bitcoin/psbt.c:665–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663}
664
665struct wally_psbt *psbt_from_b64(const tal_t *ctx,
666 const char *b64,
667 size_t b64len)
668{
669 struct wally_psbt *psbt;
670 char *str = tal_strndup(tmpctx, b64, b64len);
671
672 tal_wally_start();
673 if (wally_psbt_from_base64(str, &psbt) == WALLY_OK)
674 tal_add_destructor(psbt, psbt_destroy);
675 else
676 psbt = NULL;
677 tal_wally_end_onto(ctx, psbt, struct wally_psbt);
678
679 return psbt;
680}
681
682char *psbt_to_b64(const tal_t *ctx, const struct wally_psbt *psbt)
683{

Callers 9

json_to_psbtFunction · 0.85
param_psbtFunction · 0.85
check_psbt_comparisonFunction · 0.85
json_tok_psbtFunction · 0.85
after_signpsbtFunction · 0.85
after_fundpsbtFunction · 0.85
mw_after_fundpsbtFunction · 0.85
mw_after_signpsbtFunction · 0.85

Calls 1

tal_wally_startFunction · 0.85

Tested by 2

check_psbt_comparisonFunction · 0.68