From 05a8b887a9f614f6d3d67c17a2469bca9f927767 Mon Sep 17 00:00:00 2001 From: lonika <18641798+lei335@users.noreply.github.com> Date: Tue, 15 Aug 2023 20:37:34 +0800 Subject: [PATCH] crypto/bls12381: fix typo in comment (#27930) --- crypto/bls12381/g2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bls12381/g2.go b/crypto/bls12381/g2.go index 4d6f1ff11..e5fe75af2 100644 --- a/crypto/bls12381/g2.go +++ b/crypto/bls12381/g2.go @@ -121,7 +121,7 @@ func (g *G2) FromBytes(in []byte) (*PointG2, error) { 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) { if len(in) != 256 { return nil, errors.New("invalid g2 point length")