From 630d0218864cf822064bae2bfca42a2a4fb27ef1 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 18 Apr 2020 04:00:52 -0400 Subject: [PATCH] Remove unused From<[u8; 32]> for ProofAuthorizingKey --- zebra-chain/src/keys/sapling.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/zebra-chain/src/keys/sapling.rs b/zebra-chain/src/keys/sapling.rs index cb33bf1e..d887f4c7 100644 --- a/zebra-chain/src/keys/sapling.rs +++ b/zebra-chain/src/keys/sapling.rs @@ -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 for [u8; 32] { - fn from(sk: ProofAuthorizingKey) -> Self { - sk.0.to_bytes() + fn from(nsk: ProofAuthorizingKey) -> Self { + nsk.0.to_bytes() } }