Add NIP-01 filter validation and AND/OR matching engine

This commit is contained in:
2026-03-13 20:00:09 +01:00
parent eb4fbcc2c9
commit 0c04859b97
6 changed files with 370 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ NOTE: Nostr and NIP specs are available in `~/nostr/` and `~/nips/`.
- Predicate function names should not start with `is_` and should end in a question mark. Names like `is_thing` should be reserved for guards
- Elixir's builtin OTP primitives like `DynamicSupervisor` and `Registry`, require names in the child spec, such as `{DynamicSupervisor, name: MyApp.MyDynamicSup}`, then you can use `DynamicSupervisor.start_child(MyApp.MyDynamicSup, child_spec)`
- Use `Task.async_stream(collection, callback, options)` for concurrent enumeration with back-pressure. The majority of times you will want to pass `timeout: :infinity` as option
- Always use `JSON` instead of `Jason`.
## Mix guidelines