Skip to content

Add ScalarField for secp256r1 - #338

Open
nbarbier-265 wants to merge 2 commits into
axiom-crypto:mainfrom
nbarbier-265:add-p256-scalar-field
Open

Add ScalarField for secp256r1#338
nbarbier-265 wants to merge 2 commits into
axiom-crypto:mainfrom
nbarbier-265:add-p256-scalar-field

Conversation

@nbarbier-265

Copy link
Copy Markdown

Fixes #337

Adds ScalarField implementations for secp256r1 (P-256) field types.

Enables P-256 ECDSA verification in halo2-ecc circuits. Matches existing implementations for secp256k1 and bn254.

Implements ScalarField for P-256 field types to enable use with halo2-ecc.
Follows same pattern as secp256k1 and bn254.
@nbarbier-265
nbarbier-265 force-pushed the add-p256-scalar-field branch 2 times, most recently from 49f4db5 to beeeb26 Compare November 15, 2025 04:32
…version

Expanded the macro-based ScalarField implementations for secp256r1Fp and
secp256r1Fq to manually handle big-endian to little-endian conversion,
ensuring correct byte ordering for these field types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

2 participants