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
5dbd8b42
Commit
5dbd8b42
authored
May 09, 2018
by
Andrea Franz
Committed by
Guillaume Ballet
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisper/shhclient: update call to shh_generateSymKeyFromPassword to pass a string (#16668)
parent
4e7dc34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
client.go
whisper/shhclient/client.go
+2
-2
No files found.
whisper/shhclient/client.go
View file @
5dbd8b42
...
...
@@ -135,9 +135,9 @@ func (sc *Client) AddSymmetricKey(ctx context.Context, key []byte) (string, erro
}
// GenerateSymmetricKeyFromPassword generates the key from password, stores it, and returns its identifier.
func
(
sc
*
Client
)
GenerateSymmetricKeyFromPassword
(
ctx
context
.
Context
,
passwd
[]
byte
)
(
string
,
error
)
{
func
(
sc
*
Client
)
GenerateSymmetricKeyFromPassword
(
ctx
context
.
Context
,
passwd
string
)
(
string
,
error
)
{
var
id
string
return
id
,
sc
.
c
.
CallContext
(
ctx
,
&
id
,
"shh_generateSymKeyFromPassword"
,
hexutil
.
Bytes
(
passwd
)
)
return
id
,
sc
.
c
.
CallContext
(
ctx
,
&
id
,
"shh_generateSymKeyFromPassword"
,
passwd
)
}
// HasSymmetricKey returns an indication if the key associated with the given id is stored in the node.
...
...
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