
区块链
文章平均质量分 58
Minion_w
这个作者很懒,什么都没留下…
展开
-
bitxhub-fabric跨链网络搭建3-中继链部署
下载源码:git clone https://github.com/meshplus/bitxhub.git切换分支cd bitxhubgit checkout v1.6.2源码编译:prepare之前要先更改下载地址:go env -w GO111MODULE=ongo env -w GOPROXY=https://goproxy.cn,direct不然下载不全,会导致无法编译make preparemake build查看编译是否成功,./bin/bi.原创 2022-01-18 12:53:13 · 11490 阅读 · 5 评论 -
bitxhub-fabric跨链网络搭建2-跨链合约部署
前情背景:已经有可以使用的应用链1、获取需要合约安装包并切换分支git clone https://github.com/meshplus/pier-client-ethereum.git && git checkout v1.6.22、部署broker合约(曾出现问题,应该是docker和docker-compose版本所导致)peer chaincode install -n broker -v 1.0 -p github.com/hyperledger/fabric原创 2021-12-25 16:19:13 · 13575 阅读 · 0 评论 -
bitxhub-fabric跨链网络搭建1-应用链部署
1.生成证书文件:生成crypto-config./bin/cryptogen generate --config=./crypto-config.yaml 2.生成创世区块./bin/configtxgen -profile OneOrgsOrdererGenesis -channelID system-channel -outputBlock ./channel-artifacts/genesis.block3.生成通道配置文件./bin/configtxgen -prof..原创 2021-12-24 11:14:20 · 10574 阅读 · 1 评论 -
bitxhub 跨链网关部署
源码下载编译通过下载源码直接编译就可以注意提前安装好gcc与go环境# 编译跨链网关本身cd $HOMEgit clone https://github.com/meshplus/pier.gitcd pier && git checkout v1.6.2make prepare && make build# 编译Fabric插件cd $HOMEgit clone https://github.com/meshplus/pier-client-f原创 2021-12-16 22:03:31 · 696 阅读 · 1 评论 -
bitxhub Fbric跨链搭建
1.跨链合约部署broker合约是管理合约,transfer合约是业务交易合约,需要说明的是 transfer合约需要经过broker合约审核通过后才能发起或接受跨链交易,具体方法是:调用broker合约的audit方法,其参数依次是业务合约地址和合约状态(数字1表示审核通过,数字2表示审核失败)。安装和实例化broker合约peer chaincode install -n broker -v 1.0 -p github.com/hyperledger/fabric/peer/chainco原创 2021-12-15 21:29:20 · 705 阅读 · 0 评论 -
Fabric的第一个链码操作
1、链码的安装切换到节点1上,如果不切换可不可以呢?链码是安装在节点上的?还是安装在通道上的?CORE_PEER_LOCALMSPID="Org1MSP" CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt CORE_PEER_原创 2020-11-12 22:56:34 · 556 阅读 · 0 评论 -
fabric 部署过程
1、更改虚拟机管理员密码2、安装vim、git、curl、wget3、将go语言安装包拖到home目录下,解压并移动相关路径4、加入环境变量并使其生效测试是否成功5、创建存储fabric源码文件的路径6、docker安装(1)卸载原有的docker文件(2)安装docker相关文件(3)设置密码、(4)加入仓库(5)更新(6)安装docker CE(7)查看docker版本,但是普通用户没有.原创 2020-11-05 12:50:52 · 677 阅读 · 0 评论 -
Fabric first-sample常见错误
1、ERRO 001 Cannot run peer because cannot init crypto, folder "/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp" does not exist解决方案:清空容器docker stop $(docker ps -q) & do原创 2020-10-17 10:46:44 · 1338 阅读 · 5 评论