Fixed all imports in keys

This commit is contained in:
Ethan Frey
2017-04-19 17:25:53 +02:00
parent 0bfae964e1
commit 91bd7efb7b
13 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ func (e secretbox) Decrypt(data []byte, pass string) (crypto.PrivKey, error) {
s := secret(pass)
private, err := crypto.DecryptSymmetric(data, s)
if err != nil {
return nil, errors.Wrap(err, "Invalid Passphrase")
return crypto.PrivKey{}, errors.Wrap(err, "Invalid Passphrase")
}
key, err := crypto.PrivKeyFromBytes(private)
return key, errors.Wrap(err, "Invalid Passphrase")