From Plaintext (Trivial Encryption)
Convert plaintext values to encrypted types. An optionalsecurityZone parameter isolates encrypted computations.
asEbool
asEuint8 / asEuint16 / asEuint32 / asEuint64 / asEuint128
asEaddress
From encrypted inputs
Convert client-side encrypted inputs (received as function parameters) into encrypted types. Each input arrives as anexternalE* handle plus a bytes proof that authenticates it.
FHE.asEuint32s(handles, inputProof)) instead of calling the single form per value.
Between encrypted types
Cast betweenebool, the euint types, and eaddress. Every direction is supported except into eaddress: there is no cast from another encrypted type into an address. Create an eaddress from a plaintext address or an encrypted input instead.