[#972] keyer: Use UncompressedBytes() for marshaling

elliptic.Marshal() becomes deprecated in go1.21

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-02-14 12:34:25 +03:00 committed by Evgenii Stratonikov
parent 2680192ba0
commit 15fc5bac26

View file

@ -1,7 +1,6 @@
package keyer package keyer
import ( import (
"crypto/elliptic"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
"os" "os"
@ -45,7 +44,7 @@ func (d Dashboard) PrettyPrint(uncompressed, useHex bool) {
if d.pubKey != nil { if d.pubKey != nil {
if uncompressed { if uncompressed {
data = elliptic.Marshal(elliptic.P256(), d.pubKey.X, d.pubKey.Y) data = d.pubKey.UncompressedBytes()
} else { } else {
data = d.pubKey.Bytes() data = d.pubKey.Bytes()
} }