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

Function secret_from_hex

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

Source from the content-addressed store, hash-verified

115extern secp256k1_context *secp256k1_ctx;
116
117static struct secret secret_from_hex(const char *hex)
118{
119 struct secret s;
120 if (!hex_decode(hex, strlen(hex), &s, sizeof(s)))
121 abort();
122 return s;
123}
124
125/* Create an onionreply with the test vector parameters and check that
126 * 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