mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 13:41:47 +00:00
keys: mute elliptic.Marshal deprecation warning
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
b4e4567c2b
commit
9bc67f9da6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue