A decentralized launchpad protocol focused on financial privacy, powered by Fully Homomorphic Encryption (FHE).
PrivacyPad is a decentralized launchpad protocol focused on financial privacy. It leverages Fully Homomorphic Encryption (FHE) powered by the Zama protocol to enable private participation in token launches—users can invest without revealing their token purchase amounts.
-
Private Token Purchases: All user contributions are encrypted. Only the final aggregated result is decrypted after the sale ends.
-
Confidential Token Wrapping: Wrap standard ERC-20 tokens into confidential equivalents using OpenZeppelin's ConfidentialFungibleTokenERC20Wrapper.
-
Confidential WETH (cWETH): Wrap ETH into cWETH to invest privately in presales.
-
Decryption On Demand: Final contribution aggregated result is only revealed at the end for distribution and liquidity operations.
The seller creates a token or deposits their standard ERC-20 token into the PrivacyPad contract.
Users invest with cWETH (Confidential WETH), allowing fully private investment. Their contribution amounts are encrypted and hidden on-chain.
Once the presale ends, the protocol triggers a controlled decryption process to reveal contribution amounts for settlement.
If the presale is successful:
- ERC-20 tokens are wrapped into their confidential form (cTokens)
- cWETH is unwrapped into ETH and used to add liquidity with normal token on DEXes (Currently support UniswapV3)
- Users can privately claim their cTokens
If the presale fails:
- Users reclaim their cWETH
- Unsold tokens are returned to the token seller
contracts/
├── Core Contracts
│ ├── PrivacyPresale.sol # Main presale contract with FHE privacy
│ └── PrivacyPresaleFactory.sol # Factory for creating presale instances
│
│
├── Confidential Tokens
│ ├── ConfidentialWETH.sol # Confidential WETH wrapper
│ ├── ConfidentialTokenWrapper.sol # Base confidential token wrapper
│ └── PresaleToken.sol # Normal token for presale testing
│
├── Interfaces/
│ ├── IPrivacyPresale.sol # Interface for privacy presale
│
└── Libraries/
├── TransferHelper.sol # Safe token transfer utilities
└── PrivacyPresaleLib.sol # Library for presale logic
- Zama FHE VM: Privacy-preserving computation layer
- OpenZeppelin Confidential Token Wrappers: ERC-20 confidentiality layer
- Hardhat: Development and testing framework
- Solidity: Smart contract development
- Expand Token Support: Integrate additional investment tokens such as cUSDT, cDAI, and others to enhance platform versatility.
- Support more types of investment:
- Fair Launch
- Overflow Mechanism
- Private Sale
- Bonding Curve
- Integrate Privacy-Enabled DEXs: As decentralized exchanges evolve to support cTokens, we aim to leverage these platforms to enable fully private investment and trading experiences
- ConfidentialWETH:
0x1A7258dFA114fc3Daf2849F131aF022E3Ec90eEe - PrivacyPresaleFactory:
0x1B28564C202cB44d8bA06d7EE6F45E7842a2c711
# Deploy PrivacyPresaleFactory to Sepolia
npx hardhat deploy --network sepolia --tags PrivacyPresaleFactorynpx hardhat test