PublicKey Errors
PublicKey.InvalidCompressedPrefixError
Thrown when the public key has an invalid prefix for a compressed public key.
Source: src/PublicKey.ts
PublicKey.InvalidError
Thrown when a public key is invalid.
Examples
import { PublicKey } from 'ox'
PublicKey.assert({ y: 1n })
PublicKey.InvalidError: Value `{"y":1n}` is not a valid public key. Public key must contain: - an `x` and `prefix` value (compressed) - an `x`, `y`, and `prefix` value (uncompressed)
Source: src/PublicKey.ts
PublicKey.InvalidPrefixError
Thrown when a public key has an invalid prefix.
Source: src/PublicKey.ts
PublicKey.InvalidSerializedSizeError
Thrown when the public key has an invalid serialized size.
Source: src/PublicKey.ts
PublicKey.InvalidUncompressedPrefixError
Thrown when the public key has an invalid prefix for an uncompressed public key.
Source: src/PublicKey.ts