ECDSA (secp256k1) public key.

Constructors

Properties

key: Buffer
prefix: string = DEFAULT_ADDRESS_PREFIX
uncompressed: Buffer

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

  • Parameters

    • key: Buffer

    Returns {
        key: Buffer;
    }

    • key: Buffer