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

Function secret_from_hex

common/test/run-key_derive.c:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101/* AUTOGENERATED MOCKS END */
102
103static struct secret secret_from_hex(const char *hex)
104{
105 struct secret s;
106 hex += 2;
107 if (!hex_decode(hex, strlen(hex), &s, sizeof(s)))
108 abort();
109 return s;
110}
111
112int main(int argc, char *argv[])
113{

Callers 1

mainFunction · 0.70

Calls 2

hex_decodeFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected