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

Stwo publics #2438

Draft
wants to merge 54 commits into
base: main
Choose a base branch
from
Draft

Stwo publics #2438

wants to merge 54 commits into from

Conversation

ShuangWu121
Copy link
Collaborator

Extend stwo to Support Public Input

Description

This PR extends stwo to support public input.

While stwo does not natively implement the public input feature, it is feasible to achieve this by implementing it in the stwo backend.

Implementation Details

The public values are formed using a selector to pick specific values from a witness column, which are then made public to the verifier.

This logic is already implemented in the Plonky3 backend, where public values are passed directly as inputs to the prove and verify functions, simplifying the process.

✅ To-Do List

To achieve similar functionality in stwo, the following steps need to be implemented:

  • Add public columns.
  • Add constraints linking the public columns, the selector, and the corresponding witness columns.
  • Ensure the verifier can verify that the public columns' commitments are correctly used to form the Merkle tree in the proof.

ShuangWu121 and others added 30 commits January 21, 2025 15:07
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
Co-authored-by: Thibaut Schaeffer <[email protected]>
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