{"id":34638979,"url":"https://github.com/newham/fabric-iot","last_synced_at":"2025-12-24T17:14:02.162Z","repository":{"id":63572742,"uuid":"225595868","full_name":"newham/fabric-iot","owner":"newham","description":"fabric-iot is a Blockchain Based Decentralized Access Control System in IoT","archived":false,"fork":false,"pushed_at":"2023-10-02T06:17:14.000Z","size":191,"stargazers_count":73,"open_issues_count":4,"forks_count":31,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-19T00:35:14.731Z","etag":null,"topics":["chaincode","hyperledger-fabric","iot"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/newham.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2019-12-03T10:45:28.000Z","updated_at":"2024-04-23T06:33:23.000Z","dependencies_parsed_at":"2022-11-21T15:46:22.940Z","dependency_job_id":null,"html_url":"https://github.com/newham/fabric-iot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/newham/fabric-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newham%2Ffabric-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newham%2Ffabric-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newham%2Ffabric-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newham%2Ffabric-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newham","download_url":"https://codeload.github.com/newham/fabric-iot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newham%2Ffabric-iot/sbom","scorecard":{"id":681826,"data":{"date":"2025-08-11","repo":{"name":"github.com/newham/fabric-iot","commit":"bc73b8eed37b5967072943752237b85a38c4617e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}}]},"last_synced_at":"2025-08-21T23:26:15.143Z","repository_id":63572742,"created_at":"2025-08-21T23:26:15.144Z","updated_at":"2025-08-21T23:26:15.144Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005414,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["chaincode","hyperledger-fabric","iot"],"created_at":"2025-12-24T17:13:59.750Z","updated_at":"2025-12-24T17:14:02.154Z","avatar_url":"https://github.com/newham.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fabric-iot is a Blockchain Based Decentralized Access Control System in IoT \n[中文版](/README.md)  \n\u003e **WHAT WE HAVE**:  \n\u003e 1.Using ABAC as permission control method，and chaincode is writed with golang.  \n\u003e 2.The Hyperledger Fabric network is easily started with a complete shell script.  \n\u003e 3.Detailed instructions, easy to understand.    \n\n## 0.Environment \u0026 Preparation\n### 0.1.Operation System\nOS|VETSION\n-|-\nmac os|\u003e=10.13\nubuntu|16.04  \n\n### 0.2.Software：  \nSDK|VERSION\n-|-\ngit|\u003e=2.0.0\ndocker|\u003e=19\ndocker-compose|\u003e=1.24\nnode|\u003e=12\ngolang|\u003e=1.10\nHyperledger Fabric|\u003e=1.4\n\n### 0.3.Download src\n```go\ngo get github.com/newham/fabric-iot\n```\n\n## 1.Directory Structure\n\n|-chaincode....................................chaincode folder  \n|--go..........................................chaincode in golang  \n|-client.......................................client of blockchain  \n|--nodejs......................................code in nodejs of client  \n|-network......................................fabric-iot network module folder,genesis.block  \n|--channel-artifacts...........................channel comfig folder  \n|--compose-files...............................docker-compose folder  \n|--conn-conf...................................connection config of docker  \n|--crypto-config...............................certs folder    \n|--scripts.....................................shell scrpits of cli  \n|--ccp-generate.sh.............................generate certs and blockchain config shell  \n|--ccp-template.json...........................json template of connection config  \n|--ccp-template.yaml...........................template of connection config  \n|--clear-docker.sh.............................clearn docker images  \n|--configtx.yaml...............................config of configtxgen  \n|--crypto-config.yaml..........................config of ccp-generate.sh  \n|--down.sh.....................................shutdown the network  \n|--env.sh......................................environment of other shell scripts  \n|--generate.sh.................................init config  \n|--install-cc.sh...............................install chaincode  \n|--rm-cc.sh....................................delete chaincode  \n|--up.sh.......................................start network  \n## 2.Build Network of Fabric\n### 2.1.Generate cers and configs\nopen folder  \n```shell\ncd network\n```\nrun  \n```shell\n./generate.sh\n```\ncers are saved to `crypto-config`\n### 2.2.Start Network\n```shell\n./up.sh\n```\n### 2.3.Install Chaincode\n```shell\n./cc-install.sh\n```\n### 2.4.Upgrade Chaincode\n```shell\n./cc-upgrade.sh [new_version]\n```\n*chaincode is saved to `/chaincode/go`，we only support write code with golang now.\n### 2.5.Close Network\n```shell\n./down.sh\n```\n*all the stoped docker containers or images will be delete ，be carefull before you do this\n\n## 3.Interacting with the Blockchain\n### 3.1.Init Code\nenter the foder   \n*we have only a client writed by nodejs  \n```shell\ncd client/nodejs\n```\ninstall modules of this program\n```shell\nnpm install\n```\n### 3.2.Create Users\ncreate admin  \n```shell\nnode ./enrollAdmin.js\n```\ncreate user by admin\n```shell\nnode ./registerUser.js\n```\n### 3.3.Run Chaincode\n```shell\nnode ./invoke.js [chaincode_name] [function_name] [args]\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n©2019 liuhan[liuhanshmtu@163.com] all rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewham%2Ffabric-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewham%2Ffabric-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewham%2Ffabric-iot/lists"}