Represents a public key.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Creates a public key from bytes or a hex string.

    Parameters

    • publicKey: string | Uint8Array | PublicKey

      Input string, byte array or public key.

    Returns PublicKey

Properties

bytes: Uint8Array

Underlying bytes.

NAME: string

Byte array name (required because constructor.name is dropped during minification).

SIZE: number

Byte size of raw public key.

Methods

  • Returns representation of this object that can be stored in JSON.

    Returns string

    JSON-safe representation of this object.

  • Returns string representation of this object.

    Returns string

    String representation of this object