You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way we implement Zeroize for NonIdentity is to set it to the generator point. To that end we rely on the Group trait to get us that generator point. Unfortunately this means Zeroize isn't implemented for NonIdentity<AffinePoint> because they don't implement Group.
This could be solved with specialization on the trait PrimeCurveAffine, but unfortunately Rust isn't there yet.
The way we implement
ZeroizeforNonIdentityis to set it to the generator point. To that end we rely on theGrouptrait to get us that generator point. Unfortunately this meansZeroizeisn't implemented forNonIdentity<AffinePoint>because they don't implementGroup.This could be solved with specialization on the trait
PrimeCurveAffine, but unfortunately Rust isn't there yet.I propose the following solutions:
NonIdentityinto two types (see IntroduceNonIdentityPoint#1170).(feel free to close the issue if its not considered worth the effort)