rename multiplexor

This commit is contained in:
poma 2019-11-15 11:43:30 +03:00
parent e6a4208b52
commit c0e81f2a37
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
1 changed files with 2 additions and 2 deletions

View File

@ -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];