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

Function secret_from_hex

common/test/run-cryptomsg.c:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111#include "../cryptomsg.c"
112
113static struct secret secret_from_hex(const char *hex)
114{
115 struct secret secret;
116 hex += 2;
117 if (!hex_decode(hex, strlen(hex), &secret, sizeof(secret)))
118 abort();
119 return secret;
120}
121
122static void check_result(const u8 *msg, const char *hex)
123{

Callers 1

mainFunction · 0.70

Calls 2

hex_decodeFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected