mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
core/vm: remove subgroup checks
This commit is contained in:
parent
88f1c0993f
commit
6a8fc2df1e
1 changed files with 2 additions and 2 deletions
|
|
@ -989,8 +989,8 @@ func decodePointG1(in []byte) (*bls12381.G1Affine, error) {
|
|||
return nil, err
|
||||
}
|
||||
elem := bls12381.G1Affine{X: x, Y: y}
|
||||
if !elem.IsInSubGroup() {
|
||||
return nil, errors.New("invalid point: subgroup check failed")
|
||||
if !elem.IsOnCurve() {
|
||||
return nil, errors.New("invalid point: not on curve")
|
||||
}
|
||||
|
||||
return &elem, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue