privkey_to_pubkey
Derive the Bitcoin public key from a private key, with optional compressed output.
Instructions
Get the public key from a private key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| privkey | Yes | Private key as a 32-byte hex string. | |
| compressed | No | Whether to produce a compressed public key (default: True). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |