docs/examples/openzeppelin/README.md
This section contains comprehensive guides and examples for using OpenZeppelin's confidential smart contracts library with FHEVM. The library provides contracts and utilities that utilize the FHE (Fully Homomorphic Encryption) capabilities of the Zama Protocol to perform confidential transactions.
The library includes the ERC7984 confidential fungible token standard, an ERC20-to-ERC7984 wrapper, confidential vesting wallets, and encrypted voting utilities. See the official OpenZeppelin documentation for more details.
This guide will help you set up a development environment for working with OpenZeppelin's confidential contracts and FHEVM.
Before you begin, ensure you have the following installed:
Clone the FHEVM Hardhat template repository:
git clone https://github.com/zama-ai/fhevm-hardhat-template conf-token
cd conf-token
Install project dependencies:
npm ci
Install OpenZeppelin's confidential contracts library:
npm i @openzeppelin/confidential-contracts
Compile the contracts:
npm run compile
Run the test suite:
npm test
Explore the following guides to learn how to implement confidential contracts using OpenZeppelin's library: