{"id":14980064,"url":"https://github.com/amazingandyyy/leptin","last_synced_at":"2025-10-28T20:32:28.231Z","repository":{"id":82578921,"uuid":"126906226","full_name":"amazingandyyy/leptin","owner":"amazingandyyy","description":"🔗  Leptin is a PoW blockchain completely built in Nodejs.","archived":false,"fork":false,"pushed_at":"2023-06-06T22:50:24.000Z","size":633,"stargazers_count":59,"open_issues_count":0,"forks_count":14,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-02-01T18:11:28.022Z","etag":null,"topics":["bitcoin","bitcoin-wallet","blockchain","blockchain-transaction-cryptography","crypto","cryptography","digital-signature","ethereum","javascript","mining","nodejs","opensource","private-key","secp256k1","signature","transaction"],"latest_commit_sha":null,"homepage":"https://amazingandyyy.com/leptin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amazingandyyy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-03-27T00:29:34.000Z","updated_at":"2024-06-22T21:21:38.000Z","dependencies_parsed_at":"2023-10-20T16:45:00.513Z","dependency_job_id":"5fa2f5e0-fd93-4dcd-83b1-04c992799394","html_url":"https://github.com/amazingandyyy/leptin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingandyyy%2Fleptin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingandyyy%2Fleptin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingandyyy%2Fleptin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amazingandyyy%2Fleptin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amazingandyyy","download_url":"https://codeload.github.com/amazingandyyy/leptin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238720191,"owners_count":19519307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bitcoin-wallet","blockchain","blockchain-transaction-cryptography","crypto","cryptography","digital-signature","ethereum","javascript","mining","nodejs","opensource","private-key","secp256k1","signature","transaction"],"created_at":"2024-09-24T14:01:14.388Z","updated_at":"2025-10-28T20:32:22.734Z","avatar_url":"https://github.com/amazingandyyy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nLeptin 🔗\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\nA cryptocurrency completely built in Nodejs.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/amazingandyyy/leptin/blob/master/LICENSE\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/License-MIT-green.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/amazingandyyy/leptin/pulls\"\u003e\n      \u003cimg src=\"https://camo.githubusercontent.com/d4e0f63e9613ee474a7dfdc23c240b9795712c96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e This is a continuing project based on [blockchain-in-node](https://github.com/amazingandyyy/blockchain-in-node/).\n\n## Why another repo? \n\n\u003e Because blockchain is different from crypto!\n\n- 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.\n- 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**.\n\n## This is a lovely demo for\n\n- Idea of how Blockschain, Mining, Nodes, Transaction work with each others.\n- Network synchronizing with websocket\n- Transactions(p2p sending)\n- Wallet (calculating balance)\n- secp256k1(encrypt/verify/sigital signatures), \n- Mining(proof of work) and Rewards\n- Dynamical difficulty\n\n## Run it on your machine\n\n```\n$ git clone https://github.com/amazingandyyy/leptin.git\n$ npm i\n$ npm run dev\n// you will have\n$ [socket]         listening on 5001\n$ [server]         listening on 3001\n\n\u003c!-- example to run more nodes --\u003e\n$ HTTP_PORT=3002 P2P_PORT=5002 PEERS=ws://localhost:5001 npm run dev\n$ HTTP_PORT=3003 P2P_PORT=5003 PEERS=ws://localhost:5002,ws://localhost:5003 npm run dev\n```\n\n## Author\n\n[amazingandyyy (Andy Chen)](https://github.com/amazingandyyy)\n\n## Resources\n\n- [Blockchain 101 - A Visual Demo by \nAnders Brownworth](https://www.youtube.com/watch?v=_160oMzblY8\u0026t=2s)\n- [Blockchain 101 - Part 2 - Public / Private Keys and Signing\n by Anders Brownworth](https://www.youtube.com/watch?v=xIDL_akeras\u0026t=184s)\n- [Ethereum : Decentralized Application Design \u0026 Development by \nRajeev Sakhuja](https://www.udemy.com/ethereum-dapp/learn/v4/)\n- [Ethereum and Solidity: The Complete Developer's Guide\n by Stephen Grider](https://www.udemy.com/ethereum-and-solidity-the-complete-developers-guide/learn/v4/)\n- [Blockchain Programming Using Javascript\n](https://medium.com/@lhartikk/a-blockchain-in-200-lines-of-code-963cc1cc0e54)\n- [Build a Blockchain and a Cryptocurrency from Scratch\n](https://www.udemy.com/build-blockchain/learn/v4/)\n\n\n## Standard\n\n[![JavaScript Style Guide](https://cdn.rawgit.com/standard/standard/master/badge.svg)](https://github.com/standard/standard)\n\n[![Airbnb Javascript Style Guide](https://camo.githubusercontent.com/546205bd8f3e039eb83c8f7f8a887238d25532d5/68747470733a2f2f7261772e6769746861636b2e636f6d2f746f6d656b77692f6a6176617363726970742f393566626638622f6261646765732f6269672e737667)](https://github.com/airbnb/javascript)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingandyyy%2Fleptin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famazingandyyy%2Fleptin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famazingandyyy%2Fleptin/lists"}