2024-04-29 15:55:15 +00:00
|
|
|
import { MimcSponge } from 'circomlibjs';
|
2024-12-04 03:30:35 +00:00
|
|
|
import type { Element, HashFunction } from 'fixed-merkle-tree';
|
2024-04-29 15:55:15 +00:00
|
|
|
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;
|