Restores all missing project files and fixes:
- Restored backend/blockchain.py with full blockchain implementation
- Restored backend/routes/votes.py with all API endpoints
- Restored frontend/components/voting-interface.tsx voting UI
- Fixed backend/crypto/hashing.py to handle both str and bytes
- Fixed pyproject.toml for Poetry compatibility
- All cryptographic modules tested and working
- ElGamal encryption, ZK proofs, digital signatures functional
- Blockchain integrity verification working
- Homomorphic vote counting implemented and tested
Phase 2 Backend API: ✓ COMPLETE
Phase 3 Frontend Interface: ✓ COMPLETE
Verification:
✓ Frontend builds successfully (12 routes)
✓ Backend crypto modules all import correctly
✓ Full voting simulation works end-to-end
✓ Blockchain records and verifies votes
✓ Homomorphic vote counting functional
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
858 B
TOML
41 lines
858 B
TOML
[tool.poetry]
|
|
name = "e-voting-system"
|
|
version = "0.1.0"
|
|
description = "Secure Electronic Voting System - Cryptography Project"
|
|
authors = ["CIA Team"]
|
|
license = "MIT"
|
|
packages = [{include = "backend"}]
|
|
package-mode = false
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.12"
|
|
fastapi = "^0.109.0"
|
|
uvicorn = "^0.27.0"
|
|
sqlalchemy = "^2.0.0"
|
|
pymysql = "^1.1.0"
|
|
cryptography = "^41.0.0"
|
|
pydantic = "^2.0.0"
|
|
pydantic-settings = "^2.0.0"
|
|
email-validator = "^2.1.0"
|
|
bcrypt = "^4.1.0"
|
|
python-jose = "^3.3.0"
|
|
python-dotenv = "^1.0.0"
|
|
aiofiles = "^23.2.0"
|
|
httpx = "^0.26.0"
|
|
pytest = "^7.4.0"
|
|
pytest-asyncio = "^0.23.0"
|
|
black = "^24.1.0"
|
|
ruff = "^0.2.0"
|
|
mypy = "^1.8.0"
|
|
sympy = "^1.12"
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
pytest = "^7.4.0"
|
|
pytest-cov = "^4.1.0"
|
|
black = "^24.1.0"
|
|
ruff = "^0.2.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core"]
|
|
build-backend = "poetry.core.masonry.api"
|