tornado-core/dist/mimc.d.ts
2024-04-29 15:55:15 +00:00

15 lines
441 B
TypeScript
Vendored

import { MimcSponge } from 'circomlibjs';
import type { Element, HashFunction } from '@tornado/fixed-merkle-tree';
export declare class Mimc {
sponge?: MimcSponge;
hash?: HashFunction<Element>;
mimcPromise: Promise<void>;
constructor();
initMimc(): Promise<void>;
getHash(): Promise<{
sponge: MimcSponge | undefined;
hash: HashFunction<Element> | undefined;
}>;
}
export declare const mimc: Mimc;