Jump to content

Why Bitcommet Can't Search For Files? , What Dht Doing In Collision?


remy33

Recommended Posts

Hi,

Lately I'm studing the torrents protocols, for writing a simple sample client, and I run into two question which I couln't find answer sadly.

 

I'm wonder, before years we had the slowest turtle called 'emule', it was pretty crappy though, But it has a great feature, it has file search via the Kademlia.
If I understood currectly, torrent replacement for Kademlia is DHT which actually implement it.
So why we can't we share a directory and search in it like oldschool Emule did?

Why it's only limited to '.torrent' files only?

 

As well I'm not understand what DHT does in case of Hash collision,

I mean it's probably uncommon (2^64) but still, its happens, then what?
 

Even if you don't know the answer, could you please direct me to a place I could read more info about it?

 

Thanks in advance! 

Link to comment
Share on other sites

  • 4 years later...

Google search is helpful. The torrent hashes are 160 bits and are an sha1 sum of information in the torrent file but I'm uncertain of details. Accidental collisions are so unlikely the issue hasn't come up. It'd take a lot of computation to find a collision so it's not worth doing deliberately.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...