Fix unresolved import in generator.rs, update all dependencies to 0.5.0, and clean up formatting
#69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses an unresolved import issue in
generator.rs, updates all dependencies and dev dependencies inCargo.tomlto version0.5.0, and removes accidental blank lines for better code readability. These changes improve build stability, ensure dependency compatibility, and maintain consistent formatting.Problem and Solution
While setting up the
ark-groth16crate, I encountered a build error related to an unresolved import ingenerator.rs. The error message indicated thatscalar_mul::BatchMulPreprocessingwas not found. Upon investigation, I discovered that theCargo.tomlfile specified outdated versions of multiple dependencies (0.4.0), while the codebase was using features from version0.5.0. This mismatch caused the build to fail.To resolve this issue:
Refactored
generator.rs:scalar_mul::BatchMulPreprocessing.Updated
Cargo.toml:0.4.0to0.5.0to ensure compatibility with the latestarkworkslibraries. This includes:ark-ff,ark-ec,ark-serialize,ark-poly,ark-std,ark-relations,ark-crypto-primitives, andark-r1cs-std.ark-bls12-381,ark-bls12-377,ark-bn254,ark-bw6-761,ark-mnt4-298,ark-mnt6-298,ark-mnt4-753, andark-mnt6-753.Validation
cargo build --releaseafter the changes, with no errors encountered.cargo test, and all tests passed successfully, confirming no functionality was broken.closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
master).Pendingsection inCHANGELOG.md.Files changedin the GitHub PR explorer.