Skip to content

test: add differential tests for affine MSM and batched Miller loop - #14

Draft
Marchhill wants to merge 1 commit into
mainfrom
test/msm-differential
Draft

Marchhill wants to merge 1 commit into
mainfrom
test/msm-differential

Conversation

@Marchhill

Copy link
Copy Markdown
Collaborator

Differential tests for the affine MSM and the batched Miller loop.

  • MultiMultAffine (G1 and G2) against a naive sum of single multiplications, (Σ sᵢ·kᵢ mod r)·G, and a pure BigInteger curve. Covers n = 1–1024 around the Pippenger window boundaries, scalars 0, 1, r±1, r, 2r, 2²⁵⁶−1, duplicated points, point-plus-negation and all-same points.
  • MillerLoopN against the product of single loops, before and after final exponentiation, and against e(c·G1, G2).

Running in CI covers the x64 ADX/BMI2 paths of the portable build, which local arm64 and Rosetta runs can't. 356 tests, about 37 s on arm64.

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