Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions docs/solidity-guides/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ You can generate cryptographically secure random numbers fully on-chain:

For more details, refer to the [Random Encrypted Numbers](random.md) document.

## Overload operators

The `FHE` library supports operator overloading for encrypted integers (e.g., `+`, `-`, `*`, `&`) using the Solidity [`using for`](https://docs.soliditylang.org/en/v0.8.24/contracts.html#using-for) syntax. These overloaded operators currently perform unchecked operations, meaning they do not include overflow checks.

**Example**\
Overloaded operators make code more concise:

```solidity
using {
add as +
} for FHE global;
euint64 a = FHE.asEuint64(42);
euint64 b = FHE.asEuint64(58);
euint64 sum = a + b; /// @dev Calls FHE.add under the hood
```

## Best Practices

Here are some best practices to follow when using encrypted operations in your smart contracts:
Expand Down