UNPKG

@nori-zk/ethprocessor

Version:

zkApp for verifying SP1 Helios Nori proof and storing latest execution state root on Mina

20 lines (19 loc) 790 B
import 'dotenv/config'; import { EthProofType } from './ethProcessor.js'; import { EthVerifier, CreateProofArgument, VerificationKey, Bytes32 } from '@nori-zk/o1js-zk-utils'; export declare class MinaEthProcessorSubmitter { #private; private type; readonly ethProcessorVerificationKey: VerificationKey; readonly ethVerifierVerificationKey: VerificationKey; protected readonly minaRPCNetworkUrl: string; constructor(type?: 'plonk'); networkSetUp(): Promise<void>; compileContracts(): Promise<void>; deployContract(storeHash: Bytes32): Promise<void>; createProof(proofArguments: CreateProofArgument): Promise<ReturnType<typeof EthVerifier.compute>>; submit(ethProof: EthProofType): Promise<{ txId: string; txHash: string; }>; }