tornado-core/dist/mimc.d.ts

15 lines
441 B
TypeScript
Raw Normal View History

2024-04-29 18:55:15 +03:00
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;