Skip to content

A simple blockchain with peers, miners and encryption

Notifications You must be signed in to change notification settings

ebaraza10/simple_blockchain

Repository files navigation

About:
A simple encryption based blockchain with the abilities to create new blocks and transactions. Miners can add confirm/add new blocks to the blockchain. Developed in NodeJS.

Highlight of main packages: nodeman: application server/for running the application jest: for tests express : for APIs crypto-js: for encryption

How to setup:

  1. Run: npm install : to install dependencies
  2. Run: node app/index.js : to fire up the main server file
  3. Consume the APIs using routes used in the app/indes.js file

NB:
You can change the: DIFFICULTY, MINE_RATE, INITIAL_BALANCE, MINING_REWARD in the config.js file P2P_PORT and PEERS in your node's environment variables(check P2P_PORT and PEERS in app/p2p-server.js)

Happy coding!

About

A simple blockchain with peers, miners and encryption

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published