- 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.
推薦閱讀
- 奇妙數(shù)學(xué)史:數(shù)字與生活
- 神奇的數(shù)學(xué)(二)
- 好玩的數(shù)學(xué)符號(hào)
- 開悟:數(shù)學(xué)黑客的生活之旅
- 張梅玲:讓孩子受益一生的數(shù)學(xué)思維訓(xùn)練
- 物性數(shù)學(xué)及其應(yīng)用
- 數(shù)獨(dú)游戲全集
- 數(shù)學(xué)原來可以這樣學(xué):初中篇
- 迷人的數(shù)學(xué)(全2冊(cè))
- 丈量世界:時(shí)間、空間與數(shù)學(xué)(萬物皆數(shù)學(xué))
- 數(shù)學(xué)建模
- 概率論與數(shù)理統(tǒng)計(jì)
- 模糊數(shù)學(xué)基礎(chǔ)及應(yīng)用
- 高等數(shù)學(xué)習(xí)題全解與學(xué)習(xí)指導(dǎo)(下冊(cè))
- 數(shù)學(xué)要素(全彩圖解 + 微課 + Python編程)