@wharfkit/session - v4.0.1
    Preparing search index...

    Class PrivateKey

    Index
    data: Bytes
    type: KeyType
    • Derive the shared secret between this private key and given public key. The legacy option replicates the divergent pre-2.0 x-coordinate derivation.

      Parameters

      • publicKey: PublicKey
      • Optionaloptions: { legacy?: boolean }

      Returns Checksum512

      If the key type isn't R1 or K1.

    • Sign message using this key.

      Parameters

      Returns Signature

      If the key type isn't R1 or K1.

    • Returns string

    • Get the corresponding public key.

      Returns PublicKey

      If the key type isn't R1 or K1.

    • Return the key in Antelope/EOSIO PVT__ format.

      Returns string

    • Return WIF representation of this private key

      Returns string

      If the key type isn't K1.

    • Create PrivateKey object from a string representation. Accepts WIF (5...) and Antelope/EOSIO (PVT_...) style private keys.

      Parameters

      • string: string
      • OptionalignoreChecksumError: boolean

      Returns PrivateKey

    • Generate new PrivateKey.

      Parameters

      • type: string

      Returns PrivateKey

      If a secure random source isn't available.

    • Parameters

      Returns boolean