Skip to content

shivaprasad201/simpleblockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Application to demonstrate Blockchains.

Demonstrates the track of transactions on blocks.

Uses sha256 Algorithm to encrypt the transaction blocks.

Pre-requisites:

Setup:

  1. Clone the repository.
  2. Build the package go build
  3. Run the package ./simpleblockchain

Usage:

  • Run the server as mentioned above. [Setup:3]

  • Hit localhost:[port] on your browser/postman or even curl to get json data of the genesis block.

    Alt text

  • Add some transactions. For this you can use postman or send a post request using curl.

    Alt text

  • Now get all the transactions.

    Alt text

    Alt text

  • Note that the blocks are created for each transaction and contains the hashed data of the previous blocks.

  • Enjoy!

About

Demonstration of a simple blockchain transaction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages