Skip to content

Toy blockchain-based cryptocurrency, implemented using Node.js

Notifications You must be signed in to change notification settings

meredian/toychain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toychain

Toy blockchain-based cryptocurrency, build on Node.js. Implements Proof of Work model for hashing and UXTO model for transactions. Communicate over WebSocket.

For educational purposes only.

It has very simple API, check app/index.js to see.

Install

Prerequisites: node 9.x

npm install

Run

Start several instances to look how they communicate.

npm start # First terminal
HTTP_PORT=3002 P2P_PORT=5002 PEERS=ws://localhost:5001 npm start # Second terminal
HTTP_PORT=3003 P2P_PORT=5003 PEERS=ws://localhost:5001,ws://localhost:5002 npm start # Third terminal

About

Toy blockchain-based cryptocurrency, implemented using Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published