You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix StubSyscallHandler secp ops returning identity element
The secp256k1_add / secp256k1_mul / secp256r1_add / secp256r1_mul stub
implementations called `p.to_encoded_point(false)` and then assumed the
result was Coordinates::Uncompressed. The identity element returns
Coordinates::Identity instead, so P + (-P) and k * P (mod ord) panicked
with unreachable!().
Pre-existing bug in sierra-emu, surfaced more visibly by the trait
alignment in this PR (which added is_infinity to the surface).
Add an explicit Coordinates::Identity arm to all four sites, returning
the canonical (0, 0) + is_infinity: true point.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments