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

Function derive_revocation_basepoint

common/derive_basepoints.c:198–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool derive_revocation_basepoint(const struct secret *seed,
199 struct pubkey *revocation_basepoint,
200 struct secret *revocation_secret)
201{
202 struct keys keys;
203
204 derive_keys(seed, &keys);
205
206 if (revocation_basepoint) {
207 if (!pubkey_from_privkey(&keys.r, revocation_basepoint))
208 return false;
209 }
210
211 if (revocation_secret)
212 *revocation_secret = keys.r.secret;
213
214 return true;
215}
216
217bool derive_htlc_basepoint(const struct secret *seed,
218 struct pubkey *htlc_basepoint,

Callers 2

do_sign_penalty_to_usFunction · 0.85
mainFunction · 0.85

Calls 2

pubkey_from_privkeyFunction · 0.85
derive_keysFunction · 0.70

Tested by 1

mainFunction · 0.68