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:
parent
e534f36ec4
commit
6875667f1d
|
@ -399,7 +399,7 @@ impl PrimeGroup for Fr {}
|
||||||
impl CofactorGroup for Fr {
|
impl CofactorGroup for Fr {
|
||||||
type Subgroup = Fr;
|
type Subgroup = Fr;
|
||||||
|
|
||||||
fn mul_by_cofactor(&self) -> Self::Subgroup {
|
fn clear_cofactor(&self) -> Self::Subgroup {
|
||||||
*self
|
*self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue