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

Arecibo backports #223

Merged
merged 6 commits into from
Aug 29, 2023
Merged

Arecibo backports #223

merged 6 commits into from
Aug 29, 2023

Conversation

huitseeker
Copy link
Contributor

Small backports from Arecibo, please refer to the individual commit messages.

- Simplified the NIFS struct in `nifs.rs` file by removing extraneous elements.
- Removed `EvaluationArgument` struct from `ipa_pc.rs` file, replacing it with direct usage of `InnerProductArgument`.
- Updated `EvaluationEngineTrait` type declarations to accommodate the change.
- Reworked `prove` and `verify` methods to work directly with `InnerProductArgument`.
- Made `InnerProductArgument` visibility public.
- Trait bound changed from `PrimeField + PrimeFieldBits` to `PrimeField` in `poseidon.rs`.
- Refactored the `from_label` function in pasta.rs removing redundant collect, flatten operations and Vec<usize> creation,
- Optimized performance by refactoring the use of iterator `into_iter()` to the iterator itself in `gadgets/r1cs.rs`.
- removed a clone in ppsnark.
@srinathsetty
Copy link
Collaborator

Thanks! This also addresses issue #202

@huitseeker
Copy link
Contributor Author

@srinathsetty not completely, there's still some duplication between Pasta, on the one hand, and the Halo2curves-based implementations, on the other hand.

@srinathsetty srinathsetty merged commit bd56514 into microsoft:main Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants