mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-10 23:15:34 -05:00
* refactor: move things to types * feat(ethwire): bring in message type from ethp2p30c11138d5/src/message.rs* feat(ethwire): add eth-stream with Stream/Sink impls * feat(ethwire): make Sink error an EthStreamError * feat(ecies): expose util module * add more deps * feat: add broadcast newblockhashes * fix: rlp serialize with message-id first * chore: cleanup doc * wip: test eth connection * bump cargo lock * feat: add rlp codec and get stream tests working * fix: convert RlpCodec to PassthroughCodec we were rlp encoding twice * Revert "fix: convert RlpCodec to PassthroughCodec" This reverts commit6e6e0a5811. This does not handle framing, which would fail decoding if a partial write happened to the socket. * add tracing * refactor: add handshake error * feat(ethwire): add status handshake * test(ethwire): handshake works * refactor: expose EthStream::new * chore: clippy lints * fix: get rid of rlp codec we can instead use LengthLimitedCodec from Tokio IO, which we re-export as PassthroughCodec * fix(eth): add handshake + msg error checks 1. 10MB message lengths 2. Same Genesis, Version, Chain on Status Handshake * chore: ignore result_large_err Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
35 lines
953 B
TOML
35 lines
953 B
TOML
[package]
|
|
name = "reth-eth-wire"
|
|
description = "Impements the eth/64 and eth/65 P2P protocols"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/foundry-rs/reth"
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
bytes = { version = "1.1" }
|
|
hex = "0.4"
|
|
thiserror = "1"
|
|
|
|
# reth
|
|
reth-ecies = { path = "../ecies" }
|
|
reth-primitives = { path = "../../primitives" }
|
|
reth-rlp = { path = "../../common/rlp", features = ["alloc", "derive", "std", "ethereum-types"] }
|
|
|
|
#used for forkid
|
|
crc = "1"
|
|
maplit = "1"
|
|
tokio = { version = "1.21.2", features = ["full"] }
|
|
futures = "0.3.24"
|
|
tokio-stream = "0.1.11"
|
|
secp256k1 = { version = "0.24.0", features = ["global-context", "rand-std", "recovery"] }
|
|
tokio-util = { version = "0.7.4", features = ["io"] }
|
|
pin-project = "1.0"
|
|
tracing = "0.1.37"
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.3"
|
|
ethers-core = { git = "https://github.com/gakonst/ethers-rs", default-features = false }
|
|
rand = "0.8"
|