You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/devdocs/Writing Smart Contracts/Types-and-Operators.md
+33-26
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,7 @@ The `ebool` type is not a real boolean type. It is implemented as a `euint8`
93
93
94
94
## Supported Operations
95
95
96
+
96
97
:::tip
97
98
A documented documentation of each and every function in FHE.sol (including inputs and outputs) can be found in [FHE.sol](../Solidity%20API/FHE.md)
98
99
:::
@@ -103,31 +104,37 @@ Please refer to the table below for a comprehensive list of supported operations
103
104
104
105
Note that all functions are supported in both direct function calls and library bindings. However, operator overloading is only supported for the operations listed in the table (solidity please support operator overloading for boolean return types!).
At the moment it is not possible to do `ebool result = (lhs == rhs)` and others that return a boolean result. This is because FHE.sol expects a `ebool`, while Solidity only allows overloading to return a regular boolean.
@@ -140,4 +147,4 @@ Using require and decrypt in a TX is dangerous as it can break the confidentiali
140
147
141
148
:::tip
142
149
Division and Remainder by `0` will output with an encrypted representation of the maximal value of the uint that is used (Ex. encrypted 255 for euint8)
0 commit comments