Samples for Hyperledger Fabric. Contribute to psydox/fabric-samples development by creating an account on GitHub.
Code Pull requests Actions Projects Security Insights Additional navigation options Files master .github asset-transfer-basic asset-transfer-events asset-transfer-ledger-queries asset-transfer-private-data asset-transfer-sbe asset-transfer-secured-agreement ...
8、安装链码 peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/ 9、实例化链码,时间较长,耐心等待 peer chaincode instantiate -o orderer.example.com:7050 --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com...
Hyperledger Fabric Samples是官方推荐的First Network,对于熟悉fabric和测试基础环境很有好处。 Fabric Samples源码下载: 使用git下载源码,进入到go安装目录(可以使用命令echo $GOPATH查看go安装目录)。 git clone -b master https://github.com/hyperledger/fabric-samples.git 下载完成后进入到fabric-samples目录 cd fa...
本文作者: 陈俊飞基础环境搭建参考 一、hyperledger fabric 基础环境搭建一、下载fabric-samples、二进制文件、镜像文件 1、进入gopath目录下,创建目录src/ http://github.com/hyperledger,进到该目录2、下载官…
vim ~/go/src/github.com/hyperledger/fabric/scripts/bootstrap.sh 修改脚本 为 此出我们修改脚本之后,bootstrap.sh只进行拉取镜像的操作 开始运行脚本 ./bootstrap.sh 拉去的镜像如下 拉去镜像之后下面我们进入目录 cd ~/go/src/github.com/hyperledger ...
1. 从github上克隆 hyperledger/fabric-samples并进入该目录,然后检出适当的版本 2. 在fabric-samples目录下安装特定平台的 Hyperledger Fabric 二进制可执行文件 和配置文件 3. 下载 指定版本的Hyperledger Fabric 的docker镜像 其中第一件事情就是从github上克隆 hyperledger/fabric-samples,克隆完成后,它里面包含的目录...
命令:git clone https://github.com/hyperledger/fabric-samples.git 8.3 拉取成功后切换到v2.0.0分支 命令:git checkout v2.0.0 8.4 进入目录 命令:cd ~/go/src/github.com/hyperledger/fabric-samples 8.5下载需要的二进制文件 命令:wget https://github.com/hyperledger/fabric/releases/download/v...
cd ~/go/src/github.com/hyperledger/fabric/scripts 注意: 此处我们需要修改当前目录下的bootstrap.sh脚本 通过阅读bootstrap脚本我们可以知道,此脚本先会拉去fabric-samples脚本,再切换分支,但由于官方切换的分支为2.0.0,可实际上现在官方提供的版本库中没有这个分支,所以会导致无法切换,而且回去拉取环境所用的二进...
从github上克隆 hyperledger/fabric-samples并进入该目录,然后检出适当的版本 在fabric-samples目录下安装特定平台的 Hyperledger Fabric 二进制可执行文件 和配置文件 下载 指定版本的Hyperledger Fabric 的docker镜像 其中第一件事情就是从github上克隆 hyperledger/fabric-samples,克隆完成后,它里面包含的目录如下。