Skip to main content
PublicKey (PublicKeyType) is a branded 64-byte Uint8Array storing an uncompressed secp256k1 affine point (x,y)(x, y) without the 0x04 prefix, supporting SEC1 33-byte compression/decompression, Ethereum address derivation, and ECDSA verification.

Key Formats

Decompression recovers y=±x3+7(modp)y = \pm \sqrt{x^3 + 7} \pmod p and selects the root whose least-significant bit matches the 0x02/0x03 parity prefix.

Quick Start

Import from @tevm/voltaire/PublicKey.

API Reference

Tree-shakeable exports from @tevm/voltaire/PublicKey: Verify({ secp256k1Verify }), _toHex, _toAddress, _verify, _compress, _decompress, _isCompressed.
  • PrivateKey — 32-byte secp256k1 signing keys
  • Address — 20-byte accounts derived from uncompressed public keys
  • StealthAddress — ERC-5564 compressed spending/viewing public keys