Function rejectIdentity [src]
Reject the neutral element.
Prototype
pub fn rejectIdentity(p: Edwards25519) IdentityElementError!void
Parameters
p: Edwards25519
Possible Errors
Source
pub fn rejectIdentity(p: Edwards25519) IdentityElementError!void {
if (p.x.isZero()) {
return error.IdentityElement;
}
}