filter: add protected_events filter

This adds support for protected events

Link: https://github.com/nostr-protocol/nips/pull/1030
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2024-07-09 10:14:33 -07:00
parent 20a8773631
commit e28454ac32
7 changed files with 55 additions and 4 deletions

View file

@ -1,5 +1,5 @@
pipeline = ["whitelist", "ratelimit"]
pipeline = ["protected_events", "whitelist", "ratelimit"]
[filters.ratelimit]
posts_per_minute = 8
@ -8,3 +8,5 @@ whitelist = ["127.0.0.1"]
[filters.whitelist]
pubkeys = ["16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93"]
ips = ["127.0.0.1"]
[filters.protected_events]