Skip to content

akshatbhargava123/LegitChain

Repository files navigation

This was build at ETHIndia 2018 and we were among the 7 finalist of the hackathon, overall experience of the hackathon was awesome, solidity ftw <3 My teamate for this hackathon was sakshisrivastava413 :)

Legit Chain

Legit Chain is blockchain based solution to avoid evidence tampering in Indian Court (actually any judiary based system out there).

Problem Statement

In Courts, lot of evidences are tampered in a way or another due to which innocent lives are sued. When someone submit an evidence to the court (may it be a document, video or audio), the evidence is submitted to police after submission of the same. The parties and the court have to trust all the middle parties that come in between the process of approval to submission of the evidence.

Our Solution

We propose a solution where all the evidences submitted by a user are pushed to a immutable blockchain based database with a very simple and elegant user interface where user just uploads all the details of the evidence like its image, name, creation date, description and type and we handle all the things behind the scenes (uploading the image to ipfs, signing the details user filled using his / her public key, making the actual transaction to blockchain via organisation's account by verifying the hash so that user doesn't have to pay for the ether via making a submission and the organisation does the payment for user's transaction via taking care of security issues like mutating user's filled information).

Technology Stack

  1. Solidity for writing Smart Contract(s)
  2. React for frontend
  3. IPFS for file storage
  4. NuCypher for Proxy Re-encryption of the file
  5. Truffle Framework for easy development of smart contracts and deploying to blockchain
  6. Ganache to provide local blockchain
  7. Web3JS as layer to contact blockchain via normal browser

Flow of the application

  • User enters it's public key and the Case ID given by officials to the system
  • They now chose one of the court cases going on with them
  • Now they are shown a evidence list of the case chosen and an option to upload a new evidence for approval to show in next hearing
  • They upload an evidence filling all its detail and the payload is encrypyted using NuCypher and signed using user's private key on the frontend and sent to the organisation's service
  • Organisation / Govt.'s service automatically makes a transaction to the blockchain on the behalf of user so that user doesn't have to pay for the gas
  • Evidence gets added to the blockchain and now is forever there and hence no immutability is possible, here we also trigger an event from the Smart Contract to update the UI with the new evidence.

Accomplishments we are proud of

  • Making the organisation pay the gas for user without risking the transaction owner's data immutability
  • Encrypting data before adding to IPFS network using NuCypher

About

Dapp to avoid evidence tampering in Court Cases

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published