-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmycircuit.json
62 lines (62 loc) · 976 Bytes
/
mycircuit.json
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
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
{
"mainCode": "{\n}\n",
"signalName2Idx": {
"one": 0,
"main.a": 2,
"main.c": 1
},
"components": [
{
"name": "main",
"params": {},
"template": "Comparer",
"inputSignals": 1
}
],
"componentName2Idx": {
"main": 0
},
"signals": [
{
"names": [
"one"
],
"triggerComponents": []
},
{
"names": [
"main.c"
],
"triggerComponents": []
},
{
"names": [
"main.a"
],
"triggerComponents": [
0
]
}
],
"constraints": [
[
{},
{},
{
"0": "1",
"1": "21888242871839275222246405745257275088548364400416034343698204186575808495616"
}
]
],
"templates": {
"Comparer": "function(ctx) {\n ctx.setSignal(\"c\", [], bigInt(ctx.getSignal(\"a\", [])).greaterOrEquals(bigInt(\"20\")) ? 1 : 0);\n ctx.assert(ctx.getSignal(\"c\", []), \"1\");\n}\n"
},
"functions": {},
"nPrvInputs": 1,
"nPubInputs": 0,
"nInputs": 1,
"nOutputs": 1,
"nVars": 3,
"nConstants": 0,
"nSignals": 3
}