aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/account_manager.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-02-25 01:03:10 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-02-25 01:05:10 +0800
commit923950ccaaa4f9c1c0cebfbdd99fb0f16c47fd37 (patch)
tree8b268fcfcf2585c38db00d57b5bf5da4c2040473 /accounts/account_manager.go
parent91a8c08f037c1ec737d15ce00c6720015347e0d6 (diff)
downloaddexon-923950ccaaa4f9c1c0cebfbdd99fb0f16c47fd37.tar.gz
dexon-923950ccaaa4f9c1c0cebfbdd99fb0f16c47fd37.tar.zst
dexon-923950ccaaa4f9c1c0cebfbdd99fb0f16c47fd37.zip
Fix key store address hex decoding and accounts test
Thanks to https://github.com/jaekwon for original fix!
Diffstat (limited to 'accounts/account_manager.go')
-rw-r--r--accounts/account_manager.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index da0bd8900..f7a7506ba 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -56,6 +56,10 @@ func NewAccountManager(keyStore crypto.KeyStore2) AccountManager {
return *am
}
+func (am AccountManager) DeleteAccount(address []byte, auth string) error {
+ return am.keyStore.DeleteKey(address, auth)
+}
+
func (am *AccountManager) Sign(fromAccount *Account, keyAuth string, toSign []byte) (signature []byte, err error) {
key, err := am.keyStore.GetKey(fromAccount.Address, keyAuth)
if err != nil {