keys: mute elliptic.Marshal deprecation warning

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2024-08-26 21:11:00 +03:00
parent b4e4567c2b
commit 9bc67f9da6

View file

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