diff --git a/keys/keys.go b/keys/keys.go index 3c381c73..0a2266b8 100644 --- a/keys/keys.go +++ b/keys/keys.go @@ -97,7 +97,8 @@ func ImportPrivateKey(privKeyHex string, curve types.CurveType) (*KeyPair, error x, y := crv.ScalarBaseMult(privKey) // IsOnCurve will return false for the point at infinity (0, 0) - // See: https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 + // See: + // https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 if !crv.IsOnCurve(x, y) { return nil, ErrPubKeyNotOnCurve } diff --git a/keys/signer_secp256r1.go b/keys/signer_secp256r1.go index 367c16dd..b8a24548 100644 --- a/keys/signer_secp256r1.go +++ b/keys/signer_secp256r1.go @@ -76,7 +76,8 @@ func (s *SignerSecp256r1) Sign( x, y := crv.ScalarBaseMult(s.KeyPair.PrivateKey) // IsOnCurve will return false for the point at infinity (0, 0) - // See: https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 + // See: + // https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 if !crv.IsOnCurve(x, y) { return nil, ErrPubKeyNotOnCurve } @@ -130,7 +131,8 @@ func (s *SignerSecp256r1) Verify(signature *types.Signature) error { x, y := elliptic.Unmarshal(elliptic.P256(), signature.PublicKey.Bytes) // IsOnCurve will return false for the point at infinity (0, 0) - // See: https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 + // See: + // https://github.com/golang/go/blob/3298300ddf45a0792b4d8ea5e05f0fbceec4c9f9/src/crypto/elliptic/elliptic.go#L24 if !crv.IsOnCurve(x, y) { return ErrPubKeyNotOnCurve }