real/imagianry part exposure

This commit is contained in:
NikVolf
2019-03-13 12:46:56 +03:00
parent 7395ad6d1d
commit 76c1296cfe
2 changed files with 16 additions and 0 deletions
+8
View File
@@ -92,6 +92,14 @@ impl Fq2 {
}
}
}
pub fn real(&self) -> &Fq {
&self.c0
}
pub fn imaginary(&self) -> &Fq {
&self.c1
}
}
impl FieldElement for Fq2 {