From a047fb59e11f4e6b06ce8ca776b62a6cbf856726 Mon Sep 17 00:00:00 2001 From: han0110 Date: Mon, 20 Jun 2022 23:50:31 +0800 Subject: [PATCH] fix: implement `ff::PrimeField::to_repr` for `Fq2` --- Cargo.toml | 2 +- src/bn256/fq2.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b63d90e30d..58e0bef1f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "halo2curves" -version = "0.2.0" +version = "0.2.1" authors = [ "Sean Bowe ", "Jack Grigg ", diff --git a/src/bn256/fq2.rs b/src/bn256/fq2.rs index d3770b79f3..b6d03929fa 100644 --- a/src/bn256/fq2.rs +++ b/src/bn256/fq2.rs @@ -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 {