hyperledger-composer

Upgrading Hyperledger Fabric Business Network

微笑、不失礼 提交于 2019-12-13 03:59:28
问题 I am working with composer 0.19.8 to develop hyperledger blockchain app. My problem is that every time I make changes to the blockchain models I have to update the business network version in package.json and restart the fabric server in order for changes to reflect on Composer REST Server. If I do not do that the changes I made are not reflected on the rest server API(generated API by composer-rest-server command). Is there a way to override the current business network version instead of

Unexpected token (6:6)

主宰稳场 提交于 2019-12-13 03:38:00
问题 I am trying to generate a business network archive but I am getting the following error while running composer archive create -t dir -n . Creating Business Network Archive Looking for package.json of Business Network Definition SyntaxError: Failed to parse /Users/xxxx@xxxx.com/fabric-tools/tutorial-network/lib/logic.js: Unexpected token (6:6) Command failed Unexpected token (6:6)? the content of the logic.js are below: cat lib/logic.js /** * Track the trade of a commodity from one trader to

Error installing .bna file on ibm starter plan for blockchain

我只是一个虾纸丫 提交于 2019-12-13 03:16:43
问题 All these while I had been running my Hyperledger composer on AWS and it had been great so far with all the configurations setup. But the starter plan has been launched by IBM like couple of days ago, and I had tried following the configurations on the IBM website. Upon reaching to the last/final step of deploying the .bna file to the network, I am too facing this problem with composer 0.18.2 where, Do hope there's a solution on what I am missing it out. ✖ Starting business network definition

CA stack service failed to start

拜拜、爱过 提交于 2019-12-13 03:14:00
问题 I'm having this error while deploying stack of CA. Error: Failed to find private key for certificate in '/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem': Could not find matching private key for SKI: Failed getting key for SKI [[21 208 34 108 92 98 114 142 23 136 0 189 188 55 155 135 23 90 147 173 157 62 155 19 173 212 128 3 175 212 121 41]]: Key with SKI 15d0226c5c62728e178800bdbc379b87175a93ad9d3e9b13add48003afd47929 not found in /etc/hyperledger/fabric-ca-server/msp

Using kafka configuration in hyperledger composer setup

流过昼夜 提交于 2019-12-13 03:13:48
问题 I just want to know whether we can use hyperledger composer in the scenario where there are multiple orderers deployed in kafka configuration ? 回答1: Hyperledger Composer can be used against any fabric network setup. So it will work with both a Solo Orderer setup as well as a kafka configured setup. However as noted in the comment there is a limitation in that although you can define multiple orderers in the connection profile, only the first one in the list is used to interact with an orderer

Create Card through composer-rest-server

冷暖自知 提交于 2019-12-13 02:56:32
问题 I am able to add participant using composer-rest-api and it is possible to upload card through composer-rest-api by rest API wallet. Is it possible to create Card through composer-rest-api? I checked this answer Hyperledger Composer Web application user authentication, it mentions how to create card using javascript api. I used javascript code to create participant and issue it and when I run it ($node filename.js), it works fine. How can I add this to the rest API, which file exactly I need

composer-rest-server Unhandled 'error' event

泪湿孤枕 提交于 2019-12-13 02:16:23
问题 When I try composer-rest-server -c acme-admin@test-bna I get this output: Discovering the Returning Transactions.. Discovered types from business network definition Generating schemas for all types in business network definition ... Generated schemas for all types in business network definition Adding schemas for all types to Loopback ... Added schemas for all types to Loopback events.js:183 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE :::3000 at Server.setupListenHandle

Is Hyperledger a truly secure blockchain like ethereum?

China☆狼群 提交于 2019-12-12 23:44:49
问题 In Hyperledger we have something called a network admin and this admin will have access to all the cards and assets on the blockchain (at least I have tried to deny the admin access to assets using the acl, but I couldn't deploy the change, it timed out Everytime). So, is it possible to isolate admin from our business network? Or all the blockchains like ethereum too have the network admin? 回答1: I believe you are referring in your question to Hyperledger Composer rather than Hyperledger

Instantiating Chaincode in Hyperledger Composer with local npm registry

限于喜欢 提交于 2019-12-12 09:57:06
问题 I want to instantiate a chaincode in an environment without any Internet connection. As the chaincode container will issue npm install upon instantiation, I added a new container called npmregistry in the docker-composer.yml so that it is provisioned alongside the rest of the Fabric containers and belongs to the same docker network (composer_default). Note I'm using the fabric-tools downloaded from https://hyperledger.github.io/composer/latest/installing/development-tools.html) npmregistry:

Hyperledger Composer : No business network has been specified for this connection

南笙酒味 提交于 2019-12-12 09:04:31
问题 I have installed hyperledger composer locally. But on localhost it gives error : Error : Error trying to ping. Error: No business network has been specified for this connection. I am not able to add model and script file as well. This is the errors showing in terminal error: [Hyperledger-Composer] undefined:HLFConnection :ping() Error: Error trying to ping. Error: No business network has been specified for this connection at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules