@@ -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
@@ -666,7 +666,7 @@ func (p *Pss) processSym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
666666 if err != nil {
667667 continue
668668 }
669- if ! recvmsg .Validate () {
669+ if ! recvmsg .ValidateAndParse () {
670670 return nil , "" , nil , fmt .Errorf ("symmetrically encrypted message has invalid signature or is corrupt" )
671671 }
672672 p .symKeyPoolMu .Lock ()
@@ -693,7 +693,7 @@ func (p *Pss) processAsym(envelope *whisper.Envelope) (*whisper.ReceivedMessage,
693693 return nil , "" , nil , fmt .Errorf ("could not decrypt message: %s" , err )
694694 }
695695 // check signature (if signed), strip padding
696- if ! recvmsg .Validate () {
696+ if ! recvmsg .ValidateAndParse () {
697697 return nil , "" , nil , fmt .Errorf ("invalid message" )
698698 }
699699 pubkeyid := common .ToHex (crypto .FromECDSAPub (recvmsg .Src ))
0 commit comments