elliptic-curves icon indicating copy to clipboard operation
elliptic-curves copied to clipboard

chore(k256): replace single-iteration loop with direct assignment in isogeny

Open radik878 opened this issue 3 months ago • 1 comments

Simplify the computation of xs[3] in isogeny() by replacing a one-iteration loop with xs[3] = xs[2] * x. This clarifies intent, avoids constructing a Range for a single step, and keeps the faster square() for x^2. No functional impact; tests should behave identically.

radik878 avatar Dec 01 '25 14:12 radik878

Looks OK at first glance.

cc @daxpedda

tarcieri avatar Dec 01 '25 14:12 tarcieri