How ayan-banerjee-918/voteblocks-dapp works
Main Components Identification
a) Frontend Layer (React.js):
• Admin Dashboard
• User Dashboard
• Authentication System
• MetaMask Integration
b) Blockchain Layer:
• Smart Contracts (Polygon Mumbai Testnet)
• Voter Contract
c) Storage Layer:
• IPFS (Infura)
d) External Services:
• Google Authenticator (2FA)
• MetaMask Wallet
Component Relationships
• User/Admin → Frontend
• Frontend → MetaMask
• Frontend → Smart Contracts
• Frontend → IPFS
• Frontend → Google Authenticator
• Frontend → MetaMask Authentication
Detailed Component Breakdown
For each major component, include sub-components:
Frontend Layer:
• Admin Section
• Election Management
• Candidate Management
• User Validation
• Results View
• User Section
• Vote Casting
• History View
• Results View
• Authentication
• 2FA Integration
• MetaMask Connection
Technical Details
Annotations for:
• Smart Contract Address
• IPFS Configuration
• Supported Networks (Polygon Mumbai Testnet)
• Authentication Methods
Additional Elements
Include:
• System requirements (MetaMask installation)
• External dependency connections
• Error handling flows
• Data encryption flows
Remember to emphasize the security aspects, particularly around the voting mechanism and 2FA implementation, as these are crucial for a voting system's integrity.