Scrypt TS interface (#93)

This commit is contained in:
Jaco Greeff
2020-08-03 15:25:34 +02:00
committed by GitHub
parent 7a33da9e53
commit 735584aef9
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
## 1.3.0-beta.x
- Add `scrypt` function for KDF generation
- Remove `bip39ToSeed`, we only use the `bip39ToMiniSecret` variant in Substrate
- Update ed25519-dalek to 1.0.0-pre.4
+1
View File
@@ -21,6 +21,7 @@ export function sr25519Verify (signature: Uint8Array, message: Uint8Array, publi
export function blake2b (data: Uint8Array, key: Uint8Array, byteSize: number): Uint8Array;
export function keccak256 (data: Uint8Array): Uint8Array;
export function pbkdf2 (data: Uint8Array, salt: Uint8Array, rounds: number): Uint8Array;
export function scrypt (password: Uint8Array, salt: Uint8Array, log2N: number, r: number, p: number): Uint8Array;
// export function secp256k1IsRecoverable (message: Uint8Array, signature: Uint8Array): number;
// export function secp256k1Recover (message: Uint8Array, signature: Uint8Array): Uint8Array;
export function sha512 (data: Uint8Array): Uint8Array;