1.0.7 â€ĸ Published 6 years ago

coin-ts v1.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Demo

Connect

connect

Mining

mining

Payment

payment

🎉 Features

  • 💰 Wallet with public and private key.
  • đŸ’ŗ Make Payments between wallets.
  • 🔑 Transactions are signed with the wallet's private key.
  • 🔗 Blocks with index, hash, data, transactions, and timestamp.
  • ⛏ Proof-of-work implementation.
  • ⛓ In-memory JavaScript array to store the blockchain.
  • ✅ Block & Transaction integrity validation.
  • 📡 Decentralized and distributed peer-to-peer communication.
  • ✨ Minimal implementation in 900 lines of code.

đŸ“Ļ Installation

To install this application, you'll need Node.js 7+ (which comes with npm) installed on your computer. From your command line:

Source (recommended)

You'll need Git to run the project from source. From your command line:

# Clone this repository
$ git clone https://github.com/seanjameshan/coin-cli

# Go into the repository
$ cd coin-cli

# Install dependencies
$ npm install

# Run the app
$ npm start

NPM

$ npm install ts-node -g
$ npm install coin-ts -g
$ coin

🕹ī¸ Usage

CommandAliasDescriptionExample
open oOpen to accept incoming connections.open 5000
connect cConnect to a new peer with and connect localhost 5000
blockchainbcSee the current state of the blockchain.
peerspGet the list of connected peers.
mine addressmMine a new block with rewards going to optional address.mine or mine xxx...
transactionstxSee unconfirmed transactions that can be mined.
wallet wCreate a new wallet with wallet mypassword
keykGet your public key
pay pMake payment to with and using wallet pay xxx... 10 5 mypassword
balance addressbBalance of optional balance or balance xxx...
help command...Provides help for a given commandhelp balance or help
exitExits application.
1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago