mirror of
https://github.com/status-im/whisper.git
synced 2025-02-01 05:24:56 +00:00
whisper: filereader mode introduced to wnode
This commit is contained in:
parent
31f7f7af81
commit
4e423276a6
@ -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