simplybychris / blockchain-impl

▶ Studentchain - The application was created for the purposes of the university project. It is my own simplified implementation of a complicated Blockchain's topic. The project aims to show the basics of the functioning of a decentralized blockchain network.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Studentchain - Implementation of the Blockchain

█▀▀ ▀█▀ █ █ █▀▄ █▀▀ █▀█ ▀█▀ █▀▀ █ █ █▀█ ▀█▀ █▀█
▀▀█  █  █ █ █ █ █▀▀ █ █  █  █   █▀█ █▀█  █  █ █
▀▀▀  ▀  ▀▀▀ ▀▀  ▀▀▀ ▀ ▀  ▀  ▀▀▀ ▀ ▀ ▀ ▀ ▀▀▀ ▀ ▀ 

Installation

Download the project from this repository and then install the required dependencies using the command npm install.
By default, the scripts responsible for running the application are defined in package.json.
To use the ready configuration, start the main node using the command npm run dev and then you can connect other nodes running npm run dev-env and npm run dev-env2.
Nodes should connect in the configuration shown below:
A <-> B <-> C

Configuration

To modify values such as starting difficulty, account balance, hash rate etc. you need to change the values manually in the config.ts file.

About

▶ Studentchain - The application was created for the purposes of the university project. It is my own simplified implementation of a complicated Blockchain's topic. The project aims to show the basics of the functioning of a decentralized blockchain network.


Languages

Language:TypeScript 99.5%Language:JavaScript 0.5%