1
2
3
4
5
6
7
8
9
use super::*;
use bls::{PublicKey, SecretKey};

impl TestRandom for PublicKey {
    fn random_for_test(rng: &mut impl RngCore) -> Self {
        let secret_key = SecretKey::random_for_test(rng);
        PublicKey::from_secret_key(&secret_key)
    }
}