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

Add kv context to MEVM execution #198

Merged
merged 1 commit into from
Feb 19, 2024
Merged

Conversation

ferranbt
Copy link
Collaborator

📝 Summary

This PR introduces the concept of the MEVM context, a set of variables that can be queried with the contextGet precompile and return information about the context of the execution (i.e. confidential inputs or the address of the kettle).

📚 References


  • I have seen and agree to CONTRIBUTING.md

ConfidentialInputs: evm.SuaveContext.ConfidentialInputs,
CallerStack: append(evm.SuaveContext.CallerStack, &caller),
Backend: evm.SuaveContext.Backend,
Context: evm.SuaveContext.Context,
Copy link
Member

Choose a reason for hiding this comment

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

SuaveContext.Context feels a bit verbose

@ferranbt ferranbt merged commit 6f5a2a8 into main Feb 19, 2024
4 checks passed
@ferranbt ferranbt deleted the feature/introduce-memv-context branch February 19, 2024 16:34
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.

2 participants