Added TinyRlp encoding for bloom filter and logs #1117
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.
Description
This PR enhances the encoding process for EVM log receipts by introducing the usage of TinyRlp for a more efficient representation of data.
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
Contents
Implemented encoding enhancement using TinyRlp for bloom filter and logs.
Rationale
The previous encoding process for bloom filters and logs in EVM log receipts was inefficient and verbose. By introducing TinyRlp, we reduce code size and improve readability while maintaining the integrity of the data. This change aligns with our goal of improving the efficiency and maintainability of the codebase.
How Has This Been Tested?
This change has been tested locally by encoding various EVM log receipts with different configurations of bloom filters and logs. Unit tests have been added to verify the correctness of the encoding process and ensure that the data remains intact after encoding.
Please give a concise description of your PR.
The target readers could be future developers, reviewers, and auditors. By reading your description, they should easily understand the changes proposed in this pull request.