From 70bf663b6387ab93d4ed6d6efbe579f44f3a723c Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 22 Nov 2024 15:46:01 +0000 Subject: [PATCH] chore: remove some dead code (#76) --- src/key.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/key.rs b/src/key.rs index 95df77e..08ef536 100644 --- a/src/key.rs +++ b/src/key.rs @@ -16,8 +16,6 @@ use blstrs::{G1Affine, G1Projective, G2Affine, Scalar}; #[cfg(feature = "blst")] use group::prime::PrimeCurveAffine; -pub(crate) struct ScalarRepr(::ReprBits); - use crate::error::Error; use crate::signature::*; @@ -52,18 +50,6 @@ impl From for Scalar { } } -impl From for ScalarRepr { - fn from(val: PrivateKey) -> Self { - ScalarRepr(val.0.to_le_bits().into_inner()) - } -} - -impl<'a> From<&'a PrivateKey> for ScalarRepr { - fn from(val: &'a PrivateKey) -> Self { - (*val).into() - } -} - pub trait Serialize: ::std::fmt::Debug + Sized { /// Writes the key to the given writer. fn write_bytes(&self, dest: &mut impl io::Write) -> io::Result<()>;