Skip to content

Commit

Permalink
tiny secret adddition
Browse files Browse the repository at this point in the history
  • Loading branch information
abhin2003 committed Jul 3, 2024
1 parent 382d128 commit 50eb873
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions programs/tiny_secret_addition.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from nada_dsl import *

def nada_main():
party1 = Party(name="Party1")
my_int1 = SecretInteger(Input(name="my_int1", party=party1))
my_int2 = SecretInteger(Input(name="my_int2", party=party1))
new_int = my_int1 + my_int2
return [Output(new_int, "my_output", party1)]

0 comments on commit 50eb873

Please sign in to comment.