hyperledger-composer

Hyperledger Composer Identity Issue error after network restart (code:20, authorization failure)

不问归期 提交于 2019-12-25 01:36:46
问题 I am using Docker Swarm and docker-compose to setup my Fabric (v1.1) and Composer (v0.19.18) networks. I wanted to test how my Swarm/Fabric networks would respond to a host/ec2 failure, so I manually reboot the host which is running the fabric-ca, orderer, and peer0 containers. Before the reboot, everything runs perfectly with respect to issuing identities. After the reboot, though all of the Fabric containers are restarted and appear to be functioning properly, I am unable to issue

Getting Error: http: read on closed response body from Transaction Processor function in Hyperledger Composer

十年热恋 提交于 2019-12-25 00:56:14
问题 I've a fabric network running with a simple BNA. This BNA defines two types of participants viz. Corporate and Person. Here, each Person has a relationship with the corporate as shown below (cto file): participant Corporate identified by corporateId { o String corporateId o String corporateName } participant Person identified by personId { o String personId --> Corporate corporate } What I'm trying to do: Create a Corporate using Transaction Processor Function: Success Create a Person using

Organization based restrictions for participant identity issuing in Hyperledger Composer

匆匆过客 提交于 2019-12-25 00:51:25
问题 lets say we have a 2 organization network (OrgA and OrgB) both organizations have there own "Admin" identity that can issue identities. If the admin identity for OrgA issues a identity for a participant "ParA", how can one prohibit OrgB to issue a identity for that participent? 回答1: You can use ACLs to restrict the kind of participants created or that are viewable, by either Organisation's admins. Simplest way is designated participant classes for each Org and control access to participants

Attempt to launch Hyperledger Composer app using npm start gives “Cannot find name %participant%” error

家住魔仙堡 提交于 2019-12-24 19:17:51
问题 I'm following the Developer Tutorial for creating a Hyperledger Composer solution over at https://hyperledger.github.io/, and I got all the way to the end without a hitch until running into this wall. For the final step of running the app and webpacking it with Angular ( npm start ), I'm running into the following Cannot find name errors, triggered by inline.bundle.js . After digging around, I discovered that all these offending variables had something in common — they were defined in their

Hyperledger Composer query with LIMIT and SKIP return all results

☆樱花仙子☆ 提交于 2019-12-24 18:58:40
问题 Actually I want to list transactions with a limit, but the query return all the result on REST SERVER API , bellow my query query list { description: "List with limit and offset" statement: SELECT org.acme.biznet.things LIMIT _$limitParam SKIP _$skipParam } 回答1: Unfortunately, LIMIT/SKIP support is blocked by Fabric presently as described in Issue 1015 on GitHub. https://github.com/hyperledger/composer/issues/1015 回答2: As of Hyperledger Fabric v1.3, pagination of query results is supported. A

Creating new participant and adding array of assets by reference to it

。_饼干妹妹 提交于 2019-12-24 10:58:52
问题 I have a problem when trying to add a new asset to an array of assets which are part of the participant as a reference . Here I have SharedAccount participant controlled by its members who are connected via their share in the account. I want to write a transaction for creating a new SharedAccount by one person. When a person submits a transaction, it should create a share asset if that person and add it to SharedAccount's shares array. Here's how my code looks like .cto: ... participant

Hyperledger Composer - Docker Swarm

喜你入骨 提交于 2019-12-24 10:29:43
问题 I've been experimenting with Hyperledger Composer and with the official multi org tutorial. I was successful in modifying the given demo, adding a third organisation and finally installing my own bna. The next step was to fully understand how to deploy the Fabric network and Composer on multiple physical machines. And I went through all the available info about deploying such a process but without much luck. Let suppose: PC1: 1 Orderer, 1 Organisation, One cli container; PC2: 1 Organisation;

How can we give READ access to a particular resource while putting condition on some other resource in ACL file?

雨燕双飞 提交于 2019-12-24 08:47:22
问题 What I want to do is that give READ ACCESS to a particular participant the fields of other participants but putting condition on third resource. Eg: rule SampleRule{ description: "Allow the Participant1 to view Participant2 profile" participant(m): "org.sample.blockchain.Participant1" operation: READ resource(v): "org.sample.blockchain.Participant2" condition:( v.getIdentifier() == Record.Participant1.getIdentifier() && m.getIdentifier() == Record.Participant2.getIdentifier() ) action: ALLOW

Hyperledger Composer Error Identity has not been registered once issued

假装没事ソ 提交于 2019-12-24 07:19:11
问题 I have been following this Tutorial and I am able to complete it. I issue a new identity, to an existing participant and I create a business card for this identity with the following command: composer identity issue --card admin@tutorial-network -f usr001@tutorial-network.card -u usr001 -a "resource:org.acme.biznet.Trader#usr001" -x true Then, I import that business card via POST /wallet/import and I am able to call different REST API operations. After that, I stop the composer-rest-server

Authorization failure while issuing identity hyperledger composer

不问归期 提交于 2019-12-24 00:43:20
问题 I read the answer suggesting to check the docker.yaml for ca. The file path is below where I confirm that the username is admin and password is adminpw. Unfortunately I still get authorizatin failure error. command I use to issue identity composer identity issue -n 'trade-network' -p hlfv1 -i admin -s adminpw -u trader1 -a "org.acme.trading.Trader#TRADER1" Error: fabric-ca request register failed with errors [[{"code":400,"message":"Authorization failure"}]] Command failed. /home/composer