NIP-F5: Population Census - #2453
Open
steve02081504 wants to merge 1 commit into
Open
Conversation
steve02081504
force-pushed
the
add-nip-f5-population-census
branch
2 times, most recently
from
September 1, 2026 09:03
5174c61 to
4086f91
Compare
steve02081504
force-pushed
the
add-nip-f5-population-census
branch
from
September 1, 2026 09:09
4086f91 to
1eaa8ff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds NIP-F5: Population Census — a generic event kind (30789) for estimating the number of online nodes in a distributed network via probabilistic self-reporting and a Horvitz-Thompson estimator. It is application-agnostic: any mesh/P2P overlay can pick a scope label, and the estimator recovers the online population from sampled events.
The design was first deployed in fount-p2p (
discovery/nostr/census.mjs, kind 30789), and this NIP generalizes it so other networks can implement the same census without reinventing it.Key points:
30789, tagst=<scope>/x=census;contentis JSON with a single defined fieldp(inclusion probability)pubkey, an application-level signature, or anything else; readers only require a valid NIP-01 eventp, windowed sampling, HT estimatorM = Σ(1/p) − 1/p_self + 1dtag (missingdin addressable range is treated as empty-string address per NIP-01)Files changed:
F5.md(new)README.md(list + event kinds table row for 30789)Kind 30789 is also being registered in nostr-protocol/registry-of-kinds#13, alongside the fount-network transport kinds 20787/30787.