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

Store commit proofs on queried chains #2

Open
JakeHartnell opened this issue Oct 13, 2022 · 1 comment
Open

Store commit proofs on queried chains #2

JakeHartnell opened this issue Oct 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@JakeHartnell
Copy link
Owner

Full credit to @larry0x for this great idea:

(4/5) the contract will do the smart query, and then (here's the important part) it saves the following:

hash(id | contract | msg | query_response)

where | is bytes concat

in its store as a "commit"

(5/5) the relayer will relay the query response back to A, and the proof that the commit exists in B contract's store

this way, A knows the query response, the response value can be proven!

This is a great idea and should be very simple to implement!

@JakeHartnell JakeHartnell added the enhancement New feature or request label Oct 13, 2022
@larry0x
Copy link

larry0x commented Oct 13, 2022

Apparently Quasar has already implemented something similar: https://github.com/quasar-finance/interchain-query-demo

Repository owner deleted a comment from tobarbaro Feb 10, 2024
@github-staff github-staff deleted a comment from insite-la Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants