aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-06 23:47:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-01-06 23:47:15 +0800
commitb56aee369783813e4994f7c0ca743d9c45e9f436 (patch)
tree2e24d5f0ca14396ce142dcb44ca8b4db387ef262
parente0fde022909d272e55fb9ea2d4f8cfe9f178dba8 (diff)
downloadgo-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.gz
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.bz2
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.lz
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.xz
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.tar.zst
go-tangerine-b56aee369783813e4994f7c0ca743d9c45e9f436.zip
mobile: rename passphrase signing method to avoid Swift rewrite
-rw-r--r--mobile/accounts.go6
-rw-r--r--mobile/android_test.go2
2 files changed, 4 insertions, 4 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)
}
diff --git a/mobile/android_test.go b/mobile/android_test.go
index 9e38c1986..3776f8291 100644
--- a/mobile/android_test.go
+++ b/mobile/android_test.go
@@ -69,7 +69,7 @@ public class AndroidTest extends InstrumentationTestCase {
Hash txHash = new Hash("0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef");
// Sign a transaction with a single authorization
- byte[] signature = am.signWithPassphrase(signer, "Signer password", txHash.getBytes());
+ byte[] signature = am.signPassphrase(signer, "Signer password", txHash.getBytes());
// Sign a transaction with multiple manually cancelled authorizations
am.unlock(signer, "Signer password");