Skip to content

bshashank/python-libp2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

20 Commits

Repository files navigation

libp2p for Python

An experiment to see if i can understand the specs of libp2p protocol and then try to implement it in python. this was forked from amstocker/python-libp2p

This is what I want to currently only implements:

  • Interface peer routing

    A valid (read: that follows this abstraction) stream muxer, must implement the following API. Find peers 'responsible' or 'closest' to a given key:

    classPeerRouting(object) deffind_peers(key) """ Args: key: key is a multihash (https://github.com/multiformats/multihash) Returns: An iterable of peers ordered by closeness """

    In a peer to peer context, the concept of 'responsability' or 'closeness' for a given key translates to having a way to find deterministically or that at least there is a significant overlap between searches, the same group of peers when searching for the same given key.

    This method will query the network (route it) and return a Priority Queue datastructe with a list of PeerInfo objects, ordered by 'closeness'.

About

libp2p implementation in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python86.5%
  • Makefile13.5%