Add get_u/get_v methods.
This commit is contained in:
parent
e3f219ae84
commit
6e186d12ee
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue