forked from TrueCloudLab/frostfs-node
[#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:
parent
2680192ba0
commit
15fc5bac26
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue