@@ -22,15 +22,15 @@ export const ALL_OPERATORS: Operator[] = [
22
22
hasScalar : true ,
23
23
hasEncrypted : true ,
24
24
arguments : OperatorArguments . Binary ,
25
- returnType : ReturnType . Uint ,
25
+ returnType : ReturnType . Euint ,
26
26
fheLibName : 'fheAdd' ,
27
27
} ,
28
28
{
29
29
name : 'sub' ,
30
30
hasScalar : true ,
31
31
hasEncrypted : true ,
32
32
arguments : OperatorArguments . Binary ,
33
- returnType : ReturnType . Uint ,
33
+ returnType : ReturnType . Euint ,
34
34
leftScalarEncrypt : true ,
35
35
fheLibName : 'fheSub' ,
36
36
} ,
@@ -39,15 +39,15 @@ export const ALL_OPERATORS: Operator[] = [
39
39
hasScalar : true ,
40
40
hasEncrypted : true ,
41
41
arguments : OperatorArguments . Binary ,
42
- returnType : ReturnType . Uint ,
42
+ returnType : ReturnType . Euint ,
43
43
fheLibName : 'fheMul' ,
44
44
} ,
45
45
{
46
46
name : 'div' ,
47
47
hasScalar : true ,
48
48
hasEncrypted : false ,
49
49
arguments : OperatorArguments . Binary ,
50
- returnType : ReturnType . Uint ,
50
+ returnType : ReturnType . Euint ,
51
51
leftScalarDisable : true ,
52
52
fheLibName : 'fheDiv' ,
53
53
} ,
@@ -56,7 +56,7 @@ export const ALL_OPERATORS: Operator[] = [
56
56
hasScalar : true ,
57
57
hasEncrypted : false ,
58
58
arguments : OperatorArguments . Binary ,
59
- returnType : ReturnType . Uint ,
59
+ returnType : ReturnType . Euint ,
60
60
leftScalarDisable : true ,
61
61
fheLibName : 'fheRem' ,
62
62
} ,
@@ -65,31 +65,31 @@ export const ALL_OPERATORS: Operator[] = [
65
65
hasScalar : true ,
66
66
hasEncrypted : true ,
67
67
arguments : OperatorArguments . Binary ,
68
- returnType : ReturnType . Uint ,
68
+ returnType : ReturnType . Euint ,
69
69
fheLibName : 'fheBitAnd' ,
70
70
} ,
71
71
{
72
72
name : 'or' ,
73
73
hasScalar : true ,
74
74
hasEncrypted : true ,
75
75
arguments : OperatorArguments . Binary ,
76
- returnType : ReturnType . Uint ,
76
+ returnType : ReturnType . Euint ,
77
77
fheLibName : 'fheBitOr' ,
78
78
} ,
79
79
{
80
80
name : 'xor' ,
81
81
hasScalar : true ,
82
82
hasEncrypted : true ,
83
83
arguments : OperatorArguments . Binary ,
84
- returnType : ReturnType . Uint ,
84
+ returnType : ReturnType . Euint ,
85
85
fheLibName : 'fheBitXor' ,
86
86
} ,
87
87
{
88
88
name : 'shl' ,
89
89
hasScalar : true ,
90
90
hasEncrypted : true ,
91
91
arguments : OperatorArguments . Binary ,
92
- returnType : ReturnType . Uint ,
92
+ returnType : ReturnType . Euint ,
93
93
leftScalarEncrypt : true ,
94
94
shiftOperator : true ,
95
95
fheLibName : 'fheShl' ,
@@ -99,7 +99,7 @@ export const ALL_OPERATORS: Operator[] = [
99
99
hasScalar : true ,
100
100
hasEncrypted : true ,
101
101
arguments : OperatorArguments . Binary ,
102
- returnType : ReturnType . Uint ,
102
+ returnType : ReturnType . Euint ,
103
103
leftScalarEncrypt : true ,
104
104
shiftOperator : true ,
105
105
fheLibName : 'fheShr' ,
@@ -109,7 +109,7 @@ export const ALL_OPERATORS: Operator[] = [
109
109
hasScalar : true ,
110
110
hasEncrypted : true ,
111
111
arguments : OperatorArguments . Binary ,
112
- returnType : ReturnType . Uint ,
112
+ returnType : ReturnType . Euint ,
113
113
leftScalarEncrypt : true ,
114
114
rotateOperator : true ,
115
115
fheLibName : 'fheRotl' ,
@@ -119,7 +119,7 @@ export const ALL_OPERATORS: Operator[] = [
119
119
hasScalar : true ,
120
120
hasEncrypted : true ,
121
121
arguments : OperatorArguments . Binary ,
122
- returnType : ReturnType . Uint ,
122
+ returnType : ReturnType . Euint ,
123
123
leftScalarEncrypt : true ,
124
124
rotateOperator : true ,
125
125
fheLibName : 'fheRotr' ,
@@ -181,31 +181,31 @@ export const ALL_OPERATORS: Operator[] = [
181
181
hasScalar : true ,
182
182
hasEncrypted : true ,
183
183
arguments : OperatorArguments . Binary ,
184
- returnType : ReturnType . Uint ,
184
+ returnType : ReturnType . Euint ,
185
185
fheLibName : 'fheMin' ,
186
186
} ,
187
187
{
188
188
name : 'max' ,
189
189
hasScalar : true ,
190
190
hasEncrypted : true ,
191
191
arguments : OperatorArguments . Binary ,
192
- returnType : ReturnType . Uint ,
192
+ returnType : ReturnType . Euint ,
193
193
fheLibName : 'fheMax' ,
194
194
} ,
195
195
{
196
196
name : 'neg' ,
197
197
hasScalar : true ,
198
198
hasEncrypted : true ,
199
199
arguments : OperatorArguments . Unary ,
200
- returnType : ReturnType . Uint ,
200
+ returnType : ReturnType . Euint ,
201
201
fheLibName : 'fheNeg' ,
202
202
} ,
203
203
{
204
204
name : 'not' ,
205
205
hasScalar : true ,
206
206
hasEncrypted : true ,
207
207
arguments : OperatorArguments . Unary ,
208
- returnType : ReturnType . Uint ,
208
+ returnType : ReturnType . Euint ,
209
209
fheLibName : 'fheNot' ,
210
210
} ,
211
211
] ;
0 commit comments