Class PublicKey

ECDSA (secp256k1) public key.

Hierarchy

  • PublicKey

Constructors

Properties

Methods

Constructors

  • Parameters

    • key: Buffer
    • prefix: string = DEFAULT_ADDRESS_PREFIX

    Returns PublicKey

Properties

key: Buffer
prefix: string = DEFAULT_ADDRESS_PREFIX

Methods

  • Used by utils.inspect and console.log in node.js.

    Returns string

  • Return JSON representation of this key, same as toString().

    Returns string

  • Return a WIF-encoded representation of the key.

    Returns string

  • Verify a 32-byte signature.

    Parameters

    • message: Buffer

      32-byte message to verify.

    • signature: Signature

      Signature to verify.

    Returns boolean

  • Create a new instance from a WIF-encoded key.

    Parameters

    • wif: string

    Returns PublicKey

Generated using TypeDoc