Require that ak in FullViewingKey is prime order

This commit is contained in:
Jack Grigg
2019-06-05 15:29:25 +01:00
parent 75bede4bc8
commit 6846ac5f9e
2 changed files with 46 additions and 3 deletions

View File

@@ -62,6 +62,7 @@ impl<E: JubjubEngine> ProofGenerationKey<E> {
}
}
#[derive(Debug)]
pub struct ViewingKey<E: JubjubEngine> {
pub ak: edwards::Point<E, PrimeOrder>,
pub nk: edwards::Point<E, PrimeOrder>