mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-12 09:26:51 +00:00
Fix dalek_ff_group invert
This commit is contained in:
parent
41eaa1b124
commit
f50fd76b31
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ impl Field for Scalar {
|
|||
fn square(&self) -> Self { *self * self }
|
||||
fn double(&self) -> Self { *self + self }
|
||||
fn invert(&self) -> CtOption<Self> {
|
||||
CtOption::new(Self(self.0.invert()), self.is_zero())
|
||||
CtOption::new(Self(self.0.invert()), !self.is_zero())
|
||||
}
|
||||
fn sqrt(&self) -> CtOption<Self> { unimplemented!() }
|
||||
fn is_zero(&self) -> Choice { self.0.ct_eq(&DScalar::zero()) }
|
||||
|
|
Loading…
Reference in a new issue