Skip to content

Commit

Permalink
preprocess/handlers done
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Jun 4, 2024
1 parent 4c0eafd commit d747d6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/client/preprocessing/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PreprocessHandlers {
return bitLength;
}
constant_bits_count() {
return module.exports.bits_count.apply(null, arguments) - 1;
return bits_count.apply(null, arguments) - 1;

Check failure on line 11 in lib/client/preprocessing/handlers.js

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

lib/client/preprocessing/handlers.js#L11

'bits_count' is not defined.
}
dynamic_bits_cmult(dependent_op, count, protocols, threshold, receivers_list, compute_list, Zp, task_id, params) {
// constant bit length
Expand Down Expand Up @@ -95,6 +95,7 @@ class PreprocessHandlers {
}
return ops;
}

dynamic_bits_cdiv(dir) {
return function (dependent_op, count, protocols, threshold, receivers_list, compute_list, Zp, task_id, params) {
let constantBits = Zp.toString(2).length;
Expand Down

0 comments on commit d747d6c

Please sign in to comment.