From 109cdf40567fce284dca1d535819ce28922653e0 Mon Sep 17 00:00:00 2001 From: Kobi Gurkan Date: Tue, 17 Sep 2019 08:53:02 +0300 Subject: [PATCH] mimcsponge: fixes assignment to outs[0] --- circuits/mimcsponge.circom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuits/mimcsponge.circom b/circuits/mimcsponge.circom index de9bf1ec..3e84c460 100644 --- a/circuits/mimcsponge.circom +++ b/circuits/mimcsponge.circom @@ -21,7 +21,7 @@ template MiMCSponge(nInputs, nRounds, nOutputs) { } } - outs[0] = S[nInputs - 1].xL_out; + outs[0] <== S[nInputs - 1].xL_out; for (var i = 0; i < nOutputs - 1; i++) { S[nInputs + i] = MiMCFeistel(nRounds);