From 39bb71678591922f2ff0aeda66fdd4e578b09d64 Mon Sep 17 00:00:00 2001 From: Ehud Ben-Reuven Date: Sat, 23 Feb 2019 19:46:15 -0500 Subject: [PATCH] fixed Multiplexer name and usage of old syntax --- circuits/multiplexer.circom | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/circuits/multiplexer.circom b/circuits/multiplexer.circom index 0c8f594..091bd2b 100644 --- a/circuits/multiplexer.circom +++ b/circuits/multiplexer.circom @@ -90,12 +90,17 @@ template Decoder(w) { } -template Multiplexor(wIn, nIn) { +template Multiplexer(wIn, nIn) { signal input inp[nIn][wIn]; signal input sel; signal output out[wIn]; - component Decoder(nIn) dec; - component EscalarProduct(nIn) ep[wIn]; + component dec = Decoder(nIn); + component ep[wIn]; + + for (var k=0; k dec.inp; for (var j=0; j