We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75cab0f commit 116757bCopy full SHA for 116757b
1 file changed
core/services/keystore/keys/aptoskey/key.go
@@ -6,8 +6,6 @@ import (
6
crypto_rand "crypto/rand"
7
"fmt"
8
"io"
9
-
10
- "github.com/mr-tron/base58"
11
)
12
13
// Raw represents the Aptos private key
@@ -77,9 +75,10 @@ func (key Key) GetPublic() ed25519.PublicKey {
77
75
return key.pubKey
78
76
}
79
80
-// PublicKeyStr return base58 encoded public key
+// PublicKeyStr returns hex encoded public key
+// https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md#long
81
func (key Key) PublicKeyStr() string {
82
- return base58.Encode(key.pubKey)
+ return fmt.Sprintf("0x%064x", key.pubKey)
83
84
85
// Raw returns the seed from private key
0 commit comments