DoxigAlpha

equivalent

Return true if both coordinate sets represent the same point.

Function parameters

Parameters

#

Group operations over P256.

Types

#
P256
Group operations over P256.
AffineCoordinates
A point in affine coordinates.

Source

Implementation

#
pub fn equivalent(a: P256, b: P256) bool {
    if (a.sub(b).rejectIdentity()) {
        return false;
    } else |_| {
        return true;
    }
}