Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amazingandyyy/leptin
🔗 Leptin is a PoW blockchain completely built in Nodejs.
https://github.com/amazingandyyy/leptin
bitcoin bitcoin-wallet blockchain blockchain-transaction-cryptography crypto cryptography digital-signature ethereum javascript mining nodejs opensource private-key secp256k1 signature transaction
Last synced: 4 months ago
JSON representation
🔗 Leptin is a PoW blockchain completely built in Nodejs.
- Host: GitHub
- URL: https://github.com/amazingandyyy/leptin
- Owner: amazingandyyy
- License: mit
- Created: 2018-03-27T00:29:34.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2023-06-06T22:50:24.000Z (over 1 year ago)
- Last Synced: 2024-09-29T03:43:37.233Z (4 months ago)
- Topics: bitcoin, bitcoin-wallet, blockchain, blockchain-transaction-cryptography, crypto, cryptography, digital-signature, ethereum, javascript, mining, nodejs, opensource, private-key, secp256k1, signature, transaction
- Language: JavaScript
- Homepage: https://amazingandyyy.com/leptin
- Size: 618 KB
- Stars: 59
- Watchers: 7
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Leptin 🔗
A cryptocurrency completely built in Nodejs.> This is a continuing project based on [blockchain-in-node](https://github.com/amazingandyyy/blockchain-in-node/).
## Why another repo?
> Because blockchain is different from crypto!
- After building a [blockchain](https://github.com/amazingandyyy/blockchain-in-node) 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 **revealed the power of blockchain**.## This is a lovely demo for
- Idea of how Blockschain, Mining, Nodes, Transaction work with each others.
- Network synchronizing with websocket
- Transactions(p2p sending)
- Wallet (calculating balance)
- secp256k1(encrypt/verify/sigital signatures),
- Mining(proof of work) and Rewards
- Dynamical difficulty## Run it on your machine
```
$ git clone https://github.com/amazingandyyy/leptin.git
$ npm i
$ npm run dev
// you will have
$ [socket] listening on 5001
$ [server] listening on 3001$ 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
[amazingandyyy (Andy Chen)](https://github.com/amazingandyyy)
## Resources
- [Blockchain 101 - A Visual Demo by
Anders Brownworth](https://www.youtube.com/watch?v=_160oMzblY8&t=2s)
- [Blockchain 101 - Part 2 - Public / Private Keys and Signing
by Anders Brownworth](https://www.youtube.com/watch?v=xIDL_akeras&t=184s)
- [Ethereum : Decentralized Application Design & Development by
Rajeev Sakhuja](https://www.udemy.com/ethereum-dapp/learn/v4/)
- [Ethereum and Solidity: The Complete Developer's Guide
by Stephen Grider](https://www.udemy.com/ethereum-and-solidity-the-complete-developers-guide/learn/v4/)
- [Blockchain Programming Using Javascript
](https://medium.com/@lhartikk/a-blockchain-in-200-lines-of-code-963cc1cc0e54)
- [Build a Blockchain and a Cryptocurrency from Scratch
](https://www.udemy.com/build-blockchain/learn/v4/)## Standard
[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)
[![Airbnb Javascript Style Guide](https://camo.githubusercontent.com/546205bd8f3e039eb83c8f7f8a887238d25532d5/68747470733a2f2f7261772e6769746861636b2e636f6d2f746f6d656b77692f6a6176617363726970742f393566626638622f6261646765732f6269672e737667)](https://github.com/airbnb/javascript)