Skip to content
/ webss Public

Blockchain-based platform for secure, transparent, and privacy-preserving carbon credit and electricity trading with IoT integration.

Notifications You must be signed in to change notification settings

musk1n/webss

Repository files navigation

EnergyChain Project

Deployed on: πŸ”— webss-ashy.vercel.app

πŸš€ Overview

This project leverages blockchain technology integrated with real-time data processors like IoT devices to create a platform for carbon credit and electricity trading. By utilizing privacy-preserving technologies like zk-SNARKs, the platform ensures transparent transactions while maintaining user privacy. The system facilitates secure, traceable, and privacy-preserving trading to promote sustainability and efficient energy markets.

⚑ Problem Statement

The project addresses three key challenges in the energy sector:

  • πŸ”’ Energy Security
  • βš– Energy Equity
  • 🌱 Environmental Sustainability

🎯 Objectives

  • Enable transparent smart grid systems with direct prosumer participation.
  • Automate carbon credit trading with real-time verification.
  • Implement privacy-preserving mechanisms using zk-SNARKs.
  • Integrate IoT devices and smart meters to track energy consumption.
  • Ensure scalability for both small-scale and large energy producers.

πŸ“¦ Deliverables

  • System Architecture showcasing blockchain-based trading.
  • Smart Contracts and IoT integration modules.
  • ZK-SNARK circuits for privacy protection.
  • Peer-to-Peer Energy Trading Demonstration.
  • Complete Source Code for deployment.

πŸ›  Approach

  • Blockchain ensures secure and transparent transactions.
  • Smart contracts automate peer-to-peer trading.
  • zk-SNARKs protect sensitive user data.
  • IoT integration tracks and validates trades in real-time.
  • Decentralized storage ensures secure and immutable records.
  • Focus on energy equity and market efficiency by reducing intermediaries.

🧰 Tech Stack

🌐 Frontend

  • TypeScript
  • React
  • Tailwind CSS
  • Vite

πŸ” Backend (Blockchain)

  • Solidity
  • Remix
  • zk-SNARKs

πŸ“‚ Storage

  • IPFS
  • Pinata
  • Alchemy

πŸ›  Development Tools

  • Node.js
  • npm
  • Git
  • ESLint

βš™ Configuration

  • TypeScript Config (tsconfig)
  • PostCSS

πŸ“‹ Setup Instructions

Follow these steps to deploy the project on your local machine:

1️⃣ Clone the Repository

git clone https://github.com/musk1n/webss

2️⃣ Install Dependencies

Navigate to the project directory and install required modules:

cd webss
npm install

3️⃣ Run the Application

Start the development server:

npm run dev

dApp demo

Watch the Video

You can view the Demo video on Google Drive by clicking the link below:

Watch the Video

dApp flow Screenshots

image image image image image

πŸ“‘ IoT Integration Flow Documentation

πŸ“„ Overview

This application is currently running with mock data and real-time updates to simulate the full integration process. The actual IoT integration will follow the structured workflow detailed below.


πŸ›  Integration Plan

1️⃣ Data Collection from IoT Devices and Smart Meters

  • IoT devices and smart meters continuously monitor and collect data.
  • This data is formatted and saved into a JSON file.

2️⃣ Storing Data on IPFS

  • The JSON file is uploaded to the InterPlanetary File System (IPFS).
  • A unique Content Identifier (CID) or hash is generated after successful storage.

3️⃣ Storing the Hash on Blockchain

  • The generated CID is stored on the blockchain.
  • We utilize Alchemy to handle blockchain transactions and storage operations.

4️⃣ Data Retrieval Process

To retrieve and access the data:

  1. Fetch the CID: Retrieve the hash stored on the blockchain.
  2. Retrieve Data: Use the CID to fetch the actual JSON data file from **IPFS.

🧩 Key Components

Component Description
🌐 IoT Devices & Smart Meters Real-time data sources that collect and monitor system metrics.
πŸ“¦ IPFS (InterPlanetary File System) Decentralized, peer-to-peer storage system for large-scale data.
πŸ”’ Blockchain Immutable ledger for securely storing IPFS CIDs (hashes).
⚑ Alchemy Blockchain infrastructure provider for managing transactions.

About

Blockchain-based platform for secure, transparent, and privacy-preserving carbon credit and electricity trading with IoT integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5