hyperledger-composer

Historian for a particular participant

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 05:26:27
问题 Is there any way in which I can get Historian for a particular participant in hyperledger-composer using node API? I am developing an application based on hyperledger-composer using Node APIs.I want to show the history of transaction of a particular participant in his/her profile. I have created the permission.acl for that and that is working fine in playground. But when i am accessing the historian from node API it is giving complete historian of the network. I don't know how to filter that

Hyperledger Composer Web application user authentication

筅森魡賤 提交于 2019-12-17 09:17:11
问题 I already created a business network using hyperledger composer and I created a simple web app for adding participants and submitting transactions through web interface by using angular. Also, I have enabled authentication for the REST server using passport and I have used multiple user mode so I could export business network card to the rest api and change the default card and submit transaction via different users. Now I want to create the registration part of my web app, so my users could

Hyperledger Composer Web application user authentication

时光毁灭记忆、已成空白 提交于 2019-12-17 09:16:51
问题 I already created a business network using hyperledger composer and I created a simple web app for adding participants and submitting transactions through web interface by using angular. Also, I have enabled authentication for the REST server using passport and I have used multiple user mode so I could export business network card to the rest api and change the default card and submit transaction via different users. Now I want to create the registration part of my web app, so my users could

Hyperledger Caliper tutorial for Composer network

半城伤御伤魂 提交于 2019-12-14 04:05:57
问题 I want to execute a performance evaluation test on a deployed Hyperledger Composer business network using Hyperledger Caliper. Into the official documentation there is a section for the Composer configuration but I think that it's not very user friendly for those approaching this framework for the first time and I cannot find a better basic step-by-step tutorial for configuring and running an evaluation test. 回答1: Check that all the prerequisites are installed: NodeJS 8 (LTS), 9, or 10 (LTS)

I am using composer embeded to test my code, when I add request function to interact other server.ReferenceError: require is not defined

筅森魡賤 提交于 2019-12-14 03:08:52
问题 I was writing composer test.In my origin codes, the logic.js include request.post which interact with other server. I add var request = require('request') in the beginning to avoid error which is "error 'request' is not defined". in this way, I can translate the package into a .bna file, and work well. But when I try to write some unit test with 'embeded', the error came up with ReferenceError: require is not defined. I add the 'require' package in my package.json file. 回答1: this is because

Why does transaction give this error

心已入冬 提交于 2019-12-14 02:40:13
问题 My model.cto file - namespace org.acme.mynetwork participant Client identified by ClientId { o String ClientId o String ClientName o String[] Policies o String[] RFQAraay } participant Insurer identified by InsurerId { o String InsurerId o String InsurerName o String[] RFQArray o String[] Quotes o String[] Policies } asset RFQ identified by RFQId { o String RFQId o String ClientId o String InsurerName o String TypeOfInsurance o String RiskAmunt o String Status o String currentOwner o String[]

composer-playground: command not found on ubuntu 16.04

半城伤御伤魂 提交于 2019-12-13 22:30:26
问题 Thanks please anyone suggest me what i am doing wrong in installation?enter image description here 回答1: the problem first is to properly clean out your 'old' PHP based install -> Remove composer - but there are a number of answers posted there. Once you've done that, I would do an npm uninstall -g composer-cli etc etc then follow the doc link you referred to earlier. Failing that, create a new user (or new environment) that does not have a prior footprint of your 'old' Composer PHP

Composer runtime (0.19.13) is not compatible with client (0.20.0)

帅比萌擦擦* 提交于 2019-12-13 20:43:18
问题 composer network ping --card admin@blockchaingrades-network Error: Error trying to ping. Error: Composer runtime (0.19.13) is not compatible with client (0.20.0) Command failed 回答1: either downgrade your composer-rest-server version to version 0.19.13 (npm install -g composer-cli@0.19.13) or update your composer-cli version to version 0.20.0 (npm install -g composer-rest-server@0.20) 回答2: upgrading runtime to 0.20.0 may not be enough. I faced the same situation - i upgraded everything to 0.20

How to get notifications in user applications?

蹲街弑〆低调 提交于 2019-12-13 20:23:34
问题 In blockchain I have emitted an event which is linked with a particular transaction. I have also subscribed the event in my transaction API. But what do I do after I subscribe the event in the API? I do not know how to generate notifications in my front-end or user application using this subscribed event which was emitted by the blockchain end. Kindly help. 回答1: You can use WebSocket to get events occurs on URL by using WebSocket in JS. class Events { constructor() { // Listen for events this

Error on last step of Hyperledger Fabric installation of local runtime

瘦欲@ 提交于 2019-12-13 17:18:01
问题 Following the tutorial and tool setup as outlined here; https://hyperledger.github.io/composer/installing/development-tools.html On the very last step, I executed the script to download and install local Fabric runtime: cd ~/fabric-tools ./downloadFabric.sh The resulting log in the console contained this error at the very end: # Pull and tag the latest Hyperledger Fabric base image. docker pull hyperledger/fabric-peer:$ARCH-1.0.4 Warning: failed to get default registry endpoint from daemon