UNPKG

@nori-zk/proof-conversion

Version:

Verifying zkVM proofs inside o1js circuits, to generate Mina compatible proof

12 lines 610 B
import { Logger } from 'esm-iso-logger'; import { ApiMethod } from '../ApiMethod.js'; import { sp1Groth16InputSchema, } from './schema.js'; import { Sp1Groth16ComputationalPlan } from '../../compute/plans/sp1/groth16.js'; const logger = new Logger('API'); export const performSp1Groth16 = ApiMethod(sp1Groth16InputSchema, // Schema object for SP1ProofWithPublicValuesGroth16NoTee false // Arguments mode disabled )(async (executor, input) => { logger.log('Performing SP1 Groth16 conversion...'); return executor.execute(new Sp1Groth16ComputationalPlan(), input); }); //# sourceMappingURL=groth16.js.map