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

Function blind_group_element

common/sphinx.c:359–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359static bool blind_group_element(struct pubkey *blindedelement,
360 const struct pubkey *pubkey,
361 const u8 blind[BLINDING_FACTOR_SIZE])
362{
363 /* tweak_mul is inplace so copy first. */
364 if (pubkey != blindedelement)
365 *blindedelement = *pubkey;
366 if (secp256k1_ec_pubkey_tweak_mul(secp256k1_ctx,
367 &blindedelement->pubkey, blind) != 1)
368 return false;
369 return true;
370}
371
372bool sphinx_create_shared_secret(struct secret *privkey,
373 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