@@ -38,7 +38,7 @@ import (
3838 "github.com/ethereum/go-ethereum/swarm/network"
3939 "github.com/ethereum/go-ethereum/swarm/pot"
4040 "github.com/ethereum/go-ethereum/swarm/storage"
41- whisper "github.com/ethereum/go-ethereum/whisper/whisperv5 "
41+ whisper "github.com/ethereum/go-ethereum/whisper/whisperv6 "
4242 "golang.org/x/crypto/sha3"
4343)
4444
@@ -686,7 +686,7 @@ func (p *Pss) processSym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
686686 if err != nil {
687687 continue
688688 }
689- if ! recvmsg .Validate () {
689+ if ! recvmsg .ValidateAndParse () {
690690 return nil , "" , nil , fmt .Errorf ("symmetrically encrypted message has invalid signature or is corrupt" )
691691 }
692692 p .symKeyPoolMu .Lock ()
@@ -713,7 +713,7 @@ func (p *Pss) processAsym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
713713 return nil , "" , nil , fmt .Errorf ("could not decrypt message: %s" , err )
714714 }
715715 // check signature (if signed), strip padding
716- if ! recvmsg .Validate () {
716+ if ! recvmsg .ValidateAndParse () {
717717 return nil , "" , nil , fmt .Errorf ("invalid message" )
718718 }
719719 pubkeyid := common .ToHex (crypto .FromECDSAPub (recvmsg .Src ))
0 commit comments