From 39b8e9859fddecb71a6d4a24f962f990e477fcc4 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sat, 24 Apr 2021 00:50:01 -0400 Subject: [PATCH] Do not derive Hash for orchard::Nullifier as pallas::Base doesn't have it If we need Hash, we may need to replace the inner type with bytes. --- zebra-chain/src/orchard/note/nullifiers.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/zebra-chain/src/orchard/note/nullifiers.rs b/zebra-chain/src/orchard/note/nullifiers.rs index b75cfc811..a7e2466f2 100644 --- a/zebra-chain/src/orchard/note/nullifiers.rs +++ b/zebra-chain/src/orchard/note/nullifiers.rs @@ -35,15 +35,7 @@ fn prf_nf(nk: pallas::Base, rho: pallas::Base) -> pallas::Base { } /// A Nullifier for Orchard transactions -#[derive( - Clone, - Copy, - Debug, - Eq, // Hash, - PartialEq, - Serialize, - Deserialize, -)] +#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)] pub struct Nullifier(#[serde(with = "serde_helpers::Base")] pallas::Base); impl From<[u8; 32]> for Nullifier {