Home
Softono
h

hyperledger

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
2

Software by hyperledger

fabric
Open Source

fabric

# Hyperledger Fabric [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/hyperledger/fabric/badge)](https://scorecard.dev/viewer/?uri=github.com/hyperledger/fabric) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/955/badge)](https://bestpractices.coreinfrastructure.org/projects/955) [![Go Report Card](https://goreportcard.com/badge/github.com/hyperledger/fabric)](https://goreportcard.com/report/github.com/hyperledger/fabric) [![GoDoc](https://godoc.org/github.com/hyperledger/fabric?status.svg)](https://godoc.org/github.com/hyperledger/fabric) [![Documentation Status](https://readthedocs.org/projects/hyperledger-fabric/badge/?version=latest)](http://hyperledger-fabric.readthedocs.io/en/latest) [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hyperledger/fabric/verify-build.yml?branch=main&label=build%20-%20main)](https://github.com/hyperledger/fabric/actions/workflows/verify-build.yml) [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/hyperledger/fabric/verify-build.yml?branch=release-2.5&label=build%20-%20release-2.5)](https://github.com/hyperledger/fabric/actions/workflows/verify-build.yml) [![Security vulnerability scan](https://github.com/hyperledger/fabric/actions/workflows/vulnerability-scan.yml/badge.svg?branch=main)](https://github.com/hyperledger/fabric/actions/workflows/vulnerability-scan.yml) [![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/hyperledger/fabric)](https://github.com/hyperledger/fabric/blob/main/go.mod) [![GitHub Release](https://img.shields.io/github/v/release/hyperledger/fabric)](https://github.com/hyperledger/fabric/releases) ## Overview **Hyperledger Fabric** is a **Graduated** project under the Hyperledger umbrella, designed for distributed ledger solutions. Its modular architecture provides high levels of confidentiality, resiliency, flexibility, and scalability. Hyperledger Fabric allows for pluggable implementations of various components, accommodating the complexities of different economic ecosystems. This platform offers a uniquely elastic and extensible architecture, setting it apart from other blockchain solutions. Building on a fully-vetted, open-source framework, Hyperledger Fabric is an ideal starting point for enterprise blockchain initiatives. ## Releases Hyperledger Fabric provides periodic releases with new features and improvements. Certain releases are designated as **Long-Term Support (LTS)**, ensuring that important fixes are backported during overlap periods. ### Current LTS Release: - **[v2.5.x](https://hyperledger-fabric.readthedocs.io/en/release-2.5/whatsnew.html)** ### Historic LTS Releases: - **[v2.2.x](https://hyperledger-fabric.readthedocs.io/en/release-2.2/whatsnew.html)** (maintenance ended February 2024) - **[v1.4.x](https://hyperledger-fabric.readthedocs.io/en/release-1.4/whatsnew.html)** (maintenance ended April 2021) For complete release notes, visit the **[GitHub releases page](https://github.com/hyperledger/fabric/releases)**. ## Documentation and Getting Started To familiarize yourself with Hyperledger Fabric, visit our comprehensive online documentation: - **[Getting Started with v2.5](http://hyperledger-fabric.readthedocs.io/en/release-2.5/)** - **[Previous Versions](http://hyperledger-fabric.readthedocs.io/en/release-2.4/)** We recommend that first-time users start with the **Getting Started** section to understand the components and basic transaction flow. ## Contributing We welcome contributions to Hyperledger Fabric in various forms. There’s always plenty to do! Check our [contribution guidelines](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html) for more details on how to get involved. ## Community Engage with the Hyperledger community: - **[Hyperledger Community Meetup](https://www.meetup.com/pro/hyperledger/)** - **[Mailing Lists and Archives](http://lists.hyperledger.org/)** - **[Discord Chat](https://discord.com/invite/hyperledger)** - **[Issue Tracking](https://github.com/hyperledger/fabric/issues)** ## License Hyperledger Fabric source code is available under the **Apache License, Version 2.0 (Apache-2.0)**, and documentation files are under the **Creative Commons Attribution 4.0 International License (CC-BY-4.0)**.

Crypto & Blockchain
16.7K Github Stars
fabric-ca
Open Source

fabric-ca

# Fabric CA Developer's Guide This is the Developer's Guide for Fabric CA, which is a Certificate Authority for Hyperledger Fabric. Fabric CA can issue enrollment certificates and TLS certificates for Hyperledger Fabric deployments. See the [Fabric Getting Started Guide](https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html) for information on how to install and use Fabric CA with Hyperledger Fabric sample networks. See the [Fabric CA User's Guide, Operations Guide, and Deployment Guide](https://hyperledger-fabric-ca.readthedocs.io) for detailed information on how to use and deploy Fabric CA. The remainder of this guide is intended for developers contributing to Fabric CA. ## Prerequisites * Go 1.25 installation or later * docker version 17.03 or later * docker-compose version 1.11 or later ## Contribution guidelines You are welcome to contribute to Fabric CA! The following are guidelines to follow when contributing: 1. See the general information about [contributing to fabric](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html). 2. To run the unit tests manually: ``` # cd $GOPATH/src/github.com/hyperledger/fabric-ca # make unit-tests ``` The test coverage for each package must be 75% or greater. If this fails due to insufficient test coverage, then you can run `gencov` to get a coverage report to see what code is not being tested. Once you have added additional test cases, you can run `go test -cover` in the appropriate package to see the current coverage level. WARNING: Running the unit-tests may fail due to too many open file descriptors. Depending on where the failure occurs, the error message may not be obvious and may only say something similar to "unable to open database file". Depending on the settings on your host, you may need to increase the maximum number of open file descriptors. For example, the OSX default per-process maximum number of open file descriptors is 256. You may issue the following command to display your current setting: ``` # ulimit -n 256 ``` And the following command will increase this setting to 65536: ``` # ulimit -n 65536 ``` Please note that this change is only temporary. To make it permanent, you will need to consult the documentation for your host operating system. ## Package overview 1. **cmd/fabric-ca-server** contains the main for the fabric-ca-server command. 2. **cmd/fabric-ca-client** contains the main for the fabric-ca-client command. 3. **lib** contains most of the code. a) **server.go** contains the main Server object, which is configured by **serverconfig.go**. b) **client.go** contains the main Client object, which is configured by **clientconfig.go**. 4. **util/csp.go** contains the Crypto Service Provider implementation. 5. **lib/dbutil** contains database utility functions. 6. **lib/ldap** contains LDAP client code. 7. **lib/spi** contains Service Provider Interface code for the user registry. 8. **lib/tls** contains TLS related code for server and client. 9. **util** contains various utility functions. ## Additional info ### FVT See [FVT tests](scripts/fvt/README.md) for information on functional verification test cases. ### Updating the cfssl vendored package Following are the steps to update cfssl package using version 1.0.8 of govendor tool. * Remove cfssl from vendor folder * cd $GOPATH/src/github.com/hyperledger/fabric-ca/vendor * govendor remove github.com/cloudflare/cfssl/... * rm -rf github.com/cloudflare/cfssl/ * Clone cfssl repo * cd $GOPATH/src/github.com/ * mkdir cloudflare * cd cloudflare * git clone https://github.com/cloudflare/cfssl.git * Add cfssl from $GOPATH to the vendor folder * cd $GOPATH/src/github.com/hyperledger/fabric-ca/vendor * govendor add github.com/cloudflare/cfssl/^ * You can optionally specify revision or tag to add a particular revision of code to the vendor folder * govendor add github.com/cloudflare/cfssl/^@abc12032 * Remove sqlx package from cfssl vendor folder. This is because certsql.NewAccessor (called by fabric-ca) requires sqlx.db object to be passed from the same package. If we were to have sqlx package both in fabric-ca and cfssl vendor folder, go compiler will throw an error * rm -rf github.com/cloudflare/cfssl/vendor/github.com/jmoiron/sqlx * Remove the packages that are added to the fabric-ca vendor folder that are not needed by fabric-ca ## License <a name="license"></a> Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the [LICENSE](LICENSE) file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/.

Crypto & Blockchain Firewall & WAF
454 Github Stars