Skip to content

Chat Safe is a secure decentralized chat application built on Ethereum blockchain. It allows users to create accounts, add friends, and send encrypted messages to each other, ensuring privacy and security.

License

Notifications You must be signed in to change notification settings

Priyanshrai/Dapp_Chat_Safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Safe

Chat Safe is a secure decentralized chat application built on Ethereum blockchain. It allows users to create accounts, add friends, and send encrypted messages to each other, ensuring privacy and security.

Chat_Safe

Features

  • Account Creation: Users can create accounts with a username and password.
  • Friend Management: Add friends using their usernames.
  • Messaging: Send and receive messages with friends securely.
  • Account Management: Update or delete your account.
  • Username Display: Usernames are displayed alongside public addresses for better readability.

Technologies Used

  • Solidity: Smart contract development.
  • React: Frontend development.
  • Web3.js: Interaction with Ethereum blockchain.
  • Truffle: Development environment for Ethereum.
  • MetaMask: Ethereum wallet and browser extension.
  • Material-UI: UI components.

Getting Started

Prerequisites

  • Node.js
  • Truffle
  • MetaMask extension in your browser
  • Ethereum client (Ganache, Infura, etc.)

Installation

  1. Clone the repository

    git clone https://github.com/Priyanshrai/Dapp_Chat_Safe.git
    cd chat-safe
  2. Install dependencies

    cd truffle
    npm install
    cd ../client
    npm install
  3. Compile the smart contracts

    cd truffle
    truffle compile
  4. Deploy the smart contracts

    truffle migrate
  5. Run the frontend application

    cd ../client
    npm start

Usage

  1. Open MetaMask and connect to your Ethereum network.
  2. Access the application at http:https://localhost:8080.
  3. Create your account by entering a username and password.
  4. Add friends by entering their usernames.
  5. Select a friend from your friend list and start chatting!

Smart Contract

The smart contract handles user account creation, friend management, and messaging. It ensures that messages are securely stored and can only be accessed by the sender and receiver. ndAddress != address(0), "User not found");

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss changes.

About

Chat Safe is a secure decentralized chat application built on Ethereum blockchain. It allows users to create accounts, add friends, and send encrypted messages to each other, ensuring privacy and security.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published