Giter Site home page Giter Site logo

test4444-01 / blockchain_integrity_chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akurtz87/blockchain_integrity_chat

0.0 0.0 0.0 9 KB

Chat via websocket using blockchain to verify integrity of conversation saved on sql db

Go 77.49% HTML 22.51%

blockchain_integrity_chat's Introduction

Blockchain_Chat ๐Ÿ”—๐Ÿ’ฌ๐Ÿ”—

โš ๏ธโš ๏ธโš ๏ธ THIS REPOSITORY IN UNDER REFITTING! โš ๏ธโš ๏ธโš ๏ธ

Description:

In the context of this chat application, integrity refers to the accuracy and consistency of the data being transmitted between clients. Data integrity is a fundamental aspect of information security, and it ensures that data is not modified, corrupted, or deleted during transmission or storage. In the case of this application, blockchain hashing is used to ensure that messages sent between clients are secure and tamper-proof. Each message is hashed using the SHA256 algorithm, and the resulting hash is added to the blockchain for verification purposes. This ensures that messages cannot be modified or deleted without detection, and it provides an additional layer of security to the application. In general, data integrity is crucial in ensuring the reliability and trustworthiness of data, and it is essential in applications where data accuracy and consistency are critical. This Git repository contains the source code for a simple chat application built in Go that incorporates blockchain hashing for message integrity. The application allows users to send and receive messages in real-time using websockets, with each message being hashed and added to the blockchain for verification purposes.

Features:

  1. Real-time chat functionality using websockets
  2. Blockchain hashing for secure message transfer
  3. Simple and intuitive user interface
  4. Easy to deploy and configure

Installation and Usage:

To use this chat application, you will need to have Go installed on your system. Once you have Go installed, you can follow these steps to get the application up and running:

  1. Clone the repository to your local machine using Git.
  2. Navigate to the cloned repository using the command line.
  3. Run the following command to install the required packages:

go get

  1. Start the chat server using the following command:

go run main.go

  1. Open your web browser and navigate to http://localhost:8080.
  2. Enter your username and start chatting!

Code Structure:

The code is divided into four main files:

  • main.go - This file contains the main function that starts the web server and initializes the Hub.
  • hub.go - This file defines the Hub struct that manages the list of connected clients and broadcasts messages to them.
  • client.go - This file defines the Client struct that represents a single connected client.

Technologies Used:

  • ๐Ÿ”ข Go programming language
  • ๐Ÿฆ Gorilla WebSocket library for websockets
  • ๐Ÿ—„๏ธ MySQL database for storing chat history
  • ๐Ÿ”’ SHA256 hash function for message hashing

Contributing:

Contributions to this repository are welcome. If you notice any issues or have any suggestions for improvements, please feel free to submit a pull request or open an issue.

blockchain_integrity_chat's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.