mobile: fix documentation

This commit is contained in:
Bastian Müller 2018-02-02 16:43:37 -08:00
parent 0553c2cf5e
commit f695b681e7

View file

@ -206,7 +206,7 @@ func (ks *KeyStore) ImportKey(keyJSON []byte, passphrase, newPassphrase string)
return &Account{acc}, nil return &Account{acc}, nil
} }
// ImportECDSAKey stores the given encrypted JSON key into the key directory. // ImportECDSAKey stores the given key into the key directory, encrypting it with the passphrase.
func (ks *KeyStore) ImportECDSAKey(key []byte, passphrase string) (account *Account, _ error) { func (ks *KeyStore) ImportECDSAKey(key []byte, passphrase string) (account *Account, _ error) {
privkey, err := crypto.ToECDSA(common.CopyBytes(key)) privkey, err := crypto.ToECDSA(common.CopyBytes(key))
if err != nil { if err != nil {