Skip to content

Add BLS12-377 support#73

Open
p4u wants to merge 1 commit into
iden3:masterfrom
p4u:master
Open

Add BLS12-377 support#73
p4u wants to merge 1 commit into
iden3:masterfrom
p4u:master

Conversation

@p4u

@p4u p4u commented Jan 8, 2026

Copy link
Copy Markdown

Added BLS12-377 curve implementation.

- Added BLS12-377 curve implementation with correct parameters.
- Updated build_f2m.js to support square root for q % 4 == 1 (general norm-based algorithm), essential for BLS12-377 G2.
- Cleaned up build_curve_jacobian_a0.js.
@p4u

p4u commented Jan 8, 2026

Copy link
Copy Markdown
Author

Add an if/else (q % 4n === 3n) block because of the different properties of the base field modulus $q$.

Curves BN128 and BLS12-381 have a modulus $q$ where $q \equiv 3 \pmod 4$. But BLS12-377 has a modulus $q \equiv 1 \pmod 4$.

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