mirror of
https://github.com/status-im/whisper.git
synced 2025-01-20 07:39:00 +00:00
Merge pull request #16231 from gluk256/303-reader
whisper: filereader mode introduced to wnode
This commit is contained in:
commit
6f4d8d1c84
@ -208,6 +208,10 @@ func (e *Envelope) OpenSymmetric(key []byte) (msg *ReceivedMessage, err error) {
|
||||
|
||||
// Open tries to decrypt an envelope, and populates the message fields in case of success.
|
||||
func (e *Envelope) Open(watcher *Filter) (msg *ReceivedMessage) {
|
||||
if watcher == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// The API interface forbids filters doing both symmetric and asymmetric encryption.
|
||||
if watcher.expectsAsymmetricEncryption() && watcher.expectsSymmetricEncryption() {
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user