aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/account_manager.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-12-08 20:42:31 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-01-05 18:58:03 +0800
commitb37d175e59cda8c6afd6b4b1d6b7ed921dc59279 (patch)
treed78f5ca6d55effcf4f91a37f3d123983d96421fa /accounts/account_manager.go
parentbbce726c8a85e72141d9d7e690711738c09ede3b (diff)
downloadgo-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar.gz
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar.bz2
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar.lz
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar.xz
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.tar.zst
go-tangerine-b37d175e59cda8c6afd6b4b1d6b7ed921dc59279.zip
accounts, internal, mobile: polish accounts API, extend Android tests
Diffstat (limited to 'accounts/account_manager.go')
-rw-r--r--accounts/account_manager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go
index 12ff30bca..6460b6e85 100644
--- a/accounts/account_manager.go
+++ b/accounts/account_manager.go
@@ -152,8 +152,8 @@ func (am *Manager) Sign(addr common.Address, hash []byte) ([]byte, error) {
// SignWithPassphrase signs hash if the private key matching the given address
// can be decrypted with the given passphrase. The produced signature is in the
// [R || S || V] format where V is 0 or 1.
-func (am *Manager) SignWithPassphrase(addr common.Address, passphrase string, hash []byte) (signature []byte, err error) {
- _, key, err := am.getDecryptedKey(Account{Address: addr}, passphrase)
+func (am *Manager) SignWithPassphrase(a Account, passphrase string, hash []byte) (signature []byte, err error) {
+ _, key, err := am.getDecryptedKey(a, passphrase)
if err != nil {
return nil, err
}