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

Function blinding_next_path_key

common/blinding.c:22–30  ·  view source on GitHub ↗

E(i+1) = H(E(i) || ss(i)) * E(i) */

Source from the content-addressed store, hash-verified

20
21/* E(i+1) = H(E(i) || ss(i)) * E(i) */
22bool blinding_next_path_key(const struct pubkey *pk,
23 const struct sha256 *h,
24 struct pubkey *next)
25{
26
27 *next = *pk;
28 return secp256k1_ec_pubkey_tweak_mul(secp256k1_ctx, &next->pubkey,
29 h->u.u8) == 1;
30}
31
32/* e(i+1) = H(E(i) || ss(i)) * e(i) */
33bool blinding_next_path_privkey(const struct privkey *e,

Callers 5

json_injectpaymentonionFunction · 0.85
peer_accepted_htlcFunction · 0.85
forward_htlcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected