[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10496":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":17,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":32,"discoverSource":33},10496,"blockchain-demo","anders94\u002Fblockchain-demo","anders94","A web-based demonstration of blockchain concepts.","",null,"Pug",5651,2785,248,2,0,1,6,3,41,"MIT License",false,"master",true,[26,27,28],"bitcoin","blockchain","blockchain-technology","2026-06-12 02:02:22","# Blockchain Demo\nA web-based demonstration of blockchain concepts.\n\n[![Blockchain 101 - Demo](https:\u002F\u002Fimg.youtube.com\u002Fvi\u002F_160oMzblY8\u002F0.jpg)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=_160oMzblY8)\n\nThis is a very basic visual introduction to the concepts behind a blockchain. We introduce \nthe idea of an immutable ledger using an interactive web demo that is available here:\n\nhttp:\u002F\u002Fandersbrownworth.com\u002Fblockchain\u002F\n\n## Setup\nGet the code:\n\n```\ngit clone https:\u002F\u002Fgithub.com\u002Fanders94\u002Fblockchain-demo.git\n```\n\nInstall dependencies:\n\n```\ncd blockchain-demo\nnpm install\n```\nRun the server:\n\n```\nnpm start\n```\n\nOR\n\n```\n.\u002Fbin\u002Fwww\n```\n#For windows: if the above command didn't work, use this (make sure you have Node.js installed in your system):\n```\nnode .\u002Fbin\u002Fwww      \n```\n\nPoint a web browser at the demo:\n\n```\nhttp:\u002F\u002Flocalhost:3000\n```\n\n## Setup using Docker\n\nGet the code:\n\n```\ngit clone https:\u002F\u002Fgithub.com\u002Fanders94\u002Fblockchain-demo.git\n```\n\nRun the Docker setup:\n\n```\ncd blockchain-demo\ndocker-compose up -d\n```\n\nPoint a web browser at the demo:\n\n```\nhttp:\u002F\u002Flocalhost:3000\n```\n\n## Optional Configuration\nYou can adjust the \"number of zeros\" required by the demo by editing the first two lines of\n`public\u002Fjavascripts\u002Fblockchain.js`.\n\nBecause there are 16 possible characters in a hex value, each time you increment the difficulty\nby one you make the puzzle 16 times harder. In my testing, a difficulty of 6 requires a\nmaximumNonce well over 500,000,000.\n\nIf you adjust the difficulty above 4, blocks will show up as not mined because the demo data\nassumes 4 zeros for a signed block. For example, on the `http:\u002F\u002Flocalhost:3000\u002Fblock` page\nwith a difficulty of 6, the first nonce that works is `8719932` yielding a hash of\n`000000669445c22167511857d8f3b822b331c3342f25dfdcb326e35c1a7aa267`. This gets out of hand fairly\nquickly though. Here's some time estimates at the various thresholds.\n\n|digits|nonce|time estimate|\n|------|-------|-------------|\n|4|500,000|15 minutes\n|5|8,000,000|4 hours\n|6|128,000,000|3 days\n|7|2,048,000,000|a month\n|8|32,768,000,000|2 years\n|9|524,288,000,000|30 years\n|10|8,388,608,000,000|481 years\n|11|134,217,728,000,000|7,690 years\n|12|2,147,483,648,000,000|123,036 years\n|13|34,359,738,368,000,000|1,968,581 years\n|14|549,755,813,888,000,000|31,497,291 years\n|15|8,796,093,022,208,000,000|503,956,662 years\n\nIn the production bitcoin blockchain, block `458,091` has the hash digest\n`00000000000000000000011246f099d94f91628d71c9d75ad2f9a06e2beb7e92`. That's 21 zeros in a row!\nThat one block would take this software approximately 8,454,989,768,407,765 years to mine.\n\n### Public Private Key Demo\n\nThe 2nd part of the 101 session:\n* https:\u002F\u002Fgithub.com\u002Fanders94\u002Fpublic-private-key-demo\n\n## Send Thanks\n\n![](public\u002Fimages\u002Fqr.png)\n\nBitcoin gratefully accepted: `1K3NvcuZzVTueHW1qhkG2Cm3viRkh2EXJp`\n","这是一个基于Web的区块链概念演示项目。它通过一个交互式的网页来介绍不可篡改账本的核心理念，用户可以直观地了解区块如何被创建、验证以及链接成链的过程。项目使用Pug模板语言构建，并提供了Docker和Node.js两种部署方式，使得启动环境配置变得简单快捷。此外，该项目还允许自定义挖矿难度，以展示不同难度下达成共识所需的时间成本差异。非常适合用于教育场景，帮助初学者理解区块链技术的基本原理及其工作流程。","2026-06-11 03:28:50","top_topic"]