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
afc2039f
Commit
afc2039f
authored
Dec 18, 2017
by
Armin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/keystore: Improved error message
* Fix for #15668
parent
13db4af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
presale.go
accounts/keystore/presale.go
+3
-0
No files found.
accounts/keystore/presale.go
View file @
afc2039f
...
@@ -58,6 +58,9 @@ func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error
...
@@ -58,6 +58,9 @@ func decryptPreSaleKey(fileContent []byte, password string) (key *Key, err error
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
errors
.
New
(
"invalid hex in encSeed"
)
return
nil
,
errors
.
New
(
"invalid hex in encSeed"
)
}
}
if
len
(
encSeedBytes
)
<
16
{
return
nil
,
errors
.
New
(
"invalid encSeed, too short"
)
}
iv
:=
encSeedBytes
[
:
16
]
iv
:=
encSeedBytes
[
:
16
]
cipherText
:=
encSeedBytes
[
16
:
]
cipherText
:=
encSeedBytes
[
16
:
]
/*
/*
...
...
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