diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2017-05-25 04:30:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-25 04:30:47 +0800 |
commit | ef25b826e655f8e6a57fc7a05454bf356382bd5f (patch) | |
tree | c843d8b5ca0064804e55f5d66dd910c0c106fc05 /core/types | |
parent | 261b3e235160d30cc7176e02fd0a43f2b60409c6 (diff) | |
parent | 136f78ff0a324f7f79296143a6ab7c2dd8a2c37d (diff) | |
download | dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar.gz dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar.bz2 dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar.lz dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar.xz dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.tar.zst dexon-ef25b826e655f8e6a57fc7a05454bf356382bd5f.zip |
Merge pull request #14502 from karalabe/mobile-import-ecdsa
Enforce 256 bit keys on raw import, support raw mobile imports
Diffstat (limited to 'core/types')
-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 } |