This repository was archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Manage the storage information process #13
Copy link
Copy link
Open
Description
Reference #5 and #12.
It is necessary to manage carefully the storing process in the commitment layer. The SVM pushes, in a particular stack (only the push operation is allowed), all the information that must be stored in the commitment layer. The "execution"* phase (not the virtual machine), when the SVM completed the execution and returned a positive result, must wait to store the information before carrying on the state of the contract.
* For "execution" phase I mean the phase that precedes and follows the execution of the bytecode by the SVM. Tasks performed in this phase are loading the program for the SVM and checking if there is information to store in the commitment layer.
| Other stuff |
----------------------------------------------------------------------------------------------
| "Execution" phase (i.e. loadProgram, checkLastInstructionIsHalt, ...) |
----------------------------------------------------------------------------------------------
| SVM execution |
----------------------------------------------------------------------------------------------
| "Execution" phase (i.e. store information in the commitment layer, ...) |
----------------------------------------------------------------------------------------------
| (Maybe other stuff?) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels