Fix key store address hex decoding and accounts test

Thanks to https://github.com/jaekwon for original fix!
This commit is contained in:
Gustav Simonsson
2015-02-24 18:03:10 +01:00
parent 91a8c08f03
commit 923950ccaa
3 changed files with 22 additions and 3 deletions

View File

@ -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 {