@nori-zk/proof-conversion
Version:
Verifying zkVM proofs inside o1js circuits, to generate Mina compatible proof
13 lines • 776 B
JavaScript
import { Logger } from 'esm-iso-logger';
import { ApiMethod } from '../ApiMethod.js';
import { snarkjsGroth16ArgKeys, snarkjsGroth16InputSchema, } from './schema.js';
import { SnarkjsGroth16ComputationalPlan } from '../../compute/plans/snarkjs/groth16.js';
const logger = new Logger('API');
export const performSnarkjsGroth16 = ApiMethod(snarkjsGroth16InputSchema, // Schema object for SnarkjsGroth16Input
true, // If we support arguments mode
snarkjsGroth16ArgKeys // What arguments mode expects to be provided to performSnarkjsGroth16.fromArgs(proof, vk, publicInputs)
)(async (executor, input) => {
logger.log('Performing Snarkjs Groth16 conversion...');
return executor.execute(new SnarkjsGroth16ComputationalPlan(), input);
});
//# sourceMappingURL=groth16.js.map