Skip to content
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

fix(protocol): fix LibTrieProof.verifyMerkleProof by RLP-encoding the byte32 value first #16018

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

dantaik
Copy link
Contributor

@dantaik dantaik commented Feb 23, 2024

Before this PR: we simply convert the expected bytes32 value to bytes using bytes.concat(value) then compare the value retured from MerkleTrie.get(...). After this PR, we convert value to bytes using RLPWriter.writeUint(uint256(value))

@dantaik dantaik marked this pull request as ready for review February 23, 2024 05:58
@dantaik dantaik enabled auto-merge February 23, 2024 05:59
@dantaik dantaik added this pull request to the merge queue Feb 23, 2024
Merged via the queue into main with commit e1f21c1 Feb 23, 2024
6 checks passed
@dantaik dantaik deleted the debug_proof_verification branch February 23, 2024 07:11
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.

3 participants