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