UNPKG

@nori-zk/ethprocessor

Version:

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

25 lines (24 loc) 931 B
import { PrivateKey, NetworkId } from 'o1js'; import { EthProcessor, EthProofType } from './EthProcessor.js'; import { EthVerifier } from './EthVerifier.js'; import { CreateProofArgument, VerificationKey } from './types.js'; import { Bytes32 } from './types.js'; export declare class MinaEthProcessorSubmitter { private type; zkApp: EthProcessor; senderPrivateKey: PrivateKey; zkAppPrivateKey: PrivateKey; network: NetworkId; txFee: number; ethProcessorVerificationKey: VerificationKey; ethVerifierVerificationKey: VerificationKey; 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; }>; }