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