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

@@ -1266,11 +1266,6 @@ fn prime_field_impl(
#invert_impl
}
#[inline(always)]
fn frobenius_map(&mut self, _: usize) {
// This has no effect in a prime field.
}
#[inline]
fn square(&self) -> Self
{

View File

@@ -72,10 +72,6 @@ pub trait Field:
/// failing if the element is zero.
fn invert(&self) -> CtOption<Self>;
/// Exponentiates this element by a power of the base prime modulus via
/// the Frobenius automorphism.
fn frobenius_map(&mut self, power: usize);
/// Returns the square root of the field element, if it is
/// quadratic residue.
fn sqrt(&self) -> CtOption<Self>;