hyperledger

How to upload image on hyperledger composer playground?

依然范特西╮ 提交于 2020-02-06 17:09:26
问题 I am trying to build a Block chain application for distributed image sharing and copyright protection. I am using image as an asset. So now I want to upload an image on Hyper ledger Composer playground. How can I do that? 回答1: You can store your file data into the IPFS. IPFS is a protocol and network designed to create a content-addressable, peer-to-peer method of storing and sharing hypermedia in a distributed file system. For IPFS I recommend you to follow the link In your application, In

Hyperledger fabric:transport: authentication handshake failed: x509: certificate on channel create

混江龙づ霸主 提交于 2020-02-06 07:56:49
问题 I am trying to create a channel in HLF using the following command peer channel create -o orderer1.base:7050 -c basechannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/tlsca/tlsca.base.order-cert.pem But it's failing due to this error Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc =

Hyperledger fabric:transport: authentication handshake failed: x509: certificate on channel create

故事扮演 提交于 2020-02-06 07:55:07
问题 I am trying to create a channel in HLF using the following command peer channel create -o orderer1.base:7050 -c basechannel -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/base.order/tlsca/tlsca.base.order-cert.pem But it's failing due to this error Failed to send StepRequest to 2, because: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc =

Hyperledger Fabric(集成Fabric-ca)

假装没事ソ 提交于 2020-02-03 07:22:53
安装Fabirc-CA-Client 获取fabric-ca源码 go get github.com/hyperledger/fabric-ca 切换到v1.4.0分支 git checkout v1.4.0 编译安装client cd cmd/fabric-ca-client go install 注意:需要将GOPATH/bin 添加到环境变量 Fabric-CA交互原理 启用TLS 这里说的tls是指fabric-ca-server和fabric-ca-client之间加密通信 先看下fabric-ca-server例子: 要启用tls,需要配置环境变量FABRIC_CA_SERVER_TLS_ENABLED=true version : '2' networks : fabric-ca : driver : bridge services : rca-org1 : container_name : rca - org1 image : hyperledger/fabric - ca : 1.4.0 command : sh - c 'fabric - ca - server start - d - b rca - org1 - admin : rca - org1 - adminpw - - port 7054' environment : - FABRIC_CA

Ubuntu 18.04上进行HyperLedger Fabric 1.2.0环境及链码安装、部署和测试

ⅰ亾dé卋堺 提交于 2020-01-29 18:00:50
Ubuntu 18.04上进行HyperLedger Fabric 1.2.0环境及链码安装、部署和测试 1、环境安装 HyperLedger Fabric 1.2.0环境的安装推荐一篇博客:https://www.jianshu.com/p/4f58e0fcb9f9 此博客写的非常详细,本人完全按照这个上面安装,但第九步出现了错误,这个错误是因为权限问题,解决方法参考这里。其余地方均未发现问题。 2、链码安装、部署和测试 1、执行./byfn.sh down关闭前面的网络。 2、进入/fabric-samples/chaincode-docker-devmode hisee@ubuntu:~/hyperledger-fabric/fabric-samples$ cd chaincode-docker-devmode/ 3、在终端1启动网络 $ docker-compose -f docker-compose-simple.yaml up 执行成功后如下: Recreating orderer ... done Recreating peer ... done Recreating cli ... done Recreating chaincode ... done Attaching to orderer, peer, cli, chaincode orderer | 2018

fabric first-network学习笔记

牧云@^-^@ 提交于 2020-01-26 20:02:12
参考文档:https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html 网络拓扑 四个 Peer 节点分属于同一个管理域( example.com )下的两个组织 Org1 和 Org2 ,这两个组织都加入同一个应用通道( business-channel )中,每个组织中的第一个节点( peer0 节点)作为锚节点和其他组织进行通信,所有节点通过域名都可以相互访问。 生成初始区块 . . / bin / cryptogen generate -- config= . / crypto - config . yaml fabric项目提供了cryptogen工具为网络实体生成证书和私钥,这一过程依赖于crypto-config.yaml配置文件。 运行该cryptogen工具后,生成的证书和密钥将保存到first-network/crypto-config文件夹中。 export FABRIC_CFG_PATH= $PWD . . / bin / configtxgen - profile TwoOrgsOrdererGenesis - channelID byfn - sys - channel - outputBlock . / channel - artifacts / genesis

Hyperledger fabric1.4.0搭建环境

旧街凉风 提交于 2020-01-26 14:10:00
Hyperledger fabric1.4.0搭建环境 原创牧竹子 最后发布于2019-05-11 21:10:20 阅读数 630 收藏 展开 Hyperledger fabric1.4.0搭建环境 版本 在Ubuntu 18.04上搭建Hyperledger fabric1.4.0环境 https://www.jianshu.com/p/4f58e0fcb9f9 https://blog.csdn.net/javaexploreroooo/article/details/71157902 https://blog.csdn.net/zgljl2012/article/details/52896372 https://blog.csdn.net/songfadan/article/details/80827446 环境和工具 操作系统 ubuntu14 go 1.11.1 docker 17.06.2-ce docker-compose 1.23.1 curl组件for windows 常用的几个vagrant命令 $ vagrant init # 初始化 $ vagrant up # 启动虚拟机 $ vagrant halt # 关闭虚拟机 $ vagrant reload # 重启虚拟机 $ vagrant ssh # SSH 至虚拟机 $ vagrant suspend #

If peers use the same chain code, is there any chance that Endorsement of Endorsement Policy will be different?

痞子三分冷 提交于 2020-01-25 07:49:06
问题 I will ask you thought Endorsement Policy example below peer chaincode instantiate -C <channelid> -n mycc -P "AND('Org1.member', 'Org2.member')" My understanding(Promise) Org1.member or Org2.member refer to Peer. The example means that Org1.member and Org2.member should have to get the same result as instantiating mycc. Question If Org1.member and Org2.member have same chaincode, could their result be different? Are Org1.member and Org2.member refer to one peer of Organization? (2-1. If so,

Hyperledger fabric peer update failed: signature set did not satisfy policy

▼魔方 西西 提交于 2020-01-25 06:43:47
问题 I am having HLF network with two orgs (one peer each) and 3 order nodes with order type as a raft. For the first org joining and the peer, updates work without any problem, but for the second org I am getting some troubles in the peer update Here is the command i've used for the peer update peer channel update \ -o orderer1.base.order:7050 \ -c basechannel \ -f ./channel-artifacts/BaseRightOrg.tx \ --tls \ --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations

Fabric 1.4: Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number

孤者浪人 提交于 2020-01-24 00:35:29
问题 I know that this may be duplicate issue. I did not find a valid answer. What can the be wrong here. I am trying connect to my fabric network using client application. In my current configuration, admin and user enrollment is successful. But whenever I am trying to query in my peer0, it shows this error. My node verion is 8.9.12 . ccpPath path: /home/hypuser/fabric-samples/servicebook-fabric/connection.json Wallet path: /home/hypuser/fabric-samples/servicebook-fabric/wallet E0930 03:49:55