All Projects → hyperledger → Fabric Ca

hyperledger / Fabric Ca

Licence: apache-2.0

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Fabric Ca

Composer Sample Networks
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 226 (-31.72%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Iroha Ios
iOS Swift library for Iroha, a simple distributed ledger
Stars: ✭ 81 (-75.53%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Baseimage
Stars: ✭ 53 (-83.99%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Iroha
Iroha - A simple, enterprise-grade decentralized ledger
Stars: ✭ 210 (-36.56%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Gateway Java
Hyperledger Fabric Gateway SDK for Java https://wiki.hyperledger.org/display/fabric
Stars: ✭ 122 (-63.14%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Blockchain Explorer
Stars: ✭ 984 (+197.28%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Iroha Javascript
JavaScript library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Stars: ✭ 77 (-76.74%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Sdk Node
Hyperledger Fabric SDK for Node https://wiki.hyperledger.org/display/fabric
Stars: ✭ 676 (+104.23%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Composer Sample Applications
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 110 (-66.77%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Iroha Android
Android library for Iroha, a Distributed Ledger Technology (blockchain) platform.
Stars: ✭ 108 (-67.37%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Sdk Java
Stars: ✭ 982 (+196.68%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Sdk Py
Hyperledger Fabric Python SDK
Stars: ✭ 303 (-8.46%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Cello
Operating System for Enterprise Blockchain
Stars: ✭ 715 (+116.01%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Iroha
Iroha - A simple, decentralized ledger
Stars: ✭ 1,015 (+206.65%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Sdk Go
Stars: ✭ 712 (+115.11%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Composer Tools
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 75 (-77.34%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Hyperledger
Hyperledger is a Collaborative Project at The Linux Foundation.
Stars: ✭ 3,653 (+1003.63%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric Chaintool
Stars: ✭ 89 (-73.11%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Composer
⚠️ ⚠️ ⚠️ Hyperledger Composer has been deprecated ⚠️ ⚠️ ⚠️
Stars: ✭ 1,676 (+406.34%)
Mutual labels:  blockchain, hyperledger, distributed-ledger
Fabric
Hyperledger Fabric is an enterprise-grade permissioned distributed ledger framework for developing solutions and applications. Its modular and versatile design satisfies a broad range of industry use cases. It offers a unique approach to consensus that enables performance at scale while preserving privacy.
Stars: ✭ 12,911 (+3800.6%)
Mutual labels:  blockchain, hyperledger, distributed-ledger

Fabric CA Developer's Guide

This is the Developer's Guide for Fabric CA, which is a Certificate Authority for Hyperledger Fabric.

See User's Guide for Fabric CA for information on how to use Fabric CA.

Prerequisites

  • Go 1.15+ installation or later
  • GOPATH environment variable is set correctly
  • docker version 17.03 or later
  • docker-compose version 1.11 or later
  • A Linux Foundation ID (see create a Linux Foundation ID)

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.

  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 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

  • 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

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the 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/.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].