Skip to content

This is continuing project based on [blockchain-in-node], Crypto = Blockchain + Transaction + Cryptography

License

Notifications You must be signed in to change notification settings

EthereumSalon/crypto-in-node

 
 

Repository files navigation

crypto-in-node Build Status

This is continuing project based on blockchain-in-node, Crypto = Blockchain + Transaction + Cryptography

Why another repo? Because crypto is different from blockchain

  • Crypto = Blockchain + Transaction + Cryptography = Crypto
  • After building a blockchain in node, I want to build a crypto which impelement address, signatures, transactions, and broadcasting features.
  • Learning to build a crypto can help us understand how to customize blockchain state to match our application needs and really revealed the power of blockchain.

This is a lovely demo for

  • Decent Idea of how Blocks, Chain, Mining, Nodes, Transaction work with each others.
  • How to do them in Node
  • How to use sha256 to do PoW(Proof of Work)
  • Cryptography: signatures, address, provate keys work with each other
  • How pending transaction and mining actually work

Run it on your machine

$ npm clone https://github.com/amazingandyyy/crypto-in-node.git
$ npm i
$ npm run dev
// you will have
$ [socket]         listening on 5001
$ [server]         listening on 3001

<!-- example to run more nodes -->
$ HTTP_PORT=3002 P2P_PORT=5002 PEERS=ws://localhost:5001 npm run dev
$ HTTP_PORT=3003 P2P_PORT=5003 PEERS=ws://localhost:5002,ws://localhost:5003 npm run dev

Author

Andy Chen(amazingandyyy)

LICENSE

MIT

JavaScript Style Guide

About

This is continuing project based on [blockchain-in-node], Crypto = Blockchain + Transaction + Cryptography

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%