UNPKG

chaingate

Version:

A complete TypeScript library for connecting to and making transactions on different blockchains

28 lines (27 loc) 691 B
export interface LegacyKeystoreData { version: 1; crypto: { cipher: string; cipherparams: { iv: string; }; ciphertext: string; kdf: 'pbkdf2'; kdfparams: { c: number; prf: string; dklen: number; salt: string; }; mac: string; }; } export declare class LegacyKeystore { private readonly keystoreData; private _derivedKey; constructor(keystoreData: LegacyKeystoreData); checkPassword(password: string): Promise<boolean>; private deriveKey; decrypt(password: string): Promise<Uint8Array>; static isKeystore(obj: object): boolean; }