A decentralized social media application built on Ethereum that combats misinformation using blockchain verification, IPFS content storage, a reputation-based validator network, and community-driven consensus.
This project demonstrates how decentralized technologies can be harnessed to tackle misinformation at its roots by:
- Verifying media originality and provenance via IPFS + smart contracts
- Empowering a reputation-based consensus system to validate reported content
- Providing transparency, traceability, and community governance for social media
- Node.js (v16 or later)
- NPM
- Metamask wallet (connected to Sepolia Testnet)
PostContract.sol: Handles post creation, hash lookup, user registration, and engagement (likes/dislikes).Misinformation.sol: Manages report mechanisms, validator consensus, and on-chain reputation updates.frontend/: Contains the React.js frontend for interacting with the blockchain and IPFS.
Manages:
- User registration/login
- Post creation with IPFS hash
- Original/sourced detection
- Likes/dislikes
Manages:
- Reporting & flagging logic
- Validator-based voting system
- On-chain reputation for validators/reporters
- Reward/penalty via consensus
git clone https://github.com/thatayushmallick/decentralized-x.git
cd decentralized-xRun the commands :
cd frontend
npm i- Ensure your Metamask is connected to Sepolia with test ETH
- Test ETH can be obtained from sources like https://cloud.google.com/application/web3/faucet
- Upload the smart contracts
PostContract.solandMisinformation.solon Remix IDE. - Compile the smart contract
Misinformation.sol. - Set environment as Sepolia Testnet on Remix IDE.
- Deploy the smart contract.
- Copy the contract ABI and contract address and paste them in
frontend/src/contract.js.
Run the command :
npm startOpen http://localhost:3000 in your browser.
Note : Ensure your Metamask is connected to Sepolia with test ETH.
Contributions are welcome! Please fork the repo and open a pull request. Feel free to open issues for bugs, ideas, or suggestions.
Built by :
as part of an academic course project.