fn test_privatekey_clone()

in akd/src/ecvrf/tests.rs [282:291]


fn test_privatekey_clone() {
    // PrivateKey (aka SecretKey) uses a custom implementation of clone wherein
    // the cloned key is created from the bytes of the original
    for tv in TESTVECTORS.iter() {
        let orig = from_string!(VRFPrivateKey, tv.SK);
        let clone = orig.clone();
        // the same bytes comprise both keys
        assert_eq!(orig.as_bytes(), clone.as_bytes());
    }
}