forked from privacy-scaling-explorations/halo2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move "frontend" column types from middleware to the frontend (privacy…
…-scaling-explorations#300) Summary: - move `Fixed`, `Advice`, `Instance`, `ColumnType`, `Column`, `sealed` from middleware to frontend - These types are only used in the frontend. In particular, the `Fixed, Advice, Instance` types are used in the generic `Column<C>` type which is useful for the fronted because it brings type safety for column types; but in the backend it's unneeded because we use the simplified type `ColumnMid`. - remove metadata::Column in favor of ColumnMid - remove phase from `Advice` - I noticed that the phase in the `Advice` was redundant because a column always exists in the context of a `ConstraintSystem` which has the `advice_column_phase` with that same information. This removal simplifies the code. - Remove `From<(Any, usize)> for Column` in favor of using constructors in order to improve code clarity. * chore: simplify Column types - remove phase from Advice - remove metadata::Column in favour of ColumnMid - move Fixed, Advice, Instance, ColumnType, Column, sealed from middleware to frontend * chore: remove unneeded pubs * chore: make Display for ColumnMid succint * fix: set correct ColumnMid field order for sorting * fix: update plonk_api test hardcoded vk * fix: doc tests imports * fix: address comments from @duguorong009 and @CPerezz
- Loading branch information
Showing
34 changed files
with
302 additions
and
468 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
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.