UNPKG

notebook-ts

Version:

Prevent Sybil attacks with the click of a button.

19 lines (18 loc) 601 B
declare type ProofData = { a: bigint[]; b: bigint[][]; c: bigint[]; signals: bigint[]; }; export declare class NotebookSessionManager { proofData: ProofData | null; window: Window; registerUser: (proof: ProofData) => boolean; handleKYCError: (error: string) => void; test_mode: boolean; error: string; constructor(window: Window, registerUser: (proof: ProofData) => boolean, handleKYCError: (error: string) => void, test_mode: boolean); deserializeProof(data: string): any; } export declare const NotebookButton: (props: any) => JSX.Element; export {};