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<()>;