This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
forked from celestiaorg/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Fraud Proof generation and partial verification using IAVL store (
#1) * Replace tendermint with celestiaorg tendermint version * Add new ABCI method skeleton: build works now * Add fraudproof data structure * Add helper methods to baseapp test for fraudproofs * Add TODOs in baseapp test method * Add SetupBaseParams with SMT, WIP to IAVL * Add tracekv readOperations and getAllKeysUsedInTrace * Cleanup errors * Add loadLastVersion to IAVL rootmulti store * Remove enableFraudProofGenerationMode * Add substore tracing to rootmulti store * Add ability to reset trace writer buffers after each commit * Able to get the trace made by fraudulent state transition now * Start writing getFraudProof method in BaseApp * Substitute SMT with IAVL trees inside getFraudProof * Implement getStoreProof inside rootmulti store * Completed generateFraudProof with IAVL store * Remove routerOpts from baseapp test when generating fraud proofs * Switch out proof decoder * Add Root in IAVL to use working hash instead of lastCommitID hash * Fix getAppHash to use working hashes of IAVL stores * Implement ABCI method to verify fraud proofs * Start setup BaseApp from IAVL store WIP * Add option to SetInitialHeight * Initialize baseapp from IAVL trees * Use deepIAVLTree in loadVersion * Add SetTracerFor to mock store * Add gdocs to new ABCI methods * Refactor from fmt.errorf into errors.New * Update error packages used * Update docs to remove SMT references * Add unit test for checkFraudulentStateTransition * modify executeNonFraudulentStateTransactions to accomodate case when EndBlock is fraudulent * Refactor code
- Loading branch information
1 parent
462e2d2
commit 55d350f
Showing
16 changed files
with
1,001 additions
and
32 deletions.
There are no files selected for viewing
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.