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

@@ -499,11 +499,6 @@ impl Field for Fs {
CtOption::new(inverse, Choice::from(if self.is_zero() { 0 } else { 1 }))
}
#[inline(always)]
fn frobenius_map(&mut self, _: usize) {
// This has no effect in a prime field.
}
#[inline]
fn square(&self) -> Self {
let mut carry = 0;