Hierarchy

  • Keystore

Constructors

  • Parameters

    • theCrypto: Crypto
    • id: string
    • Optional origin: string

    Returns hd.Keystore

Properties

crypto: Crypto
filename: any
id: string
origin: undefined | string
version: number

Methods

  • Parameters

    • password: string

    Returns boolean

  • Parameters

    • password: string

    Returns string

  • Parameters

    • password: string

    Returns Buffer

  • Returns boolean

  • Returns boolean

  • Parameters

    • dir: string
    • Optional options: {
          name?: string;
          overwrite?: boolean;
      }

      If you are sure to overwrite existing keystore file, set overwrite to true.

      • Optional name?: string
      • Optional overwrite?: boolean

    Returns void

    Deprecated

    Keystore file default name is ${id}.json.

  • Returns string

  • Parameters

    • extendedPrivateKey: hd.ExtendedPrivateKey
    • password: string
    • Optional options: {
          iv?: Buffer;
          salt?: Buffer;
      }
      • Optional iv?: Buffer
      • Optional salt?: Buffer

    Returns hd.Keystore

  • Parameters

    • json: string

    Returns hd.Keystore

  • Parameters

    • path: string

    Returns hd.Keystore

    Deprecated

    Load keystore file from path.

  • Parameters

    • derivedKey: Buffer
    • ciphertext: Buffer

    Returns string

  • Parameters

    • kdfparams: KdfParams

    Returns ScryptOptions

Generated using TypeDoc