-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Inclusion proofs for QGB verification (#878)
* feat: add data root inclusion proofs * feat: add tx shares and shares inclusion proof partial support * feat: add rows proofs support * feat: add rows proofs support and other cosmetics * doc: update comments and docs * chore: remove unnecessary test * chore: remove residual comment * chore: refactor RowsFromProto * chore: remove residuel comment * fix: nolint * chore: gofumpt * chore: revert proto new line * chore: rename TxShares to SharesRange * feat: add support for querying the message shares that a transaction contain * chore: regenerate proto * chore: remove unnecessary custom queries in preparation for a single one to have all the proofs * feat: use one query to get shares inclusion proofs * docs: update ProveShares docs * docs: update ShareInclusionProofQueryPath docs * docs: update SharesProof docs and regenerate proto * docs: update Validate docs * chore: regenerate proto * fix: fix data root inclusion proof env * fix: fix data root inclusion proof environment creation * chore: rename SharesFromProto to SharesProofFromProto as suggested by @evan-forbes * docs: update docs for validate proof * fix: execute the proof validation only once instead of many times * Update types/tx.go * Update proto/tendermint/types/types.proto Co-authored-by: Rootul P <[email protected]> * Update proto/tendermint/types/types.proto Co-authored-by: Rootul P <[email protected]> * chore: regenerate proto * fix: require the user to provide a root to test the shares proof to it * docs: shares Proof validate docs * chore: regenrate proto * chore: rename begin/end block to first/last block * chore: rename begin/end Query to first/last Query in blocks_test.go * Update types/tx.go Co-authored-by: Callum Waters <[email protected]> * chore: regenerate proto * chore: format * Update types/tx.go * chore: generate proto * fix: initialize the state store correctly in test data root inclusion proofs * fix: make the prove data root inclusion proof use the new encoded commitment Co-authored-by: Rootul P <[email protected]> Co-authored-by: Callum Waters <[email protected]>
- Loading branch information
1 parent
536a3aa
commit 2d2a65f
Showing
15 changed files
with
1,357 additions
and
155 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
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.