{"id":18729670,"url":"https://github.com/designhhuang/blockchain","last_synced_at":"2025-11-12T07:30:16.614Z","repository":{"id":79164187,"uuid":"141244663","full_name":"DesignHhuang/blockchain","owner":"DesignHhuang","description":"一个简单的python编写的区块链","archived":false,"fork":false,"pushed_at":"2018-07-17T07:15:52.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T14:39:42.052Z","etag":null,"topics":["blockchain","flask","http","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/DesignHhuang.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":"2018-07-17T06:53:09.000Z","updated_at":"2018-07-17T07:16:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"10c64e2b-5e73-439b-b5f6-f31c242723ac","html_url":"https://github.com/DesignHhuang/blockchain","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/DesignHhuang%2Fblockchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesignHhuang%2Fblockchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesignHhuang%2Fblockchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesignHhuang%2Fblockchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DesignHhuang","download_url":"https://codeload.github.com/DesignHhuang/blockchain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599040,"owners_count":19665911,"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":["blockchain","flask","http","python3"],"created_at":"2024-11-07T14:28:05.341Z","updated_at":"2025-11-12T07:30:16.552Z","avatar_url":"https://github.com/DesignHhuang.png","language":"Python","readme":"# blockchain\n一个简单的python编写的区块链\n\n简单介绍：\n- 此例子中使用的PoW比较简单：找到一个数字，使得它与前一个区块的 proof 拼接成的字符串的 Hash 值以 4 个零开头（一般区块链中可能会要求有30个零，计算量就很大很大了）。\n- 一致性问题解决：默认找网络上最长的链。\n\n\n例子中的地址为节点的地址，自行配置（可使用postman测试）\n### 1.挖矿接口（http://192.168.22.135:5000/mine）\n### 2.创建新交易的接口（http://192.168.22.135:5000/transactions/new）\n### 3.查看区块链的接口（http://192.168.22.135:5000/chain）\n### 4.注册节点接口（http://192.168.22.135:5000/nodes/register）\n### 5.处理区块链节点数据一致性接口（http://192.168.22.135:5000/nodes/resolve）\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesignhhuang%2Fblockchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesignhhuang%2Fblockchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesignhhuang%2Fblockchain/lists"}