Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1 KB

README.md

File metadata and controls

32 lines (20 loc) · 1 KB

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!