When trying to upgrade from the last RC, I ran into this. The following test code should pass, but it will not, breaking the ability to use the crypto_box functionality.
let mut rng = rand::thread_rng();
let key = ed25519_dalek::SigningKey::generate(&mut rng);
let public_key1 = {
let m = key.verifying_key().to_montgomery();
crypto_box::PublicKey::from(m)
};
let public_key2 = {
let s = key.to_scalar();
let cs = crypto_box::SecretKey::from(s);
cs.public_key()
};
assert_eq!(public_key1, public_key2); // fails
When trying to upgrade from the last RC, I ran into this. The following test code should pass, but it will not, breaking the ability to use the
crypto_box
functionality.