Do not try to make a jubjub extended point work as a scalar in redjubjub PublicKey From impl

This commit is contained in:
Deirdre Connolly 2020-04-17 04:04:04 -04:00 committed by Deirdre Connolly
parent 94c6d74ecb
commit 5d430cff12
1 changed files with 1 additions and 2 deletions

View File

@ -399,8 +399,7 @@ impl Deref for AuthorizingKey {
impl From<[u8; 32]> for AuthorizingKey {
fn from(bytes: [u8; 32]) -> Self {
let sk = redjubjub::SecretKey::<SpendAuth>::try_from(bytes).unwrap();
Self(redjubjub::PublicKey::from(&sk))
Self(redjubjub::PublicKey::try_from(bytes).unwrap())
}
}