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

Function secret_from_hex

tests/fuzz/fuzz-init_received.c:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static struct secret secret_from_hex(const char *hex)
77{
78 struct secret secret;
79 hex += 2;
80 if (!hex_decode(hex, strlen(hex), &secret, sizeof(secret)))
81 abort();
82 return secret;
83}
84
85/* Encodes the given message. Stores the decrypting crypto_state in `cs`. */
86static u8 *encode_msg(const tal_t *ctx, const void *message, size_t size, struct crypto_state *cs)

Callers 1

encode_msgFunction · 0.70

Calls 2

hex_decodeFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected