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).
Published at
2024-04-17 22:24:35Event JSON
{
"id": "59ca4478e0c649cfb258777925625499be577dff43af81b0e1ae84f36acf1d27",
"pubkey": "fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52",
"created_at": 1713392675,
"kind": 1,
"tags": [
[
"client",
"highlighter",
"31990:73c6bb92440a9344279f7a36aa3de1710c9198b1e9e8a394cd13e0dd5c994c63:1704502265408"
]
],
"content": "nostr clients always have this tension between:\n\nβ
verifying signatures (bad performance)\nπ \"trust me bro\" (no checking)\n\nI INTRODUCE TO YOU... FRACTIONS! π\n\nNext 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.\n\nBut one of them is that.. fractions.\n\nDevelopers 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\"\n\nThe 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.\n\nI 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).\n\n\nhttps://image.nostr.build/43cc1a7e3e8d6b3f968f2ab21f79875f4a4124c595404977f6f7f4867d3924fa.png",
"sig": "1f6d6e78ce3f9fb09cc83c499ad6639b235b003b3d2dd8210dfcc8bf0cf44f7bd19bc960fd9931ace7bbca7b58cb064d5be52c212b0ddd958bef866486631417"
}