lotion
lotion copied to clipboard
Merkleized state
The goal is to move away from one big JSON blob of state towards some sort of merkle structure. Would be nice to preserve the API of state being just an object (using ES6 proxies) so that app code doesn't have to change.
Benefits:
- Light-clients won't have to download/parse entire state
- Cheaper to update state since we only have to reserialize the changed keys and merkle branches
- Scalability 👐
gonna use mappum/merk (merkle AVL tree) for all queries by default, won't support custom state queries since merk will handle nearly every use case.