This Full-Stack Application is an implementation of a Blockchain-based method for assessment and tracking of electric vehicle battery degradation costs. Through Vehicle-to-Grid, the app maintains Electric Vehicles (EVs)
and Charging Station Operators (CSOs)
that transact energy (i.e. EVs can charge or discharge electrical energy to CSOs to pay or gain money respectively). In this case, each energy transfer would be a blockchain transaction, which is implemented in Hyperledger Fabric
.
This Blockchain implementation aims to provide a much more secure, transparent and reliable form of data storage than traditional databases.
The paper behind these can be found here!
System Design can be found here!
- Hyperledger Fabric as the Blockchain
- IBM Blockchain Platform to host the Blockchain + Maintenence
- Go(lang) for Smart Contract / Chaincode development
- TBD for Frontend App
- Express for Backend App
This Application currently uses Hyperledger Fabric version 2.x
together with the IBM Blockchain Platform, hosted on a Kubernetes Cluster. The chaincodes can be invoked through the REST API under the web
directory.
This app currently has 2 chaincodes:
- EV Contract
- CSO Contract
Each of these chaincodes has multiple smart contracts (functions) within them that store and update data regarding each EV and CSO. The data is updated after every transaction and is sent to the orderer node in the Blockchain.