diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-30 03:28:54 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-30 03:28:54 +0800 |
commit | 2920795168dfe5c5f1f1d66f09026f971d5e53fd (patch) | |
tree | a60f00c33d33a47f18a15278d2ea996eeeaf1dca /ethcrypto | |
parent | 25314313f8eefd5ae8d13b4c687e4811703eec2a (diff) | |
download | go-tangerine-2920795168dfe5c5f1f1d66f09026f971d5e53fd.tar.gz go-tangerine-2920795168dfe5c5f1f1d66f09026f971d5e53fd.tar.zst go-tangerine-2920795168dfe5c5f1f1d66f09026f971d5e53fd.zip |
using keyPair.Mnemonic() in file key store Save method
Diffstat (limited to 'ethcrypto')
-rw-r--r-- | ethcrypto/key_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethcrypto/key_store.go b/ethcrypto/key_store.go index c8c506fda..f14f14205 100644 --- a/ethcrypto/key_store.go +++ b/ethcrypto/key_store.go @@ -61,7 +61,7 @@ func (k *FileKeyStore) Save(session string, keyRing *KeyRing) error { privateKeys = append(privateKeys, ethutil.Bytes2Hex(keyPair.PrivateKey)) publicKeys = append(publicKeys, ethutil.Bytes2Hex(keyPair.PublicKey)) addresses = append(addresses, ethutil.Bytes2Hex(keyPair.Address())) - mnemonics = append(mnemonics, strings.Join(MnemonicEncode(ethutil.Bytes2Hex(keyPair.PrivateKey)), " ")) + mnemonics = append(mnemonics, keyPair.Mnemonic()) }) basename := session |