aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-27 02:55:39 +0800
committerzelig <viktor.tron@gmail.com>2015-03-27 03:00:18 +0800
commit7577d1261403dbabdb30e21415d34b4e5da466ec (patch)
tree5b5fe5aeb443a8fd8a325743490b8fb416a903d3 /accounts
parentabbdf4156057de8a4f866b0840defc00c2c500db (diff)
downloadgo-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar.gz
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar.bz2
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar.lz
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar.xz
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.tar.zst
go-tangerine-7577d1261403dbabdb30e21415d34b4e5da466ec.zip
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
Diffstat (limited to 'accounts')
-rw-r--r--accounts/account_manager.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index 392518703..34a2c4891 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -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 {