Skip to content

atuljha-tech/ForeChainWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 ForenChain β€” Blockchain-Powered Forensic Evidence System πŸ”β›“οΈ

A full-stack decentralized web application ensuring the integrity and immutability of forensic scan reports 🧾 using Ethereum Blockchain and SHA-256 hashing.
Built for secure cybersecurity evidence management, ForenChain guarantees that every uploaded report is tamper-proof, verifiable, and traceable.


πŸ“Έ Screenshots

Preview Description
ss1 🧾 Dashboard β€” View all uploaded scan reports
ss2 ⛓️ Blockchain Verification β€” Upload report integrity
ss3 ⛓️ Blockchain Verification β€” Verify report integrity
ss4 πŸŒ™ Dark Mode β€” Sleek UI with light/dark theme toggle

πŸš€ Key Features

  • βœ… SHA-256 Cryptographic Verification – Ensures bulletproof file integrity
  • βœ… Ethereum Blockchain Anchoring – Immutable storage for every forensic hash
  • βœ… MetaMask Authentication – Web3 wallet-based secure login
  • βœ… Multiple Scan Types – Network, Web, Traffic & Vulnerability scanning
  • βœ… Real-Time Dashboard – Live blockchain status & verification view
  • βœ… Adaptive Dark/Light Mode – Elegant UI with theme switching
  • βœ… Proof of Integrity System – Instant authenticity validation

🧩 Tech Stack

Layer Technologies Used
🎨 Frontend Next.js 14, React, Tailwind CSS
⛓️ Blockchain Solidity, Hardhat, Ethers.js
🦊 Authentication MetaMask (Web3 Integration)
πŸ’Ύ Storage Local File System + On-Chain Hash Anchoring
🌐 Network Ethereum (Hardhat Localhost Network)

βš™οΈ Setup Instructions (Step-by-Step)

1️⃣ Prerequisites

  • 🟒 Node.js 18+
  • 🦊 MetaMask Browser Extension
  • 🧱 Git Installed

2️⃣ Clone & Install Dependencies

# Clone the repository
git clone https://github.com/yourusername/forenchain.git
cd forenchain

# Install dependencies
npm install
cd frontend && npm install && cd ..
3️⃣ Blockchain Setup
Terminal 1 β€” Start Local Blockchain

bash
Copy code
npx hardhat node
Terminal 2 β€” Deploy Smart Contract

bash
Copy code
npx hardhat run scripts/deploy.js --network localhost
⚠️ Important: Copy the deployed contract address from the terminal and update it in your frontend configuration file.

4️⃣ Configure MetaMask
Setting	Value
Network Name	Hardhat Local
RPC URL	http://localhost:8545
Chain ID	31337
Currency Symbol	ETH

Then, import one test account’s private key from the Hardhat node console (Account #0 recommended).

5️⃣ Run the Application
bash
Copy code
cd frontend
npm run dev
🌐 Visit your app here β†’ http://localhost:3000

🧰 Troubleshooting
Issue	Solution
πŸ”Œ MetaMask not connecting	Ensure Hardhat node is running and correct network selected
β›½ Transaction failed	Check ETH balance or redeploy contract
πŸ” Verification failed	Confirm correct file reupload or ABI version

Debug Commands
javascript
Copy code
// Check blockchain connection
await window.ethereum.request({ method: 'eth_chainId' });

// Get wallet balance
const balance = await provider.getBalance(account);

// Switch MetaMask to Hardhat network
await window.ethereum.request({
  method: 'wallet_switchEthereumChain',
  params: [{ chainId: '0x7A69' }]
});
🧾 Project Overview
🧩 /frontend/pages/upload.js β†’ File upload & hashing UI

βš™οΈ /utils/blockchain.js β†’ Blockchain transactions & verification logic

πŸ’½ /contracts/ForenChain.sol β†’ Smart contract for hash storage

πŸš€ /scripts/deploy.js β†’ Contract deployment automation

πŸ’‘ Vision
"ForenChain ensures digital forensic reports remain tamper-proof, verifiable, and decentralized β€” bringing blockchain-level trust to cybersecurity." πŸ”

πŸ‘¨β€πŸ’» Developer
πŸ‘€ Atul Jha β€” B.Tech CSE (IoT) | Blockchain & Web Developer Learner

🌟 Support the Project
If you liked this project, consider giving it a ⭐ star on GitHub!
Every star helps and motivates me to build more amazing open-source tools πŸ’ͺ✨

About

🧠 ForenChain β€” Secure your forensic reports with Ethereum blockchain & SHA-256 πŸ”. Tamper-proof, verifiable, and traceable scans 🧾. Real-time dashboard, MetaMask login, dark/light mode πŸŒ™βš‘. Cybersecurity made transparent & decentralized β›“οΈβœ¨

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors