{"id":24376234,"url":"https://github.com/jollen/iot-blockchain-workshop","last_synced_at":"2026-03-15T15:45:55.705Z","repository":{"id":142299546,"uuid":"83761822","full_name":"jollen/iot-blockchain-workshop","owner":"jollen","description":"BTOSS: Blockchain Technology \u0026 Open Source Solutions","archived":false,"fork":false,"pushed_at":"2017-03-04T12:18:43.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-12T12:29:47.266Z","etag":null,"topics":["blockchain","iot"],"latest_commit_sha":null,"homepage":"http://btoss.kktix.cc/events/e68299ed-da105a","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jollen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-03T05:40:53.000Z","updated_at":"2017-03-04T03:55:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"540c0325-7a82-4837-a073-569fd3e9725c","html_url":"https://github.com/jollen/iot-blockchain-workshop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jollen/iot-blockchain-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollen%2Fiot-blockchain-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollen%2Fiot-blockchain-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollen%2Fiot-blockchain-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollen%2Fiot-blockchain-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jollen","download_url":"https://codeload.github.com/jollen/iot-blockchain-workshop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jollen%2Fiot-blockchain-workshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30545510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T15:03:43.933Z","status":"ssl_error","status_checked_at":"2026-03-15T15:03:37.630Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blockchain","iot"],"created_at":"2025-01-19T05:59:27.688Z","updated_at":"2026-03-15T15:45:55.692Z","avatar_url":"https://github.com/jollen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flowchain on MediaTek Linkt It Smart 7688\n\n* Flowchain 是物聯網專用區塊鏈（IoT Blockchain）\n* 在這次的體驗課程裡，將使用 MediaTek Linkt It Smart 7688 物聯網開發板，來驗體 IoT Blockchain 的幾個玩法\n\n## 準備工作\n\n* 請自備 Notebook 並安裝 Node.js v4.5 以上環境\n* 能看懂基本的 JavaScript 語法 (optional)\n\n## 安裝步驟\n\n下載 Flowchain 系統：\n\n```\n$ git clone https://github.com/jollen/flowchain-core.git\n$ npm install\n$ export HOST=10.186.110.91\n$ export PORT=8000\n$ export DEBUGSERVER=10.186.110.91\n```\n修改 node.js 主程式：\n\n```\n// Start the server\nserver.start({\n    onstart: onstart,\n    onmessage: onmessage,\n    onquery: onquery,\n    ondata: ondata,\n    join: {\n        address: '10.186.110.91',\n        port: '8000'\n    }\n});\n```\n執行程式：\n\n```\n$ node node.js\n```\n\n教室現場會準備 2 個 peer-to-peer 的 node，請修改 ```join``` 參數，加入任一個 peer node 即可。\n\n## 挖礦\n\nFlowchain 具備一個專為 IoT device 重新設計的挖嚝系統，這個系統採用 Mining-based Proof-of-Stake 機制；在資料的交易過程中，可以撰寫一份 Smart contract 來改變挖礦難度。\n\n### Smart Contracts\n\nFlowchain 底層有一個 Lua VM；可以使用 Lua 來撰寫 Smart contract。根據 Flowchain 的技術白皮書，來調整 Probability density 的值。撰寫一份 Smart contract 來 override 機率分佈函數：\n\n```\nfunction distributions.norm.pdf(x, mu, sigma)\n    return cephes.exp(-.5 * (x-mu)*(x-mu)/(sigma*sigma)) / math.sqrt(2.0*math.pi*sigma*sigma)\nend\n```\n\n## Resources\n\n* Flowchain, https://flowchain.io\n* Top 10 Blockchain Companies to Watch in 2017, http://www.disruptordaily.com/top-10-blockchain-companies-to-watch-in-2017/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjollen%2Fiot-blockchain-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjollen%2Fiot-blockchain-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjollen%2Fiot-blockchain-workshop/lists"}