Skip to content

Instantly share code, notes, and snippets.

@kali
Created August 29, 2016 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kali/106bfed859591904e69f8411775b3aab to your computer and use it in GitHub Desktop.
Save kali/106bfed859591904e69f8411775b3aab to your computer and use it in GitHub Desktop.
Zp field
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