Add get_u/get_v methods.

This commit is contained in:
Sean Bowe 2019-01-07 11:59:03 -07:00
parent e3f219ae84
commit 6e186d12ee
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 8 additions and 0 deletions

View File

@ -236,6 +236,14 @@ impl AffinePoint {
}
}
pub fn get_u(&self) -> Fq {
self.u
}
pub fn get_v(&self) -> Fq {
self.v
}
pub fn cache(&self) -> AffineNielsPoint {
AffineNielsPoint {
v_plus_u: &self.v + &self.u,