[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10581":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},10581,"SimpleCoin","cosme12\u002FSimpleCoin","cosme12","Just a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python as educational material. In other words, a simple Bitcoin clone.","",null,"Python",1791,394,84,20,0,55.79,"MIT License",false,"master",true,[23,24,25,26],"bitcoin","blockchain","cryptocurrency","python","2026-06-12 04:00:51","# SimpleCoin\n\n\n\u003Ca href=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fcosme12\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fassets\u002Fimg\u002Fcustom_images\u002Forange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" >\u003C\u002Fa>\n\nJust a really simple, insecure and incomplete implementation of a blockchain for a cryptocurrency made in Python. The goal of this project is to make a working blockchain currency, keeping it as simple as possible and to be used as educational material.\n\n>This project is just being made for fun. If you want to make your own cryptocurrency you should probably take a look at the [Bitcoin Repository](https:\u002F\u002Fgithub.com\u002Fbitcoin\u002Fbitcoin).\n\n\n## What is a blockchain?\n\nTaking a look at the [Bitcoin organization wiki website](https:\u002F\u002Fen.bitcoin.it\u002Fwiki\u002FMain_Page) we can find this definition:\n\n>A block chain is a transaction database shared by all nodes participating in a system based on the Bitcoin protocol. A full copy of a currency's block chain contains every transaction ever executed in the currency. With this information, one can find out how much value belonged to each address at any point in history.\n\nIn simpler terms, blockchain can be seen as a distributed ledger recording each transaction in the network. Each transaction is identified by the public key of the block which is a hash function of the private key. The distributed ledger makes data manipulation in the blockchain difficult, nearly impossible. \n\nYou can find more information in the original [Bitcoin Paper](https:\u002F\u002Fbitcoin.org\u002Fbitcoin.pdf).\n\n## How to run it\n\nFirst, install ```requirements.txt```.\n\n```\npip install -r requirements.txt\n```\n\nThen you have 2 options:\n\n- Run ```miner.py``` to become a node and start mining\n- Run ```wallet.py``` to become a user and send transactions (to send transactions you must run a node, in other words, you must run ```miner.py``` too)\n\n> Important: DO NOT run it in the python IDLE, run it in your console. The ```miner.py``` uses parallel processing that doesn't work in the python IDLE.\n\n## How this code work?\n\nThere are 2 main scripts:\n\n- ```miner.py```\n- ```wallet.py```\n\n### Miner.py\n\nThis file is probably the most important. Running it will create a node (like a server). From here you can connect to the blockchain and process transactions (that other users send) by mining. As a reward for this work, you recieve some coins. The more nodes exist, the more secure the blockchain gets.\n\n```miner.py``` has 2 processes running in parallel:\n\n1. The first process takes care of mining, updating new blockchains and finding the proof of work.\n\n2. The second process runs the flask server where peer nodes and users can connect to ask for the entire blockchain or submit new transactions.\n\n> Parallel processes don't run in python IDLE, so make sure you are running it from the console.\n\n![miner](https:\u002F\u002Fk60.kn3.net\u002F3\u002FB\u002F3\u002FF\u002FE\u002FC\u002F013.png)\n\nThe following flowchart provides a simple , high-level understanding of what the miner does\n![MinerFlowchart](images\u002Fflowchart.png)\n\n### Wallet.py\n\nThis file is for those who don't want to be nodes but simple users. Running this file allows you to generate a new address, send coins and check your transaction history (keep in mind that if you are running this in a local server, you will need a \"miner\" to process your transaction).\nWhen creating a wallet address, a new file will be generated with all your security credentials. You are supposed to keep it safe.\n\n![wallet](https:\u002F\u002Fk60.kn3.net\u002F6\u002FF\u002FE\u002F3\u002F8\u002F2\u002F887.png)\n\n\n## Contribution\n\nAnybody is welcome to collaborate in this project. Feel free to push any pull request (even if you are new to coding). See ```CONTRIBUTING.md``` to learn how to contribute.\n\nNote: the idea of this project is to build a **really simple** blockchain system, so make sure all your code is easy to read (avoid too much code in 1 line) and don't introduce complex updates if they are not critical. In other words, keep it simple.\n\n\n## Disclaimer\n\nBy no means this project should be used for real purposes, it lacks security and may contain several bugs.\n","SimpleCoin 是一个使用 Python 编写的简单、不安全且不完整的加密货币区块链实现，旨在作为教育材料。该项目的核心功能包括通过运行 `miner.py` 创建节点并进行挖矿以处理交易，以及通过 `wallet.py` 发送交易。技术特点上，它利用了 Flask 服务器来支持节点间的通信，并采用了并行处理技术以提高效率。尽管 SimpleCoin 不适合实际的加密货币开发（因其安全性不足），但对于希望了解区块链基本原理及其工作方式的学习者来说，这是一个很好的起点。",2,"2026-06-11 03:29:13","top_topic"]