PublicKey representation that has type and bytes of the key.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

data: Uint8Array
keyType: ED25519

Methods

  • Returns a string representation of the public key.

    Returns string

    The string representation of the public key.

  • Verifies a message signature using the public key.

    Parameters

    • message: Uint8Array

      The message to be verified.

    • signature: Uint8Array

      The signature to be verified.

    Returns boolean

    true if the signature is valid, otherwise false.

  • Creates a PublicKey instance from a string or an existing PublicKey instance.

    Parameters

    • value: string | PublicKey

      The string or PublicKey instance to create a PublicKey from.

    Returns PublicKey

    The PublicKey instance.

  • Creates a PublicKey instance from an encoded key string.

    Parameters

    • encodedKey: string

      The encoded key string.

    Returns PublicKey

    The PublicKey instance created from the encoded key string.

Generated using TypeDoc