2
0
mirror of https://github.com/status-im/op-geth.git synced 2025-02-21 02:58:28 +00:00
2015-04-14 13:24:43 +03:00

14 lines
411 B
Go

// Contains the message filter for fine grained subscriptions.
package whisper
import "crypto/ecdsa"
// Filter is used to subscribe to specific types of whisper messages.
type Filter struct {
To *ecdsa.PublicKey // Recipient of the message
From *ecdsa.PublicKey // Sender of the message
Topics []Topic // Topics to watch messages on
Fn func(*Message) // Handler in case of a match
}