Initialize public key (#1332)

This commit is contained in:
Andrea Maria Piana 2018-12-24 08:18:27 +01:00 committed by GitHub
parent 697c72ffdf
commit 30dbacdcca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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)