Bump dev (w/ ts-eslint updates) (#1854)
* Bump dev (w/ ts-eslint updates) * Adjust ipfs compat check
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// Copyright 2017-2023 @polkadot/util-crypto authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { HexString } from '@polkadot/util/types';
|
||||
import type { Params } from './types.js';
|
||||
|
||||
import { scrypt as scryptJs } from '@noble/hashes/scrypt';
|
||||
@@ -18,7 +17,7 @@ interface Result {
|
||||
salt: Uint8Array;
|
||||
}
|
||||
|
||||
export function scryptEncode (passphrase?: HexString | Uint8Array | string, salt = randomAsU8a(), params = DEFAULT_PARAMS, onlyJs?: boolean): Result {
|
||||
export function scryptEncode (passphrase?: string | Uint8Array, salt = randomAsU8a(), params = DEFAULT_PARAMS, onlyJs?: boolean): Result {
|
||||
const u8a = u8aToU8a(passphrase);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user