Unverified Commit 05a8b887 authored by lonika's avatar lonika Committed by GitHub

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

parent f1801a9f
...@@ -121,7 +121,7 @@ func (g *G2) FromBytes(in []byte) (*PointG2, error) { ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment