hyperledger-composer

Modifying Hyperledger Composer WebApp

a 夏天 提交于 2019-12-04 16:58:19
I've completed the Hyperledger Composer Developer tutorial https://hyperledger.github.io/composer/tutorials/developer-guide.html and I've generated the BNA, deployed it to a local Hyperledger Fabric 1.0 instance, generated the REST API, and generated the skeleton webapp using yo. However, I noticed that the resulting webapp only has a menu for adding assets, and none for adding participants and submitting transactions. I have two questions: 1) Why doesn't the webapp generate menus for adding participants and submitting transactions? (or does it, and how do I get it to do that?) 2) In an

Using passport-http on Hyperledger composer REST API

雨燕双飞 提交于 2019-12-04 07:19:05
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 auth header? I've not tried, but it should be able to. The Composer REST server uses the open source

Hyperledger composer network install

浪尽此生 提交于 2019-12-04 06:54:31
问题 Hi I'm having problem when trying to composer network install Installing business network. This may take a minute... Error: Error trying install business network. Error: No valid responses from any peers. Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed composer network install 回答1: Make sure docker is running From their documentation, Installing pre-requisites Docker is required. Then try docker ps , check if the peer node/s is listed. Then try to ping

What are the functional differences between Fabric Javascript SDK and Hyperledger Composer?

梦想与她 提交于 2019-12-04 05:56:42
问题 Other than the fact that Composer makes deployment and testing of prototype business networks easier and the fact that we don't have to know golang to develop chaincode, what is the difference in the functionalities that these interfaces provide that may lead one to choose one over the other? 回答1: This article can probably provide you with the answers you need: https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/ Hyperledger Composer is both an application

No version of composer-cli has been detected

Deadly 提交于 2019-12-03 14:10:33
问题 All, After following the instructions in this page: Installing the Development Environment to install Hyperledger Composer, I encountered this error every time I use sudo ./createPeerAdminCard.sh I am sure that I have installed the correct version of composer-cli by executing these commands: npm install -g composer-cli@next or npm install -g composer-cli@0.19.0 Can someone advice what to do? 回答1: FYI the correct Install Doc for v0.19.0 of Composer is here It looks like you are using sudo for

Angular Compilation Warnings with Angular Material Declarations

倾然丶 夕夏残阳落幕 提交于 2019-12-03 08:13:02
问题 I've experiencing a bunch of warnings when trying to compile after installing Angular Material (whether directly from npm or via ng add @angular/material and whether I choose to use the animations or not). It use to work without any warning or issues. Anyone can help me? Here are the warnings: git:(master) ✗ ng serve ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Date: 2019-06-02T16:53:30.127Z Hash: 790c60ed1be271555fcc Time:

No version of composer-cli has been detected

笑着哭i 提交于 2019-12-03 04:01:31
All, After following the instructions in this page: Installing the Development Environment to install Hyperledger Composer, I encountered this error every time I use sudo ./createPeerAdminCard.sh I am sure that I have installed the correct version of composer-cli by executing these commands: npm install -g composer-cli@next or npm install -g composer-cli@0.19.0 Can someone advice what to do? FYI the correct Install Doc for v0.19.0 of Composer is here It looks like you are using sudo for some of the commands which may well be causing the problems. You should not need to use root or sudo. There

error executing hyperledger fabric code on localhost:3000 (through REST) - transactionId

。_饼干妹妹 提交于 2019-12-02 21:56:27
问题 I have tried executing a sample case of transfer of money between two accounts while referring to this: https://medium.freecodecamp.org/ultimate-end-to-end-tutorial-to-create-an-application-on-blockchain-using-hyperledger-3a83a80cbc71 I have executed all steps, from creating .bna and .card to installing them, starting the network etc. On creating the RESTful API, I am able to see the blockchain on localhost:3000/explore. I am also able to add customers and their linked account details.

Angular Compilation Warnings with Angular Material Declarations

ぃ、小莉子 提交于 2019-12-02 21:53:26
I've experiencing a bunch of warnings when trying to compile after installing Angular Material (whether directly from npm or via ng add @angular/material and whether I choose to use the animations or not). It use to work without any warning or issues. Anyone can help me? Here are the warnings: git:(master) ✗ ng serve ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Date: 2019-06-02T16:53:30.127Z Hash: 790c60ed1be271555fcc Time: 13875ms chunk {main} main.js, main.js.map (main) 10.4 kB [initial] [rendered] chunk {polyfills}

Hyperledger Composer - ACL Rule with function in condition

拜拜、爱过 提交于 2019-12-02 18:54:39
问题 I'm trying to write a little complexer logic in the condition of an ACL Rule as always the p.getIdentifier() == r.getIdentifier() , because in my fault it isn't possible. These are my models: participant Customer identified by customerID { o String customerID o String name ... } asset A identified by aID { o String aID --> Customer customer } asset B identified by bID { o String bID --> A a } Now I want to give the Customer access to see all B assets, but only where the relationship to A