Skip to main content

From Plaintext (Trivial Encryption)

Convert plaintext values to encrypted types. An optional securityZone parameter isolates encrypted computations.

asEbool

asEuint8 / asEuint16 / asEuint32 / asEuint64 / asEuint128

asEaddress


From Encrypted Input Structs

Convert client-side encrypted inputs (received as function parameters) into encrypted types.
All input types follow the same pattern:

Between Encrypted Types

Cast any encrypted type to another. The full cross-cast matrix is supported: