What is Nostr?
PABLOF7z
npub1l2v…ajft
2024-04-17 22:24:35

PABLOF7z on Nostr: nostr clients always have this tension between: ✅ verifying signatures (bad ...

nostr clients always have this tension between:

✅ verifying signatures (bad performance)
🙃 "trust me bro" (no checking)

I INTRODUCE TO YOU... FRACTIONS! 😂

Next version of NDK is shipping with SO many performance tricks and improvements that I have zero chance of remembering what they were when I write the release notes.

But one of them is that.. fractions.

Developers will be able to configure a ratio of events to verify on a per-relay basis. For example, you could say "only verify 10% of events coming from each relay"

The cool part is that I can also compare signatures coming from different relays for the same event so evil relays can be detected even faster and kicked out.

I will make it possible later to save state of the "reputation" each client perceives of a relay, so that a client can start talking to a new relay with a higher ratio (e.g. 1.0 = "verify everything") and slowly transition to trusting the relay more (i.e. verify 1% of events).


Author Public Key
npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft