mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Add another test for equivalence with the Edwards identity.
This commit is contained in:
parent
0d8f33153c
commit
d7c2a1394f
1 changed files with 5 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue