Skip to content

Commit

Permalink
fixed tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
rdragos committed Nov 8, 2016
1 parent 0428462 commit a362dd2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutorial.md
Expand Up @@ -68,8 +68,8 @@ If we want to run a real MPC computation - P1 shares a and P2 shares b - and
reveal the sum of the values then we can write the following.

```
a = sint.get_raw_input(0)
b = sint.get_raw_input(1)
a = sint.get_raw_input_from(0)
b = sint.get_raw_input_from(1)
c = a + b
print_ln('Result is %s', c.reveal())
Expand All @@ -87,8 +87,8 @@ Suppose party P0 inputs an array of fixed length n: A[1]...A[n] and party P1
inputs a SS index [index].

```
A = [sint.get_raw_input(0) for _ in range(100)]
index = sint.get_raw_input(1)
A = [sint.get_raw_input_from(0) for _ in range(100)]
index = sint.get_raw_input_from(1)
```

Let's see how can we obtain [A[i]].
Expand Down

1 comment on commit a362dd2

@lilir5
Copy link

@lilir5 lilir5 commented on a362dd2 Feb 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi
I tried to compile the addition.mpc file in new code, but there is a syntax error. SyntaxError: can't assign to operator.

Please sign in to comment.