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

Function pubkey_from_secret

bitcoin/pubkey.c:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool pubkey_from_secret(const struct secret *secret, struct pubkey *key)
37{
38 if (!secp256k1_ec_pubkey_create(secp256k1_ctx,
39 &key->pubkey, secret->data))
40 return false;
41 return true;
42}
43
44bool pubkey_from_privkey(const struct privkey *privkey,
45 struct pubkey *key)

Callers 11

handle_their_cheatFunction · 0.85
pubkey_from_privkeyFunction · 0.85
penalty_tx_createFunction · 0.85
mainFunction · 0.85
add_connectionFunction · 0.85
add_connectionFunction · 0.85
add_connectionFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 4

mainFunction · 0.68
add_connectionFunction · 0.68
add_connectionFunction · 0.68
add_connectionFunction · 0.68