ff: Remove frobenius_map from Field trait

It is only used internally in the bls12_381 crate, and field extensions
aren't exposed anywhere in the Zcash stack.
This commit is contained in:
Jack Grigg
2020-05-01 14:01:43 +12:00
parent 1761ebfb35
commit 55568b4d6e
10 changed files with 23 additions and 73 deletions

View File

@@ -214,10 +214,6 @@ impl Field for Fr {
}
}
fn frobenius_map(&mut self, _: usize) {
// identity
}
fn sqrt(&self) -> CtOption<Self> {
// Tonelli-Shank's algorithm for q mod 16 = 1
// https://eprint.iacr.org/2012/685.pdf (page 12, algorithm 5)