Detailed Supported Operations in fhEVM

Name

Function Name

Symbol

Type

Add

TFHE.add

+

Binary

Subtract

TFHE.sub

-

Binary

Multiply

TFHE.mul

*

Binary

Divide (plaintext divisor)

TFHE.div

Binary

Remainder (plaintext divisor)

TFHE.rem

Binary

Bitwise AND

TFHE.and

&

Binary

Bitwise OR

TFHE.or

|

Binary

Bitwise XOR

TFHE.xor

^

Binary

Shift Right

TFHE.shr

Binary

Shift Left

TFHE.shl

Binary

Rotate Right

TFHE.rotr

Binary

Rotate Left

TFHE.rotl

Binary

Equal

TFHE.eq

Binary

Not Equal

TFHE.ne

Binary

Greater Than or Equal

TFHE.ge

Binary

Greater Than

TFHE.gt

Binary

Less Than or Equal

TFHE.le

Binary

Less Than

TFHE.lt

Binary

Minimum

TFHE.min

Binary

Maximum

TFHE.max

Binary

Negate

TFHE.neg

-

Unary

Bitwise NOT

TFHE.not

~

Unary

Select

TFHE.select

Ternary

Random Unsigned Int

TFHE.randEuintX()

Random

Use Cases and Applications

1. Privacy-Preserving dApps

  • Finance: Confidential portfolio management, fraud detection, and secure risk analytics.

  • Healthcare: Privacy-preserving medical data analysis and encrypted patient record management.

  • AI: Federated learning and secure on-chain model evaluation without exposing sensitive datasets.

2. Collaborative Encrypted Workflows

  • Secure Multiparty Computations (SMC): Facilitate multi-party collaboration without revealing private inputs.

  • Re-encryption: Transfer ciphertext ownership securely, enabling collaborative dApp functionalities.

3. Error-Resilient Encrypted Smart Contracts

  • Contracts handle errors natively without exposing plaintext states, enhancing reliability.

Last updated