FHELang
Programming Language
A programming language designed for Fully Homomorphic Encryption (FHE) computations. Write encrypted programs with familiar syntax and powerful cryptographic types.
Language Features
FHELang combines familiar programming constructs with powerful cryptographic primitives for encrypted computation.
Encrypted Types
Native support for encrypted data types with secret<T> syntax for integers, floats, and booleans.
Familiar Syntax
Rust-inspired syntax with functions, loops, conditionals, and arrays. Easy to learn for developers familiar with modern languages.
Polycircuit Integration
Built-in access to POLYCIRCUIT components like ReLU, sign functions, and other cryptographic primitives.
Type System
Comprehensive type system supporting both plaintext and encrypted data with multi-dimensional arrays.
Plaintext Types
i8, i16, i32, i64u8, u16, u32, u64f32, f64boolEncrypted Types
secret<i32>secret<f64>secret<bool>[[secret<i32>; N]; M]Code Examples
See FHELang in action with real examples of encrypted computation.
Hello World
Basic FHELang program structure with constants, functions, and encrypted data types.
POLYCIRCUIT Integration
Seamlessly integrate with POLYCIRCUIT components for advanced cryptographic operations like ReLU, sign functions, and more.
Array Operations
Work with multi-dimensional arrays of encrypted and plaintext data with familiar indexing and assignment syntax.
Supported Operations
Rich set of operations for both encrypted and plaintext data with automatic type promotion and casting.
Arithmetic
+, -, *, /, %+, *, -+, *, -, /Relational
==, !=, <, >, <=, >=Logical
&&, ||!Shift
<<, >>Ready to Code in FHE?
FHELang is coming soon. Join our community to stay updated on the latest developments.