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

Function generate_key_set

common/sphinx.c:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391static void generate_key_set(const struct secret *secret,
392 struct keyset *keys)
393{
394 subkey_from_hmac("rho", secret, &keys->rho);
395 subkey_from_hmac("pi", secret, &keys->pi);
396 subkey_from_hmac("mu", secret, &keys->mu);
397 subkey_from_hmac("gamma", secret, &keys->gamma);
398}
399
400static struct hop_params *generate_hop_params(
401 const tal_t *ctx,

Callers 2

create_onionpacketFunction · 0.85
process_onionpacketFunction · 0.85

Calls 1

subkey_from_hmacFunction · 0.70

Tested by

no test coverage detected