aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Franz <andrea@gravityblast.com>2018-05-09 19:40:59 +0800
committerGuillaume Ballet <gballet@gmail.com>2018-05-09 19:40:59 +0800
commit5dbd8b42a90779bd4269012c1336679fd4ca9824 (patch)
treec68482640ef0a282afab74c436acb27ac9b05daf
parent4e7dc34ff1a7469b95eb16f5b4084c26a0ab3662 (diff)
downloadgo-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar.gz
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar.bz2
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar.lz
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar.xz
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.tar.zst
go-tangerine-5dbd8b42a90779bd4269012c1336679fd4ca9824.zip
whisper/shhclient: update call to shh_generateSymKeyFromPassword to pass a string (#16668)
-rw-r--r--whisper/shhclient/client.go4
1 files changed, 2 insertions, 2 deletions
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.