/sample-blockchain-

sample blockchain in javascript languages

sample-blockchain-on-JS

sample blockchain in javascript languages

  1. Setup environment Install Nodejs(latest version preferrablly) Initialize Nodejs runtime (npm init) Install SHA256 module (npm install sha256)
  2. Block data structure: The focus is on building blosks with a set characteristis
  3. Blockchain Object: We create a Constructor Create new Block Get latest Block Make new Transaction Hash Block Proof of Work
  4. Run Blockchain: run the block in the cmd prompt with node test/blockchain.js