-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/remove-authV3-8-32 #51
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
base: main
Are you sure you want to change the base?
Conversation
…_32Circuit and related instances. Update witnessBuilder function parameter type for consistency. Clean up jwz tests by removing deprecated tests for AuthV3_8_32. This streamlines the proving methods and enhances code clarity.
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.
Pull request overview
This PR removes support for the authV3-8-32 circuit variant from the js-jwz library. The removal includes eliminating the circuit constant, proving method instance, related exports, and test suite. The PR also includes two additional changes to the codebase: narrowing the type parameter of the witnessBuilder function from BufferSource to ArrayBuffer, and updating references to the bn254 curve API.
- Removes all authV3-8-32 circuit-related code and exports
- Updates
witnessBuilderparameter type fromBufferSourcetoArrayBuffer - Updates bn254 curve API references from
bn254.G1.ProjectivePointtobn254.curves.G1 - Bumps version from 1.12.2 to 1.13.0
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/jwz.test.ts | Removes the entire authV3_8_32-Groth16 test suite (64 lines) |
| src/witness_calculator.ts | Narrows function parameter type from BufferSource to ArrayBuffer |
| src/index.ts | Removes authV3_8_32 proving method import, registration, and export |
| src/common.ts | Removes AuthV3_8_32Circuit constant, adds type cast for ArrayBuffer, updates bn254 curve API |
| src/authV3Groth16.ts | Removes AuthV3_8_32Groth16Alg and provingMethodGroth16AuthV3_8_32Instance |
| package.json | Bumps version to 1.13.0 |
| package-lock.json | Updates version references to match package.json |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nsolidate test cases for dynamicProve and dynamicVerify, and adjust timeout settings for better performance.
…. Refactor dynamic proof tests for improved readability and structure, consolidating test cases for dynamicProve and dynamicVerify.
No description provided.