rwadurian/tools/mnemonic-test/node_modules/hash-wasm/dist/lib/sm3.d.ts

13 lines
388 B
TypeScript

import { type IHasher } from "./WASMInterface";
import type { IDataType } from "./util";
/**
* Calculates SM3 hash
* @param data Input data (string, Buffer or TypedArray)
* @returns Computed hash as a hexadecimal string
*/
export declare function sm3(data: IDataType): Promise<string>;
/**
* Creates a new SM3 hash instance
*/
export declare function createSM3(): Promise<IHasher>;