Add proptest around pubkey generation
This commit is contained in:
parent
0e49e2d4fe
commit
8cb2444511
12
src/lib.rs
12
src/lib.rs
|
@ -315,5 +315,17 @@ mod tests {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn scalar_mul_different_paths(
|
||||
secret in any::<EphemeralSecret>(),
|
||||
) {
|
||||
let other_public = PublicKey(constants::RISTRETTO_BASEPOINT_POINT * secret.0);
|
||||
|
||||
prop_assert_eq!(
|
||||
other_public,
|
||||
PublicKey::from(&secret)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue