hyperledger-fabric

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

Hyperledger Fabric chaincode instantiation error

拈花ヽ惹草 提交于 2020-01-24 21:38:27
问题 I'm using fabric tools provided for composer to deploy fabric network as it deploys 1 peer, 1 orderer, 1 couchdb, & 1 fabric-ca. I am able to install chain code on peer but instantiation fails with following error. I am using command on fabric-peer. peer chaincode instantiate -o orderer.example.com:7050 -C composerchannel -n test -l node -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg

Setting PEM attributes for user identities in Hyperledger Fabric

不想你离开。 提交于 2020-01-24 14:06:08
问题 I have a single-org setup running with one Fabric CA. CA Server is running with MySQL. I'm using NodeSDK to connect and issue transactions to chaincode. I'm able to set Country, State, Locality, Organisation and Organisation Unit attributes for the peers and orderers. However, when I register and enroll "users" with the Fabric, not all attributes are being set. Only the Common Name and Organisation Unit attributes are set as seen from the certificate file. Following is my snippet for

Get Count of assets in HyperLedger Composer Query?

你说的曾经没有我的故事 提交于 2020-01-22 02:02:46
问题 I want to write a query in HyperLedger Composer that returns me the count of assets that I have in hyper ledger. I have thousands of records. I don't want to fetch them all and calculate count. Data transfer will be slow I want the query to return the count. 回答1: Unfortunately there is no count in the composer query language. You would have to create a query to select all the assets then check the length of the results. For example with the Basic Sample Network: query selectAssets {

BlockChain : Issue setting up dev environment for hyperledger fabric

匆匆过客 提交于 2020-01-17 06:15:12
问题 I am a beginner in the blockchain technology and wanted to get some hands on by setting up a dev environment for hyperledger fabric. I tried to setup the dev environment and was following the official documentation at https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html In the step when I call the script network_setup.sh to bring the network up, It fails at the last step with an error as - ... ... Trying to pull repository docker.io/hyperledger/fabric-testenv .. Pulling

BlockChain : Issue setting up dev environment for hyperledger fabric

与世无争的帅哥 提交于 2020-01-17 06:15:08
问题 I am a beginner in the blockchain technology and wanted to get some hands on by setting up a dev environment for hyperledger fabric. I tried to setup the dev environment and was following the official documentation at https://hyperledger-fabric.readthedocs.io/en/latest/getting_started.html In the step when I call the script network_setup.sh to bring the network up, It fails at the last step with an error as - ... ... Trying to pull repository docker.io/hyperledger/fabric-testenv .. Pulling

Hyperledger Composer - multi host installation

≯℡__Kan透↙ 提交于 2020-01-17 01:25:10
问题 I've been experimenting with Hyperledger Fabric, deployed over 2 VirtualBox Ubuntu images with docker swarm. But I have some issues when it comes to the Composer installation. Network Setup: Host1: Orderer, Peer1.Org1, Peer2.Org1, CLI Host2: Peer1.Org2, Peer2.Org2 When it comes to the Fabric setup everything appears to be ok. I'm able to start the network, join the peers from the second host, and update the anchor peers (one for each organisation). The Composer installation starts with

How to run Hyperledger Composer Rest Server docker image?

醉酒当歌 提交于 2020-01-16 21:33:14
问题 I have pulled hyperledger/composer-rest-server docker image , Now if i wanted to run this docker image then on which port should i expose ? Like mentioned below. docker run --name composer-rest-server --publish XXXX:YYYY --detach hyperledger/composer-rest-server Here please tell me what should i replace for XXXX & YYYY ? 回答1: I run the rest server in a container using a command as follows: docker run -d \ -e COMPOSER_CARD="admin@test-net" \ -e COMPOSER_NAMESPACES="never" \ -v ~/.composer:

How to run Hyperledger Composer Rest Server docker image?

六月ゝ 毕业季﹏ 提交于 2020-01-16 21:31:27
问题 I have pulled hyperledger/composer-rest-server docker image , Now if i wanted to run this docker image then on which port should i expose ? Like mentioned below. docker run --name composer-rest-server --publish XXXX:YYYY --detach hyperledger/composer-rest-server Here please tell me what should i replace for XXXX & YYYY ? 回答1: I run the rest server in a container using a command as follows: docker run -d \ -e COMPOSER_CARD="admin@test-net" \ -e COMPOSER_NAMESPACES="never" \ -v ~/.composer: