corrected a comment in bls12381/g2.go

This commit is contained in:
zl 2023-08-15 18:34:48 +08:00
parent 509cd428e9
commit a13517675c

View file

@ -121,7 +121,7 @@ func (g *G2) FromBytes(in []byte) (*PointG2, error) {
return p, nil return p, nil
} }
// DecodePoint given encoded (x, y) coordinates in 256 bytes returns a valid G1 Point. // DecodePoint given encoded (x, y) coordinates in 256 bytes returns a valid G2 Point.
func (g *G2) DecodePoint(in []byte) (*PointG2, error) { func (g *G2) DecodePoint(in []byte) (*PointG2, error) {
if len(in) != 256 { if len(in) != 256 {
return nil, errors.New("invalid g2 point length") return nil, errors.New("invalid g2 point length")