|
@@ -101,7 +101,7 @@ fn create_n_bit_comparator_gates(n: usize) -> Vec<Gate> {
|
101
|
101
|
if curr != 0 {
|
102
|
102
|
// Gate(A_i = B_i)
|
103
|
103
|
let eq_gate = Gate::new(GateType::Equal, vec![], vec![curr - 1, curr - 1 + n]);
|
104
|
|
- // remember which gate-index this bit belongs to.
|
|
104
|
+ // remember which key-index (see below) this bit belongs to.
|
105
|
105
|
indices[n - curr] = all_gates.len();
|
106
|
106
|
all_gates.push(eq_gate);
|
107
|
107
|
}
|