Skip to content
Discussion options

You must be logged in to vote

Hi @emanuel-skai, @nada_fn should be only used to pass functions to iterators in arrays, and we are in the process of deprecating it. If you remove the @nada_fn notations it should work, you can maintain the functions if you want, but also you can do the operations directly without functions. Here is an example. watch that the output is simple_mul not the final output.

from nada_dsl import *

def nada_main():
    party1 = Party(name="Party1")
    #party2 = Party(name="Party2")

    # Assume points are 2-dimensional, with coordinates as secret integers
    point1_x = SecretInteger(Input(name="point1_x", party=party1)) # 500
    point1_y = SecretInteger(Input(name="point1_y", party=party1)…

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lumasepa
Comment options

Answer selected by oceans404
Comment options

You must be logged in to vote
1 reply
@wwwehr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants