Skip to content

Commit 5dbd8b4

Browse files
gravityblastgballet
authored andcommitted
whisper/shhclient: update call to shh_generateSymKeyFromPassword to pass a string (#16668)
1 parent 4e7dc34 commit 5dbd8b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

whisper/shhclient/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ func (sc *Client) AddSymmetricKey(ctx context.Context, key []byte) (string, erro
135135
}
136136

137137
// GenerateSymmetricKeyFromPassword generates the key from password, stores it, and returns its identifier.
138-
func (sc *Client) GenerateSymmetricKeyFromPassword(ctx context.Context, passwd []byte) (string, error) {
138+
func (sc *Client) GenerateSymmetricKeyFromPassword(ctx context.Context, passwd string) (string, error) {
139139
var id string
140-
return id, sc.c.CallContext(ctx, &id, "shh_generateSymKeyFromPassword", hexutil.Bytes(passwd))
140+
return id, sc.c.CallContext(ctx, &id, "shh_generateSymKeyFromPassword", passwd)
141141
}
142142

143143
// HasSymmetricKey returns an indication if the key associated with the given id is stored in the node.

0 commit comments

Comments
 (0)