JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3264
  • Score
    100M100P100Q120134F
  • License BSD-3-Clause-Clear

A Solidity library for interacting with fhevm protocol

Package Exports

  • @fhevm/solidity
  • @fhevm/solidity/lib/FHE.sol
  • @fhevm/solidity/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fhevm/solidity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.
  • 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.

run

npm install

To run forge tests:

npm run forge:soldeer
npm run test:forge

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