A blockchain-based platform for tracking, trading, and auditing green hydrogen credits with government-grade certification
GreenHydrogenChain is a comprehensive blockchain-based system designed to bring transparency, trust, and efficiency to the green hydrogen credit market. Our platform addresses the critical challenges of verification, double counting prevention, and regulatory compliance in the rapidly growing $12 billion green hydrogen industry.
- ποΈ Government Certification: RSA-signed digital certificates for production verification
- βοΈ Blockchain Integration: Real Ethereum-compatible wallet and transaction system
- π₯ Multi-Stakeholder Platform: Dedicated dashboards for producers, buyers, and auditors
- π Fraud Prevention: Immutable transaction records with cryptographic verification
- π Real-time Trading: Instant credit transfers with live balance updates
- π Environmental Impact: Complete lifecycle tracking from production to retirement
- π Full Transparency: Blockchain explorer for system-wide auditability
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Frontend β β Backend β β Blockchain β
β (React) βββββΊβ (Express.js) βββββΊβ (Ethereum) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β β
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β UI/UX Layer β β Database β β Wallet Mgmt β
β (Tailwind CSS) β β (PostgreSQL) β β (Web3.js) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
- React 18 with TypeScript for type-safe development
- Vite for fast builds and hot module replacement
- shadcn/ui components built on Radix UI primitives
- TailwindCSS for responsive, utility-first styling
- Wouter for lightweight client-side routing
- TanStack Query for server state management
- Express.js with TypeScript for REST API
- PostgreSQL with Drizzle ORM for type-safe database operations
- bcrypt for secure password hashing
- Express Session for authentication management
- Web3.js for Ethereum blockchain interaction
- eth-account for wallet management and signatures
- RSA Cryptography for government certificate signing
- Zod for runtime type validation
- Node.js 16+
- PostgreSQL database
- npm or yarn package manager
-
Clone the repository
git clone https://github.com/Neelshah1810/GHXChange.git cd GreenHydrogenChain -
Install dependencies
npm install
-
Set up environment variables
# Create .env file DATABASE_URL="postgresql://user:password@localhost:5432/ghc_db" NODE_ENV="development" SESSION_SECRET="your-secret-key"
-
Set up the database
npm run db:push
-
Start the development server
npm run dev
-
Access the application
- Frontend: http://localhost:5173
- Backend API: http://localhost:3000
- Production Records: Create verified hydrogen production entries
- Certificate Management: Government-issued digital certificates
- Credit Issuance: Automatic GHC credit generation upon verification
- Transaction History: Complete audit trail of all activities
- Credit Marketplace: Browse and purchase verified green hydrogen credits
- Compliance Tracking: Monitor purchased credits for regulatory reporting
- Wallet Management: Ethereum-compatible wallet integration
- Certificate Verification: Real-time authenticity checking
- System Oversight: System-wide transaction monitoring
- Fraud Prevention: Double counting detection and prevention
- Reporting Tools: Comprehensive audit reports and analytics
- Certificate Validation: Government signature verification
POST /api/auth/login
POST /api/auth/register
GET /api/auth/me
POST /api/auth/logoutGET /api/transactions
POST /api/transactions/transfer
POST /api/transactions/issue
POST /api/transactions/retireGET /api/certificates
POST /api/certificates
GET /api/certificates/:id/verifyGET /api/wallets
POST /api/wallets
GET /api/wallets/:address/balancenpm test- Create Producer Account: Register as a hydrogen producer
- Generate Production Record: Add hydrogen production data
- Government Certification: Automatic certificate issuance
- Credit Transfer: Transfer credits between wallets
- Credit Retirement: Retire credits for compliance
The system includes a demo data loader for quick testing:
-
Demo Wallets:
- Solar Hydrogen Inc (Producer)
- Green Steel Corp (Buyer)
-
Sample Production: 500kg hydrogen from solar PV in Gujarat
-
Government Certificate: Automatically issued and verified
-
Credit Trading: Live transfer demonstration
-
Environmental Impact: Retirement tracking
-- Users with role-based access
Users: id, email, password_hash, role, wallet_address, created_at
-- Blockchain wallet management
Wallets: id, address, private_key, balance, owner_id
-- Immutable transaction records
Transactions: id, from_address, to_address, amount, tx_type, tx_hash, timestamp
-- Government certificates
Certificates: id, production_record, certifier_signature, issue_date, status- Government-Grade Certificates: RSA-2048 digital signatures
- Blockchain Verification: Ethereum-compatible transaction signing
- Role-Based Access Control: Producer, Buyer, Auditor permissions
- Immutable Records: Tamper-proof blockchain storage
- Secure Authentication: Bcrypt password hashing + session management
- Zero Emissions: Produced using renewable energy sources
- Industrial Decarbonization: Enables clean steel, cement, and chemical production
- Energy Storage: Stores renewable energy for later use
- Transport Fuel: Clean alternative for heavy-duty vehicles
- Transparency: Full lifecycle tracking reduces greenwashing
- Efficiency: Automated verification reduces administrative overhead
- Trust: Cryptographic proof eliminates fraud
- Compliance: Built-in regulatory reporting capabilities
-
Green Hydrogen Score Prediction (Regression)
- Use regression models to predict a "Green Score" for hydrogen production based on energy source mix, COβ emissions, renewable intensity, and electrolyzer efficiency.
Example Dataset:
Producer_ID Energy_Source (%) COβ_Emissions (kg/kg Hβ) Renewable_Intensity (kWh/kg Hβ) Electrolyzer_Efficiency (%) Region Green_Score P001 Solar: 90, Grid: 10 0.5 52 72 India 85 P002 Grid: 100 9.0 58 65 EU 20 P003 Wind: 70, Hydro: 30 0.2 49 75 Brazil 92 P004 Coal: 80, Solar: 20 8.5 60 60 China 10 -
Anomaly Detection (Isolation Forest)
- Detect fraudulent or unrealistic hydrogen production claims using anomaly detection.
Example Dataset:
Index Renewable % COβ Emissions (kg/kg Hβ) Efficiency (%) Claimed Hβ (kg) Anomaly 0 90 0.5 72 950 Normal 1 10 8.5 40 2000 Anomaly 2 70 0.3 78 870 Normal 3 85 0.6 75 910 Normal 4 95 0.4 80 940 Normal 5 5 9.0 35 2500 Anomaly -
RAG (Retrieval Augmented Generation) for Analytics
- Enable natural language queries for stakeholders:
- βHow many credits has Producer X retired this month?β
- βWhich buyers purchased credits above Green Score 80?β
- Enable natural language queries for stakeholders:
- KYB/Verification of production for trusted onboarding
- Advanced Blockchain integration with higher scalability and interoperability
- Full Block Tracking: Create and track all blocks for the entire GHC lifecycle
- Producer Ranking on the marketplace based on Green Score and transaction history
npm run build
npm run start# Production environment variables
NODE_ENV=production
DATABASE_URL=your-production-db-url
SESSION_SECRET=secure-production-secret- Frontend: Vercel, Netlify, or AWS S3 + CloudFront
- Backend: Railway, Heroku, or AWS EC2
- Database: Neon, Supabase, or AWS RDS PostgreSQL
- Monitoring: Sentry for error tracking
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Write tests for new features
- Update documentation as needed
- Follow the existing code style
This project is licensed under the MIT License - see the LICENSE file for details.
This project was developed for hackathons focusing on:
- π± Sustainability: Enabling green hydrogen market transparency
- βοΈ Blockchain: Real-world Web3 application with Ethereum integration
- ποΈ RegTech: Government compliance and certification
- π‘ Innovation: Novel approach to carbon credit verification
- Live Demo: https://ghxchange.onrender.com
- GitHub Repository: https://github.com/Neelshah1810/GHXChange
You can use these credentials to log in and explore the platform:
-
Producer Demo Account π€ username: producer1 | π Password: 12345678 | Role: Producer
-
Buyer Demo Account π€ username: buyer1 | π Password: 12345678 | Role: Buyer
-
Auditor Demo Account π€ username: auditor1 | π Password: 12345678 | Role: Auditor
-
Neel Shah
π§ Email: neelshah18102004@gmail.com π LinkedIn: www.linkedin.com/in/neel-shah-077128300 -
Tirth Shah
π§ Email: tirthshah151004@gmail.com π LinkedIn: http://linkedin.com/in/tirth-shah-533517216 -
Viranch Patel
π§ Email: viranchvishalpatel@gmail.com π LinkedIn: http://linkedin.com/in/viranch-patel-430391315 -
Yashvi Patel
π§ Email: patelyashvi1311@gmail.com π LinkedIn: https://www.linkedin.com/in/yashvi-patel-b17294300/
β Star this repository if you find it useful!
Built with β€οΈ for a sustainable future