From b53be18c8fa0697566404f7f25cdbdfc48dd3380 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 18 Apr 2020 04:22:57 -0400 Subject: [PATCH] Remove unused From<[u8; 32]> for SpendAuthorizingKey --- zebra-chain/src/keys/sapling.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zebra-chain/src/keys/sapling.rs b/zebra-chain/src/keys/sapling.rs index d887f4c7f..34293c257 100644 --- a/zebra-chain/src/keys/sapling.rs +++ b/zebra-chain/src/keys/sapling.rs @@ -263,12 +263,6 @@ impl fmt::Debug for SpendAuthorizingKey { } } -impl From<[u8; 32]> for SpendAuthorizingKey { - fn from(bytes: [u8; 32]) -> Self { - Self(Scalar::from_bytes(&bytes).unwrap()) - } -} - impl From for [u8; 32] { fn from(sk: SpendAuthorizingKey) -> Self { sk.0.to_bytes()