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

Issue due to unknown variables being modified depending on known secret variables. #271

Open
lydiagarms opened this issue May 20, 2024 · 0 comments
Assignees

Comments

@lydiagarms
Copy link
Contributor

In the following contract:

// SPDX-License-Identifier: CC0
pragma solidity ^0.8.0;
contract Assign {
secret uint256 private a;
secret uint256 private b;

function giveAmounttoCharity( uint256 value ) public {
unknown b += value +a;
a+= value;
}

}

There is an error in orchestration because a is not defined before it is added to b. We need to generate the witnesses all at once.

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

No branches or pull requests

2 participants