mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
Fix is_zero for twisted Edwards curves (#101)
* fix the te is_zero * update CHANGELOG Co-authored-by: onewayfunc <onewayfunc@gmail.com>
This commit is contained in:
@@ -423,7 +423,7 @@ where
|
||||
}
|
||||
|
||||
fn is_zero(&self) -> Result<Boolean<<P::BaseField as Field>::BasePrimeField>, SynthesisError> {
|
||||
self.x.is_zero()?.and(&self.x.is_one()?)
|
||||
self.x.is_zero()?.and(&self.y.is_one()?)
|
||||
}
|
||||
|
||||
#[tracing::instrument(target = "r1cs", skip(cs, f))]
|
||||
|
||||
Reference in New Issue
Block a user