@fhevm/solidity

0.7.0 • Public • Published

Introduction

FHEVM Solidity is a Solidity library that allows developers to write confidential smart contracts with the standard Solidity development workflow.

Main features

The FHEVM Solidity library offers the following core features:

  • Encrypted types: Use encrypted integers like euint8, euint16, ..., euint256 directly in Solidity contracts.
  • Encrypted operations: Perform operations on encrypted data using FHE-compatible functions like add, sub, eq, lt, ternary, etc.
  • Decryption functions: Use requestDecryption to trigger decryption asynchronously via an oracle. The plaintext result is returned to the smart contract through a callback, eliminating the need for client-side processing.
  • Access control: Restrict which accounts can decrypt or update values with programmable access logic.
  • Symbolic execution: All encrypted operations are executed symbolically on the chain, with actual computation performed off-chain by the coprocessor.

See full details in the Key concepts section of the documentation.

Get started

To start writing confidential smart contracts using FHEVM Solidity, follow the Hardhat setup guide here: Getting Started with Hardhat.

Resources

Support

Support

🌟 If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development.

GitHub stars

Readme

Keywords

none

Package Sidebar

Install

npm i @fhevm/solidity

Weekly Downloads

929

Version

0.7.0

License

BSD-3-Clause-Clear

Unpacked Size

323 kB

Total Files

6

Last publish

Collaborators

  • birdy
  • zama-fhe-bot