-
Notifications
You must be signed in to change notification settings - Fork 14
feat: update Plonky3 #195
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
feat: update Plonky3 #195
Conversation
db491c8 to
59c24a6
Compare
ab5520a to
07368a8
Compare
- Bumped rust toolchain to 1.90.0 to match Plonky3. - Bumped workspace `rand` to 0.9 to match Plonky3. - Swapped renamed traits and APIs: - `FieldAlgebra` → `PrimeCharacteristicRing` - `FieldExtensionAlgebra` → `BasedVectorSpace` - `sample_ext_element` → `sample_algebra_element` - `::D` → `::DIMENSION` - `from_canonical_*` → `from_*` - `monomial` → `ith_basis_element` (now returns `Option`) - `p3_fri::FriConfig` → `p3_fri::FriParameters` - `p3_bn254_fr` → `p3_bn254` - `Matrix::get` now returns `Option`, so matrix accesses unwrap with `copied()`/`expect`. - `SubMatrixRowSlices` was rewritten to conform to the new `Matrix` trait (no `Row` assoc type; explicit `get`/`row_subseq_unchecked`/`row_slice`). - `AB::Var` no longer implements `Copy`, and `AB::F` no longer implements `Field`, but we these trait bounds back in `InteractionBuilder.`
This reverts commit 07368a8.
e147b8e to
59ca86e
Compare
|
|
||
| let (local, next) = (main.row_slice(0), main.row_slice(1)); | ||
| let (local, next) = ( | ||
| main.row_slice(0).expect("window should have two elements"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to do this in every AIR?
jonathanpwang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It is unfortunate that .row_slice(0) needs .unwrap(), but I think it is safer to unwrap than to use row_slice_unchecked, especially since we only use the AIR code for symbolic DAG extraction.
|
This is merging into |
Updates to plonky3 v0.4.0. Syncs with openvm-org/stark-backend#195 closes INT-4245 --------- Co-authored-by: Jonathan Wang <[email protected]>
Updates to plonky3 v0.4.0. Syncs with openvm-org/stark-backend#195 closes INT-4245 --------- Co-authored-by: Jonathan Wang <[email protected]>
No description provided.