-
Notifications
You must be signed in to change notification settings - Fork 228
Closed
Description
This is similar to NonZeroScalar.
I often found myself handrolling custom serde implementations to make sure that a ProjectivePoint is not an identity element.
Additionally it could be useful to allow arithmetic that can guarantee some outputs without having to constantly check for identity elements. For example multiplying a NonIdentityElement with a NonZeroScalar should yield a NonIdentityElement without having to do any checks or returning an (Ct)Option.
Interactions with PublicKey could be similar to whats done between NonZeroScalar and SecretKey, enabling non-fallible conversions.
Happy to make a PR of course.
Metadata
Metadata
Assignees
Labels
No labels