Created
August 29, 2016 11:15
-
-
Save kali/106bfed859591904e69f8411775b3aab to your computer and use it in GitHub Desktop.
Zp field
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub trait ZpField: Field { | |
fn new(prime: u64) -> Self; | |
fn from(&self, a: u64) -> Self::U; | |
fn back(&self, a: Self::U) -> u64; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment