Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict the first two variables in the Constraint system #324

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

confuseSUN
Copy link
Contributor

  • The major changes of this PR
    The equal_gate is implemented using a sub_gate, but the output selector in the sub_gate is set to 1, which makes the equal_gate act as a sub_gate. We need to restrict the output selector to be 0 in equal_gate.

  • The major impacts of this PR

    • Impact WASM?
    • Impact mainnet data compatibility?
  • Extra documentations

@weikengchen
Copy link
Member

Still a bit confused. Isn't "insert_sub_gate" creating a - b = c where c = 0?

@weikengchen
Copy link
Member

I am aware that this would lead to different indexing. But still the original one is not wrong?

@confuseSUN
Copy link
Contributor Author

Still a bit confused. Isn't "insert_sub_gate" creating a - b = c where c = 0?

the circuit is unrelated to the value of 'wire' and is instead related to the selector?

@confuseSUN confuseSUN changed the title Fix equal gate Restrict the first two variables in the Constraint system Oct 31, 2023
@weikengchen weikengchen merged commit 4223e38 into develop Oct 31, 2023
14 checks passed
@weikengchen weikengchen deleted the fix-gate branch October 31, 2023 09:52
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