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 /swarm | |
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 'swarm')
-rw-r--r-- | swarm/api/config_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go index 6b5cea915..85d056270 100644 --- a/swarm/api/config_test.go +++ b/swarm/api/config_test.go @@ -96,7 +96,10 @@ func TestConfigWriteRead(t *testing.T) { } defer os.RemoveAll(tmp) - prvkey := crypto.ToECDSA(common.Hex2Bytes(hexprvkey)) + prvkey, err := crypto.HexToECDSA(hexprvkey) + if err != nil { + t.Fatalf("failed to load private key: %v", err) + } orig, err := NewConfig(tmp, common.Address{}, prvkey, 323) if err != nil { t.Fatalf("expected no error, got %v", err) |