Posts

Showing posts with the label hyperledger-fabric

Hyperledger Composer custom REST API server in Multiuser mode

Hyperledger Composer custom REST API server in Multiuser mode I have a problem with enabling multiusers after generating custom loopback app using this tutorial https://hyperledger.github.io/composer/latest/integrating/customizing-the-rest-server The problem is that there is no system/historian /system/identities /system/identities/bind endpoints. That's why there is no possibility to import CARD for using multiuser mode. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

panic: Version is not set for fabric-ca library

Image
panic: Version is not set for fabric-ca library I followed the below link to install hyperledger fabric ca: http://hyperledger-fabric-ca.readthedocs.io/en/latest/users-guide.html#setting-up-multiple-cas which specifies the below command to install: go get -u github.com/hyperledger/fabric-ca/cmd/... I have all the dependencies: Go version: 1.9.6 GOPATH environment variable is set correctly libtool and libtdhl-dev packages are installed However, when I run the fabric-ca-server natively, I get the following error: In words, the error is shown below: 2018/06/29 13:32:20 [INFO] Configuration file location: /home/abhinay-trana/crypto-config/peerOrganizations/org1.com/ca/root/fabric-ca-server-config.yaml panic: Version is not set for fabric-ca library goroutine 1 [running]: github.com/hyperledger/fabric-ca/lib/metadata.GetVersion(0x779657, 0xc4202d26c0) /home/abhinay-trana/go/src/github.com/hyperledger/fabric-ca/lib/metadata/version.go:58 +0x60 github.com/hyperledger/fabric-ca/lib.(*Server).i...

How can I add two orderers to the same channel?

How can I add two orderers to the same channel? I'm trying to build a network with two orders using Kafka. In the first network example there is a script named./script.sh that creates a channel with an associated orderer that runs this command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls true --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem >&log.txt I already started implementing Kafka. But my question is How can I change this command to create a channel with two orders? Or is there a better way to do this? 1 Answer 1 You do not add orderers to channel. An orderer belongs to an orderer organization. You can define multiple consortium that an orderer organization can serve. The definition of consortium is pro...