chaingate
Version:
A complete TypeScript library for connecting to and making transactions on different blockchains
28 lines (27 loc) • 714 B
TypeScript
import { Keystore } from './Keystore';
export interface Web3KeystoreData {
crypto: {
cipher: string;
ciphertext: string;
cipherparams: {
iv: string;
};
kdf: 'scrypt';
kdfparams: {
dklen: number;
n: number;
p: number;
r: number;
salt: string;
};
mac: string;
};
version: 3;
}
export declare class Web3Keystore extends Keystore {
private readonly keystoreData;
constructor(keystoreData: Web3KeystoreData);
checkPassword(password: string): Promise<boolean>;
decrypt(password: string): Promise<Uint8Array>;
static isKeystore(obj: object): boolean;
}