Sitelet https://hardhat.org/docs/reference/cheatcodes/utilities/public-key-p256
Skip to content

publicKeyP256

function publicKeyP256(
uint256 privateKey
) external pure returns (uint256 publicKeyX, uint256 publicKeyY);

Derives secp256r1 public key from the provided privateKey.