Skip to content

perf(ecc): remove redundant y_check from short fixed-base mul gate#868

Draft
MozirDmitriy wants to merge 1 commit into
zcash:mainfrom
MozirDmitriy:perf/remove-redundant-y-check-short-gate
Draft

perf(ecc): remove redundant y_check from short fixed-base mul gate#868
MozirDmitriy wants to merge 1 commit into
zcash:mainfrom
MozirDmitriy:perf/remove-redundant-y-check-short-gate

Conversation

@MozirDmitriy

Copy link
Copy Markdown

Removed the redundant y_check constraint from the short fixed-base mul gate in mul_fixed/short.rs. This constraint was implied by sign_check and negation_check, adding proving cost without increasing soundness. Updated tests to reflect the new constraint index (negation_check: 3 → 2). Behavior is unchanged; only the constraint set is smaller.

@daira daira marked this pull request as draft December 28, 2025 12:54

@daira daira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These constraints are used in a production circuit and therefore cannot be changed without some kind of opt-in configuration. Also the saving is negligible.

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.

2 participants