Skip to content

Conversation

@drewstone
Copy link
Contributor

Summary

  • Add multi-stage Dockerfiles for Fhenix FHE (Fully Homomorphic Encryption) development
  • Extract and flatten LocalFhenix components from ghcr.io/fhenixprotocol/fhenix-devnet:0.1.6 into our foundry base
  • No Docker-in-Docker required - all services run directly in the devcontainer

Components Extracted

Component Size Purpose
evmosd 63MB FHE-enabled Evmos daemon (EVM node)
zbc-oracle-db 18MB FHE Oracle database
zbc-fhe-tool 9MB FHE tooling
faucet.js - Faucet server (port 6000)
encryption_server.py - Python encryption service

Variants

  • fhenix-hardhat: Hardhat + Fhenix plugins + embedded LocalFhenix
  • fhenix-foundry: Foundry + cofhe-foundry-mocks + embedded LocalFhenix

Usage

# Inside container - start LocalFhenix
/opt/fhenix/scripts/start-localfhenix.sh

# RPC: http://127.0.0.1:8545
# Faucet: curl http://127.0.0.1:6000/faucet?address=YOUR_ADDRESS

Test plan

  • Build fhenix-hardhat Dockerfile
  • Build fhenix-foundry Dockerfile
  • Start LocalFhenix inside container
  • Deploy sample FHE contract

🤖 Generated with Claude Code

Add multi-stage Dockerfiles that extract and flatten LocalFhenix
components from ghcr.io/fhenixprotocol/fhenix-devnet:0.1.6 into
our foundry base image. No Docker-in-Docker required.

Components extracted:
- evmosd: FHE-enabled Evmos daemon (EVM node)
- zbc-oracle-db: FHE Oracle database
- zbc-fhe-tool: FHE tooling
- faucet.js: Faucet server (port 6000)
- encryption_server.py: Python encryption service

Two variants:
- fhenix-hardhat: Hardhat + Fhenix plugins + embedded LocalFhenix
- fhenix-foundry: Foundry + cofhe-foundry-mocks + embedded LocalFhenix

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@drewstone drewstone merged commit 9c8bc35 into main Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants