275 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
30
views
Kademlia Python DHT: ValueError: max() arg is an empty sequence after stopping one node
I’m experimenting with the Python Kademlia library to build a small peer-to-peer DHT. I start three servers, bootstrap them in a chain, store a value, then stop one node and try to store/get again—but ...
0
votes
0
answers
32
views
How do I define a ValueType of a Value in OpenDHT so that I could choose how data is stored on the DHT in the C++ implementation?
I'm working on a P2P messenger for college and cannot seem to figure out how the library works. I apologize if I'm missing something but I don't see how I can use my custom ValueTypes.
This is one of ...
0
votes
1
answer
88
views
Does bittorrent dht have a way to guarantee new message types work across unsupported peers?
Im reading bittorrent dht extension 44 and want to make a new extension similar to the get/put messages but to save multiple values at the same hash and with a different verification algorithm, but ...
0
votes
1
answer
98
views
In IPFS, will same content produce the same CID on 2 different peers?
In IPFS, imagine that I add a file that contains the text "Hello everyone" to the network. Then I get a certain Content Identifier (CID). If someone else also adds a file that contains the text "Hello ...
0
votes
1
answer
91
views
How do I periodically remove inactive nodes and flush the routing table with the use of kademlia python library?
I've installed kademlia DHT with pip install kademlia. I have 3 nodes. 1 initial node that other nodes can bootstrap with and 2 other nodes. When 1 node goes offline (not the initial node), the other ...
user avatar
user23347973
-2
votes
2
answers
117
views
How can I index the bittorrent DHT properly for infohashes?
I have this code but after 12 hours of running it only found 5 infohashes.
What can I do to increase this number?
import DHT from 'bittorrent-dht';
import magnet from 'magnet-uri';
import WebTorrent ...
2
votes
0
answers
172
views
which libp2p module do I use to broadcast data to peers in the network e.g blockchain? do I use mdns or kademlia for blockchain?
I am trying to understand lib2p2 Rust by looking at the rust libp2p examples in the rust libp2p github repo and substrate network module as well.
My question is, If I am building a peer to peer ...
2
votes
0
answers
695
views
go-libp2p: my nodes don't find any peers with DHT peer discovery
I was basically trying to follow this tutorial https://medium.com/rahasak/libp2p-pubsub-peer-discovery-with-kademlia-dht-c8b131550ac7 but I couldn't get it to work.
First some assumptions, please ...
0
votes
1
answer
183
views
UDP socket connected to DHT node, not recieving data
I'm attempting to implement the DHT protocol using python, but having troubles getting a response from a public DHT node (router.bittorrent.com:6881). Interestingly, the Node JS variant that I wrote ...
user avatar
user13820346
0
votes
1
answer
162
views
In Bittorrent how to announce utp port for other peers
I'm developing a torrent client in Dart, but while implementing utp socket I see no way to announce the utp port
looking at the specifications of the main peer discovery mechanisms bep0003 bep0005 I ...
0
votes
1
answer
92
views
trying to understand the flow chart of the extended message protocol as mentioned in bep 10
I was reading bep 10 and I'm trying to fit the article to the packets I've captured.
essentially through what I understand a client (the initiator) would begin by sending a normal handshake message (...
0
votes
1
answer
140
views
Do I remove peers after a certain amount of time?(mainline dht)
I just finished implementing mainline dht with a flat based routing table. I recall from kademilia something about an updated peer list and efficient key republishing and I started to wonder if after ...
0
votes
1
answer
449
views
How to find metadata in the dht while only having the Infohash?
So far I assumed a client would just search for peers in the dht and use bep 9 in order to get the metadata, however when trying it myself and opening Wireshark I couldn't find any usage of bep 9. ...
1
vote
1
answer
90
views
Is it possible to receive from one port and send through another in mainline dht?
I'm trying to implement mainline dht. While implementing I found it easier to use multithreading to handle requests and send requests at the same time. But it's impossible for a singular port to both ...
1
vote
1
answer
144
views
How is a token value generated in mainline dht's get_peers query
I am reading bep 5 and trying to understand how a token value is generated. As I understand the token value is a randomly generated value that is used in a get_peers query for safety. This same token ...