-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICS07: Add verification method for client update handler (#1321)
* bla * on going * ongoing * on going * on going * timestamp default changed from none to now * failed ping pong - signs * Update context.rs * bla * blabla * fixed test client_update_ping_pong * fmt + clippy * Update context.rs * Update context.rs * remove comments * Update host.rs * Update to tendermint-rs v0.20.0 * Update changelog * Fix tendermint-rs version in changelog * Update predicates.rs * Update context.rs * tests * tendermint stuff in * Update Cargo.toml * clippy + fmt * moved predicates into ics07 header.rs * Adapted to latest TM changes * Fixed MockHeader test * Fmt & clippy * Removed irrelevant file * Bit more cleanup * fixed tests * upgraded to new error model * fmt * errors and timestamp changes * Fix error notation and formatting Signed-off-by: Thane Thomson <connect@thanethomson.com> * Upgrade to tendermint-rs master Signed-off-by: Thane Thomson <connect@thanethomson.com> * Use tendermint-rs from branch thane/ibc-1252 Signed-off-by: Thane Thomson <connect@thanethomson.com> * Refactor ICS07 update handler to reuse light client verifier This commit makes use of the latest code from informalsystems/tendermint-rs#960 in order to reuse the light client's verification predicates instead of reimplementing them in the `ibc` crate. Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update Cargo.lock to address zeroize issue Signed-off-by: Thane Thomson <connect@thanethomson.com> * Bump tendermint-light-client dep to v0.22.0 for ibc module Signed-off-by: Thane Thomson <connect@thanethomson.com> * Refactor to accommodate new context API Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix missing import Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix imports Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix error check in test Signed-off-by: Thane Thomson <connect@thanethomson.com> * Output debug version of error Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove test as per #1321 (comment) Signed-off-by: Thane Thomson <connect@thanethomson.com> * Address comments from Adi Signed-off-by: Thane Thomson <connect@thanethomson.com> * Cosmetic tweaks Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add revision number check Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix broken test Signed-off-by: Thane Thomson <connect@thanethomson.com> * Check incoming header height against chain ID version from client state Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add revision_number consistency check when deserializing header Signed-off-by: Thane Thomson <connect@thanethomson.com> * Clarify MismatchedRevisions error message Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add changelog entries Signed-off-by: Thane Thomson <connect@thanethomson.com> * Commented import no longer necessary Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add in-the-middle monotonicity checks Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix broken dep tree relating to Prometheus Signed-off-by: Thane Thomson <connect@thanethomson.com> * Move next/prev consensus state search functionality to ClientReader trait Signed-off-by: Thane Thomson <connect@thanethomson.com> * Move impl of prev/next to the specific implementation and simplify signatures * Disable `tendermint-light-client` default features, ie. RPC client, std and color-eyre * Apply suggestions from code review * Fix compilation * Cleanup BTreeMap import * Always show underlying reason in ics07_tendermint errors * Update modules/src/ics02_client/handler/update_client.rs * Fix compilation Co-authored-by: cezarad <cezara@informal.systems> Co-authored-by: Romain Ruetschi <romain@informal.systems> Co-authored-by: cezarad <9439384+cezarad@users.noreply.github.com> Co-authored-by: Adi Seredinschi <adi@informal.systems> Co-authored-by: Anca Zamfir <zamfiranca@gmail.com>
- Loading branch information
1 parent
14aeb87
commit fde0a96
Showing
24 changed files
with
1,029 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- The `check_header_and_update_state` method of the `ClientDef` | ||
trait (ICS02) has been expanded to facilitate ICS07 | ||
([#1214](https://github.com/informalsystems/ibc-rs/issues/1214)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Add ICS07 verification functionality by using `tendermint-light-client` | ||
([#1214](https://github.com/informalsystems/ibc-rs/issues/1214)) |
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.