Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj committed Dec 1, 2023
1 parent 19ec795 commit 269e782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastcrypto/src/serde_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ pub trait ToFromByteArray<const LENGTH: usize>: Sized {

// This is used for multi-scalar multiplication
impl<const N: usize> ToFromByteArray<N> for BigInt {
fn from_byte_array(bytes: &[u8; N]) -> Result<Self, FastCryptoError> {
Ok(BigInt::from_signed_bytes_be(bytes))
fn from_byte_array(_bytes: &[u8; N]) -> Result<Self, FastCryptoError> {
panic!("Not used")

Check warning on line 78 in fastcrypto/src/serde_helpers.rs

View check run for this annotation

Codecov / codecov/patch

fastcrypto/src/serde_helpers.rs#L77-L78

Added lines #L77 - L78 were not covered by tests
}

fn to_byte_array(&self) -> [u8; N] {
Expand Down

0 comments on commit 269e782

Please sign in to comment.