forked from tornado-packages/tornado-core
15 lines
441 B
TypeScript
Vendored
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;
|