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

feat: add field25 type package (PROOF-775) #82

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

jacobtrombetta
Copy link
Collaborator

Rationale for this change

In order to support MSM with elements on the bn254 curve we need to implement the base field Fq. This work will introduce the type package and components to the bn254 base field, field25. The components are copied from the the field12/type package, which supports the bls12-381 curve. The components are updated to support the bn254 base field, which is four limbs, compared to the six limbs of the bls12-381 base field.

The only non-trivial code change, which updated the limbs from six to four, is isolated to this commit.

What changes are included in this PR?

  • The element and literal components are copied from the field12/type package and updated to support the four limbs.

Are these changes tested?

Yes

@jacobtrombetta jacobtrombetta self-assigned this Jan 10, 2024
@jacobtrombetta jacobtrombetta requested a review from rnburn January 10, 2024 15:46
@jacobtrombetta jacobtrombetta merged commit 9af52ab into main Jan 11, 2024
9 checks passed
@jacobtrombetta jacobtrombetta deleted the feat/add-field25-type-package-PROOF-775 branch January 11, 2024 14:35
@SxT-Release
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants