Skip to main content
All comparison operations return ebool. Equality checks (eq, ne) work on all encrypted types including eaddress. Ordering checks (lt, lte, gt, gte) and min/max work on euint8 | euint16 | euint32 | euint64 | euint128.

Equality

eq

ne

Ordering

lt

lte

gt

gte

Min / Max

min

max

Select

Conditionally selects between two encrypted values based on an encrypted boolean. Works on all encrypted types including eaddress.
Use select instead of if/else statements when working with encrypted values. Conditional branching doesn’t work with encrypted data.