参照官方文档:https://hyperledger-fabric.readthedocs.io/en/release-1.4/write_first_app.html
$ cd ~ $ mkdir hyperledger-fabric $ cd hyperledger-fabric $ curl -sSL https://raw.githubusercontent.com go1.11.4 OS/Arch: linux/amd64 $ # 如果报错找不到这个命令 - configtxlator: command not found,那么可能你需要手动设置全局命令 $ cd ~/hyperledger-fabric $ cd ~/hyperledger-fabric/fabric-samples/first-network/ $ .
里面的bin目录包含了fabric-tools常用的的cryptogen, peer等工具, 这里我们移动bin到一个外部目录并配置到/etc/profile环境变量中 PATH=/mnt/sda3/hyperledger-fabric https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric
release1.0 进入下方目录 https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric 下载Linux对应压缩包 wget https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric
$ docker pull yeasy/hyperledger-fabric:latest $ docker tag yeasy/hyperledger-fabric:latest hyperledger /fabric-peer:latest $ docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-baseimage:latest $ docker tag yeasy/hyperledger-fabric:latest hyperledger/fabric-membersrvc:latest 注:如果采用某个稳定分支的代码,需要下载对应镜像
屏幕快照 2018-04-12 下午6.05.17.png OMG(白皮书) Hyperledger-Fabric(架构图) 跨链原子交易: 开发者创建了一个智能合约,使用脚本来实现DCR和LTC之间的原子跨链交易
fabric-samples 3.二进制工具下载 下载地址:https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric
cryptogen 等工具: $ curl https://nexus.hyperledger.org/content/repositories/releases/org/hyperledger/fabric/hyperledger-fabric
使用案例:引擎块的供应链跟踪 为了使用Hyperledger-Fabric和Composer实现私有区块链网络,以汽车行业的发动机组跟踪为例。在这种情况下,有制造商和经销商作为网络参与者。