Questions tagged [hyperledger-fabric]

Hyperledger Fabric is an implementation of blockchain technology. Use this tag for questions about this project.

Use this tag for questions about this project.

Another good idea is to reach out to the community at

Documentation can be found at

Refer development lifecycle and officially provided resources at

6206 questions
1
vote
1 answer

Error connecting to environment 1 Org Local Fabric: Error querying channels: 14 UNAVAILABLE: failed to connect to all addresses

I am unable to run my ibm evote blockchain application in hyperledger faric.I am using IBM Evote in VS Code (v1.39) in ubuntu 16. When I start my local fabric (1 org local fabric), I am facing above error. following is my…
1
vote
1 answer

Hyperledger fabric Endorsement policy in fabric nodesdk

I have implemented fabric sdk to install and instantiate the chaincode. Everything is working fine, but not able to figure out the correct to implement endorsement in fabric nodesdk Here is the endorsement policy which i have used while using…
1
vote
2 answers

Hyperledger Fabric fabcar - peer chaincode & 500 Access Errors - CLI

I exec into the docker container for the peer and try the CLI commands for peer chaincode and peer lifecycle but they fail. I understand this is a --cafile issue but I tried a few combinations and nothing worked. This is the fabcar example with 2.0,…
Trevor Lee Oakley
  • 272
  • 1
  • 4
  • 13
1
vote
1 answer

Hyperledger fabric create private key offline

what i see from the hyper-ledger fabric CA setup and user registration is that, when i enroll the user the private key is generated on the server side with certificate after which CA will sign the user will get certificate with private key.…
nagaraj
  • 797
  • 1
  • 6
  • 29
1
vote
1 answer

Trouble getting response from hyperledger fabric getStateByRange

Im using createCompsiteKey, and getSateByRange only returns {"done":true}. I tried to replace createCompsiteKey with concat key part to make the key as follows. getSateByRange only returns {"done":true}, I'm using "fabric-shim" v1.4.0 and…
1
vote
2 answers

Deploying Hyperledger Fabric organizations in multiple hosts

I have been struggling while trying to build a fabric 2.0 network with organizations spread in multiple hosts. The official documentation explains how to deploy two organizations (org1 and org2) using docker, and using configtxlator tool to add new…
1
vote
0 answers

Updating Hyperledger Fabric peers/channels when revoking a certificate of a user

I am trying to implement a Hyperledger Fabric 2.0 network, on which users' certificates are going to be potentially revoked at some point in time. I am able to successfully revoke certificates and update local clients' msp with the new CRL. I cannot…
1
vote
1 answer

docker exec cli peer channel create | failed to create new connection: context deadline exceeded | amazon managed blockchain

I am trying to setup hyperledger fabric blockchain network using amazon managed blockchain following this guide. In the step 6, to create the channel I have executed the following command, docker exec cli peer channel create -c hrschannel -f…
1
vote
2 answers

Hyperledger Fabric nodejs chaincode unit testing in nodejs,

I have developed a custom chaincode for my application in nodejs, I need to perform unit test to validate the functionality using any frameworks such as jest mocha chai, etc. I did did find Hyperledger fabric mock stub testing but it doesnt support…
1
vote
0 answers

TLS certificate rotation for an orderer node - Cryptogen to Fabric CA

I have been working on rotating Orderer node certs from cryptogen to Fabric CA. I have been following the official documentation here- https://hyperledger-fabric.readthedocs.io/en/release-1.4/raft_configuration.html Below are the steps that i have…
1
vote
1 answer

Incorporate 2 objects in hyperledger fabric chaincode

Hi I am new in hyperledger fabric. Like every one I set up the fabric chain through documentation and got it working on my ubuntu with fabric samples.I need to create chain code in which 2 objects are needed and there relationship should be defined.…
1
vote
2 answers

Hyperledger Fabric javascript chaincode read transient data

I am passing a json object from hyperledger fabric node application and converting it to buffer as shown below: const transientData = (transient && transient.length > 0) ? {data: Buffer.from(JSON.stringify(transient[0]))} : null; this transientData…
1
vote
1 answer

Pulling Hyperledger Fabric chaincode related image from a private registry

For the chaincode instantiation we pull the images dynamically from the docker hub. However, let's say if I have chaincode related images (e.g. fabric-ccenv, fabric-baseos, etc.) on a private registry, then how shall the peer code validate or…
Chintan Rajvir
  • 689
  • 6
  • 20
1
vote
2 answers

hyperledger 2.2 fabcar transaction issue

I followed Writing Your First Application and I face to an issue: $./runfabcar.sh ENV_DAL: DISCOVERY_AS_LOCALHOST=true run fabcar... [fabsdk/core] 2020/07/16 03:56:03 UTC - cryptosuite.GetDefault -> INFO No default cryptosuite found, using default…
1
vote
0 answers

Orderer getting Exited while bootstrapping the HLF network using certificates generated by Fabric CA

I am trying to use Fabric CA for generating certificates instead of cryptogen. I am able to generate the certificates but when I try to start the network, the orderer is getting exited(peers are running fine). Below are the logs from orderer: I…
Saif Ali
  • 527
  • 5
  • 9
  • 22