UNPKG

zkverifyjs

Version:

Submit proofs to zkVerify and query proof state with ease using our npm package.

20 lines 743 B
import { VerifyInput } from '../../../api/verify/types'; import { ProofOptions } from '../../../config'; import { VerifyOptions } from '../../types'; export declare class OptimisticVerificationBuilder { private readonly executeOptimisticVerify; private readonly options; private nonceSet; private registeredVkSet; constructor(executeOptimisticVerify: (options: VerifyOptions, input: VerifyInput) => Promise<{ success: boolean; message: string; }>, proofOptions: ProofOptions, accountAddress?: string); nonce(nonce: number): this; withRegisteredVk(): this; execute(input: VerifyInput): Promise<{ success: boolean; message: string; }>; } //# sourceMappingURL=index.d.ts.map