-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes the platform dynamic: - Extracts some of the more fixed behaviors of `Platform` into static methods, which replace some calls to `CENO_PLATFORM`. - Introduces a `ProgramParams` struct which stores the platform, the program size (no longer present in the type) and other useful params. - `ProgramPrams` flow from `ZKVMConstraintSystem`, through the `CircuitBuilder`, through some of the `TableConfig`s and into the relevant table trait methods which implement the behavior we wanted to make dynamic. Observations: - Could instate some safeguards to use the same platform throughout the pipeline. One example: presently it's technically possible to use one platform for building the `VM` and another for the constraint system. - There is a default `ProgramParams` which is implicitly used in some constructors. This was done so as not to edit a lot of tests prematurely. While the default values should generally be compatible with the original intention of these test cases, it may be wise to remove the implicit defaults and force ourselves to choose params everywhere. This can be done in a subsequent PR. --------- Co-authored-by: naure <[email protected]>
- Loading branch information
Showing
21 changed files
with
205 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.