Skip to content

Commit

Permalink
fix: implement ff::PrimeField::to_repr for Fq2
Browse files Browse the repository at this point in the history
  • Loading branch information
han0110 committed Aug 14, 2022
1 parent bbd4cee commit a047fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "halo2curves"
version = "0.2.0"
version = "0.2.1"
authors = [
"Sean Bowe <[email protected]>",
"Jack Grigg <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/bn256/fq2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ impl ff::PrimeField for Fq2 {
}

fn to_repr(&self) -> Self::Repr {
unimplemented!();
Fq2Bytes(self.to_bytes())
}

fn is_odd(&self) -> Choice {
Expand Down

0 comments on commit a047fb5

Please sign in to comment.