good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
b56aee36
Unverified
Commit
b56aee36
authored
Jan 6, 2017
by
Péter Szilágyi
Browse files
Options
Downloads
Patches
Plain Diff
mobile: rename passphrase signing method to avoid Swift rewrite
parent
e0fde022
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
mobile/accounts.go
+3
-3
3 additions, 3 deletions
mobile/accounts.go
mobile/android_test.go
+1
-1
1 addition, 1 deletion
mobile/android_test.go
with
4 additions
and
4 deletions
mobile/accounts.go
+
3
−
3
View file @
b56aee36
...
...
@@ -115,10 +115,10 @@ func (am *AccountManager) Sign(address *Address, hash []byte) (signature []byte,
return
am
.
manager
.
Sign
(
address
.
address
,
hash
)
}
// Sign
With
Passphrase 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
)
Sign
With
Passphrase
(
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
)
}
...
...
This diff is collapsed.
Click to expand it.
mobile/android_test.go
+
1
−
1
View file @
b56aee36
...
...
@@ -69,7 +69,7 @@ public class AndroidTest extends InstrumentationTestCase {
Hash txHash = new Hash("0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef");
// Sign a transaction with a single authorization
byte[] signature = am.sign
With
Passphrase(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");
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment