@hiveio/dhive
    Preparing search index...

    Class PrivateKey

    ECDSA (secp256k1) private key.

    Index
    • Parameters

      • key: Buffer

      Returns PrivateKey

    secret: Buffer
    • Derive the public key for this private key.

      Parameters

      • Optionalprefix: string

      Returns PublicKey

    • Get shared secret for memo cryptography

      Parameters

      Returns Buffer

    • Used by utils.inspect and console.log in node.js. Does not show the full key to get the full encoded key you need to explicitly call toString.

      Returns string

    • Parameters

      • pub: any

      Returns Buffer

    • Sign message.

      Parameters

      • message: Buffer

        32-byte message.

      Returns Signature

    • Return a WIF-encoded representation of the key.

      Returns string

    • Convenience to create a new instance from WIF string or buffer.

      Parameters

      • value: string | Buffer<ArrayBufferLike>

      Returns PrivateKey

    • Create key from username and password.

      Parameters

      • username: string
      • password: string
      • role: KeyRole = 'active'

      Returns PrivateKey

    • Create a new instance from a seed.

      Parameters

      • seed: string

      Returns PrivateKey

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

      Parameters

      • wif: string

      Returns PrivateKey