Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
9c7e65c4
Commit
9c7e65c4
authored
Feb 19, 2019
by
Guillaume Ballet
Committed by
Péter Szilágyi
Feb 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts: fix typos from the `SignData` merge (#19119)
parent
d88c6ce6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
accounts.go
accounts/accounts.go
+2
-2
wallet.go
accounts/keystore/wallet.go
+1
-1
No files found.
accounts/accounts.go
View file @
9c7e65c4
...
...
@@ -104,7 +104,7 @@ type Wallet interface {
// a password to decrypt the account, or a PIN code o verify the transaction),
// an AuthNeededError instance will be returned, containing infos for the user
// about which fields or actions are needed. The user may retry by providing
// the needed details via Sign
Hash
WithPassphrase, or by other means (e.g. unlock
// the needed details via Sign
Data
WithPassphrase, or by other means (e.g. unlock
// the account in a keystore).
SignData
(
account
Account
,
mimeType
string
,
data
[]
byte
)
([]
byte
,
error
)
...
...
@@ -114,7 +114,7 @@ type Wallet interface {
// should never echo the mimetype or return the mimetype in the error-response
SignDataWithPassphrase
(
account
Account
,
passphrase
,
mimeType
string
,
data
[]
byte
)
([]
byte
,
error
)
// Sign
t
ext requests the wallet to sign the hash of a given piece of data, prefixed
// Sign
T
ext requests the wallet to sign the hash of a given piece of data, prefixed
// by the Ethereum prefix scheme
// It looks up the account specified either solely via its address contained within,
// or optionally with the aid of any location metadata from the embedded URL field.
...
...
accounts/keystore/wallet.go
View file @
9c7e65c4
...
...
@@ -111,7 +111,7 @@ func (w *keystoreWallet) SignText(account accounts.Account, text []byte) ([]byte
return
w
.
signHash
(
account
,
accounts
.
TextHash
(
text
))
}
// Sign
Hash
WithPassphrase implements accounts.Wallet, attempting to sign the
// Sign
Text
WithPassphrase implements accounts.Wallet, attempting to sign the
// given hash with the given account using passphrase as extra authentication.
func
(
w
*
keystoreWallet
)
SignTextWithPassphrase
(
account
accounts
.
Account
,
passphrase
string
,
text
[]
byte
)
([]
byte
,
error
)
{
// Make sure the requested account is contained within
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment