Skip to content

Commit 92f71f8

Browse files
authored
Merge pull request #60 from ethereum/document-onProgress
Document scrypt's onProgress
2 parents a1800fa + 66aec76 commit 92f71f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ toHex(sha256(utf8ToBytes("abc")))
116116
```ts
117117
function pbkdf2(password: Uint8Array, salt: Uint8Array, iterations: number, keylen: number, digest: string): Promise<Uint8Array>;
118118
function pbkdf2Sync(password: Uint8Array, salt: Uint8Array, iterations: number, keylen: number, digest: string): Uint8Array;
119-
function scrypt(password: Uint8Array, salt: Uint8Array, N: number, p: number, r: number, dkLen: number): Promise<Uint8Array>;
120-
function scryptSync(password: Uint8Array, salt: Uint8Array, N: number, p: number, r: number, dkLen: number): Uint8Array;
119+
function scrypt(password: Uint8Array, salt: Uint8Array, N: number, p: number, r: number, dkLen: number, onProgress?: (progress: number) => void): Promise<Uint8Array>;
120+
function scryptSync(password: Uint8Array, salt: Uint8Array, N: number, p: number, r: number, dkLen: number, onProgress?: (progress: number) => void)): Uint8Array;
121121
```
122122

123123
The `pbkdf2` submodule has two functions implementing the PBKDF2 key

0 commit comments

Comments
 (0)