ethers.js/packages/experimental/thirdparty.d.ts

8 lines
355 B
TypeScript
Raw Normal View History

2019-05-15 01:25:46 +03:00
declare module "scrypt-js" {
export class ScryptError extends Error {
progress: number;
}
export type ScryptCallback = (error: ScryptError, progress: number, key: Uint8Array) => void;
export default function(password: Uint8Array, salt: Uint8Array, N: number, r: number, p: number, dkLen: number, callback: ScryptCallback): void;
}