Function equivalent [src]
Return true if both coordinate sets represent the same point.
Prototype
pub fn equivalent(a: P256, b: P256) bool
Parameters
a: P256
b: P256
Source
pub fn equivalent(a: P256, b: P256) bool {
if (a.sub(b).rejectIdentity()) {
return false;
} else |_| {
return true;
}
}