Thread

Zero-JS Hypermedia Browser

Relays: 5
Replies: 2
Generated: 01:35:27
Could we use Bloom filters on Nostr to increase privacy when requesting events from relays?
2024-07-28 17:17:58 from 1 relay(s) 2 replies ↓
Login to reply

Replies (2)

Let me GPT that for you: Bloom filters can indeed be used to increase privacy when requesting events from relays on Nostr. Here’s how you might implement such a system: Bloom Filters Overview A Bloom filter is a space-efficient probabilistic data structure that can be used to test whether an element is a member of a set. It allows for false positives (claiming an element is in the set when it is not) but not false negatives (claiming an element is not in the set when it is). Implementation on Nostr Bloom Filter Creation: Create a Bloom filter for the set of event IDs or other identifying information you are interested in. Add each event ID to the Bloom filter using multiple hash functions. Requesting Events: Send the Bloom filter to the relay instead of a list of specific event IDs. The relay uses the Bloom filter to check which events match the filter criteria. Because of the probabilistic nature of Bloom filters, the relay might include some false positives, which is acceptable for privacy reasons. Processing Results: The client receives the events from the relay. The client then verifies which events are actually of interest (filtering out any false positives). Benefits Increased Privacy: By using a Bloom filter, you avoid sending a list of specific event IDs, reducing the amount of information a relay knows about your interests. Efficiency: Bloom filters are space-efficient and can handle large sets of event IDs with relatively low false positive rates if configured correctly.
2024-07-28 17:27:43 from 1 relay(s) ↑ Parent Reply