hyperledger-composer

Hyperledger composer peer to peer connection not establishing

爱⌒轻易说出口 提交于 2019-12-10 18:47:10
问题 We have established a business network using Hyperledger composer and created participant card by creating peers. When we try to connect the peer to a different machine in the local after importing participant card then I'm getting the following error Error: Error trying login and get user Context. Error: Error trying to enroll user or load channel configuration. Error: Enrollment failed with errors [[{"code":400,"message":"Authorization failure"}]] Business network is created in the mac

Hyperledger Composer Incompatible versions error and the versions are the same

眉间皱痕 提交于 2019-12-10 15:13:04
问题 Executing: composer network ping -n calma-network -p hlfv1 -i admin -s adminpw I receive the following error: Error: Error trying to ping. Error: Composer runtime (0.8.0) is not compatible with client (0.11.0) Command failed The versions look the same: composer -v composer-cli v0.11.0 composer-admin v0.11.0 composer-client v0.11.0 composer-common v0.11.0 composer-runtime-hlf v0.11.0 composer-runtime-hlfv1 v0.11.0 回答1: Rebooting Hyperledger Fabric (stopFabric.sh, teardownFabric.sh and

Unable to dynamically load npm-modules in ionic

元气小坏坏 提交于 2019-12-10 12:15:19
问题 I am running into an issue using the combination of the hyberledger-composer-common npm module and ionic . Basic setting up works as expected but when i am trying to connect to the hyperledger network it throws the following error: Error: Failed to load connector module "composer-connector-hlfv1" for connection profile "Default". curmod.require is not a function-connectionManagerLoader.require is not a function-connectionManagerLoader.require is not a function-Cannot find module "." at

Query Language : Query request on reference

放肆的年华 提交于 2019-12-10 10:56:24
问题 Following the tutorial, there is the query query selectCommoditiesByOwner { description: "Select all commodities based on their owner" statement: SELECT org.acme.biznet.Commodity WHERE (owner == _$owner) } But nowhere is an example explaining how to request it For the parameter owner , I tryed with the node variable owner owner.toUri() owner.getFullyQualifiedIdentifier() "resource:" + owner.getFullyQualifiedIdentifier() But nothing works Does somebody has a working example? 回答1: Example on

Debugging Transaction Code

泪湿孤枕 提交于 2019-12-10 10:37:02
问题 I've been asking myself whether there is an easy way of debugging the JavaScript code of the transactions. JS already has mature debuggers, it is only a question of how to easily bind it to the code running in the container. Does anyone have a clue? -- Thx. 回答1: One of the easiest ways to debug your transaction code is to deploy your business network into an embedded fabric which basically means that your code is run as any other NodeJS app is and you can use the node debugger to step through

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

巧了我就是萌 提交于 2019-12-09 20:54:06
问题 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

Why are the following added assets not persisted in the hyperledger registry?

我怕爱的太早我们不能终老 提交于 2019-12-08 13:52:20
问题 I have the following application code in my Hyperledger composer environment (My question only pertains to the RequestT transaction as I am yet to write the Respond transaction code): Model Code (.cto) /* * Defines a data model for chama transaction */ namespace org.acme.account.chama enum responseType { o YES o NO } enum requestType{ o DEPOSIT o WITHDRAW } enum State { o PENDING_AUTHORIZATION o AUTHORIZED o DECLINED } participant User identified by id { o String id o Double balance o String

How to find whether the transaction already exist for particular asset and participant in hyperledger composer?

馋奶兔 提交于 2019-12-08 11:35:24
问题 Participant IDFC Participant TATA , MRF Asset FINANCEPROGRAM Transaction (Data need to submit) participant(TATA) ,Asset (FINANCEPROGRAM ) ,loanAmount , loantenure I need to check whether the transaction for FINANCEPROGRAM and TATA are already exist. If so exist i need to reject the transaction. var query1 = query('SELECT com.ett.blockchain.Programmeben WHERE (beneficiary == _$beneficiary AND bankprogramme == _$bank program) '); return query('query1',{beneficiary : 'resource:com.ett.blockchain

How to configure multiple channel in fabric 1.0 using hyperledger-composer?

ⅰ亾dé卋堺 提交于 2019-12-08 11:22:09
问题 We are having more than 3 peer, We would like to configure two different channel for two different group of peers. How to configure multiple channel into connection.json for the fabric 1.0? 回答1: The connection profile defines the channel name to connect to, so you can create one connection profile (cpA) for channel A and another (cpB) for channel B. You can then deploy a business network archive (BNA) using cpA and using cpB using the composer network deploy -p command. This will give you two

Restrictive ACL for Trading network in Hyperledger Composer

两盒软妹~` 提交于 2019-12-08 10:15:24
问题 I couldn't solve my problem, so i try to explain it again: There are 2 Participants (Provider). Both of them holds own Wallet and Account and they want to exchange Cash to Tokens or visa versa. They should have just READ-access to their own assets, because of fraud, security etc. But for transactions they need UPDATE-access. Here is my code: org.acme.biznet.cto: namespace org.acme.biznet abstract participant Member identified by memberId { o String memberId o String name o String email } //