You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function that checks if an Event can be queried by a given Filter. Something like Filter::matches(event: &Event) -> Boolean and expose it to the Kotlin bindings. Or at least let Kotlin nostr binding users retrieve the current value of each field of the Filter, so users can implement the matches function themselves. The exposed functions are setters, no getters.
Use case
Clients should always check if the received events are really the ones we queried for. Otherwise malicious or buggy relays could spam the client with unwanted events
Additional context
The text was updated successfully, but these errors were encountered:
Describe the enhancement
A function that checks if an
Event
can be queried by a givenFilter
. Something likeFilter::matches(event: &Event) -> Boolean
and expose it to the Kotlin bindings. Or at least let Kotlin nostr binding users retrieve the current value of each field of theFilter
, so users can implement thematches
function themselves. The exposed functions are setters, no getters.Use case
Clients should always check if the received events are really the ones we queried for. Otherwise malicious or buggy relays could spam the client with unwanted events
Additional context
The text was updated successfully, but these errors were encountered: