hyperledger-composer

Different between 'o' and arrow symbol used in .cto file?

馋奶兔 提交于 2019-12-12 08:56:42
问题 I am bit confused between 'o' and '-->' used in Model file, For example : asset Field identified by assetId { o String assetId o Customer owner --> Customer custId } participant Customer identified by customerId { o String customerId } what is difference between "o Customer owner" and "--> Customer custId"? 回答1: The o indicates that this is an o wned property of a class. Aka a "field". That means that when the instance of the class is removed, so are all its properties. The --> indicates that

Using passport-http on Hyperledger composer REST API

南楼画角 提交于 2019-12-12 08:53:41
问题 I would like to know if it is possible to use passport-http to secure the REST API of Hyperledger Composer generated with the composer-rest-server and what would be the export COMPOSER_PROVIDERS='{}' configuration. The idea is to use the identities previously generated and assigned to participants with the composer to authenticate the GET and POST requests on the API. If it were possible, how would the userID and userSecret be passed, as a special http header, in the body or as a simple basic

Why does hyperledger composer acl file not take effect?

送分小仙女□ 提交于 2019-12-12 05:49:15
问题 EDIT: rest-server gives the option "Specify if you want the generated REST API to be secured: (y/N)", is this to enforce the acl? I've been trying to setup a simple test using hyperledger-composer node js client. In my config I have the following: "connection-info" : { "participantId" : "gk1", "participantPwd" :"CjysyeLjriRT", "businessNetworkIdentifier" : "myBizNetwork", "connectionProfile" : "defaultProfile"} In my business network definition I have the following: rule Default { description

Fabric Composer Quickstart error

落爺英雄遲暮 提交于 2019-12-12 03:45:57
问题 I'm having problems with 'npm install' step in the the Fabric Composer Quickstart guide -- https://fabric-composer.github.io/installing/quickstart.html My system levels are: Ubuntu 16.04 LTS Docker version 1.12.6, build 78d1802 docker-compose version 1.12.0-rc2, build 08dc2a4 node v6.9.4 git 2.7.4 I installed the command line tools: npm install -g composer-cli Cloned the sample apps repository: git clone https://github.com/fabric-composer/sample-applications.git cd'ed to the sample apps dir:

hyperledger composer installation issue

孤街浪徒 提交于 2019-12-11 21:29:34
问题 I'm using Ubuntu 16.04 and after installing the pre-requisites, I followed the steps here: https://hyperledger.github.io/composer/next/installing/development-tools.html Everything installed without erros but when I ran this command: ./createPeerAdminCard.sh I got this error: "Cannot use v0.18.2 version of composer with fabric 1.1, v0.19 or higher is required" I was surprised v0.19 wasn't installed as part of that set up if it's needed. How can I now upgrade to composer v0.19? 回答1: Run this

Installing Hyperledger Composer on AWS Linux

只谈情不闲聊 提交于 2019-12-11 18:43:47
问题 I have an AWS instance running Fabric created from an AWS Fabric template. Unfortunately, this is a Linux (not Ubuntu) instance. Now I'm trying to install the composer tools on the same instance. The docs say that I shouldn't install anything as a root, but the system won't let me install Node unless I'm a root. When I'm trying to install composer-cli (w/o sudo), I get various permission errors. Is itpossible at all to install composer on a non-Ubuntu system? Another option is to connect to

composer rest server fails to start after upgrade to composer 0.19.6

夙愿已清 提交于 2019-12-11 17:34:56
问题 docker logs -f rest shows the following [2018-05-28 06:38:39] PM2 log: Launching in no daemon mode [2018-05-28 06:38:39] PM2 log: Starting execution sequence in -fork mode- for app name:composer-rest-server id:0 [2018-05-28 06:38:39] PM2 log: App name:composer-rest-server id:0 online { Error: Cannot find module 'base64-js' 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

REST client is stopped when angular application running

笑着哭i 提交于 2019-12-11 17:32:25
问题 In my application, I'm using a REST client and an Angular application generated by composer-cli. In sometimes, the REST client is terminated while I'm using the Angular app. I noticed that this termination happens especially whenever I'm trying to use images in the Angular app. It seems an unwanted request is sent to the REST client when the image is loading. REST client's log is as below. I'm using a default generated Angular app. Any suggestions? 回答1: I figured out the issue in my code. It

identity expired error while doing composer network ping

好久不见. 提交于 2019-12-11 17:27:58
问题 Long time back I have created a composer network by using composer version 0.19.0. Now when I am trying to ping the network using following command getting this error. composer network ping --card admin@tutorial-network output :Error: Error trying to ping. Error: 2 UNKNOWN: identity expired Please help me how to resolve this issue. 回答1: Do you have any other identities registered (and thus have cards in your card store) with your business network which haven't expired ? If you don't then you

Hyperledger Composer BNA deployment results in 'TCP write failed'

心不动则不痛 提交于 2019-12-11 17:12:11
问题 I've followed the tutorial "Build your first network" for Hyperledger Fabric and added a CA. Now, when trying to deploy a BNA with composer, using composer network deploy -a maintenance-network.bna -p maintenance -i PeerAdmin -s randomString -A admin -S , i get an error: ~/network-setup$ composer network deploy -a ~/maintenance- network/dist/maintenance-network.bna -p maint enance -i PeerAdmin -s randomString -A admin -S Deploying business network from archive: /home/vagrant/maintenance-