https://github.com/ethereum/devp2p
Ethereum peer-to-peer networking specifications
https://github.com/ethereum/devp2p
Last synced: 13 days ago
JSON representation
Ethereum peer-to-peer networking specifications
- Host: GitHub
- URL: https://github.com/ethereum/devp2p
- Owner: ethereum
- Created: 2015-01-20T04:40:59.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T05:30:00.000Z (10 months ago)
- Last Synced: 2025-04-01T00:36:55.311Z (20 days ago)
- Language: JavaScript
- Homepage:
- Size: 601 KB
- Stars: 1,052
- Watchers: 73
- Forks: 287
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repository contains specifications for the peer-to-peer networking protocols used by
Ethereum. The issue tracker here is for discussions of protocol changes. It's also OK to
open an issue if you just have a question.Protocol level security issues are valuable! Please report serious issues responsibly
through the [Ethereum Foundation Bounty Program].We have several specifications for low-level protocols:
- [Ethereum Node Records]
- [DNS Node Lists]
- [Node Discovery Protocol v4]
- [Node Discovery Protocol v5]
- [RLPx protocol]The repository also contains specifications of many RLPx-based application-level protocols:
- [Ethereum Wire Protocol] (eth/68)
- [Ethereum Snapshot Protocol] (snap/1)
- [Light Ethereum Subprotocol] (les/4)
- [Parity Light Protocol] (pip/1)
- [Ethereum Witness Protocol] (wit/0)### The Mission
devp2p is a set of network protocols which form the Ethereum peer-to-peer network.
'Ethereum network' is meant in a broad sense, i.e. devp2p isn't specific to a particular
blockchain, but should serve the needs of any networked application associated with the
Ethereum umbrella.We aim for an integrated system of orthogonal parts, implemented in multiple programming
environments. The system provides discovery of other participants throughout the Internet
as well as secure communication with those participants.The network protocols in devp2p should be easy to implement from scratch given only the
specification, and must work within the limits of a consumer-grade Internet connection. We
usually design protocols in a 'specification first' approach, but any specification
proposed must be accompanied by a working prototype or implementable within reasonable
time.### Relationship with libp2p
The [libp2p] project was started at about the same time as devp2p and seeks to be a
collection of modules for assembling a peer-to-peer network from modular components.
Questions about the relationship between devp2p and libp2p come up rather often.It's hard to compare the two projects because they have different scope and are designed
with different goals in mind. devp2p is an integrated system definition that wants to
serve Ethereum's needs well (although it may be a good fit for other applications, too)
while libp2p is a collection of programming library parts serving no single application in
particular.That said, both projects are very similar in spirit and devp2p is slowly adopting parts of
libp2p as they mature.### Implementations
devp2p is part of most Ethereum clients. Implementations include:
- C#: Nethermind
- C++: Aleth
- C: Breadwallet
- Elixir: Exthereum
- Go: go-ethereum/geth
- Java: Tuweni RLPx library
- Java: Besu
- JavaScript: EthereumJS
- Kotlin: Tuweni Discovery library
- Nim: Nimbus nim-eth
- Python: Trinity
- Ruby: Ciri
- Ruby: ruby-devp2p
- Rust: rust-devp2p
- Rust: openethereum
- Rust: rethWireShark dissectors are available here:
[Ethereum Foundation Bounty Program]: https://bounty.ethereum.org
[Ethereum Wire Protocol]: ./caps/eth.md
[Ethereum Snapshot Protocol]: ./caps/snap.md
[Light Ethereum Subprotocol]: ./caps/les.md
[Ethereum Witness Protocol]: ./caps/wit.md
[Ethereum Node Records]: ./enr.md
[DNS Node Lists]: ./dnsdisc.md
[Node Discovery Protocol v4]: ./discv4.md
[Node Discovery Protocol v5]: ./discv5/discv5.md
[Parity Light Protocol]: ./caps/pip.md
[RLPx protocol]: ./rlpx.md
[libp2p]: https://libp2p.io