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

elliptic.Marshal() becomes deprecated in go1.21

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/993/head
Evgenii Stratonikov 2024-02-14 12:34:25 +03:00 committed by Evgenii Stratonikov
parent 2680192ba0
commit 15fc5bac26
1 changed files with 1 additions and 2 deletions

View File

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