-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Divmodnpackeddivmodv1 hint (#343)
* Implement EcNegate hint * Implement NondetBigint3V1 hint * Fix context usage + add some functions to return constants * Add scope check test utils + usage * More comments and tests * More tests * Clean up some code * Implement FastEcAddAssignNewY hint * Implement FastEcAddAssignNewX hint * Make hint code less verbose * Add more tests * Fix comment formatting * Clean up EcNegate using new util functions * Implement EcDoubleSlopeV1 hint * Use FeltZero/FeltOne in tests * Use FeltZero in tests * Add secp util functions to clean up hint * Make function private * Moving comments around * Fix import * Change zero compare * Make return simpler * Cleaner return * Add more tests * Comment test values * Comment test values * Comment test values * Comment test values * Update comment * Simpler context init in tests * Add GetVariableValueAsBigInt method to scope manager * Simpler tests * Remove duplicate test check * Clean up scope usage * Use existing constant * Simpler loop * Add AssignVariables method to scope manager + use it * Use AssignVariables in FastEcAddAssignNewY * Use util methods to make code simpler * Use feltUint64 when applicable * Change argument to accept slice * Add tests for div_mod and igcdex * Fetch SECP_P from scope in FastEcAddAssignNewY * Implement DivModNPackedDivmodV1 hint * Remove unnecessary space * Use InitializeScopeManager * Return big.Int instead of *big.Int * More return big.Int instead of *big.Int * Rename to divmod * Change signature of EcDoubleSlope * More return big.Int instead of *big.Int * Remove redundant tests --------- Co-authored-by: Carmen Cabrera <kr1000a@gmail.com>
- Loading branch information
Showing
7 changed files
with
187 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters