Impl is_odd for dfg::Scalar

This commit is contained in:
Luke Parker
2022-08-31 01:05:30 -04:00
parent faa43b6874
commit a59bbe7635
3 changed files with 4 additions and 4 deletions

View File

@@ -244,7 +244,7 @@ impl PrimeField for Scalar {
const S: u32 = 2;
fn is_odd(&self) -> Choice {
unimplemented!()
choice(self.to_le_bits()[0])
}
fn multiplicative_generator() -> Self {
2u64.into()