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

[Feature] Apply a single transaction to an SMT #1371

Open
cffls opened this issue Oct 28, 2024 · 0 comments
Open

[Feature] Apply a single transaction to an SMT #1371

cffls opened this issue Oct 28, 2024 · 0 comments
Labels
enhancement New feature or request zero zkEVM Ticket specific to Polygon Zero zkEVM

Comments

@cffls
Copy link

cffls commented Oct 28, 2024

With #1363, we will be able to use SMT as a StateReader, and with #1369, it could be used as a StateWriter as well.

With SMT being a StateReader and StateWriter, we should be able to execute a transaction, as long as the pre-state trie of the transaction is provided (enabled by #1369 and #1370).

Write a function that execute a transaction on a given SMT and returns the new SMT after the transaction is applied.

The implementation will be similar to ExecuteBlockEphemerallyZk, except the block parameter is replaced with a transaction. Also, the function should allow caller to specify whether the pre-execution should be included or not. If the transaction to be executed is the first transaction in the block, the pre-execution should be enabled.

@cffls cffls added enhancement New feature or request zero zkEVM Ticket specific to Polygon Zero zkEVM labels Oct 28, 2024
@mandrigin mandrigin added this to the v2.61.x (zero prover) milestone Oct 30, 2024
@mandrigin mandrigin removed this from the v2.61.x (forkid.13) milestone Dec 2, 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 zero zkEVM Ticket specific to Polygon Zero zkEVM
Projects
None yet
Development

No branches or pull requests

2 participants