diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-05-23 19:58:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-05-23 19:58:03 +0800 |
commit | aa73420207cba02a68befdbb8667f1e6ceed3f4d (patch) | |
tree | 76b4fb7ffc9440e7ff27b22dc367355d4fc84f5c /core | |
parent | 3556962053267def82f1a9f9e97a26f7b7c1450e (diff) | |
download | dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar.gz dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar.bz2 dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar.lz dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar.xz dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.tar.zst dexon-aa73420207cba02a68befdbb8667f1e6ceed3f4d.zip |
accounts/keystore, crypto: enforce 256 bit keys on import
Diffstat (limited to 'core')
-rw-r--r-- | core/types/transaction_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go index 6e4519c04..edbe171e6 100644 --- a/core/types/transaction_test.go +++ b/core/types/transaction_test.go @@ -79,7 +79,7 @@ func decodeTx(data []byte) (*Transaction, error) { } func defaultTestKey() (*ecdsa.PrivateKey, common.Address) { - key := crypto.ToECDSA(common.Hex2Bytes("45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8")) + key, _ := crypto.HexToECDSA("45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8") addr := crypto.PubkeyToAddress(key.PublicKey) return key, addr } |