group: CofactorGroup::mul_by_cofactor -> CofactorGroup::clear_cofactor

The generic API now only guarantees that the torsion component is
cleared deterministically; group elements may be multiplied by multiples
of the cofactor (not necessarily the actual cofactor), as long as the
choice of multiplier is fixed for a given implementation.
This commit is contained in:
Jack Grigg 2020-08-12 08:02:29 +01:00
parent e534f36ec4
commit 6875667f1d
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ impl PrimeGroup for Fr {}
impl CofactorGroup for Fr {
type Subgroup = Fr;
fn mul_by_cofactor(&self) -> Self::Subgroup {
fn clear_cofactor(&self) -> Self::Subgroup {
*self
}