An open API service indexing awesome lists of open source software.

https://github.com/rjected/ethp2p

P2P types for ethereum
https://github.com/rjected/ethp2p

anvil devp2p ethereum ethers evm fastrlp foundry networking p2p rlp rust

Last synced: 16 days ago
JSON representation

P2P types for ethereum

Awesome Lists containing this project

README

        

# ethp2p

[![documentation](https://img.shields.io/badge/documentation-rustdoc-passing)](https://www.dancline.net/ethp2p)
[![MIT License](https://img.shields.io/github/license/rjected/ethp2p)](https://github.com/rjected/ethp2p/blob/main/LICENSE)
[![CI](https://github.com/rjected/ethp2p/actions/workflows/ci.yml/badge.svg)](https://github.com/rjected/ethp2p/actions/workflows/ci.yml)

P2P types and utilities for working with [`eth`](https://github.com/ethereum/devp2p) protocol
messages.

`ethp2p` is built on [`anvil`](https://github.com/foundry-rs/foundry/tree/master/anvil) types, and
implements [`fastrlp`](https://github.com/vorot93/fastrlp) traits for RLP encoding and decoding.

## ⚠️⚠️ Update:
This has been integrated into [reth](https://github.com/paradigmxyz/reth), use [reth-eth-wire](https://github.com/paradigmxyz/reth/tree/main/crates/net/eth-wire) instead!

## Usage

Add this to your `Cargo.toml`:

```toml
[dependencies]
ethp2p = { git = "https://github.com/rjected/ethp2p" }
```

*Compiler support: requires rustc 1.62+*