| 34 | } |
| 35 | |
| 36 | bool 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 | |
| 44 | bool pubkey_from_privkey(const struct privkey *privkey, |
| 45 | struct pubkey *key) |
no outgoing calls