@nori-zk/proof-conversion
Version:
Verifying zkVM proofs inside o1js circuits, to generate Mina compatible proof
13 lines • 753 B
JavaScript
import { Logger } from 'esm-iso-logger';
import { ApiMethod } from '../ApiMethod.js';
import { risc0Groth16ObjInputSchema, risc0Groth16ArgKeys, } from './schema.js';
import { Risc0Groth16ComputationalPlan } from '../../compute/plans/risc0/groth16.js';
const logger = new Logger('API');
export const performRisc0Groth16 = ApiMethod(risc0Groth16ObjInputSchema, // Schema object for Risc0Groth16Input
true, // If we support arguments mode
risc0Groth16ArgKeys // What arguments mode expects to be provided performRisc0Groth16.fromArgs(risc0_proof, raw_vk)
)(async (executor, input) => {
logger.log('Performing Risc0 Groth16 conversion...');
return executor.execute(new Risc0Groth16ComputationalPlan(), input);
});
//# sourceMappingURL=groth16.js.map