Skip to content

Commit

Permalink
whisper/shhclient: update call to shh_generateSymKeyFromPassword to p…
Browse files Browse the repository at this point in the history
…ass a string (#16668)
  • Loading branch information
gravityblast authored and gballet committed May 9, 2018
1 parent 4e7dc34 commit 5dbd8b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper/shhclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5dbd8b4

Please sign in to comment.