Building CivicGemma: A Tamper‑Evident E‑Voting Microservices Platform with Gemma 4
说明与用途
CivicGemma 是一个基于 Java 21、Spring Boot 3.4 和 Angular 22 的微服务电子投票平台,集成 Gemma 4 进行身份证验证和多语言候选人说明。它通过双重投票防护、SHA‑256 投票封印和透明审计实现安全可靠的投票。
问题
Local body elections suffer from paper ballot inefficiencies, double‑voting risks, and information asymmetry, making it hard to ensure transparent, auditable, and accessible voting.
结果
CivicGemma successfully prevents double voting through layered checks, seals ballots with SHA‑256 receipts, and provides multilingual voter assistance via Gemma 4, demonstrating a viable, auditable e‑voting platform for local elections.
工作流
- 1. Design microservices with Database‑per‑Service pattern using Spring Cloud 2024 and Spring Boot 3.4.2.
- 2. Implement Auth, Voter, Voting, Result, and Audit services with isolated MySQL schemas.
- 3. Add application‑layer check to reject duplicate votes.
- 4. Enforce unique composite index (election_id, voter_id) at database level.
- 5. Generate SHA‑256 hash of ballot data to create tamper‑evident receipt.
- 6. Integrate Google Gemma 4 for multimodal voter ID verification and multilingual manifesto summarization.
- 7. Deploy services behind Spring Cloud API Gateway and Eureka Discovery Server.
- 8. Test resilience with OpenFeign fallbacks for network partitions.
- 9. Publish code to GitHub and demo via live link.
证据
During Hacktoberfest Hack Day Bhubaneswar × DatrixLabs, I built CivicGemma — an open‑source, full‑stack microservices e‑voting pilot system designed specifically for local body elections (Panchayats, Municipalities, and Wards).
We implemented a three‑tier defense: Application Layer Check, Database Engine Constraint, and Cryptographic SHA‑256 Ballot Sealing.
Gemma 4 multimodal civic AI solves two real‑world accessibility challenges: multimodal voter ID verification and multilingual manifesto explainer.
- 记录日期: 2026-11-01T15:59:06.667Z