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

Add retrieval content validation to state network. #2166

Merged
merged 3 commits into from
May 6, 2024

Conversation

web3-developer
Copy link
Contributor

No description provided.

@web3-developer web3-developer requested a review from kdeme May 6, 2024 08:16
# at your option. This file may not be copied, modified, or distributed except according to those terms.

import eth/common, ./state_content

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything else to validate after retrieving a state value apart from checking that the value returned matches the expected hash contained in the key?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the retrieval part, no, I don't think so

check:
validateAccountTrieNodeHash(
contentKey.accountTrieNodeKey, contentValueRetrieval
) == false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More tests are being added. Currently in progress.

# at your option. This file may not be copied, modified, or distributed except according to those terms.

import eth/common, ./state_content

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the retrieval part, no, I don't think so

@web3-developer web3-developer merged commit 5c4358a into master May 6, 2024
10 checks passed
@web3-developer web3-developer deleted the fluffy-state-retrieval-validation branch May 6, 2024 15:13
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.

None yet

2 participants