Add a useful function getOutput which extract single output c and one-dimensional output vec[10] from witness.
For circom like:
template Multiplier2() {
signal input a;
signal input b;
signal output c;
signal output vec[10];
c <== a*b;
for (var i = 0; i < 10; i++) {
vec[i] <== a*b;
}
}
const w = await circuit.calculateWitness({ a: 3, b:6 });
const o = await circuit.getOutput(w, [ "c", "vec[10]" ]);
console.log(o);
Fix issue mentioned in https://github.com/iden3/circom_tester/issues/9#issuecomment-1233530665
Add a useful function
getOutput
which extract single outputc
and one-dimensional outputvec[10]
from witness. For circom like:Outputs: