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

Function blinding_next_path_privkey

common/blinding.c:33–40  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31
32/* e(i+1) = H(E(i) || ss(i)) * e(i) */
33bool blinding_next_path_privkey(const struct privkey *e,
34 const struct sha256 *h,
35 struct privkey *next)
36{
37 *next = *e;
38 return secp256k1_ec_seckey_tweak_mul(secp256k1_ctx, next->secret.data,
39 h->u.u8) == 1;
40}

Callers 1

blind_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected