crypto/bls12381: fix typo in comment (#27930)

This commit is contained in:
lonika 2023-08-15 20:37:34 +08:00 committed by GitHub
parent f1801a9fed
commit 05a8b887a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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")