Skip to content

Commit 70bf663

Browse files
authored
chore: remove some dead code (#76)
1 parent d3238ec commit 70bf663

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/key.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use blstrs::{G1Affine, G1Projective, G2Affine, Scalar};
1616
#[cfg(feature = "blst")]
1717
use group::prime::PrimeCurveAffine;
1818

19-
pub(crate) struct ScalarRepr(<Scalar as PrimeFieldBits>::ReprBits);
20-
2119
use crate::error::Error;
2220
use crate::signature::*;
2321

@@ -52,18 +50,6 @@ impl From<PrivateKey> for Scalar {
5250
}
5351
}
5452

55-
impl From<PrivateKey> for ScalarRepr {
56-
fn from(val: PrivateKey) -> Self {
57-
ScalarRepr(val.0.to_le_bits().into_inner())
58-
}
59-
}
60-
61-
impl<'a> From<&'a PrivateKey> for ScalarRepr {
62-
fn from(val: &'a PrivateKey) -> Self {
63-
(*val).into()
64-
}
65-
}
66-
6753
pub trait Serialize: ::std::fmt::Debug + Sized {
6854
/// Writes the key to the given writer.
6955
fn write_bytes(&self, dest: &mut impl io::Write) -> io::Result<()>;

0 commit comments

Comments
 (0)