@hiveio/dhive
    Preparing search index...

    Class PublicKey

    ECDSA (secp256k1) public key.

    Index
    • Parameters

      • key: any
      • prefix: string = DEFAULT_ADDRESS_PREFIX

      Returns PublicKey

    key: any
    prefix: string = DEFAULT_ADDRESS_PREFIX
    uncompressed: Buffer
    • 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: ByteBuffer

      Returns PublicKey

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

      Parameters

      • wif: string

      Returns PublicKey