mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
3.5.1 Document presence of k256/p256
This commit is contained in:
@@ -157,12 +157,20 @@ where
|
||||
test_prime_group::<G>();
|
||||
}
|
||||
|
||||
// Run these tests against k256/p256
|
||||
// This ensures that these tests are well formed and won't error for valid implementations,
|
||||
// assuming the validity of k256/p256
|
||||
// While k256 and p256 may be malformed in a way which coincides with a faulty test, this is
|
||||
// considered unlikely
|
||||
// The other option, not running against any libraries, would leave faulty tests completely
|
||||
// undetected
|
||||
|
||||
#[test]
|
||||
fn test_k256_group_encoding() {
|
||||
fn test_k256() {
|
||||
test_prime_group_bits::<k256::ProjectivePoint>();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_p256_group_encoding() {
|
||||
fn test_p256() {
|
||||
test_prime_group_bits::<p256::ProjectivePoint>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user