Skip to content

Commit

Permalink
mobile: rename passphrase signing method to avoid Swift rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jan 6, 2017
1 parent e0fde02 commit b56aee3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mobile/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion mobile/android_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit b56aee3

Please sign in to comment.