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

Test cases for addition, subtraction, multiplication, and modulo in the secp256k1 finite field #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

weijiekoh
Copy link

@weijiekoh weijiekoh commented Sep 22, 2022

This PR adds test cases for addition, subtraction, multiplication, and modulo in the secp256k1 finite field. The circuits which perform these operations are in test/circuits and the test cases are defined in secp256k1_Fp.test.ts. The test cases are written in the same pattern as the other test files like bigint.test.ts.

It also refactors the bigint_to_array, bigint_to_tuple, and get_strided_bigint functions into test/utils.ts to reduce code duplication.

@weijiekoh weijiekoh marked this pull request as ready for review September 22, 2022 18:49
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.

1 participant