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

Function blinding_next_pubkey

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_pubkey(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_privkey(const struct privkey *e,

Callers 2

decrypt_enctlvFunction · 0.70
peer_accepted_htlcFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected