-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reveal() has been renamed to to_public()
- Loading branch information
1 parent
203298a
commit fa8d524
Showing
3 changed files
with
2,490 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from nada_dsl import * | ||
|
||
|
||
def nada_main(): | ||
party = Party(name="Alice") | ||
num = SecretInteger(Input(name="favorite_number", party=party)) | ||
base = num.reveal() | ||
base = num.to_public() | ||
# power operations can only be performed on public integers, so the input needs to be revealed | ||
num_squared = base ** Integer(2) | ||
return [Output(num_squared, "num_squared", party)] | ||
return [Output(num_squared, "num_squared", party)] |
1,195 changes: 1,194 additions & 1 deletion
1,195
streamlit_demo_apps/compiled_nada_programs/list_scan_linear.nada.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,294 changes: 1,293 additions & 1 deletion
1,294
streamlit_demo_apps/compiled_nada_programs/voting.nada.json
Large diffs are not rendered by default.
Oops, something went wrong.