forked from cosmos/ics23
-
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.
feat: Add
prehash_compare_key
to allow proving nonexistence in spar…
…se trees (cosmos#136) * add prehash_compare_key prehash_compare_key indicates whether to compare the keys lexicographically according to their _hashed_ values (implied by the hash function given by prehash_key). This is required for nonexistence proofs in proof specs that use prehashing. * use keyForComparison in getNonExistProofForKey * apply keyForComparison in typescript verifyNonExistence * update smt spec to use prehash_sha256 * rename prehash_compare_key -> prehash_key_before_comparison * fix: Make it compile in no_std by removing naming of Vec * doc: Add comment describing keyForComparison/key_for_comparison * doc: Elaborate more on why prehashing before comparison * use updated smt test vectors * Avoid cloning `leaf_spec` when prehashing keys for comparison co-authored-by: @romac Co-authored-by: Romain Ruetschi <[email protected]> * Fix missing `Eq` derive on prost build (reverting) * Revert "Fix missing `Eq` derive on prost build (reverting)" This reverts commit 69a38e8. * Fix fmt issue in CI, fix generated code to contain `Eq` impl * add testing for SMT proofs in js --------- Co-authored-by: Ava Howell <[email protected]> Co-authored-by: Ava Howell <[email protected]> Co-authored-by: Romain Ruetschi <[email protected]>
- Loading branch information
1 parent
f4deb05
commit cea74ba
Showing
23 changed files
with
516 additions
and
287 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
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
Oops, something went wrong.