mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-05-04 13:09:56 -04:00
add hyperloglog filter for counting nip22 replies to any event.
This commit is contained in:
parent
fe13204321
commit
a079d1c13e
1
45.md
1
45.md
@ -62,6 +62,7 @@ This NIP defines (for now) two filters eligible for HyperLogLog:
|
||||
|
||||
- `{"#p": ["<pubkey>"], "kinds": [3]}`, i.e. a filter for `kind:3` events with a single `"p"` tag, which means the client is interested in knowing how many people "follow" the target `<pubkey>`. In this case the `offset` will be given by reading the character at the position `32` of the hex `<pubkey>` value as a base-16 number then adding `8` to it.
|
||||
- `{"#e": ["<id>"], "kinds": [7]}`, i.e. a filter for `kind:7` events with a single `"e"` tag, which means the client is interested in knowing how many people have reacted to the target event `<id>`. In this case the `offset` will be given by reading the character at the position `32` of the hex `<id>` value as a base-16 number then adding `8` to it.
|
||||
- `{"#E": ["<id>"], "kinds": [1111]}`, i.e. a filter for the total number of comments any specific root event has received. In this case the `offset` will be given by reading the character at the position `32` of the hex `<id>` value as a base-16 number then adding `8` to it.
|
||||
|
||||
### Attack vectors
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user