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

Function secret_from_hex

common/test/run-sphinx.c:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91extern secp256k1_context *secp256k1_ctx;
92
93static struct secret secret_from_hex(const char *hex)
94{
95 struct secret s;
96 if (!hex_decode(hex, strlen(hex), &s, sizeof(s)))
97 abort();
98 return s;
99}
100
101/* Create an onionreply with the test vector parameters and check that
102 * we match the test vectors and that we can also unwrap it. */

Callers 1

run_unit_testsFunction · 0.70

Calls 2

hex_decodeFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected