Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

ymansurozer/simpleblockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple Blockchain Data Structure with C#

This program creates a simple blockchain data structure with strings provided by the user as transactions. It creates a blockchain with a genesis node, which mines blocks and appends them into the chain.

Features

  • Creates a blockchain with given difficulty (i.e. number of zeroes at the beginning of the hash)
  • Receives strings from the user as transactions
  • Groups transactions into blocks and calculates a valid hash (i.e. mines blocks)
  • Validates the proof and the block and appends it to the chain
  • Displays the blockchain data (i.e. block explorer)

I have deliberately kept the algorithm simple and left out key management (i.e. transactions can only contain strings), P2P, the longest chain rule, a proper validation mechanism (broadcasting and receiving validations), and block rewards. The purpose is to focus on the structure in which blocks connect to each other in a blockchain.

About

Creates a simple blockchain data structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages