Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify the client consensus proof against the client's consensus state root and not the host's state root #1746

Merged
merged 5 commits into from
Jan 13, 2022

Conversation

hu55a1n1
Copy link
Member

@hu55a1n1 hu55a1n1 commented Jan 5, 2022

Closes: cosmos/ibc-rs#61

Description

Client consensus proof verification must be performed against the client's consensus state root and not the host's state root. This was a bug in our impl.


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@hu55a1n1
Copy link
Member Author

hu55a1n1 commented Jan 5, 2022

To test, follow the instructions in cosmos/ibc-rs#61. Note: the changes in PR #1711 are required to make this work.

@hu55a1n1 hu55a1n1 mentioned this pull request Jan 5, 2022
3 tasks
@romac romac changed the title Fix consensus proof verification Verify the client consensus proof against the client's consensus state root and not the host's state root Jan 6, 2022
Copy link
Member

@romac romac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thanks for the fix and the testing instructions in the issue!

@romac romac merged commit 9b4369c into master Jan 13, 2022
@romac romac deleted the hu55a1n1/1745-fix-connection-proof-verification branch January 13, 2022 13:48
hu55a1n1 added a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…e root and not the host's state root (informalsystems#1746)

* Fix consensus proof verification

* Add changelog entry

* Update changelog

* Re-add lost changelog entry

Co-authored-by: Romain Ruetschi <romain@informal.systems>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consensus verification failure
2 participants