aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-22 06:00:39 +0800
committerFelix Lange <fjl@twurst.com>2016-04-12 21:34:39 +0800
commit83877a0f9d3d5716ee01393f10c2dfa19bb0310b (patch)
tree6cb52aab194cdd3f0f5b197f057e942ae4689fa9 /crypto
parent8627680e24a29abd5f2aaaeaa2c1c852d8fb693b (diff)
downloadgo-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar.gz
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar.bz2
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar.lz
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar.xz
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.tar.zst
go-tangerine-83877a0f9d3d5716ee01393f10c2dfa19bb0310b.zip
tests: remove eth, node, accounts dependencies
Unlocking the accounts in the test doesn't help with anything.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/crypto.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index f1f6affac..cd0e4e101 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -217,19 +217,6 @@ func Decrypt(prv *ecdsa.PrivateKey, ct []byte) ([]byte, error) {
return key.Decrypt(rand.Reader, ct, nil, nil)
}
-// Used only by block tests.
-func ImportBlockTestKey(privKeyBytes []byte) error {
- ks := NewKeyStorePassphrase(common.DefaultDataDir()+"/keystore", LightScryptN, LightScryptP)
- ecKey := ToECDSA(privKeyBytes)
- key := &Key{
- Id: uuid.NewRandom(),
- Address: PubkeyToAddress(ecKey.PublicKey),
- PrivateKey: ecKey,
- }
- err := ks.StoreKey(key, "")
- return err
-}
-
// creates a Key and stores that in the given KeyStore by decrypting a presale key JSON
func ImportPreSaleKey(keyStore KeyStore, keyJSON []byte, password string) (*Key, error) {
key, err := decryptPreSaleKey(keyJSON, password)