hyperledger-composer

do I need to use fabric sdk if am using hyperledger composer

╄→尐↘猪︶ㄣ 提交于 2019-12-11 10:46:19
问题 I am using hyperledger composer for transaction invocation and all the stuffs related to resource(participants, assets etc) manipulation. I have generated the server using composer-rest-server, and also generated the angular frontend using yeoman generator. This makes me to ask what is the use of fabric sdk? Will I need it in the above mentioned scenario? Please clarify, thanks. 回答1: There are two ways to write chaincode in Hyperledger Fabric, 1) Using GoLang 2) Using NodeJS In order to

Hyperledger Composer CLI Ping to a Business Network returns AccessException

岁酱吖の 提交于 2019-12-11 10:45:21
问题 Im trying to learn Hyperledger Composer but seems to be a relatively new technology, i mean there are few tutorials and few solutions to a lot of questions, tutorial does not mention possible error case when following the commands and which means there are is also no solution for those errors. I have joined the composer channel in their community chat, looks like its running in Discord or something, and asked the same question without a response, i have a better experience here in SO. This is

ENDORSEMENT_POLICY_FAILURE error hyperledger composer

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:19:33
问题 I am trying run two org example on tow different nodes acting as Org1 and Org2. I am able to query chaincode. Next I tried installing composer over it. All the steps were successful except when I tried pinging the network. It gave me ENDORSEMENT_POLICY_FAILURE error. For Org1-only and Org2-only connection profiles I have used localhost only. Moreover even though there is endorsement failure error, I can see using blockchain explorer and in logs blocks getting generating using ping command in

Hyperledger composer Access Control, allow create in transaction

好久不见. 提交于 2019-12-11 08:43:12
问题 Here is what I want to implement: I want to allow user(kind of participant) to create an asset, but do it only in transaction, whereas outside of this transaction I want deny all user rights to create assets. I tried to solve it using condition in rule .acl file using function: rule UserCanCreateAssetOnlyInTransaction { description: "Deny all participants create access to all userWallets if not in transaction" participant(p): "com.example.User" operation: CREATE resource(r): "com.example

how to define BusinessNetworkConnection in hyperledger-composer transaction processor?

冷暖自知 提交于 2019-12-11 07:29:05
问题 In my hyperledger-composer app, I have a transaction processor: async function doSomething(transaction) { //some code // the following line results in error message: const connection = new BusinessNetworkConnection(); await connection.connect('admin@tmy-network'); const result = await connection.query(selectPatientByEmail, { inputValue: email }); //some more code } However, the line const connection = new BusinessNetworkConnection(); causes the following error messsage: ReferenceError:

How to bring an app developed on Hyperledger Composer to production?

戏子无情 提交于 2019-12-11 07:08:45
问题 I'm at the stage of my project where I've Developed the Chaincode (Model,Script,ACL,Queries) Deployed on IBM Cloud Developed Front-end Apps to communicate with the cloud based REST Server Tested the code and business logic through Playground and single user REST server Now I have to add identities, connection-profiles, & business network cards to the mix to make a production-testing ready prototype and to run REST Server on Multi-User Mode. But I'm having trouble with the said things as I can

Not all pre-reqs install correctly for Hyperledger Composer

不想你离开。 提交于 2019-12-11 06:45:20
问题 I've been following the Hyperledger Composer tutorial. I managed to install Ubuntu 16.04 on Hyper-V on my Windows 10 Enterprise. I then started on the following pre-req installation instructions: https://hyperledger.github.io/composer/installing/installing-prereqs.html I ran the prereqs-ubuntu.sh script. It ran fine with no errors. I examined the logs and saw that it had successfully installed npm 5.6.0, node 8.9.4, docker 17.12.x, docker composer 1.13.x, and Python 2.7.12. However, when I

Error: pathspecs with curl -sSL [shortened-url-here] | bash -s 1.1.0

限于喜欢 提交于 2019-12-11 06:21:42
问题 According to hyperledger-composer tutorial, to deploy network with multi-organization I need to clean previous installation of composer: cd ~/fabric-dev-servers ./stopFabric.sh ./teardownFabric.sh After that, I cloned hyperledger/fabric-sample branch git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git Then, navigate to fabric-sample and download specific binaries from the repository with shortened link curl -sSL [shortened-url-here] | bash -s 1.1.0 Right after that, one

Hyperledger Composer model not persisted

扶醉桌前 提交于 2019-12-11 06:11:31
问题 I'm using Hyperledger Composer on Fabric v1.0. When stopping Fabric with fabric-tools/stopFabric.sh and then starting with startFabric.sh, the deployed model (.bna file) is no longer there. How do I set the system up so that data will stay there after a system reboot? 回答1: This is an operational consideration for how to set up a fabric environment and as you correctly observe, because our fabric dev server just start up fabric containers, if those containers are destroyed for any reason then

Hyperledger Composer v0.19.8 Error When Upgrading Business Network

筅森魡賤 提交于 2019-12-11 06:05:13
问题 I am trying to upgrade hyperledger fabric business network and I get this error composer archive create -t dir -n . && \ composer network install -a $BNA_FILE -c PeerAdmin@hlfv1 && \ composer network upgrade -c PeerAdmin@hlfv1 -n NETWORK-NAME -V 0.1.23 The version number corresponds to that one in the package.json like the documentation says it should. I get the below error when I run the upgrade command Error: Error trying to upgrade business network. Error: No valid responses from any peers