-
Notifications
You must be signed in to change notification settings - Fork 207
feat: implement Ping message decoding
#94
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 74 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
9676d53
implement rlp for numeric types
juanbono fb1afcc
Merge branch 'main' of github.com:lambdaclass/ethereum_rust into impl…
juanbono b223f15
add impl for remaining unsigned integers
juanbono 9e34a11
add bytes enconding
juanbono e88a9b1
add str encoding
juanbono a075d8a
implement rlp for lists
juanbono b64bdb0
implement rlp for IPs
juanbono 0f31bdb
implement rlp for ethereum types
juanbono 01f2660
add test and more impls for eth types
juanbono dc8556e
add rlp decode module
juanbono 890162f
add basic error type
juanbono 0b3744d
pull from main
juanbono 0593c92
fix typo
juanbono 9f685b5
add decode for more types
juanbono 6729a07
pull from main
juanbono f5a4510
add constants
juanbono 8676f2f
add decoding for fixed size slices
juanbono e7753ba
add decode for strings and bytes
juanbono 4d32bec
add ethereum_types
juanbono e404adc
add decoding for ip types
juanbono cac0cf3
add decoding for u32, u64
juanbono 0859dbf
add decoding for u128
juanbono 3048e59
add tests
juanbono 0c58d5a
feat: add udp `recv_from` call
MegaRedHand 81f798d
feat: add discv4 message encoding
MegaRedHand 8174bf0
chore: rename NodeRecord -> Endpoint
MegaRedHand 4eec6bd
docs: document a bit
MegaRedHand 892436b
chore: add lint target to justfile
MegaRedHand 7b94b7c
perf: optimize `to_hex` (thanks clippy)
MegaRedHand dc5f7a1
Merge branch 'main' into discv4-setup
MegaRedHand a7beed7
implement rlp decoding for lists
juanbono 22dac5b
pull from main
juanbono c831c41
clippy
juanbono 6d7d208
link to docs
juanbono 7162e89
implement rlp decoding for tuples up to size=3
juanbono 847f489
Merge branch 'main' of github.com:lambdaclass/ethereum_rust into impl…
juanbono 78824f5
add u256 decoding
juanbono 22354c2
feat: add PongMessage struct
ricomateo 5a2fed8
merge implement_rlp_decoding branch
ricomateo dce1fb5
feat: add PongMessage decoding
ricomateo 80dd70f
fix: typo on RLP decoding for 4-tuple
ricomateo 7e26506
add match to decode_with_header function
ricomateo 84b838d
fix: linter
ricomateo 7303d18
merge main
ricomateo 15bf1fc
merge discv4-setup branch
ricomateo 14c76ab
Merge branch 'main' into discv4-setup
MegaRedHand 7118d24
Merge branch 'main' into discv4-setup
MegaRedHand d138505
fix: restrict decode_bytes to strings
MegaRedHand 17d9e53
feat: add struct Decoder helper
MegaRedHand 9a1fe16
pull from main
juanbono 261a56f
fix: was reading the remaining buffer instead of the payload
MegaRedHand c6018b5
docs: add documentation
MegaRedHand e328afc
add message decoding in discover_peers
ricomateo 76fb130
docs: add example `impl RLPDecode` as doctest
MegaRedHand 3db5f64
merge struct-decoder
ricomateo 5cf76be
refactor: pong decoding
ricomateo a939e44
Merge branch 'main' into discv4-setup
MegaRedHand 1c96af4
fix: use Decoder struct
ricomateo 5848272
chore: add #[must_use] to Encoder and Decoder
MegaRedHand dcaa89b
fix: remove unnecessary trait
ricomateo da90c8a
refactor: use Encoder in PingMessage's RLPEncode
MegaRedHand 256351a
merge main
ricomateo a5217b0
refactor: use Encoder on Endpoint's RLPEncode
MegaRedHand 259dd70
docs: add documentation
MegaRedHand dc8d44b
fix: change RLPDecode Endpoint trait to use Encoder
ricomateo 5a3408c
feat: add RLPDecode for PongMessage
ricomateo b25c465
small fix
ricomateo d00d801
merge main
ricomateo b9b3e8a
feat: add RLPDecode for PingMessage
ricomateo 58ae847
merge discv4-setup
ricomateo 5f7445a
feat: add decode_optional_field method to Decoder
ricomateo 1784be4
fix: support decoding with optional fields for PingMessage
ricomateo 1c48449
fix: linter
ricomateo b948803
merge main
ricomateo ee83710
fix: remove unnecessary RLPDecode impl
ricomateo 5ce7475
merge main
ricomateo 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
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.
is this one really needed? taking into account that we have the Decoder helper for structs?