D
D
devalone2018-12-26 16:15:07
Python
devalone, 2018-12-26 16:15:07

What are ready-made solutions for creating p2p applications?

In one of my projects, I want to do data exchange, but the difficulty is that everyone will exchange with everyone and anyone can raise the service and add it to the network. Specifically, this project collects proxies and checks them, and I want the instances to communicate with each other and share information.
I see it like this:
There is a certain coefficient of trust and each node stores this coefficient for all nodes it knows, the coefficient is floating (but never reaches 1) and when data arrives, a random part of the data is checked and if everything matches, then we consider the rest of the data to be correct and increase the coefficient, if it does not match, then lower it. You also need the ability to find nodes.
What the library I'm looking for should be able to do:

  • Have a system of trust to other nodes
  • Know how to bypass NAT
  • Easy to expand. I see it in such a way that a certain list of nodes with a white IP will be sewn up, through which the rest will recognize each other and which will also help bypass NAT, further communication will take place directly.

Technologies used: python3, asyncio. Perhaps there are some semi-finished products from which it will be possible to assemble your product by adding part of the functionality? I found various libraries for p2p, but all are synchronous.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2018-12-26
@Zarom

Quickly googled this https://pypi.org/project/pyp2p/

R
Ruslan, 2020-05-03
@msHack

OpenDHT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question