hyperledger-composer

Query Language : Query request on reference

微笑、不失礼 提交于 2019-12-06 04:40:45
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? Example on how to 'request it' is shown in the REST API section of the Queries tutorial https://hyperledger.github.io

How do I see the logs for Fabric Composer

妖精的绣舞 提交于 2019-12-06 04:06:10
问题 I would like to view the runtime and client logs generated by Fabric Composer but cannot find them. Can you please provide guidance on how to access the logs?. 回答1: Runtime Logs If you run docker ps -a you should see 3 running docker containers. One of the docker containers will be the chaincode container (where the Composer runtime is executing your logic). It has a generated name something like: dev-vp0-4968dea9e3a69670235d9283859801ab5df6f18398f15711d6f5426123955f9f Look for its container

Error: Expected a Resource or Concept

核能气质少年 提交于 2019-12-06 00:25:48
When I try to execute the transaction in composer-playground I got an error "getAssetRegistry is returning null and the error message says assetRegistry is not defined" /*Here is my .cto file: */ namespace org.acme.payrent participant Authority identified by authorityId { o String authorityId } participant Tenant identified by tenantEmailId { o String tenantEmailId regex =/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/ o String tFirstName o Address Address o TBankDetails tBank o Integer accountNo } participant Owner identified by ownerEmailId { o String ownerEmailId regex =/^([a

Instantiating Chaincode in Hyperledger Composer with local npm registry

▼魔方 西西 提交于 2019-12-06 00:03:36
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: container_name: npmregistry image: verdaccio/verdaccio volumes: - /home/user/repo/:/verdaccio/storage/

Error: Cannot find module './api' (Hyperledger composer)

☆樱花仙子☆ 提交于 2019-12-05 23:29:21
问题 After installing Hyperledger Composer cli from this page, I tried to call composer command but got this error: module.js:549 throw err; ^ Error: Cannot find module './api' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/user/.nvm/versions/node/v8.11.1/lib/node_modules/composer-cli/node_modules/node-report/index.js:3:13) at Module._compile

Hyperledger-Composer: Issuing identity using REST-API results in error message “fabric-ca request register failed”

两盒软妹~` 提交于 2019-12-05 20:14:12
I have created a hyperledger-composer application with an Angular frontend and multi-user authentication. The admin can create a new participant and issue an identity for this participant. Adding the participant to the network works fine. But the second step - issuing an identity for this new participant results in the following error message: "message": "fabric-ca request register failed with errors [[{\"code\":20,\"message\":\"Authorization failure\"}]]", ... see the following screenshots: and The method causing this error message is the following: createBusinessNetworkCardFile

Hyperledger Composer issue identity but missing business card

孤街浪徒 提交于 2019-12-05 19:33:09
I am working in a proof of concept with a Node.js application and 'composer-client' npm module. I have tried different commands such as adding a participant, adding an asset and performing a transaction and everything seems to work correctly. However, when I try to issue a new identity I do not get the results that I expect. I execute my Node.js application with the following code: var businessNetwork = new BusinessNetworkConnection(); return businessNetwork.connect('admin@tutorial-network') .then(() => { return businessNetwork.issueIdentity('org.acme.biznet.Trader#Trader_001', 'usr001') })

measuring Hyperledger Composer performance using Hyperledger Caliper

和自甴很熟 提交于 2019-12-05 03:44:03
Is it possible to measure Hyperledger composer network performance which runs on Hyperledger fabric using Hyperledger Caliper framework? If yes can you guide me how can I change the configuration to connect Caliper to running Hyperledger composer network? If you use composer rest server to enable rest api endpoints, you can always use apache meter to test out the latency of your system. Hyperledger Caliper is a blockchain benchmark framework to measure performance of multiple blockchain solutions. I think the below links help you a lot. Hyperledger Caliper Setup Hyperledger Caliper 来源: https:/

Does Composer needs an already built Fabric network?

本秂侑毒 提交于 2019-12-04 22:28:25
I recently started up with composer tutorials and now I am confused if it is boot starting block chain application development or block chain network development. Do we need to create a block chain network using fabric and than integrate it with composer to create rest end points and angular application for our fabric network? can we achieve decentralizing and immutable transactions by just using composer? The answer is it is "bootstrapping" application development (Composer helps get you started, by installing a 'development" Fabric setup - although you could use just Composer playground too

Hyperledger Composer - connection issue when using TLS

▼魔方 西西 提交于 2019-12-04 19:25:59
i'm having issues deploying composer on top of a multi org, multi peer network. My network has two CA's, one order and six peers (two per org). The network uses TLS, which is giving me some issues. When running composer network ping -n network2 -p org1 -i user -s pass i am receiving SSL errors; E0913 16:54:49.855499904 120141 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0913 16:54:49.864638248 120141 ssl_transport_security.c:921] Handshake failed with fatal error SSL_ERROR_SSL: