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

[zksecurity 00 01] Use committing encryption to commit to inputs and outputs #2063

Merged
merged 3 commits into from Oct 13, 2023

Conversation

vicsn
Copy link
Contributor

@vicsn vicsn commented Oct 9, 2023

Motivation

We were not properly committing to the inputs and outputs of our Requests and Responses.

The issue at hand only arises at the boundary of circuits calling other circuits. So the check_input_ids(...) and process_outputs_from_callback(...) in call/mod.rs is where this issue appears the first time. We now publicly witness tcm of the callee in the caller circuits.

Sidenote: we were already publicly witnessing function's own request.tcm.

Test Plan

Locally the tests succeed.

@vicsn vicsn requested a review from mdelle1 October 9, 2023 13:30
@vicsn vicsn changed the title [zksecurity 01 02] Use committing encryption to commit to inputs and outputs [zksecurity 00 01] Use committing encryption to commit to inputs and outputs Oct 9, 2023
Base automatically changed from staging to testnet3 October 9, 2023 20:27
@vicsn vicsn changed the base branch from testnet3 to staging October 12, 2023 12:10
@vicsn vicsn marked this pull request as ready for review October 12, 2023 12:10
@vicsn vicsn requested a review from howardwu October 12, 2023 12:11
@howardwu howardwu merged commit c59f933 into staging Oct 13, 2023
64 of 77 checks passed
@howardwu howardwu deleted the user_committing_encryption branch October 13, 2023 19:54
@howardwu howardwu mentioned this pull request Oct 13, 2023
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.

None yet

2 participants