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 kvstore for contract code #2165

Open
wants to merge 4 commits into
base: verkle-kaustinen
Choose a base branch
from

Conversation

advaita-saha
Copy link
Contributor

Fetching of ContractCode from the Verkle Trie is very slow, due to chunk key caulculation requires pedersen commitment. And number of chunks is generally around 300 to 500

The only solution that seems to work would be to add the kvstore along with the VerkleTrieRef,
I am planning to use the CoreDxKvtRef/CoreDbKvtRef

Since our VerkleTrie is already distinct VerkleTrieRef, using the CoreDxKvtRef shouldn't be a problem, we would be adding the contract code to the kv-store whenever we update contract-code, and later we can easily fetch is from the in-memory kvstore

@advaita-saha advaita-saha marked this pull request as ready for review May 6, 2024 17:12
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.

1 participant