File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
ec/src/models/short_weierstrass Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ pub struct Affine<P: SWCurveConfig> {
33
33
#[ doc( hidden) ]
34
34
pub y : P :: BaseField ,
35
35
#[ doc( hidden) ]
36
- pub infinity : P :: ZeroFlag ,
36
+ pub ( super ) infinity : P :: ZeroFlag ,
37
37
}
38
38
39
39
impl < P : SWCurveConfig > PartialEq < Projective < P > > for Affine < P > {
@@ -433,13 +433,12 @@ impl<P: SWCurveConfig> CanonicalDeserialize for Affine<P> {
433
433
impl < M : SWCurveConfig , ConstraintF : Field > ToConstraintField < ConstraintF > for Affine < M >
434
434
where
435
435
M :: BaseField : ToConstraintField < ConstraintF > ,
436
- M :: ZeroFlag : ToConstraintField < ConstraintF > ,
437
436
{
438
437
#[ inline]
439
438
fn to_field_elements ( & self ) -> Option < Vec < ConstraintF > > {
440
439
let mut x = self . x . to_field_elements ( ) ?;
441
440
let y = self . y . to_field_elements ( ) ?;
442
- let infinity = self . infinity . to_field_elements ( ) ?;
441
+ let infinity = self . is_zero ( ) . to_field_elements ( ) ?;
443
442
x. extend_from_slice ( & y) ;
444
443
x. extend_from_slice ( & infinity) ;
445
444
Some ( x)
You can’t perform that action at this time.
0 commit comments