From 5dbd8b42a90779bd4269012c1336679fd4ca9824 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Wed, 9 May 2018 13:40:59 +0200 Subject: whisper/shhclient: update call to shh_generateSymKeyFromPassword to pass a string (#16668) --- whisper/shhclient/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'whisper') diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go index 7b25e739e..8e7085a0a 100644 --- a/whisper/shhclient/client.go +++ b/whisper/shhclient/client.go @@ -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. -- cgit v1.2.3