F
F
Fhenix Devnet Docs
Search
⌃
K
👋
Welcome to the Fhenix Documents
Overview
🎉
Fhenix & (T)FHE
🔗
Connecting to the Devnet
Developer Guides
🛠
Introduction
🐣
Getting Started
🦮
Fhenix by Example
😎
fhEVM-solidity
🎇
fhevm.js
🤫
Privacy in Smart Contracts
Examples
🔁
Snippets
Boundary Check
If...else
Equality
Check if euint exists (value in map)
Encrypting Inputs
Decrypting Outputs
Loading fhevmjs in the browser
🖥
Reference dApps
More Docs
📜
Developer Reference
Powered By
GitBook
Comment on page
Boundary Check
require/optimisticrequire on euints
Encrypted balance is greater than a plaintext variable
TFHE.req(TFHE.gt(_encBalances[msg.sender], amount));
source:
wERC20.sol
Multiple conditions efficiently (optimistic require)
TFHE.optReq(TFHE.le(ct1, ct2));
source:
OptimisticRequire.sol
Examples - Previous
Snippets
Next
If...else
Last modified
4mo ago