Skip to content
BillyErMagoPublic

About

⛓️ Web3 dApp for video authenticity and integrity verification using Solidity smart contracts, Hardhat, and MetaMask.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🛡️ Video Integrity Verifier (dApp)

A decentralized application for timestamping, notarizing, and verifying video authenticity on the Ethereum blockchain.

Solidity Hardhat JavaScript MetaMask


📌 Problem & Solution

In an era of deepfakes and media tampering, verifying that a video has not been altered is critical.

This dApp solves this problem by using cryptographic hashing and blockchain immutability:

  1. The video file is processed locally in the browser to compute its unique cryptographic hash (without uploading the heavy media file).
  2. The hash and timestamp are permanently anchored to the blockchain via a Solidity smart contract.
  3. Anyone can upload the clip at any future point to instantly check if the hash matches the on-chain record.

⚡ Key Features

  • 🔒 Client-Side Hashing: Media clips are hashed locally for maximum privacy and zero bandwidth overhead.
  • 📜 Tamper-Proof Smart Contracts: Built and tested with Hardhat to store hashes immutably on-chain.
  • 🦊 MetaMask Integration: Direct Web3 wallet connection to sign and submit verification transactions.
  • 🖱️ Drag-and-Drop UI: Minimalist interface with single-click actions (Secure Clip & Verify Clip).

🏗️ Architecture & Tech Stack

  • Smart Contracts: Solidity, Hardhat, Hardhat Ignition
  • Frontend: JavaScript, Vite (React / Vanilla UI), HTML5, CSS3
  • Web3 Layer: Ethers.js / Web3.js, MetaMask Provider

🚀 Getting Started

Prerequisites


1. Smart Contract Setup (Hardhat)

Clone the repository and install root dependencies:

git clone https://github.com/BillyErMago/GameGuard.git
cd GameGuard
npm install

Compile contracts and run local blockchain tests:

# Compile contracts
npx hardhat compile

# Run automated tests
npx hardhat test

(Optional) Start a local Hardhat node and deploy:

npx hardhat node
npx hardhat ignition deploy ./ignition/modules/<YourModule>.js --network localhost

2. Frontend Setup

In a new terminal window, start the frontend development server:

# Navigate to the frontend directory
cd frontend

# Install dependencies (if needed)
npm install

# Start development server
npm run dev

Open your browser at:

http://localhost:5173/

🎮 How to Use

  1. Connect Wallet: Click the Connect MetaMask button on the top right. Ensure your wallet is connected to the same network as the deployed contract (e.g., Localhost or Sepolia Testnet).
  2. Secure a Video (Notarize):
    • Drag and drop your video file into the "DROP YOUR CLIP HERE" area.
    • Click Secure Clip and approve the MetaMask transaction to anchor the video's fingerprint to the blockchain.
  3. Verify Integrity:
    • Drop any video into the dropzone.
    • Click Verify Clip to compare its hash against the contract records and confirm if the video is authentic and untampered.

👤 Author

About

⛓️ Web3 dApp for video authenticity and integrity verification using Solidity smart contracts, Hardhat, and MetaMask.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages