AI Training Materials for Fully Homomorphic Encryption (FHE) Smart Contract Development using Fhenix
Train AI assistants (Claude, ChatGPT, Gemini, etc.) on FHE development patterns using the Fhenix protocol to get expert-level guidance.
Load this comprehensive reference into any AI:
📚 core.md (30KB) - Complete FHE library reference & patterns
Claude Code:
claude "Read the fhe-assistant/core.md file and help me build FHE smart contracts using these patterns"Other AIs (ChatGPT, Gemini, etc.): Copy-paste the core.md file and say: "This is FHE reference material. Help me build encrypted smart contracts."
Code Generation:
- "Build me a [voting/auction/gaming] contract using FHE patterns"
- "Create an encrypted token with private balances"
Code Review:
- "Review this FHE contract against the security checklist"
- "Fix this contract that has FHE access control errors"
Learning:
- "Explain FHE access control and show me working examples"
- "Why can't I use ebool in if statements? Show me the right way"
Essential Mental Model: "Without FHE.allow() = passing a locked box without the key!"
Built for Fhenix Protocol: All patterns use @fhenixprotocol/contracts and target Fhenix networks.
- Load Core Patterns → AI understands FHE fundamentals
- Add Working Examples → AI sees proper Fhenix implementation
- Ask Specific Questions → AI applies patterns to your needs
Result: AI writes Fhenix-compatible FHE code following security best practices!
📚 core.md → Comprehensive FHE library reference (EVERYTHING YOU NEED)
📖 README.md → This quick start guide
The core.md file includes:
- 🔢 All encrypted data types (ebool, euint8-256, eaddress)
- ➕ Complete operation reference (arithmetic, comparison, logical)
- 🔐 Access control patterns (FHE.allow*, critical for security)
- 🔄 Conditional operations (FHE.select - the only way to use ebool)
- 🔓 Decryption workflows (multi-transaction patterns)
- 🚨 Common mistakes and debugging guide
- ✅ Working code templates and examples
- Discord: Fhenix Community - Real-time FHE help
- Documentation: docs.fhenix.zone - Official reference
- GitHub Issues: Report AI training improvements or pattern issues
🚀 Ready to start? Load the core files into your AI assistant and start building encrypted smart contracts!
For detailed examples, advanced configurations, and comprehensive guides, see the individual files above.