diff --git a/ec/src/pairing.rs b/ec/src/pairing.rs index 90012301e..b2a773e6f 100644 --- a/ec/src/pairing.rs +++ b/ec/src/pairing.rs @@ -127,12 +127,18 @@ pub trait Pairing: Sized + 'static + Copy + Debug + Sync + Send + Eq { Eq(bound = "P: Pairing"), PartialOrd(bound = "P: Pairing"), Ord(bound = "P: Pairing"), - Default(bound = "P: Pairing"), Hash(bound = "P: Pairing") )] #[must_use] pub struct PairingOutput(pub P::TargetField); +impl Default for PairingOutput

{ + fn default() -> Self { + // Default value is AdditiveGroup::ZERO (i.e., P::TargetField::one()) + Self::ZERO + } +} + impl CanonicalSerialize for PairingOutput

{ #[allow(unused_qualifications)] #[inline]