-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from EYBlockchain/kahina/Statement-Circuit
Public statement in Circuit
- Loading branch information
Showing
2 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
// SPDX-License-Identifier: CC0 | ||
pragma solidity ^0.8.0; | ||
|
||
contract Assign { | ||
secret uint256 private a; | ||
secret uint256 private b; | ||
uint256 public c; | ||
|
||
function addB( uint256 value) public { | ||
c += value; | ||
known a += value; | ||
c= c+1; | ||
} | ||
|
||
} |