Skip to content

Conversation

MozirDmitriy
Copy link

Replace the no-op constraint in the r-check witness allocation path with a real subgroup check. For both Twisted Edwards and Short Weierstrass gadgets, enforce that (r-1)ge equals -ge by checking ge.negate() == result. This restores the intended prime-order subgroup enforcement parity with enforce_prime_order and prevents bypassing constraints.

@MozirDmitriy MozirDmitriy requested a review from a team as a code owner October 6, 2025 08:35
@MozirDmitriy MozirDmitriy requested review from z-tech, mmagician and weikengchen and removed request for a team October 6, 2025 08:35
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