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

13 lines
473 B
TypeScript
Vendored

import { BabyJub, PedersenHash, Point } from 'circomlibjs';
export declare class Pedersen {
pedersenHash?: PedersenHash;
babyJub?: BabyJub;
pedersenPromise: Promise<void>;
constructor();
initPedersen(): Promise<void>;
unpackPoint(buffer: Uint8Array): Promise<Point | undefined>;
toStringBuffer(buffer: Uint8Array): string;
}
export declare const pedersen: Pedersen;
export declare function buffPedersenHash(buffer: Uint8Array): Promise<string>;