Skip to content

Conversation

@sashass1315
Copy link
Contributor

  • Correct the modular multiplication formula comment from “ab = rkp” to “ab = r + kp”, aligning with the documented identity used across the package.

  • Add a missing return in MulConst when c < 0 to avoid a dead recursive call that adds unnecessary constraints and then discards the result. This keeps behavior unchanged but removes redundant work and improves efficiency.

@ivokub ivokub added the src: community Community originating PRs and issues label Sep 17, 2025
@ivokub ivokub self-requested a review September 17, 2025 09:35
@ivokub ivokub changed the base branch from master to typo/fixes-v15 September 17, 2025 09:53
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good catch with the negative sign.

@ivokub ivokub merged commit 254db5e into Consensys:typo/fixes-v15 Sep 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

src: community Community originating PRs and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants