Skip to main content
Inco exposes mathematical and logical operations over encrypted data. Note that for each operation that takes 2 arguments (i.e binary types below), you can use either an e-type or a regular variable as the first or second argument. Each operation returns a single e-type as result.
Under the hood, all operations are performing a call to the Inco contract singleton. The Inco contract checks access control rules and emits an event for each operation

Example usage

Supported math operations

All these operations return an euint256.

Supported comparison operations

Random number generation

Type conversion functions

Convert between regular types and encrypted types, or between different encrypted types.

Reveal functions

Reveal encrypted values (decrypt and make public).

Additional type support

Comparison operations (e.eq and e.ne) also support eaddress comparisons in addition to euint256. Bitwise operations (e.and, e.or, e.xor) also support ebool operations in addition to euint256.