From 7d7e69aa24f5fbfd41f7de288697e74b5b26b8a1 Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 23 Oct 2025 22:07:52 -0400 Subject: [PATCH] Add formatting. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4ae1d45..0b29ce2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Go-Roots - Nostr Protocol Library for Golang Source: https://git.wisehodl.dev/jay/go-roots + Mirror: https://github.com/wisehodl/go-roots ## What this library does @@ -312,7 +313,9 @@ if err != nil { The `Extensions` field captures any JSON properties not recognized as standard filter fields or tag filters. This design allows the core library to remain frozen while storage and transport layers implement custom filtering behavior. **Standard fields**: `ids`, `authors`, `kinds`, `since`, `until`, `limit` + **Tag filters**: Any key starting with `#` (e.g., `#e`, `#p`, `#emoji`) + **Extensions**: Everything else During marshaling, Extensions merge into the output JSON. During unmarshaling, unrecognized fields populate Extensions. The `Matches()` method ignores Extensions, and the library expects higher protocol layers to implement their usage.