Add another test for equivalence with the Edwards identity.

This commit is contained in:
Isis Lovecruft 2021-04-21 00:06:44 +00:00
parent 0d8f33153c
commit d7c2a1394f
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -366,6 +366,11 @@ mod test {
assert!(id_montgomery == MontgomeryPoint::identity());
}
#[test]
fn identity_in_different_models() {
assert!(EdwardsPoint::identity().to_montgomery() == MontgomeryPoint::identity());
}
#[test]
#[cfg(feature = "serde")]
fn serde_bincode_basepoint_roundtrip() {