{"id":34527923,"url":"https://github.com/teheperor/dvf-blockchain","last_synced_at":"2026-04-11T10:31:38.642Z","repository":{"id":40737777,"uuid":"196592089","full_name":"teheperor/dvf-blockchain","owner":"teheperor","description":"Learn Blockchains by Building One - HackerNoon.comをPython以外のプログラミング言語で写経","archived":false,"fork":false,"pushed_at":"2022-12-30T18:30:53.000Z","size":1188,"stargazers_count":1,"open_issues_count":19,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T12:16:57.800Z","etag":null,"topics":["blockchain","c-plus-plus","csharp","fsharp","go","javascript","kotlin","postman","python","rust","typescript"],"latest_commit_sha":null,"homepage":"","language":"C++","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/teheperor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-12T14:20:38.000Z","updated_at":"2023-05-28T12:19:40.000Z","dependencies_parsed_at":"2023-01-31T13:15:15.125Z","dependency_job_id":null,"html_url":"https://github.com/teheperor/dvf-blockchain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teheperor/dvf-blockchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teheperor%2Fdvf-blockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teheperor%2Fdvf-blockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teheperor%2Fdvf-blockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teheperor%2Fdvf-blockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teheperor","download_url":"https://codeload.github.com/teheperor/dvf-blockchain/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teheperor%2Fdvf-blockchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31677813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"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","c-plus-plus","csharp","fsharp","go","javascript","kotlin","postman","python","rust","typescript"],"created_at":"2025-12-24T05:24:36.576Z","updated_at":"2026-04-11T10:31:38.634Z","avatar_url":"https://github.com/teheperor.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dvf-blockchain\n\n[Learn Blockchains by Building One \\- HackerNoon\\.com](https://hackernoon.com/learn-blockchains-by-building-one-117428612f46)をPython以外のプログラミング言語で写経した。  \n\n## Description\n\nはじめにC#で写経してみたら、コード量が少ないわりにWenアプリケーションフレームワーク、HTTPクライアント、JSON、ハッシュ生成とかいろいろな要素が入っていてプログラミング言語や開発環境やエコシステムの学習のいい題材になると思った。  \nそれでほかのプログラミング言語でもやってみようと思いC#、C++、JavaScript、Go、TypeScript、Rust、Kotlin、F#で写経した。  \n\n基本的な方針は[オリジナルのPythonのコード](https://github.com/dvf/blockchain)の設計、構造、名前、エラー処理、処理結果をできるだけ維持して写経すること。  \n処理結果、特にプルーフオブワーク処理の結果については異なるプログラミング言語による実装間での互換性は維持しない。理由はタイムスタンプの精度（桁数）やJSONのフォーマットを合わせるのが面倒くさいから。  \nもともとのコードがブロックチェーンのエッセンスの説明のためのものでエラー処理は雑であり写経でも同程度にした。  \nそれぞれのプログラミング言語や開発環境やエコシステムの学習を重視する。  \n\n- C# [blockchain-netfx](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-netfx)\n  - 最初に書いたC#版。\n- C# [blockchain-netcore](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-netcore)\n  - [blockchain-netfx](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-netfx)を.NET Coreのプロジェクトにして更新した。\n- C++ [blockchain-cpp-crow](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-cpp-crow)\n  - はじめにC++で書いたもの。\n- C++ [blockchain-cpp](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-cpp)\n  - [blockchain-cpp-crow](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-cpp-crow)で使用している[ipkn/crow](https://github.com/ipkn/crow)の開発が止まっていることと、ほかのものも試してみたかったのでWebアプリケーションフレームワークを[cpp-httplib](https://github.com/yhirose/cpp-httplib)に変更した。\n  - [Boost](https://www.boost.org/)への依存をなくして、UUID V4生成には[sole](https://github.com/r-lyeh-archived/sole)を使うようにした。\n- JavaScript(Node.js) [blockchain-js](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-js)\n- Go [blockchain-go](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-go)\n- TypeScript [blockchain-ts](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-ts)\n- Rust [blockchain-rust](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-rust)\n- Kotlin [blockchain-kotlin](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-kotlin)\n- F# [blockchain-fsharp](https://github.com/teheperor/dvf-blockchain/tree/master/blockchain-fsharp)\n\n## Test\n\n[postman](https://www.getpostman.com/)の[テスト・コレクション](https://github.com/teheperor/dvf-blockchain/tree/master/test/postman)とPythonの[テスト](https://github.com/teheperor/dvf-blockchain/tree/master/test/python)を書いた。  \nどちらも同じ内容で2つのノードにアクセスして正常系の動作だけを一通りテストする。  \n\n## License\n\n[MIT](https://github.com/tcnksm/tool/blob/master/LICENCE)\n\n## References\n- [Learn Blockchains by Building One \\- HackerNoon\\.com](https://hackernoon.com/learn-blockchains-by-building-one-117428612f46)\n- [dvf/blockchain: A simple Blockchain in Python](https://github.com/dvf/blockchain)\n- [ブロックチェ－ンを構築しながら学ぶ \\| POSTD](https://postd.cc/learn-blockchains-by-building-one/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteheperor%2Fdvf-blockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteheperor%2Fdvf-blockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteheperor%2Fdvf-blockchain/lists"}