[ / / / / / / / / / / / / / ] [ dir / agatha / agatha2 / baaa / choroy / dempart / fast / jenny / lounge ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

[–]

 No.1048694[Watch Thread][Show All Posts]

Can someone help me understand DHTs with Byzantine fault tolerance? I read the wikipedia pages but they it didn't quite click for me. I'm also new to writing P2P stuff. (I also posted this on >>>/prog/5299, feel free to reply there. Reposting here because maybe some anons don't check /prog/.)

What is the algorithm, exactly? So I write a bunch of servers that all store some values with some keys and listen on a port. Then I want to query a key.

1. Do I send that key to every server and see which one replies? That sounds very inefficient if I have millions of servers all retrieving values frequently.

2. Is there a way to make it so that the server can't see the information it stores? I suppose I could somehow break up the file but now every query requires many more connections. Would it work if I encrypt the file and break it up into a small number of pieces, say 2, and store each piece on a different server? Even if an individual knew the key it couldn't decrypt even the part that it has.

3. How do I know the IPs of the servers without having a centralized directory?

4. What if the servers sometimes go offline? Is it enough to just store the same key-value on multiple peers and hope that at least one will be up?

 No.1048699>>1048701


 No.1048701

>>1048699

Sounds like Kademlia is a popular DHT algo, so I'm guessing yes. Unfortunately that link is blocking Tor. Paper seems like it gives an algo, but I'd have to take some time to read it. Why do they want an alternative to Kademlia?

Ethereum also has a lot of stuff built on top of the DHT, so the source might not be comprehensible for me when I don't have experience with P2P or cryptocurrency.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
2 replies | 0 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / agatha / agatha2 / baaa / choroy / dempart / fast / jenny / lounge ][ watchlist ]