Provide JS/Wasm interfaces for hmacShaAsU8a (#1223)

* Provide JS/Wasm interfaces for hmacShaAsU8a

* Adjust

* Re-add helpers

* Alignments
This commit is contained in:
Jaco
2021-11-21 08:54:54 +02:00
committed by GitHub
parent a7606b6514
commit 2fcf59eeb0
34 changed files with 148 additions and 149 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ interface Result {
salt: Uint8Array;
}
export function scryptEncode (passphrase?: HexString | Uint8Array | string, salt = randomAsU8a(), params = DEFAULT_PARAMS, onlyJs = false): Result {
export function scryptEncode (passphrase?: HexString | Uint8Array | string, salt = randomAsU8a(), params = DEFAULT_PARAMS, onlyJs?: boolean): Result {
const u8a = u8aToU8a(passphrase);
const password = isReady() && !onlyJs