hyperledger-fabric

Hyperledger Fabric: Each organization acting as peer and ordering role - which certificates should be used?

本小妞迷上赌 提交于 2020-08-10 19:30:28
问题 even though the Fabric docs discourage this scenario because of default settings (it shouldn't be discouraged if you take care of the policies, right?), I'm in need of setting up a network with 3 equitable organizations. Each will have 1 orderer and 1 peer. So my crypto-config.yaml for cryptogen defines 3 orgs, each as orderer and peer organization: OrdererOrgs: - Name: Org1 Domain: org1.example.com EnableNodeOUs: true Specs: - Hostname: orderer # same for org2 and org3 PeerOrgs: - Name: Org1

How to make faster Hyperledger Fabric java Smart Contract install (I want to avoid a timeout)?

[亡魂溺海] 提交于 2020-08-09 09:18:11
问题 I'm trying to deploy a Java Smart Contract on Hyperledger Fabric, and I'm having timeout issues executing the command peer lifecycle chaincode install cp.tar.gz . The error at the terminal is: Error: chaincode install failed with status: 500 - error in simulation: failed to execute transaction baeacb6b68dac2872098105d20cb0398e5ce5b744afd37bf75ab65b0ffc7a754: error sending: timeout expired while executing transaction Monitoring the network, the error occurs like this: lucid_ganguly|Downloading

Restrict user access to only some channels in hyperledger fabric

女生的网名这么多〃 提交于 2020-08-02 21:31:25
问题 In hyperledger fabric, suppose there is a channel, 'channel_12' between org1 and org2 and another channel, 'channel_13' between org1 and org3. Suppose there are 2 users, 'Org1User1' & 'Org1User2' in org1. Can we restrict the access of Org1User1 to channel_12 and that of Org1User2 to channel_13? 回答1: One way with which we can achieve this is: While enrolling the user we can set the attributes in the X509 certificate for the user about which channel he has access to. For this, we need to

Orderer node exits within few seconds after execution of “network.sh up” command

北城以北 提交于 2020-07-21 07:10:22
问题 I am learning hyperledger fabric from the authorized documentation and following the steps given here. I followed following steps as per documentation to install and run sample applications. Installed all prerequisites as per the documentation. Cloned github respository from https://github.com/hyperledger/fabric-samples. Ran bootstrap.sh script as per commands mentioned in the readme.md file (without giving any specific version as command-line parameters thinking that it will install correct

Hyperledger fabric facing difficult setting up intermediate CA

廉价感情. 提交于 2020-07-10 10:27:24
问题 I am trying to create intermediate CA for my project, I have one root CA and one intermediate CA with Intermediate CA config file as shown below. I am facing issue to create keypairs/MSP and tls cert for intermediate CA & unable to pass the config file to intermediate CA. Steps I followed Running the Root CA container with bootstrapping admin. Enrol the admin which generate the MSP for CA admin for org1 fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-org1 --tls