Why Nostr? What is Njump?
2024-09-03 20:30:50
in reply to

juraj on Nostr: I am just playing with trying to decentralize relays. I've played with optimizing the ...

I am just playing with trying to decentralize relays. I've played with optimizing the wire protocol for syncing (I can get it to 30%-55% data), I want to sync with bloom filters in sequence.

Also, I wanted to try to switch relays to more P2P, with relay on localhost (similar to Citrine), but syncing through Holepunch.

I would appreciate any inputs of what you have tried, what worked, what did not, etc.

Two designs I am thinking about:

Hyperswarm topic based on npub. Do sequential sync with updated bloom filter (with rotating nonce), so it never sends any notes that have been already transmitted.

- or -

Pure Hypercore, again npub based.

I want to sync to local relay (like Citrine), so I proxy the connection from Nostr client to relay. My proxy relay will ask the local relay, create a bloom filter and then do additional query over Holepunch (and also Reticulum for fun), streaming replies to the client and saving in the local relay.

Any input (by you or anyone else who played with Holepunch) appreciated.
Author Public Key
npub1m2mvvpjugwdehtaskrcl7ksvdqnnhnjur9v6g9v266nss504q7mqvlr8p9