-
Notifications
You must be signed in to change notification settings - Fork 154
feat: implement rlpx handshake #102
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
Merged
Merged
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
1f3744c
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono d883432
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono 7b8eff3
rename ethereum_rust -> ethrex
juanbono bb67116
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono 6ce865f
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono 0434d3a
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono 5b4d1a6
Merge branch 'main' of github.com:lambdaclass/ethereum_rust
juanbono 344413b
add empty modules
juanbono b70b287
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand d6d055a
move `types/mod.rs` -> `types.rs`
MegaRedHand 0fc4e02
chore: add RLPx cryptography crates
MegaRedHand 992af95
feat: add example handshake (WIP)
MegaRedHand 0334828
comment
MegaRedHand 020693b
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand ca6946a
Add auth decoding example
MegaRedHand 0316f03
Finish auth message decoding
MegaRedHand 2e262e8
feat: add `AuthMessage` struct
MegaRedHand c48f908
feat: implement auth message creation
MegaRedHand 38aa8ab
chore: move auth message construction to a function
MegaRedHand a3d557b
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand e53b0ea
fix: was using wrong address for ecdh
MegaRedHand 9fa601f
feat: decode ack message
MegaRedHand 84dd0d8
Clean up a bit
MegaRedHand e84398d
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand 81d22fb
chore: remove unused module
MegaRedHand 1b03fb0
Fix
MegaRedHand 1d8f733
fix clippy
MegaRedHand 7890c87
Remove comment
MegaRedHand 692b0c8
feat: derive connection secrets
MegaRedHand e8162a2
Update tests
MegaRedHand 6ec328b
fix clippy
MegaRedHand 0bd533a
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand 26f0fc9
refactor a bit
MegaRedHand 682be09
add comment
MegaRedHand 04749f2
Merge branch 'main' into implement_rlpx_handshake
MegaRedHand 754eba1
Merge imports
MegaRedHand 1c0cab2
Improve documentation in encode_auth_message
MegaRedHand 4d56b2a
Add inline comments on RLPx handshake functions
MegaRedHand 2046725
Fix tests
MegaRedHand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pub mod ecies; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
AsyncReadExtandAsyncWriteExtcould be declared in the sameuseline.cargo fmtdoes not fit these together? 🤔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.
cargo fmtdoesn't merge them by default, so I did it manually. We might want to modify theimports_granularitysetting for this.