notebook-ts
Version:
Prevent Sybil attacks with the click of a button.
16 lines (15 loc) • 447 B
TypeScript
export declare type ProofData = {
a: bigint[];
b: bigint[][];
c: bigint[];
signals: bigint[];
};
export declare type proofInput = {
root: string;
secret: string;
pathIndices: number[];
pathElements: string[];
protocol_address: string;
};
declare function getVerifyData(identity_pk: Array<bigint>, sig_r: Array<bigint>, sig_s: bigint, secret: string, leaf: string): Promise<ProofData>;
export { getVerifyData };