官术网_书友最值得收藏!

  • Hyperledger Cookbook
  • Xun (Brian) Wu Chuanfeng Zhang Andrew Zhang
  • 220字
  • 2021-06-24 14:59:34

How it works...

We covered the following steps to build our Fabric network:

  • Generating the crypto/certificate using cryptogen
  • Generating the configuration transaction using configtxgen
  • Bring up the nodes based on what is defined in the docker-compose file
  • Using the CLI to set up the first network
  • Using the CLI to install and instantiate the chaincode
  • Using the CLI to invoke and query the chaincode

This recipe helps you to understand the Hyperledge Fabric components and shows how we can quickly set up a Hyperledger Fabric network using sample chaincode (mycc). You should be able to modify the scripts and run other samples, such as fabcar and marble02, which are provided under the fabric-sample/chaincode directory.

Fabric provides the following commands used in the byfn.sh script. In the following chapters and recipes, these commands will be used to operate and manage the Fabric network environment:

  • peer: Operates and configures a peer
  • peer chaincode: Manages chaincode on the peer
  • peer channel: Manages channels on the peer
  • peer node: Manages the peer
  • peer version: Returns the peer version
  • cryptogen: Utility for generating crypto material
  • configtxgen: Creates configuration data, such as the genesis block
  • configtxlator: Utility for generating channel configurations
  • fabric-ca-client: Manage identities
  • fabric-ca-server: Manages the fabric-ca server

Now that we have set up our first network, let's add an organization to the channel.

主站蜘蛛池模板: 青河县| 正宁县| 城步| 夏邑县| 武陟县| 河南省| 汉川市| 泰州市| 富锦市| 道真| 武隆县| 南昌市| 门源| 永州市| 桓仁| 辽宁省| 台北市| 荔浦县| 莎车县| 顺昌县| 丹巴县| 阳高县| 天柱县| 涞源县| 南部县| 侯马市| 平定县| 那曲县| 乌鲁木齐市| 新密市| 大悟县| 凤冈县| 洪雅县| 高唐县| 拜泉县| 手游| 合阳县| 福贡县| 辰溪县| 延寿县| 武清区|