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

GetVar(inputIndex, varId) variant for reading context variable from another input #983

Open
kushti opened this issue May 14, 2024 · 0 comments
Assignees
Milestone

Comments

@kushti
Copy link
Member

kushti commented May 14, 2024

In addition to current GetVar(varId) to get input context variable, it is worth to have GetVar(inputIndex, varId) variant for reading context variable from another input. This could be useful for sharing proofs and state ids across inputs.

I think new GetVar variant should be implemented as a method call (only), avoiding introducing new opcodes (so new Context.getInputVar[T](inputIndex: Short, varId: Byte) method.

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

1 participant