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

Check if no one can send a proof with wrong context to resolveWithProof #47

Open
makoto opened this issue Sep 4, 2023 · 3 comments
Open

Comments

@makoto
Copy link
Collaborator

makoto commented Sep 4, 2023

No description provided.

@makoto makoto changed the title There is no check of context on resolveWithProof Check if no one can send a proof with wrong context to resolveWithProof Sep 4, 2023
@makoto
Copy link
Collaborator Author

makoto commented Sep 4, 2023

Currently you cannot verify on l1 if the proof belongs to the correct context, slot, and name because the l2 key is derived with resolver version, context, and name. The possible solution is either to get rid version from l2 resolver, or pass the l2 resolver version number.

@makoto
Copy link
Collaborator Author

makoto commented Sep 5, 2023

@Arachnid

@Arachnid
Copy link

Arachnid commented Sep 5, 2023

Another alternative is to have the gateway send back two proofs - one of the current version number, and one of the data at the relevant slot.

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

No branches or pull requests

2 participants