diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-19 14:35:20 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:50 +0800 |
commit | 7febfae8bba63f6b7e1326b22437dee38989c400 (patch) | |
tree | fc9610537d2f3be3776a1e1c3b5fc4849a8587e4 /test/keygen.go | |
parent | 17fb63161b6672c0e8101e5fde709b1b7ab2df23 (diff) | |
download | dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar.gz dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar.bz2 dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar.lz dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar.xz dexon-7febfae8bba63f6b7e1326b22437dee38989c400.tar.zst dexon-7febfae8bba63f6b7e1326b22437dee38989c400.zip |
dex: fix public key parsing due to changes in consensus core
Diffstat (limited to 'test/keygen.go')
-rw-r--r-- | test/keygen.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/keygen.go b/test/keygen.go index b2c789723..986342368 100644 --- a/test/keygen.go +++ b/test/keygen.go @@ -14,7 +14,7 @@ func main() { panic(err) } address := crypto.PubkeyToAddress(privKey.PublicKey).String() - pk := hex.EncodeToString(crypto.CompressPubkey(&privKey.PublicKey)) + pk := hex.EncodeToString(crypto.FromECDSAPub(&privKey.PublicKey)) fmt.Printf(` "%s": { |