P256.getPublicKey
Computes the P256 ECDSA public key from a provided private key.
Imports
Named
import { P256 } from 'ox'
Examples
import { P256 } from 'ox'
const publicKey = P256.getPublicKey({ privateKey: '0x...' })
Definition
function getPublicKey(
options: getPublicKey.Options,
): PublicKey.PublicKey
Source: src/core/P256.ts
Parameters
options
- Type:
getPublicKey.Options
The options to compute the public key.
options.privateKey
- Type:
0x${string} | Uint8Array
Private key to compute the public key from.
Return Type
The computed public key.
PublicKey.PublicKey