Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
allow dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Oct 11, 2024
1 parent ed119fa commit 832a75b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions verifier/src/converter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AffineG1, Error> {
let (x, m_data) = deserialize_with_flags(buf)?;
let (y, neg_y) = AffineG1::get_ys_from_x_unchecked(x).ok_or(Error::InvalidPoint)?;
Expand Down Expand Up @@ -86,6 +87,7 @@ pub(crate) fn uncompressed_bytes_to_g1_point(buf: &[u8]) -> Result<AffineG1, Err
AffineG1::new(x, y).map_err(Error::Group)
}

#[allow(dead_code)]
pub(crate) fn compressed_x_to_g2_point(buf: &[u8]) -> Result<AffineG2, Error> {
if buf.len() != 64 {
return Err(Error::InvalidXLength);
Expand Down

0 comments on commit 832a75b

Please sign in to comment.