What problem does it solve?
It enables confidential DAO governance by preventing plaintext vote disclosure and vote manipulation on-chain.
Core Features & Use Cases
- Deploy fhEVM blind voting contracts to Zama (devnet or local mock) so proposals can be registered and votes can be cast securely.
- Cast encrypted votes with FHE using
euint32 (approved/rejected) and homomorphically accumulate tallies with FHE.add() without exposing individual choices.
- Finalize and publish results via TEE-only control so only the authorized Phala TEE can decrypt aggregates and publish the approved/rejected outcome.
- Settle outcomes back to NEAR governance by forwarding the verdict to the coordinator using
coordinator_resume.
- Use Case: A DAO wants paid, privacy-preserving deliberation where multiple workers cast encrypted votes and the DAO receives only the final tallies and verdict.
Quick Start
Ask the coordinator to activate confidential voting mode by setting task_config.voting_mode to "confidential" so it deploys DeliberaVoting on Zama and orchestrates encrypted voting, TEE finalization, and NEAR settlement.