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

Function opt_set_secret

devtools/gossipwith.c:307–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307static char *opt_set_secret(const char *arg, struct secret *s)
308{
309 if (!hex_decode(arg, strlen(arg), s->data, sizeof(s->data)))
310 return "secret must be 64 hex digits";
311 return NULL;
312}
313
314static bool opt_show_secret(char *buf, size_t len, const struct secret *s)
315{

Callers

nothing calls this directly

Calls 1

hex_decodeFunction · 0.85

Tested by

no test coverage detected