-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Light Client verification predicates interface for use from …
…IBC (#960) * Reduce to default hashing implementations Signed-off-by: Thane Thomson <connect@thanethomson.com> * Refactor verification predicates interface to use minimal input parameters Signed-off-by: Thane Thomson <connect@thanethomson.com> * Swap order of fields back to the way they were Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add Eq and PartialEq impls to pacify IBC TendermintClient constraints Signed-off-by: Thane Thomson <connect@thanethomson.com> * Refactor Light Client verifier to require only minimal state without peer ID Signed-off-by: Thane Thomson <connect@thanethomson.com> * Introduce VerificationState as a subset of LightBlock parameters for verification Signed-off-by: Thane Thomson <connect@thanethomson.com> * Rename VerificationState to VerifyParams for clarity Signed-off-by: Thane Thomson <connect@thanethomson.com> * Refactor light client verifier This commit refactors the light client verifier to require the minimum possible amount of detail in its parameters to perform verification. (The LightBlock structure provides far more data than is actually necessary) This refactor makes it much easier to reuse the verification code from ibc-rs. Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add .changelog entry Signed-off-by: Thane Thomson <connect@thanethomson.com> * Document updates to data structures and verify method Signed-off-by: Thane Thomson <connect@thanethomson.com>
- Loading branch information
1 parent
12cc4bb
commit d89a33d
Showing
12 changed files
with
345 additions
and
235 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.changelog/unreleased/breaking-changes/956-light-client-predicates-ibc.md
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,4 @@ | ||
- `[tendermint_light_client]` The light client verification functionality has | ||
been refactored (including breaking changes to the API) such that it can be | ||
more easily used from both `tendermint_light_client` and `ibc-rs` | ||
([#956](https://github.com/informalsystems/tendermint-rs/issues/956)) |
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.