Do not try to make a jubjub extended point work as a scalar in redjubjub PublicKey From impl
This commit is contained in:
parent
94c6d74ecb
commit
5d430cff12
|
|
@ -399,8 +399,7 @@ impl Deref for AuthorizingKey {
|
||||||
|
|
||||||
impl From<[u8; 32]> for AuthorizingKey {
|
impl From<[u8; 32]> for AuthorizingKey {
|
||||||
fn from(bytes: [u8; 32]) -> Self {
|
fn from(bytes: [u8; 32]) -> Self {
|
||||||
let sk = redjubjub::SecretKey::<SpendAuth>::try_from(bytes).unwrap();
|
Self(redjubjub::PublicKey::try_from(bytes).unwrap())
|
||||||
Self(redjubjub::PublicKey::from(&sk))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue