to big endian for elments

This commit is contained in:
NikVolf
2017-03-22 13:56:28 +03:00
parent 78cf02fd7b
commit e749d4577a
3 changed files with 36 additions and 1 deletions
+4
View File
@@ -79,6 +79,10 @@ macro_rules! field_impl {
pub fn modulus() -> U256 {
U256($modulus)
}
pub fn raw(&self) -> &U256 {
&self.0
}
}
impl FieldElement for $name {