ff: PrimeField::{is_even, is_odd}
This commit is contained in:
parent
43573a953b
commit
027cb982dc
|
@ -332,6 +332,10 @@ impl PrimeField for Fr {
|
|||
FrRepr::from(*self)
|
||||
}
|
||||
|
||||
fn is_odd(&self) -> bool {
|
||||
(self.0).0 % 2 != 0
|
||||
}
|
||||
|
||||
fn char() -> FrRepr {
|
||||
Fr(MODULUS_R).into()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue