From 832a75bf4528cb797d04261d23d5c0bd9b572b3b Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Fri, 11 Oct 2024 11:21:41 -0700 Subject: [PATCH] allow dead code --- verifier/src/converter.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/verifier/src/converter.rs b/verifier/src/converter.rs index 5dd59d7..a6fa377 100644 --- a/verifier/src/converter.rs +++ b/verifier/src/converter.rs @@ -42,6 +42,7 @@ pub(crate) fn deserialize_with_flags(buf: &[u8]) -> Result<(Fq, CompressedPointF } } +#[allow(dead_code)] pub(crate) fn compressed_x_to_g1_point(buf: &[u8]) -> Result { let (x, m_data) = deserialize_with_flags(buf)?; let (y, neg_y) = AffineG1::get_ys_from_x_unchecked(x).ok_or(Error::InvalidPoint)?; @@ -86,6 +87,7 @@ pub(crate) fn uncompressed_bytes_to_g1_point(buf: &[u8]) -> Result Result { if buf.len() != 64 { return Err(Error::InvalidXLength);