diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-06 23:47:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-01-06 23:47:15 +0800 |
commit | b56aee369783813e4994f7c0ca743d9c45e9f436 (patch) | |
tree | 2e24d5f0ca14396ce142dcb44ca8b4db387ef262 /mobile/accounts.go | |
parent | e0fde022909d272e55fb9ea2d4f8cfe9f178dba8 (diff) | |
download | dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.gz dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.bz2 dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.lz dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.xz dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.zst dexon-b56aee369783813e4994f7c0ca743d9c45e9f436.zip |
mobile: rename passphrase signing method to avoid Swift rewrite
Diffstat (limited to 'mobile/accounts.go')
-rw-r--r-- | mobile/accounts.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mobile/accounts.go b/mobile/accounts.go index 90f664d29..47c3a5c21 100644 --- a/mobile/accounts.go +++ b/mobile/accounts.go @@ -115,10 +115,10 @@ func (am *AccountManager) Sign(address *Address, hash []byte) (signature []byte, return am.manager.Sign(address.address, hash) } -// SignWithPassphrase signs hash if the private key matching the given address -// can be decrypted with the given passphrase. The produced signature is in the +// SignPassphrase 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 *AccountManager) SignWithPassphrase(account *Account, passphrase string, hash []byte) (signature []byte, _ error) { +func (am *AccountManager) SignPassphrase(account *Account, passphrase string, hash []byte) (signature []byte, _ error) { return am.manager.SignWithPassphrase(account.account, passphrase, hash) } |