Skip to main content
An FHE operation splits its cost in two. Your contract pays gas onchain to request the operation. The encrypted math itself runs offchain in the compute pipeline and costs no gas.

Gas costs

A call like FHE.add records a task through the TaskManager and returns a handle for the result. The gas covers that request and the access-control bookkeeping, not the FHE computation. We are measuring the gas of every FHE operation per encrypted type. This page gets the full table when the measurements land.

Performance benchmarks

The compute pipeline executes operations with TFHE-rs, Zama’s FHE library. For operation-level latency, use Zama’s published numbers: TFHE-rs benchmarks. Read them as the cost of the raw operation on reference hardware. End-to-end latency in CoFHE adds the steps around the operation: event pickup, validation, and commitment posting.