Remove unused From<[u8; 32]> for ProofAuthorizingKey

This commit is contained in:
Deirdre Connolly 2020-04-18 04:00:52 -04:00 committed by Deirdre Connolly
parent d445799626
commit 630d021886
1 changed files with 2 additions and 8 deletions

View File

@ -311,15 +311,9 @@ impl fmt::Debug for ProofAuthorizingKey {
}
}
impl From<[u8; 32]> for ProofAuthorizingKey {
fn from(bytes: [u8; 32]) -> Self {
Self(Scalar::from_bytes(&bytes).unwrap())
}
}
impl From<ProofAuthorizingKey> for [u8; 32] {
fn from(sk: ProofAuthorizingKey) -> Self {
sk.0.to_bytes()
fn from(nsk: ProofAuthorizingKey) -> Self {
nsk.0.to_bytes()
}
}