using keyPair.Mnemonic() in file key store Save method
This commit is contained in:
parent
25314313f8
commit
2920795168
@ -61,7 +61,7 @@ func (k *FileKeyStore) Save(session string, keyRing *KeyRing) error {
|
|||||||
privateKeys = append(privateKeys, ethutil.Bytes2Hex(keyPair.PrivateKey))
|
privateKeys = append(privateKeys, ethutil.Bytes2Hex(keyPair.PrivateKey))
|
||||||
publicKeys = append(publicKeys, ethutil.Bytes2Hex(keyPair.PublicKey))
|
publicKeys = append(publicKeys, ethutil.Bytes2Hex(keyPair.PublicKey))
|
||||||
addresses = append(addresses, ethutil.Bytes2Hex(keyPair.Address()))
|
addresses = append(addresses, ethutil.Bytes2Hex(keyPair.Address()))
|
||||||
mnemonics = append(mnemonics, strings.Join(MnemonicEncode(ethutil.Bytes2Hex(keyPair.PrivateKey)), " "))
|
mnemonics = append(mnemonics, keyPair.Mnemonic())
|
||||||
})
|
})
|
||||||
|
|
||||||
basename := session
|
basename := session
|
||||||
|
Loading…
Reference in New Issue
Block a user