This repositry contains snarkjs demo, where a simple circuit is provided and using snarkjs proving & verification keys are generated and later using both keys and the circuit proof of secret information is generated and verified with the help of snarkjs without revealing the secret information.
To run demo please follow following steps
To generate prover & verification keys run following command
npm run keyGen
To generate proof you need to run prover using following command
npm run prover
To verify proof you need to run verifier using following command
npm run verifier