Open answer tests
const snarkjs = require("snarkjs");
const fs = require("fs");
const { proof, publicSignals } = await snarkjs.groth16.fullProve(
{
// 64-value array, where each item is the hash of the correct answer to the corresponding open answers question
answersHash: ANSWERS_HASH_ARRAY,
// 64-value array, where each item is the solver's answer to the corresponding open answers question
answers: ANSWERS_ARRAY,
// PUBLIC - decimal value of the address that will be the one receiving the credential
salt: SALT
},
"open.wasm",
"open.zkey"
);Last updated