build-simple-blockchain-in-node

1.0.3 • Public • Published

build-simple-blockchain-in-node

This is a simlest working Bitcoin Blockchain using Javascript/Node.JS. all blocks are stored in memory not in file system so its not permanent. this is part of my learning curve and i keep improving this. any contribution and suggestion will be appreciated.

Features implemented -

Add Peer

Broadcast peer

Add transaction

Broadcast transaction

Proof of work

Block validation

Mine the block

Broadcast the block

Features to implement in next version-

Consensus algorithm using Longest chain
using the same genesis block created by master node

How to run-

clone the project
npm install
create multiple node using following command
node server.js 3000 
node server.js 3001

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i build-simple-blockchain-in-node

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

24.3 kB

Total Files

11

Last publish

Collaborators

  • anshuman.singh