max paranoia mode to UNsupport unencrypted keys entirely

- remove account export functionality from CLI
- remove accountExport method,
- remove unencrypted-keys flag from everywhere
- improve documentation
This commit is contained in:
zelig
2015-03-26 18:55:39 +00:00
parent abbdf41560
commit 7577d12614
3 changed files with 74 additions and 93 deletions

View File

@ -208,6 +208,8 @@ func zeroKey(k *ecdsa.PrivateKey) {
}
}
// USE WITH CAUTION = this will save an unencrypted private key on disk
// no cli or js interface
func (am *Manager) Export(path string, addr []byte, keyAuth string) error {
key, err := am.keyStore.GetKey(addr, keyAuth)
if err != nil {