hyperledger / hyperledger/fabric-x-evm
Implement GetStorageRoot using gateway storage trie root calculation
- Dominant language
- Go
- Stars
- 12
- Forks
- 18
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 23
Description
StateDB.GetStorageRoot(addr) is currently not properly implemented and is not wired to the actual storage trie computation.
We should implement this function by hooking it into the root trie DB logic in gateway/storage/trie, so that it returns the correct, committed storage trie root for the given account address.
This is needed for correctness of state introspection, proofs, and any functionality relying on accurate storage root commitments.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at StateDB.GetStorageRoot(addr) and trace the existing root-trie database logic under gateway/storage/trie. Compare how that logic computes committed storage trie roots for an account address, then verify the function returns the same root. Done means state introspection and proof-related callers receive the correct committed storage root.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100