{"id":37160765,"url":"https://github.com/datachainlab/fabric-sdk-go","last_synced_at":"2026-01-14T19:08:10.415Z","repository":{"id":57532880,"uuid":"272904987","full_name":"datachainlab/fabric-sdk-go","owner":"datachainlab","description":null,"archived":false,"fork":true,"pushed_at":"2021-10-20T06:24:54.000Z","size":13739,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T03:33:22.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://wiki.hyperledger.org/display/fabric","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hyperledger/fabric-sdk-go","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datachainlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null}},"created_at":"2020-06-17T07:17:40.000Z","updated_at":"2021-01-05T03:44:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/datachainlab/fabric-sdk-go","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/datachainlab/fabric-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datachainlab","download_url":"https://codeload.github.com/datachainlab/fabric-sdk-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Ffabric-sdk-go/sbom","scorecard":{"id":324303,"data":{"date":"2025-08-11","repo":{"name":"github.com/datachainlab/fabric-sdk-go","commit":"88e5e474af41f8d8f26cf11634442e5407eefe48"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"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":"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":"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":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: containerImage not pinned by hash: test/fixtures/softhsm2/Dockerfile:9","Warn: goCommand not pinned by hash: test/scripts/chaincoded.sh:20","Warn: goCommand not pinned by hash: test/scripts/chaincoded.sh:22","Info:   4 out of   6 goCommand dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"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"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0322 / GHSA-cg3q-j54f-5p7p","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2022-0536 / GHSA-39qc-96h7-956f / GHSA-hgr8-6h9x-f7q9","Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T02:06:26.671Z","repository_id":57532880,"created_at":"2025-08-18T02:06:26.671Z","updated_at":"2025-08-18T02:06:26.671Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-14T19:08:09.442Z","updated_at":"2026-01-14T19:08:10.398Z","avatar_url":"https://github.com/datachainlab.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperledger Fabric Client SDK for Go\n\n[![Release](https://img.shields.io/github/release/hyperledger/fabric-sdk-go.svg?style=flat-square)](https://github.com/hyperledger/fabric-sdk-go/releases/latest)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://raw.githubusercontent.com/hyperledger/fabric-sdk-go/master/LICENSE)\n[![GoDoc](https://godoc.org/github.com/hyperledger/fabric-sdk-go?status.svg)](https://godoc.org/github.com/hyperledger/fabric-sdk-go)\n\n[![Build Status](https://dev.azure.com/hyperledger/fabric-sdk-go/_apis/build/status/hyperledger.fabric-sdk-go?branchName=master)](https://dev.azure.com/hyperledger/fabric-sdk-go/_build/latest?definitionId=19\u0026branchName=master)\n[![codecov](https://codecov.io/gh/hyperledger/fabric-sdk-go/branch/master/graph/badge.svg)](https://codecov.io/gh/hyperledger/fabric-sdk-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hyperledger/fabric-sdk-go)](https://goreportcard.com/report/github.com/hyperledger/fabric-sdk-go)\n\nThis SDK enables Go developers to build solutions that interact with [Hyperledger Fabric](http://hyperledger-fabric.readthedocs.io/en/latest/).\n\n## Getting started\n\nObtain the client SDK packages for Fabric and Fabric CA.\n\n```bash\ngo get github.com/hyperledger/fabric-sdk-go\n```\n\nYou're good to go, happy coding! Check out the examples for usage demonstrations.\n\n### Documentation\n\nSDK documentation can be viewed at [GoDoc](https://godoc.org/github.com/hyperledger/fabric-sdk-go).\n\nThe packages intended for end developer usage are within the pkg/client folder along with the main SDK package (pkg/fabsdk).\n\nIf you wish to use the Fabric 'Gateway' programming model, then the API is in the pkg/gateway folder.\n\n### Examples\n\n- [E2E Test](test/integration/e2e/end_to_end.go): Basic example that uses SDK to query and execute transaction\n- [Ledger Query Test](test/integration/pkg/client/ledger/ledger_queries_test.go): Basic example that uses SDK to query a channel's underlying ledger\n- [Multi Org Test](test/integration/e2e/orgs/multiple_orgs_test.go): An example that has multiple organisations involved in transaction\n- [Dynamic Endorser Selection](test/integration/pkg/fabsdk/provider/sdk_provider_test.go): An example that uses dynamic endorser selection (based on chaincode policy)\n- [E2E PKCS11 Test](test/integration/e2e/pkcs11/e2e_test.go): E2E Test using a PKCS11 crypto suite and configuration\n- [CLI](https://github.com/securekey/fabric-examples/tree/master/fabric-cli/): An example CLI for Fabric built with the Go SDK.\n- More examples needed!\n\n### Community\n\n- Discussion is happening in [Rocket Chat](https://chat.hyperledger.org/channel/fabric-sdk-go).\n- Issue tracking is handled in [Jira](https://jira.hyperledger.org/secure/RapidBoard.jspa?projectKey=FAB\u0026rapidView=7\u0026view=planning).\n\n## Client SDK\n\n### Current Compatibility\nThe SDK's integration tests run against three tagged Fabric versions:\n- prev (currently v1.4.7)\n- stable (currently v2.2.0)\n- prerelease (currently disabled)\n\nAdditionally for development purposes integration tests also run against the devstable Fabric version as needed.\n\n### Retired versions\nWhen the 'prev' code level is updated, the last tested fabric-sdk-go commit or tag is listed below.\n\n- fabric v1.3: ac70276\n- fabric v1.2: 5e291d3\n- fabric v1.1: f7ae259\n- fabric v1.0: 5ac5226\n\n### Running the test suite\n\nObtain the client SDK packages for Fabric and Fabric CA.\n\n```bash\ngit clone https://github.com/hyperledger/fabric-sdk-go.git\n```\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go/\n\n# Optional - Automatically install Go tools used by test suite\n# make depend\n\n# Running test suite\nmake\n\n# Clean test suite run artifacts\nmake clean\n```\n\n### Go Tags\nThe following Go tags can be supplied to enable additional functionality:\n- experimental: includes support for experimental features.\n\n## Contributing to the Go SDK\n\nIf you want to contribute to the Go SDK, please run the test suite and submit patches for review. For general guidelines, please refer to the Fabric project's [contribution page](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html).\n\nYou need:\n\n- Go 1.14\n- Make\n- Docker\n- Docker Compose\n- Git\n- gobin (GO111MODULE=off go get -u github.com/myitcv/gobin)\n- libtool\n\nNotes:\n\n- Dependencies are handled using [Go modules](https://github.com/golang/go/wiki/Modules).\n\n### Running a portion of the test suite\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go/\n\n# Optional - Automatically install Go tools used by test suite\n# make depend\n\n# Optional - Running only code checks (linters, license, spelling, etc)\n# make checks\n\n# Running all unit tests and checks\nmake unit-test\n\n# Running all integration tests\nmake integration-test\n```\n\n### Running package unit tests manually\n\n```bash\n# In a package directory\ngo test\n```\n\n### Running integration tests manually\n\nYou need:\n\n- A working fabric and fabric-ca set up. It is recommended that you use the docker-compose file provided in `test/fixtures/dockerenv`. It is also recommended that you use the default .env settings provided in `test/fixtures/dockerenv`. See steps below.\n- Customized settings in the `test/fixtures/config/config_test.yaml` in case your Hyperledger Fabric network is not running on `localhost` or is using different ports.\n\n#### Testing with Fabric Images at Docker Hub\n\nThe test suite defaults to the latest compatible tag of fabric images at Docker Hub.\nThe following commands starts Fabric:\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go\n\n# Start fabric (stable tag)\nmake dockerenv-stable-up\n\n# Or more generally, start fabric at a different code level (prev, stable, prerelease, devstable)\n# make dockerenv-[CODELEVEL]-up\n```\n\n#### Running Integration Tests\n\nFabric should now be running. In a different shell, run integration tests\n\n```bash\n# In the Fabric SDK Go directory\ncd fabric-sdk-go\n\n# Use script to setup parameters for integration tests and execute them\n# Previously we use to have hostnames like Fabric CA server, orderer and peer pointed to localhost\n# Now since we removed this now, We will be using a different configuration\nmake integration-tests-local\n\n# Or more generally, run integration tests at a different code level (prev, stable, prerelease, devstable)\n# and fixture target version\n# FABRIC_CODELEVEL_VER=[VER] FABRIC_CODELEVEL_TAG=[CODELEVEL] make integration-tests-local\n```\n\n\n```bash\n# Previously we use to have hostnames like Fabric CA server, orderer and peer pointed to localhost\n# Now since we removed this now, We will be using a different config file config_test_local.yaml\n# which has the Fabric CA server, orderer and peers pointed to localhost\n# It is also possible to run integration tests using go test directly. For example:\n#cd fabric-sdk-go/test/integration/\n#go test -args testLocal=true\n\n#cd fabric-sdk-go/test/integration/orgs\n#go test -args testLocal=true \n\n# You should review test/scripts/integration.sh for options and details.\n# Note: you should generally prefer the scripted version to setup parameters for you.\n```\n\n#### Testing with Local Build of Fabric (Advanced)\n\nAlternatively you can use a local build of Fabric using the following commands:\n\n```bash\n# Start fabric (devstable codelevel with latest docker tags)\nmake dockerenv-latest-up\n```\n\n## License\n\nHyperledger Fabric SDK Go software is licensed under the [Apache License Version 2.0](LICENSE).\n\n---\nThis document is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"\u003eCreative Commons Attribution 4.0 International License\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Ffabric-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatachainlab%2Ffabric-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Ffabric-sdk-go/lists"}