Skip to content

feat(net): add Framed ECIES implementation - #80

Merged
gakonst merged 15 commits into
mainfrom
dan/add-ecies
Oct 16, 2022
Merged

gakonst merged 15 commits into
mainfrom
dan/add-ecies

Conversation

@Rjected

@Rjected Rjected commented Oct 15, 2022 •

Copy link
Copy Markdown
Member

This depends on #79 (do not merge until #79 is in), and extracts out the ECIES implementation from devp2p-rs pre-GPL.

This is changed slightly, no longer using the Transport trait and instead specifying that Io is AsyncRead or AsyncWrite or both, depending on the situation.
For example, when implementing Stream, Io should be AsyncRead + Unpin, and when implementing Sink, Io should be AsyncWrite + Unpin.

A HasRemoteAddr trait is created, which is just used for tracing instrumentation, since the current instruments rely on the Io having a remote_addr method.

@Rjected Rjected changed the title feat(primitives): add Framed ECIES implementation feat(net): add Framed ECIES implementation Oct 15, 2022

@gakonst gakonst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it post refactor

Comment thread crates/net/ecies/Cargo.toml Outdated
[dependencies]
reth-rlp = { path = "../../common/rlp", features = ["derive", "ethereum-types", "std"] }
reth-primitives = { path = "../../primitives" }
anyhow = "1.0.65"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eyre

repository = "https://github.com/foundry-rs/reth"
readme = "README.md"

[dependencies]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all of these deps required?

@gakonst gakonst mentioned this pull request Oct 16, 2022
23 tasks done
@gakonst
gakonst merged commit 5dfe5ac into main Oct 16, 2022
@gakonst
gakonst deleted the dan/add-ecies branch October 16, 2022 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants