This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Modifications for better cross-project use of HashDB/Patricia Trie #7019
Labels
F6-refactor 📚
Code needs refactoring.
M4-core ⛓
Core client code / Rust.
P5-sometimesoon 🌲
Issue is worth doing soon.
Comments
Trait aliases makes this even better, but a local |
@dvdplm is this related to what you're working on? |
I think this is a part of it yeah. I forgot I filed this one! |
7 tasks
Merged
Closing the issue due to its stale state |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
F6-refactor 📚
Code needs refactoring.
M4-core ⛓
Core client code / Rust.
P5-sometimesoon 🌲
Issue is worth doing soon.
cc @debris
HashDB interface currently uses local primitive types, while with the
primitives
crate approach local types can be used. Also the assumption on keccak is not likely to remain strong.A modification of the interface from
would be a definite improvement and lead to the crate carrying around fewer dependencies.
One problem is the special-casing of many known hashes like NULL_RLP, RLP_EMPTY, etc. in the patricia trie or in memory db. How can we handle the special cases correctly without re-hashing or doing extra work on each hash?
The text was updated successfully, but these errors were encountered: