Skip to main content
Every value is measured on the deployed contracts and rounded to the nearest 100 gas.
The values are for the first FHE call in a transaction. Every later FHE call in the same transaction costs about 20,000 gas less.
X stands for the encrypted type: asEuint32, asEbool, shareEuint64, and so on. The seven encrypted types are ebool, euint8 through euint128, and eaddress; β€œAll” means all seven. The type barely changes the price, so each value is the highest across the supported types.

Arithmetic

Comparison

Bitwise and shift

Select

Encrypt: create a ciphertext

Cast between encrypted types

A cast to ebool costs more because FHE.sol implements it as ne(value, asX(0)): two TaskManager tasks instead of one.

Access control

All access-control operations support all seven types and cost the same for each. The two is* functions are view; they cost gas only when a contract calls them inside a transaction.

Sharing

Decryption results

The four verify* and get* functions are view; they cost gas only when a contract calls them inside a transaction.