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

refactor: add missing Debug implementations #282

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

huitseeker
Copy link
Contributor

Adds missing Debug implementations, along with fixing some annoying things I found while working on something else.

- Refactored iterated zip operations in batch evaluation verification function in `src/spartan/snark.rs`
- Used `zip_with!` macro to enhance code readability and maintainability
- Enhanced the efficiency of polynomial evaluation in `prove` function in `src/spartan/snark.rs` by eliminating needless cloning.
- `Debug` trait added across multiple files to enhance log and error handling capacity; applies to structures like `ProverKey`, `VerifierKey`, `R1CSWithArity`, `NovaPublicParameters`, `CompressedSNARK`, and others.
- Expanded `Debug` trait implementation to more complex structures like `CircuitDigests`, `PublicParams`, associated types in `ROTrait` and `ROCircuitTrait`, and several structures in the `spartan` and `gadgets` module.
- An additional project-wide compilation check for missing `Debug` implementations has been added to cargo build settings.
@huitseeker huitseeker added this pull request to the merge queue Jan 25, 2024
Merged via the queue into lurk-lang:dev with commit 1f36390 Jan 25, 2024
9 checks passed
@huitseeker huitseeker deleted the streamline branch January 25, 2024 19:00
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