Fully Homomorphic Encryption for EVM

Build confidential
smart contracts

MAZE brings Fully Homomorphic Encryption to EVM-compatible blockchains. Process encrypted data on-chain while preserving complete privacy.

PrivateCounter.sol
import {FHE, euint32} from "@maze/solidity/lib/FHE.sol";
import {MazeEthereumConfig} from "@maze/solidity/config/MazeConfig.sol";

contract PrivateCounter is MazeEthereumConfig {
    euint32 private _count;

    function increment(externalEuint32 calldata input, bytes calldata proof) external {
        euint32 value = FHE.fromExternal(input, proof);
        _count = FHE.add(_count, value);
        FHE.allowThis(_count);
        FHE.allow(_count, msg.sender);
    }
}

Technology

What is Fully Homomorphic Encryption?

FHE enables computation on encrypted data without ever decrypting it. MAZE brings this capability to smart contracts for truly private on-chain applications.

Encrypted Types

  • euint8 – euint256
  • ebool (encrypted boolean)
  • eaddress (encrypted address)

FHE Operations

  • Arithmetic: add, sub, mul, div
  • Comparison: eq, ne, lt, gt, le, ge
  • Bitwise: and, or, xor, shl, shr

Access Control

  • FHE.allow(ciphertext, address)
  • FHE.allowThis(ciphertext)
  • FHE.allowTransient(ciphertext, addr)

Platform

Why Choose MAZE?

Production-grade FHE infrastructure for the next generation of private dApps.

End-to-End Encryption

Data remains encrypted throughout its full lifecycle — from input to computation to output.

Quantum-Resistant

Lattice-based cryptographic primitives that withstand quantum computing attacks.

EVM Composable

Seamlessly integrate with existing dApps and smart contract ecosystems on any EVM chain.

Developer-Friendly

Familiar Solidity syntax with minimal changes. Import, inherit, and start building.

Programmable Privacy

Fine-grained, on-chain access control over encrypted data with FHE.allow() operations.

On-Chain Randomness

Secure, verifiable random number generation with FHE.randEuintX() for games and lotteries.

Applications

Use Cases

Real-world applications powered by MAZE confidential computing.

Confidential Transfers

Private token balances and transaction amounts with full ERC-20 compatibility.

Blind Auctions

Hidden bids that preserve auction integrity and prevent front-running.

On-Chain Games

Hidden moves, encrypted game state, and verifiable randomness.

Confidential Voting

Private votes with mathematically verifiable, tamper-proof outcomes.

Private DeFi

Encrypted lending, trading, and yield farming with MEV protection.

Encrypted Identity

Privacy-preserving digital identity and credential verification systems.

Ready to build confidential dApps?

Start with our quick start guide and deploy your first FHE-enabled smart contract in minutes.