Skip to content

Commit

Permalink
Merge pull request axiom-crypto#2 from han0110/fix/impl-fq2-to-repr
Browse files Browse the repository at this point in the history
Implement `ff::PrimeField::to_repr` for `bn256::Fq2`
  • Loading branch information
han0110 authored Aug 15, 2022
2 parents bbd4cee + a047fb5 commit f75ed26
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 f75ed26

Please sign in to comment.