Damus
nostrich profile picture
nostrich
Ever since before I started working on nostr (https://github.com/blazepoint/docs) I wanted a way for clients to be able to ask relays for aggregate data. The problem is, these results can't be combined across relays, and rely on trust.

Today I vibed a protocol (that the performance optimization nerds among you will hate) that allows for aggregations over arbitrary data extracted from nostr events in a way that can be merged across multiple relays, and audited for forgeries.

This is important, because if we ever want to support more than 30 nostr users, we need to be able to display like/follower/whatever counts in the millions. A million kind 7 events is about 500 MB. NIP 5E drops that to a few KB.

Would love your feedback:

https://github.com/nostr-protocol/nips/pull/2557
1
Libertas Primordium · 41m
Definitely seems like it would be more efficient to ask the relays to do the counting and report totals and/or just a list of npubs.