Class Keystore

Hierarchy

  • Keystore

Constructors

  • Parameters

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

    Returns Keystore

Properties

crypto: Crypto
id: string
origin: undefined | string
version: number = 3

Methods

  • Parameters

    • password: string

    Returns boolean

  • Parameters

    • password: string

    Returns string

  • Parameters

    • password: string

    Returns Buffer

  • Returns string

  • Returns boolean

  • Returns boolean

  • Parameters

    • dir: string
    • 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: ExtendedPrivateKey
    • password: string
    • options: {
          iv?: Buffer;
          salt?: Buffer;
      } = {}
      • Optional iv?: Buffer
      • Optional salt?: Buffer

    Returns Keystore

  • Returns Keystore

  • Parameters

    • json: string

    Returns Keystore

  • Parameters

    • path: string

    Returns Keystore

    Deprecated

    Load keystore file from path.

  • Parameters

    • derivedKey: Buffer
    • ciphertext: Buffer

    Returns string

  • Parameters

    • kdfparams: KdfParams

    Returns ScryptOptions

Generated using TypeDoc