cryptobiu / libscapi

Comprehensive Open Source Library for Secure Multiparty Computation
MIT License
180 stars 66 forks source link

Adapt circuit to your format #39

Closed prvsousa closed 7 years ago

prvsousa commented 7 years ago

Hi, I'm trying to adapt this circuit: https://www.cs.bris.ac.uk/Research/CryptographySecurity/MPC/comparator_32bit_signed_lt.txt

to the format of your library. However, I tried this:

300 2
1 32
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

2 32
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

1 1
363
2 1
363

But I got segmentation fault. Any idea of my error? Can you help me with this?

liorko87 commented 7 years ago

Hi, You have two problems at your circuit:

  1. You give the same output value for different parties.
  2. You didn't supplied gates for the circuit.
liorko87 commented 7 years ago

@patricia93sousa I'm closing the issue. If you still have problem, reopen it.

prvsousa commented 7 years ago

What do you mean with "You didn't supplied gates for the circuit."? I'm not understanding the problem.

@liorbiu i can't reopen issue