@polkadot/util-crypto
Version:
A collection of useful crypto utilities for @polkadot
14 lines (13 loc) • 385 B
TypeScript
import type { HexString } from '@polkadot/util/types';
import type { Params } from './types.js';
interface Result {
params: Params;
password: Uint8Array;
salt: Uint8Array;
}
export declare function scryptEncode(passphrase?: HexString | Uint8Array | string, salt?: Uint8Array, params?: {
N: number;
p: number;
r: number;
}, onlyJs?: boolean): Result;
export {};