From c0e81f2a37c5914dad0b1bc0c33961a54d2bdb80 Mon Sep 17 00:00:00 2001 From: poma Date: Fri, 15 Nov 2019 11:43:30 +0300 Subject: [PATCH] rename multiplexor --- circuits/merkleTree.circom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/circuits/merkleTree.circom b/circuits/merkleTree.circom index bfd6016..1764f14 100644 --- a/circuits/merkleTree.circom +++ b/circuits/merkleTree.circom @@ -15,7 +15,7 @@ template HashLeftRight() { // if s == 0 returns [in[0], in[1]] // if s == 1 returns [in[1], in[0]] -template Mux() { +template DualMux() { signal input in[2]; signal input s; signal output out[2]; @@ -36,7 +36,7 @@ template MerkleTree(levels) { component hashers[levels]; for (var i = 0; i < levels; i++) { - selectors[i] = Mux(); + selectors[i] = DualMux(); selectors[i].in[0] <== i == 0 ? leaf : hashers[i - 1].hash; selectors[i].in[1] <== pathElements[i]; selectors[i].s <== pathIndices[i];