Skip to main content

Python implementation of the Ethereum P2P stack

Project description

Join the chat at

Python implementation of the Ethereum P2P stack


pydevp2p is the Python implementation of the RLPx network layer. RLPx provides a general-purpose transport and interface for applications to communicate via a p2p network. The first version is geared towards building a robust transport, well-formed network, and software interface in order to provide infrastructure which meets the requirements of distributed or decentralized applications such as Ethereum. Encryption is employed to provide better privacy and integrity than would be provided by a cleartext implementation.

RLPx underpins the DEVp2p interface:

Full spec:


On Ubuntu:

$ sudo apt-get install libssl-dev build-essential automake pkg-config libtool libffi-dev libgmp-dev


  • Node Discovery and Network Formation

  • Peer Preference Strategies

  • Peer Reputation

  • Multiple protocols

  • Encrypted handshake

  • Encrypted transport

  • Dynamically framed transport

  • Fair queuing

Security Overview

  • nodes have access to a uniform network topology

  • peers can uniformly connect to network

  • network robustness >= kademlia

  • protocols sharing a connection are provided uniform bandwidth

  • authenticated connectivity

  • authenticated discovery protocol

  • encrypted transport (TCP now; UDP in future)

  • robust node discovery


0.0.1 (2014-01-11)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devp2p-0.9.3.tar.gz (74.7 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page