Skip to content

Commit

Permalink
Include infinity bit in ToConstraintField for SW curves
Browse files Browse the repository at this point in the history
  • Loading branch information
weikengchen authored Nov 12, 2020
1 parent 4a4851d commit ebd8774
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ec/src/models/short_weierstrass_jacobian.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,9 @@ where
fn to_field_elements(&self) -> Option<Vec<ConstraintF>> {
let mut x_fe = self.x.to_field_elements()?;
let y_fe = self.y.to_field_elements()?;
let infinity_fe = self.infinity.to_field_elements()?;
x_fe.extend_from_slice(&y_fe);
x_fe.extend_from_slice(&infinity_fe);
Some(x_fe)
}
}
Expand Down

0 comments on commit ebd8774

Please sign in to comment.