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

Zeromorph and HyperKZG improvement (Arecibo backports) #301

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

huitseeker
Copy link
Contributor

@huitseeker huitseeker commented Jan 26, 2024

What's in this PR?

This implements the Zeromorph PCS as a Nova PCS, along with :

  • some performance improvements in the HyperKZG PCS (see comparative benchmarks below 1),
  • a mutualisation of the commitment scheme, which is common to Zeromorph and HyperKZG,

This is the work of a team at Lurk Lab, including @adr1anh, @emmorais, @huitseeker, @mpenciak, @storojs72 and @tchataigner.

Absolute Benchmarks

PCS_Proving
PCS_Verifying

Complete bench output at https://gist.github.com/huitseeker/8401e4be3ef1430277d3fee6cd84efc4

Comparative benchmark

To gauge the impact of this PR on HyperKZG (a component, but not the major point of this PR), we can ask: how does this PR (at e34f0aa) compare to main (at 55a55dd) or main before #299 and #300 (at eab053b)?

group                                                                           main                     main_before_299_300                    zeromorp_and_kzg_pr
-----                                                                           ----                     -------------------                    -------------------
PCS-Proving 10/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/10            7.7ms                                   8.2ms                                  7.5ms
PCS-Proving 10/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/10                                                                                           7.6ms
PCS-Proving 12/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/12           18.5ms                                  22.5ms                                 18.4ms
PCS-Proving 12/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/12                                                                                          17.9ms
PCS-Proving 14/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/14           52.6ms                                  57.6ms                                 50.5ms
PCS-Proving 14/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/14                                                                                          44.6ms
PCS-Proving 16/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/16          167.7ms                                 181.2ms                                162.3ms
PCS-Proving 16/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/16                                                                                         131.8ms
PCS-Proving 18/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/18          580.6ms                                 575.3ms                                495.3ms
PCS-Proving 18/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/18                                                                                         402.8ms
PCS-Proving 20/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/20         1790.0ms                                    2.0s                               1725.2ms
PCS-Proving 20/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/20                                                                                        1330.8ms
PCS-Verifying 10/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/10       1963.3µs                                   2.3ms                               1458.2µs
PCS-Verifying 10/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/10                                                                                      1513.6µs
PCS-Verifying 12/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/12          2.2ms                                   2.4ms                               1732.4µs
PCS-Verifying 12/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/12                                                                                      1629.7µs
PCS-Verifying 14/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/14          2.1ms                                   2.4ms                               1690.0µs
PCS-Verifying 14/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/14                                                                                      1607.4µs
PCS-Verifying 16/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/16          2.1ms                                   2.4ms                               1687.9µs
PCS-Verifying 16/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/16                                                                                      1696.3µs
PCS-Verifying 18/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/18          2.1ms                                   2.5ms                               1751.8µs
PCS-Verifying 18/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/18                                                                                      1738.2µs
PCS-Verifying 20/hyperkzg::EvaluationEngine<Bn256, Bn256EngineKZG>/20          2.1ms                                   2.5ms                               1775.7µs
PCS-Verifying 20/non_hiding_zeromorph::ZMPCS<Bn256, Bn256EngineZM>/20                                                                                      1783.8µs

Provenance

This is a port of several Arecibo PRs (click to unfold)

Footnotes

  1. PRs Rename mlkzg and remove redundant transcript absorbs #299 and Optimizations to KZG commitment scheme #300 also include work initially developed in Arecibo as part of this effort.

@huitseeker huitseeker force-pushed the zeromorph_and_mlkzg branch 2 times, most recently from deffd05 to 70979e6 Compare January 26, 2024 02:33
@huitseeker huitseeker changed the title Zeromorph and mlkzg Zeromorph and HyperKZG improvement (Arecibo backports) Jan 26, 2024
@srinathsetty
Copy link
Collaborator

srinathsetty commented Jan 26, 2024

Hi @adr1anh, @emmorais, @huitseeker, @mpenciak, @storojs72 and @tchataigner,

Thanks for the PR! For simplicity, could we please unfold this PR into several PRs?

(1) Remaining improvements to HyperKZG (i.e., those not covered by #299 and #300) + PCS benchmark. From my quick skim at this PR, this appears to be improvements to KZG verifier to compute a multipairing instead of two separate pairings. Hopefully, we can merge this quickly as it should be a self-contained and localized change.

(2) Refactoring (univariate) KZG out of HyperKZG
(3) ZeroMorph on top of (univariate) KZG.

On items (2) and (3), I'm not yet sure of the exact shape of (2) or (3) because ZeroMorph and HyperKZG have different SRS requirements. Also, it is not yet clear whether it makes sense to maintain both ZeroMorph and HyperKZG because of the following reasons:

  • They have the same commitment costs;
  • ZM has slightly better proving costs as shown in your benchmarks (though HyperKZG hasn't been fully optimized, so this point may change in the near future), but it is unclear how much of that translates to improved proving times in ppsnark as PCS evaluation is invoked only once whereas commitment is invoked an order of magnitude more times; and
  • It seems like ZM inherently needs a bigger SRS.

In the absence of ZM, it may actually be simpler to have HyperKZG in the current form (i.e., we may not need item (2)), for easier auditability, simpler code, etc.

@huitseeker
Copy link
Contributor Author

huitseeker commented Jan 26, 2024

On items (2) and (3), I'm not yet sure of the exact shape of (2) or (3) because ZeroMorph and HyperKZG have different SRS requirements. Also, it is not yet clear whether it makes sense to maintain both ZeroMorph and HyperKZG because of the following reasons:
(...)
It seems like ZM inherently needs a bigger SRS.

To provide more clarity on the SRS: the PR already demonstrates how to use the existing Nova traits to overcome this conceptual difficulty.

The KZG CommitmentTrait defines how to commit using the KZG commitment scheme, which is exactly identical (in fact, the same code path) between ZM & HyperKZG. That CommitmentTrait uses a CommitmentKey that contains a vector of G1 points, and a vector of G2 points, and the commitment scheme imposes no particular constraint on the length of that vector of G2 points, as they are not needed for commitments.

However, ZM and HyperKZG do not implement the EvaluationEngineTrait in the same way. It is there, in the implementation of setup(ck: &CommitmentKey<E>), that the length of the vector of G2 points is inspected, and, in the case of ZM, fails if the amount of bases supported in the SRS is unsuitable for the ZM scheme. As you know, this setup is called as part of the setup of the CompressedSNARK, which is where the user-facing failure would occur if the SRS characteristics were found to be insufficient.

In other words, ZM does not carry an incremental maintenance cost beyond the specifics of its EvaluationEngine implementation (~800 LoC, including 300 LoC for tests).

@srinathsetty
Copy link
Collaborator

Thanks for the clarifications @huitseeker! It makes sense that Item#3 is not significantly more complex.

If ZM's benefits aren't significant (needs more examination!), then we also can avoid the (conceptual) complexity introduced from factoring out (univariate) KZG (item#2), which unlike the current hyperkzg.rs, spreads the code over multiple modules and some abstractions may be unnecessary if there's only going to be one KZG-based scheme. To give more time to understand these trade-offs, it may still make it easy to unfold item#1. What do you think?

@huitseeker huitseeker force-pushed the zeromorph_and_mlkzg branch 2 times, most recently from 1c1cd63 to 23b44c5 Compare January 26, 2024 18:59
@huitseeker
Copy link
Contributor Author

huitseeker commented Jan 26, 2024

I've done a pass to minimize disturbance to the Nova module organization, there no longer is a non_hiding_kzg file.

Item (1) as asked above seems to consist of:

  • this PR,
  • minus
    • the non_hiding_zeromorph file,
    • the declaration of the Bn256EngineZM in provider/mod.rs lines 67-79,
    • the two lines mentioning Bn256EngineZM in the benches (one for imports, one in asset definition),
    • the couple of lines where Bn256EngineZM has been added alongside other options in generic tests for the Compressed SNARK in src/lib.rs.

@srinathsetty
Copy link
Collaborator

Thanks @huitseeker! For (1), It think it may be easy to create a new lean PR with just the following changes:

  • benches/pcs.rs
  • modifications to src/provider/hyperkzg.rs with the improved pairing check (but without univariate KZG factored out):
let pairing_inputs = [
        (&(-L).to_affine(), &E::G2Prepared::from(vk.h)),
        (&R.to_affine(), &E::G2Prepared::from(vk.beta_h)),
      ];

let pairing_result = E::multi_miller_loop(&pairing_inputs).final_exponentiation();
pairing_result.is_identity().into()

huitseeker pushed a commit to huitseeker/Nova that referenced this pull request Feb 17, 2024
* feat: Initial Shplonk prover/verifier as EvaluationEngine

* feat: More optimal pairing check

* feat: Avoid including C_P to the proof/transcript

* feat: Check R / evals correlation on verification

* feat: Verify correctness of P_i polynomials computing

* chore: Add TODOs about avoiding operations with constant polynomial

* chore: Fix clippy issues

* chore: Review iteration fixes

* feat: Include Shplonk PCS into the benchmark
@srinathsetty
Copy link
Collaborator

Is this still being worked on? I ask because I worry about divergence with main, making it harder to merge this down the line.

@huitseeker huitseeker force-pushed the zeromorph_and_mlkzg branch 2 times, most recently from 03ef48d to ba41769 Compare February 21, 2024 03:10
huitseeker and others added 11 commits May 2, 2024 03:57
* Schoolbook adapted KZG PoC

Remove toxic waste from setup parameters

Refactorings

ZeroMorph skeleton

* feat: provide a non-hiding variant of KZG

Drafts a non-hiding variant of the KZG PCS on univariate Dense polynomial representations

Details:
- Changed access levels and ordering for various modules and functions like `sumcheck`, `cpu_best_multiexp`, and `mod kzg;`.
- Upgraded `halo2curves` version and added new dependencies like `pairing`, `anyhow`, `rand`, and `group`.
- Leveraged the UniPoly in sumcheck.rs
- Created `non_hiding_kzg.rs` file, introducing new structures and functionalities like `UVUniversalKZGParam`, `UVKZGProverKey`, `UVKZGPoly`, and `UVKZGPCS` along with their implementation and tests.
- Modified the import of `Engine` in `kzg.rs` from `halo2curves::pairing::Engine` to `pairing::Engine` (reflecting the new version of halo2curves).

feat: add batch commit / open / prove

* Small subtasks: params, phi, un function, EE

Minor adjustments

* chore: setup zeromorph

refactor: Remove kzg and zeromorph provider modules

* feat: add openings for Zeromorph

- Added new data structures and their related functions including the `ZMProverKey`, `ZMVerifierKey`, `ZMCommitment`, `ZMEvaluation`, `ZMProof` and `ZMPCS` in `non_hiding_zeromorph.rs`
- Implemented new functionalities in `non_hiding_zeromorph.rs` and `spartan/polynomial.rs` to provide better handling of polynomials, including fetching commitments for a polynomial, computing the quotient polynomials of an existing polynomial.
- Enhanced the `UniPoly` struct in `spartan/sumcheck.rs` with `Index` and `IndexMut` for better coefficient access, and `AddAssign` and `MulAssign` for scalar and self types.
- Removed and replaced certain elements in `UVUniversalKZGParam` struct in `non_hiding_kzg.rs` for improved flexibility, and included import and implementation of `TranscriptReprTrait`.

draft ZM verify

set up test structure

defer test_quo

* Include commits into ZMProof and adjust RO

* feat: Refactor polynomial evaluation methods

- Temporarily disabled some assertions in both `non_hiding_zeromorph.rs` and `polynomial.rs` for debugging purposes.
- Introduced `evaluate_opt`, `fix_variables`, and `fix_one_variable_helper` functions in `polynomial.rs` to support multilinear polynomial evaluation and partial evaluation.

fix: add domain separators

- Integrated additional functionality into the ZMPCS implementation in `non_hiding_zeromorph.rs` by adding a protocol name function.
- Improved security in `non_hiding_zeromorph.rs` by integrating domain separators into transcript's `open` and `verify` functions.

refactor: Refactor code and test performance for NHZM

- Implement `AsRef` trait for `UniPoly` structure in `src/spartan/sumcheck.rs` to facilitate direct access to its coefficients.
- Refactor code in `src/provider/non_hiding_zeromorph.rs` to directly use `into_iter` in map function when creating `quotients_polys`, avoiding a large clone
- Enhance test performance in `src/provider/non_hiding_zeromorph.rs` by pre-generating a `universal_setup` for tests, introducing a `max_vars` variable and RNG in the `commit_open_verify_with` test function, and adjusting the range of num_vars used for testing.

fix: adjust APIs & Serialize impls for the Nova traits

* feat: set up serde & abomonation bounds

* add generic PCS errors

* pp

wip

* fix: adjust type parameters for nontrivial_with_zm test

fix: ignore panicking test

fix: add doctest for evaluate_opt

fix: remove obsolete comments

chore: move UniPoly methods where they should be

test: make clear current zeromorph operates in monomial basis

- Added an additional test `test_dense_evaliations()` to provide more comprehensive testing for the `evaluate()` and `evaluate_opt()` functions in `MultilinearPolynomial`.

refactor TranscriptReprTrait impl for compat with Commitments

* feat: Implement KZG commitment trait and serialization features

- Added serialization, deserialization, and Abomonation traits to UVUniversalKZGParam struct in `non_hiding_kzg.rs` file along with implementing comparison and length evaluation traits.
- Created a new file `kzg_commitment.rs` which implements KZG Commitment Engine and setup, commit functions.
- Integrated `kzg_commitment` in module `provider` and set up conversions between Commitment and UVKZGCommitment.
- Enhanced assertion in `minroot_serde.rs` file from clone comparison to dereferenced comparison in MinRoot delay case.

* Use the ZMPCS Evaluation Engine and the KZG Commitment Engine in tests.

feat: Improve `prove` and `verify` methods in `ZMPCS` struct

- Updated `prove` and `verify` methods in `ZMPCS<E>` struct within `non_hiding_zeromorph.rs` with actual logic for commitment, evaluation, and verification.
- Adjusted the construction of `ZMCommitment` and `ZMEvaluation` within `prove` and `verify` methods.
- Commented on portions of the code in `non_hiding_zeromorph.rs` that need further modification and refinement.
- Modified test value for `test_pp_digest_with` in the `test_supernova_pp_digest` test case to match the new expected output.

* fix evaluation reversal bug

fix: remove superfluous eval functions

fix: remove endianness shenanigans

test: add evaluation unit test

* fix: parallellize pp generation

* feat: Enhance KZG commitment SRS generation efficiency using parallel computation

- Introduced a new module `util` within the `provider` module, implementing fixed-base MSM,
- New trait constraint has been imposed for `E::Fr: PrimeFieldBits` within the `non_hiding_zeromorph.rs` file, and usages have been adjusted in the `test` module.
- Adding the `PrimeFieldBits` import from the `ff` crate and importing `provider::util` from the local crate.

refactor: Refactor utility functions for elliptic curve operations

- Renamed and moved `util.rs` to `fb_msm.rs` under the `provider` directory.
- documented the FB MSM

* Apply comments from code review

Co-authored-by: Adrian Hamelink <adrian.hamelink@gmail.com>

* Improve documentation and testing in non_hiding_zeromorph.rs

- Enhanced the clarity and accuracy of code comments and documentation in `non_hiding_zeromorph.rs`, specifically within the `ZMPCS` struct's methods.
- Enriched the `quotients` function's documentation, detailing its mathematical underpinnings
- Implemented a new rigorous test, `test_quotients`, to ensure the `quotients` function's output satisfies the polynomial identity.

* test: refactor random ML poly generation

* Finish documenting / testing Zeromorph (microsoft#142)

* fix: remove a TODO using RefCast

* fix: remove unsightly clone

* doc: comment intermediate ZM steps

* refactor: Refactor `open` function in zeromorph provider

Extracted the computation of `q_hat` in the `open` function into a new function `batched_lifted_degree_quotient` for more modular code.

* test: test batched_lifted_degree_quotient

Addition of a new test `test_batched_lifted_degree_quotient` to validate batched degree quotient lifting for polynomials.

* refactor: Refine computations in non_hiding_zeromorph.rs

- Overhauled the 'eval_and_quotient_scalars' function with a revised return type with pair of vectors rather than scalar and a vector,
- correspondingly split scalars `degree_check_q_scalars` and `zmpoly_q_scalars` within the `open` method of `non_hiding_zeromorph.rs`.
- Adjusted the 'verify' method to accommodate the modified 'eval_and_quotient_scalars' function output changes.

* test: test partially evaluated quotient \zeta_x

- Introduced a new test case `test_partially_evaluated_quotient_zeta` to validate `zeta_x` construction.
- correct an off-by-one error in the y_k terms

* test: test partially evaluated quotient

- Created a new function `phi` for evaluating using an inefficient formula in `non_hiding_zeromorph.rs`
- Implemented a new test function `test_partially_evaluated_quotient_z` for validation of `Z_x` computation method in `non_hiding_zeromorph.rs`

* fix: refine q_hat comment

* fix: organize code more sparsely after rebase

* refactor: Improve code readability and error handling in zeromorph

- Updated and enhanced clarity and consistency of mathematical notation in comments across `non_hiding_kzg.rs` and `non_hiding_zeromorph.rs` files.
- Implemented error handling in the `ZMPCS::verify` function within the `non_hiding_zeromorph.rs` file.

* fix: compute quotient commitments in parallel

* refactor: clean up

---------

Co-authored-by: emmorais <eduardo.morais@gmail.com>
Co-authored-by: Matej Penciak <matej.penciak@gmail.com>
Co-authored-by: Adrian Hamelink <adrian.hamelink@gmail.com>
* Support for multilinear KZG commitments (microsoft#269)

* multilinear KZG PCS as a provider; builds

* fix two tests

* fix third test; cut duplicate code

* Tidy up source code comments

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>

* impl PairingGroup for bn256

* remove unneeded imports

* simplify CommitmentKey

* fix build; migrate G1Affine

* fmt

* checkpoint

* migrate G2Affine and pairing

* fix clippy; use unimplemented!

* switch to affine form for compressed commitments

* add a test with mlkzg

* cargo fmt

* cleanup

* go back to compressed group

* address clippy

* rename

* cleanup

* add an alias

* deduplicate

* Revert "add an alias"

This reverts commit 97cade6.

* Use an alias for PreprocessedGroupElements

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>

* cargo fmt

* update README.md

---------

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>
Co-authored-by: Greg Zaverucha <gregz@microsoft.com>

* refactor: clean up the needed scaffolding in MLKZG

Summary:

- THe MLKZG implementation re-implements some group traits, so as to give it maximum generality and depende maximally on the Nova traits.
- However, the way in which it imports a pairing (using pairing::Engine) already implicitly constrains perfrectly usable group implementations to be available on the same types.  This commit therefore removes the boilerplate and uses those external traits.
- Finally, so as to mutualize part of the pairing implementation, this commit also leverages the MultiMillerLoop trait, a subtrait of `pairing::Engine`.
- In sum, this commit only moves types - no actual data was harmed in its making.

In detail:

- Removed the `PairingGroup` trait and its related implementations from the `traits.rs` and `bn256_grumpkin.rs` files.
- Simplified the imports from `halo2curves::bn256` in `bn256_grumpkin.rs` and removed unused types such as `pairing`, `G2Affine`, `G2Compressed`, `Gt`, and `G2`.
- Deleted substantial amount of code associated with `G2` from `bn256_grumpkin.rs`.

* make Minroot example generic over the supported curve cycles (microsoft#272)

* make Minroot example generic over the supported curve cycles

* upgrade version

* refactor: Refactor and enhance point infinity handling in `to_transcript_bytes`

- Enhanced the functionality of `to_transcript_bytes` method in `TranscriptReprTrait` for `Affine` in both `pasta.rs` and `traits.rs`.
- Combined the x and y coordinates with the `is_infinity_byte` into a single byte stream for ease of handling.
- Integrated additional checks for 'infinity' conditions to ensure accurate extractions of coordinate values.

* refactor: Relocate multi-scalar multiplication module

- Restructure the `provider` module by moving `msm` to the `util` subdirectory.

* chore: Rename UV(KZG{ProverKey, VerifierKey}|UniversalKZGParam) -> \1

* refactor: Apply univariate polynomial evaluation

- chore: move comment
- fix: standardize power sequences computation
- fix: parallelize several poly computations

refactor: Refactor `EvaluationArgument` struct in mlkzg.rs

- Renamed several fields in `EvaluationArgument` struct within `src/provider/mlkzg.rs` for increased clarity.
- Adjusted the `prove` and `verify` methods in `src/provider/mlkzg.rs` to reflect these name changes.
- Modified test code to align with the updates in the `EvaluationArgument` structure.

---------

Signed-off-by: Greg Zaverucha <gregz@microsoft.com>
Co-authored-by: Srinath Setty <srinath@microsoft.com>
Co-authored-by: Greg Zaverucha <gregz@microsoft.com>
…t#206)

* chore: Remove redundant data absorptions while 'q' computing

* chore: Remove redundant absorptions to transcript while 'd_0' computing

* chore: Remove redundant absorptions to transcript while 'r' computing

* chore: Apply rustfmt

* chore: Absorb 'com' while 'r' computing
)

* chore: Refactor 'kzg_verify_batch' closure

* chore: Refine the comment

* chore: Refactor 'L' computation

* chore: Suggested refinements
* chore: Parallelise 'Pi' computing

* chore: Put 'x' out of brackets
* test(ipa): proof verified random seed

test(ipa): proof verified

test(ipa): switch from keccak to grumpkin transcript

test(ipa): wip test IPA prove & verify

chore: added Jetbrain config to gitignore

* test(ipa): using generic fn over mlkzg, ipa & zm

- Implemented test_fail_bad_proof that generates a test case from a seed to try and verify a non valid proof.
- Implement both test_fail_bad_proof & test_from_seed for IPA over Grumpkin, MLKZG over Bn256 and ZM over Bn256

* ci(ipa): fixed xclippy

* feat(ipa): wip bench pcs

* feat(ipa): bench proof generation and verification

- Created a benchmark for proof generation and verification for IPA over Grumpkin, MLKZG over Bn and ZM over Bn
- multilinear.rs to public for benchmark purposes
- Refactored generic test methods per @adr1anh comment

* feat(ipa): proper polynomial sizes for test & sample size to 10

* feat(ipa): benchmark groups

* ci(ipa): fix xclippy

* test(ipa): added more polynomial sizes

* test(ipa): renamed test method

* refactor(ipa): revamp based on review

* refactor(ipa): Flat -> Auto bench

* refactor(ipa): random_with_eval inline

* ci(ipa): fix xclippy
…LKZG (microsoft#242)

* feat: Avoid computing final 'Pi' polynomial which is constant

* chore: Cleanup

* chore: Latest suggestions
…module

- Removal of the redundant `src/provider/util/fb_msm.rs` file which included functions for scalar multiplication
- Update of `kzg_commitment.rs` with the removal of `ff::PrimeFieldBits` dependency, transitional update of requirements, and improved method setups.
- Moved `UniversalParams` and several dependent structures for the KZG10 scheme in the `kzg_commitment.rs` file.
- Deleted the `non_hiding_kzg.rs` file,
- Consolidated KZG related structs under the `kzg_commitment` module,
- Updated `mod.rs` to reflect the removal of the `non_hiding_kzg` module.
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.

None yet

5 participants