forked from FuelLabs/fuel-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SMT storage key hashing (FuelLabs#1207)
This PR uses an upcoming release of the `fuel-vm 0.34`. It brings a new [important feature](FuelLabs/fuel-vm#485) - hashing the leaf key for the SMT to prevent tree structure manipulation. As an example: Hashed storage key decreases the number of nodes in the SMT from 1.3M to 70K for 30K leaves in the `run_contract_large_state` e2e test. It improves the test time from 200 seconds to 13 seconds in Debug mode and to 1 second in the release(instead of 20 seconds). So it improves security and performance. The change is breaking because it affects the `state_root` field -> generated `ContractId`. Fixes FuelLabs#1143 --------- Co-authored-by: Brandon Vrooman <brandon.vrooman@fuel.sh>
- Loading branch information
Showing
10 changed files
with
334 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.