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

[Flow EVM] add COA ownership proofs #5197

Closed
Tracked by #5241
ramtinms opened this issue Jan 4, 2024 · 0 comments · Fixed by #5343
Closed
Tracked by #5241

[Flow EVM] add COA ownership proofs #5197

ramtinms opened this issue Jan 4, 2024 · 0 comments · Fixed by #5343
Assignees
Labels
Milestone

Comments

@ramtinms
Copy link
Contributor

ramtinms commented Jan 4, 2024

Within Cadence Arch, we need a way to verify that a Flow address controls a COA account.

For this, we need the following parts:

  • A way for FVM.Environment to allow for execution of some queries and returning the result and any error (ideally we should not double count the computation effort).
  • A cadence query to do
    • load the account at the given address
    • check signatures over the input (enough weight)
    • check if it has the COA resource at the given path
    • check if the EOA address stored on the resource matches the given ones.
  • redirect the call from the arch to FVM (compute gas, etc) and check if the proof for address is the same as the caller.
@ramtinms ramtinms self-assigned this Jan 4, 2024
@j1010001 j1010001 added this to the Flow-EVM-M1 milestone Jan 16, 2024
@j1010001 j1010001 changed the title [Beyond EVM] add COA ownership proofs [Flow EVM] add COA ownership proofs Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants