Skip to content

Commit

Permalink
Revert bool -> field change
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Dec 12, 2024
1 parent 0b72076 commit ee7548b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,12 @@ pub(super) fn simplify_msm(
var_scalars.push(zero);
let result_x = dfg.make_constant(result_x, NumericType::NativeField);
let result_y = dfg.make_constant(result_y, NumericType::NativeField);

// Pushing a bool here is intentional, multi_scalar_mul takes two arguments:
// `points: [(Field, Field, bool); N]` and `scalars: [(Field, Field); N]`.
let result_is_infinity =
dfg.make_constant(result_is_infinity, NumericType::NativeField);
dfg.make_constant(result_is_infinity, NumericType::bool());

var_points.push(result_x);
var_points.push(result_y);
var_points.push(result_is_infinity);
Expand Down

0 comments on commit ee7548b

Please sign in to comment.