hyperledger-composer

Composer network install: ERROR no valid responses from any peers

一曲冷凌霜 提交于 2019-12-13 17:06:13
问题 I'm working on the hyperledger blockchain on Ubuntu 18-04 LTS via this tuto hyperledger.github.io/composer/latest/tutorials/developer-tutorial . I have installed all the pre-requisites and in this step of running "composer network install", I faced this issue and tried some solutions but still not working. Any help please ? Thanks ! ~/tutorial-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna ✖ Installing business network. This may take a minute

chaincode in hyperledger composer vs chaincode in hyperleger fabric?

心不动则不痛 提交于 2019-12-13 13:24:09
问题 does same functionality can be achieved by writing chaincode with javascript in hyperledger composer as writing chaincode with go in Hyperledger fabric? and What are the limitations and benefits of writing chaincode in JS as compared to writing in go ? 回答1: On question 2: this article can explain as a side-by-side comparison (Golang (Go) and Composer model-driven approach) -> https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/. The main difference is Hyperledger

Why can I submit a transactionID with a transaction in hyperledger composer REST?

一曲冷凌霜 提交于 2019-12-13 07:26:01
问题 Composer REST server allows me to submit a transactionID with my transaction input. The transaction is rejected if I supply a transactionID. Is there a way to remove the field from the input so that the server ignores client submitted transaction id? 回答1: I am assuming you are using the explorer interface. The Rest Server is a Loopback application and so we are not able to hide these fields in the example section (see https://github.com/hyperledger/composer/issues/663). An issue has been

v0.19.2 hyperledger composer network start failed

不打扰是莪最后的温柔 提交于 2019-12-13 05:09:20
问题 I have already implemented my .bna file named "supply-chain-network" but I think that the problem isn't in the .bna , since I have tried with another .bna (the basic-sample-network in hyperledger composer playground) and the problem still persists. Composer version: 0.19.2 Operating System: Ubuntu 16.04 running in VM Steps: download the fabric-dev-servers ./downloadFabric.sh ./startFabric.sh ./createPeerAdminCard.sh exported the basic-sample-network from the playground (my-basic-sample.bna)

Facing Issue with hyperledger playground tutorial

为君一笑 提交于 2019-12-13 04:32:49
问题 I first installed the hyperledger using this link: https://hyperledger.github.io/composer/latest/installing/development-tools.html During the composer install... seems it installed v0.19.x. So when i ran the command ./createPeerAdminCard.sh ... i got an error: "v0.19.x is not supported for this level of fabric. Please use version 0.16"... I checked the script fabric-scripts/hlfv1/createPeerAdminCard.sh and it indeed says that the version should be 0.16.x.. Sample snippet from the script which

Not able to do a post request to an authenticated Hyperledger Composer rest server in Java

邮差的信 提交于 2019-12-13 04:23:00
问题 I am not able to do a POST request to the Composer rest server that is authenticated. I have been trying out Hyperledger composer rest server with authentication and multiuser enabled. I have enabled Github based authentication by exporting COMPOSER_PROVIDERS variable and multiuser mode with Wallet and identities . I authenticate the rest server in github and i am able to do rest operations in the Composer Swagger explorer . I am also able to do the rest operations in Postman by passing the

Hyperledger Composer multi-user mode: ECONNREFUSED for issued identities

一曲冷凌霜 提交于 2019-12-13 04:15:17
问题 I've been following Caroline's blog to setup a multi-user composer rest server. So, I have two servers viz. Admin Server and the User Server. As mentioned in the tutorial I: Started the Admin Server with no authentication and single user mode. I started this server with Admin's card. Started the User Server with JWT authentication in multi-user mode. I started this server with Admin's card as well. Created a User participant and generated a card for user from the admin server. Exchanged the

How to query to include specific words in hyperledger composer query?

家住魔仙堡 提交于 2019-12-13 04:14:47
问题 I want to query 'a', 'ab', 'abc' way( where: {field: {like: a%} } ) is unable. 'like' operator is not supported by hyperledger composer filter. How to query to include specific words in hyperledger composer query? 回答1: Composer Query Language presently doesn't support 'SQL like' LIKE format such as '%' or regex regexes via CQL, and reliant on the underlying CouchDB Mango QL. Feel free to raise an issue on this at https://github.com/hyperledger/composer/issues/ if you wish. You would have to

Hyperledger Composer v0.19 Hiding Historian in ACL

*爱你&永不变心* 提交于 2019-12-13 04:12:11
问题 I would like to ask how to hide the Historian // Transaction log in v0.19? I have tried this from an example --> rule hideHistorianAccess{ description: "Deny access to Historian" participant: "org.blockknowhow.com.Users" operation: READ resource: "org.hyperledger.composer.system.HistorianRecord" action: DENY } rule historianAccess{ description: "Only allow members to read historian records referencing transactions they submitted." participant(p): "org.blockknowhow.com.Users" operation: READ

Failed to import the business network card

守給你的承諾、 提交于 2019-12-13 04:09:22
问题 When I tried to import a business network card using the command "composer card import -f PeerAdmin@byfn-network-org1-only.card" it shows the following error message. Failed to import the business network card keyword: required dataPath: schemaPath: #/required params: missingProperty: x-type message: should have required property 'x-type' keyword: required dataPath: schemaPath: #/required params: missingProperty: client message: should have required property 'client' keyword: required