From 30dbacdccaaea6cee043328fbefce17710d5b31e Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Mon, 24 Dec 2018 08:18:27 +0100 Subject: [PATCH] Initialize public key (#1332) --- services/shhext/api.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/shhext/api.go b/services/shhext/api.go index 01891c865..e9ff9fd2c 100644 --- a/services/shhext/api.go +++ b/services/shhext/api.go @@ -499,7 +499,10 @@ func (api *PublicAPI) processPFSMessage(msg *whisper.Message) error { return err } - var publicKey *ecdsa.PublicKey + publicKey, err := crypto.UnmarshalPubkey(msg.Sig) + if err != nil { + return err + } response, err := api.service.protocol.HandleMessage(privateKey, publicKey, msg.Payload)