Leo Wandersleb on Nostr: My implementation is for use in relays, only. * Relay receives filter as normal * ...
My implementation is for use in relays, only.
* Relay receives filter as normal
* Queries DB for matching events
* Turns filter into its probabilistic equivalent, saving 92% of the memory needed
* Checks new messages against this filter with a 1/10,000,000 false positive rate
Published at
2022-07-13 01:01:50Event JSON
{
"id": "58ad371980a5334164449913d384a3ce904fe4accaba264e84b12246d8098cac",
"pubkey": "46fcbe3065eaf1ae7811465924e48923363ff3f526bd6f73d7c184b16bd8ce4d",
"created_at": 1657674110,
"kind": 1,
"tags": [
[
"p",
"edc0120f7c50760a6a39438a187432183653f695d4595a60983dc6faaa7f94b9",
"wss://relay.damus.io"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"wss://nostr-pub.wellorder.net"
],
[
"e",
"fb5c457011866920dfc0d46b63c96e735493aea4c23dd43aaa9a5d704a776fba"
],
[
"e",
"2d97ad67e4f83e78991b0ae267208768a6a8bac9d3ae883f97dc98d42094ae43",
"wss://relay.damus.io"
]
],
"content": "My implementation is for use in relays, only.\n\n* Relay receives filter as normal\n* Queries DB for matching events\n* Turns filter into its probabilistic equivalent, saving 92% of the memory needed\n* Checks new messages against this filter with a 1/10,000,000 false positive rate",
"sig": "107d662b8ee5f9489ed7a67e3bc83109afbad0d568689d3417a4d84d39cbf2058de29cef8380466391740fba4d58c3cf246aae5f3e672b018464f8fa1e8fff0f"
}