From 9bc67f9da6e49b61987799a189bb56f2728692e0 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 26 Aug 2024 21:11:00 +0300 Subject: [PATCH] keys: mute elliptic.Marshal deprecation warning Signed-off-by: Roman Khimov --- pkg/crypto/keys/publickey.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/crypto/keys/publickey.go b/pkg/crypto/keys/publickey.go index e6c4835cc..3bce10de9 100644 --- a/pkg/crypto/keys/publickey.go +++ b/pkg/crypto/keys/publickey.go @@ -152,7 +152,7 @@ func (p *PublicKey) getBytes(compressed bool) []byte { if compressed { return elliptic.MarshalCompressed(p.Curve, p.X, p.Y) } - return elliptic.Marshal(p.Curve, p.X, p.Y) + return elliptic.Marshal(p.Curve, p.X, p.Y) //nolint:staticcheck // We don't care about ECDH, but UncompressedBytes() should still work. } // Bytes returns byte array representation of the public key in compressed