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

Function fmt_scriptpubkey

plugins/bwatch/bwatch_store.c:300–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300static char *fmt_scriptpubkey(const tal_t *ctx,
301 const struct scriptpubkey *scriptpubkey)
302{
303 return tal_hexstr(ctx, scriptpubkey->script, scriptpubkey->len);
304}
305
306/* Build the datastore key path for a watch. All watch types share the
307 * ["bwatch", <type>, <stringified-key>] layout; only the key payload

Callers 1

get_watch_datastore_keyFunction · 0.85

Calls 1

tal_hexstrFunction · 0.85

Tested by

no test coverage detected