-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(net): add Framed ECIES implementation #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7c02c35 to
a3342b4
Compare
a3342b4 to
cd8f07f
Compare
* adds std feature to reth-rlp
6bb8176 to
fc89dd6
Compare
remove anyhow and strictly type all errors
gakonst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love it post refactor
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" |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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?
This depends on #79 (do not merge until #79 is in), and extracts out the ECIES implementation from
devp2p-rspre-GPL.This is changed slightly, no longer using the
Transporttrait and instead specifying thatIoisAsyncReadorAsyncWriteor both, depending on the situation.For example, when implementing
Stream,Ioshould beAsyncRead + Unpin, and when implementingSink,Ioshould beAsyncWrite + Unpin.A
HasRemoteAddrtrait is created, which is just used for tracing instrumentation, since the current instruments rely on theIohaving aremote_addrmethod.