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

Function blind_group_element

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

Source from the content-addressed store, hash-verified

385}
386
387static bool blind_group_element(struct pubkey *blindedelement,
388 const struct pubkey *pubkey,
389 const u8 blind[BLINDING_FACTOR_SIZE])
390{
391 /* tweak_mul is inplace so copy first. */
392 if (pubkey != blindedelement)
393 *blindedelement = *pubkey;
394 if (secp256k1_ec_pubkey_tweak_mul(secp256k1_ctx,
395 &blindedelement->pubkey, blind) != 1)
396 return false;
397 return true;
398}
399
400bool sphinx_create_shared_secret(struct secret *privkey,
401 const struct pubkey *pubkey,

Callers 2

generate_hop_paramsFunction · 0.70
process_onionpacketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected