hyperledger-composer

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

主宰稳场 提交于 2019-12-02 08:11:28
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? 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 development framework and set of powerful tools which simplifies and expedites the creation of blockchain

Composer-rest-server with passport-local strategy

*爱你&永不变心* 提交于 2019-12-02 07:57:16
问题 I am not able to find a working solution to authenticate using local strategy in composer-rest-server. In fact only one working solution is using github. I tried setting up the COMPOSER_PROVIDERS as export COMPOSER_PROVIDERS='{ "local": { "provider": "local", "module": "passport-local", "usernameField": "username", "passwordField": "password", "authPath": "/auth/local", "callbackURL":"/auth/local/callback", "successRedirect": "/", "failureRedirect": "/", "setAccessToken": true,

How should composer setup to be done for hyperledger fabric network deployment for multiple orgs on multiple physical machine

雨燕双飞 提交于 2019-12-02 07:49:59
for deploying hyperledger fabric network using composer do i need to deploy composer per orgs (here in this case i'm using 2 orgs on 2 physical machine) or i setup of composer for all orgs is required? anyone have idea on this? Hyperledger Composer can be used against any hyperledger fabric network topology you have defined, you just need to configure connection profiles and build business network cards with these profiles for the actions you want to perform. The best place to understand the connection profile requirements for a multi-organisation setup is in the multi-org tutorial on the

Could not deploy business network to hyperledger fabric beta using composer

核能气质少年 提交于 2019-12-02 06:57:41
I have tried to deploy a business network using composer to but it fails with the following error Error: event message must be properly signed by an identity from the same organization as the peer: [Expected MSP ID Org1MSP, received ]] what is the problem ? There are several reasons why you might get this error You are not running composer v0.8.0 or higher. You can check what level you are running by invoking the command composer -v You haven't specified a valid hlfv1 profile or you forgot to specify the profile to use on the network deploy command. If you have followed the tutorials and

Hyperledger Composer: Error: failed to request identity. Error trying to enroll user and return certificates

孤者浪人 提交于 2019-12-02 06:31:03
问题 I am following a hyperledger composer tutorial. I am not able to execute step 15. while executing command : composer identity request -c PeerAdmin@byfn-network-org1-only -u admin -s adminpw -d alice I am getting the following error: Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] When I checked the running containers, CA is not running.. If this is the case

When to call getAssetRegistry to update assets (and the participants equivalent)

≯℡__Kan透↙ 提交于 2019-12-02 04:06:54
I'm able to write some simplistic smart contracts using my composer development environment but am confused about when to persist assets and participants into the registry. I've read the docs on composer-runtime.AssetRegistry and the getAssetRegistry function to return an asset registry object and to perform updates but am still not clear which assets/partipants to update. Here's an example (may not be fully working): participant Trader identified by userID { o String userID o String firstName o String lastName } participant Bank identified by bankID { o String bankID o String description -->

Using two business cards in the same composer rest server configuration

人盡茶涼 提交于 2019-12-02 03:44:17
I did the tutorial to deploy to a multi org fabric network and it worked successfully . Now i have two admin cards - alice@trade-network , bob@trade-network and two identities/cards issued by them - jdoe@trade-network , dlowe@trade-network Now i have given access control rules stating that jdoe (trader1-org1) and dlowe(trader2-org2) can only view their own records Thus when i connect to their respective business cards i am able to view only their records . Now i can start two rest servers each (2 ports) for jdoe and dlowe which enables view of their records only through their rest api

need to replace localhost:3000 with realip:3000 in composer-rest-server

隐身守侯 提交于 2019-12-02 01:58:07
问题 I have uploaded the composer-rest-server on AWS machine , i have managed to launch without errors the composer-rest-server , although it always refer to http://localhost:3000 , i want to change my localhost to my actual host ip on AWS can someone help ? 回答1: You need to make your REST server available on an IP or domain resolvable hostname ie on an available network interface such that other REST clients can consume it. Its likely your REST server (accessed through Explorer) is already

Hyperledger Composer: Error: failed to request identity. Error trying to enroll user and return certificates

↘锁芯ラ 提交于 2019-12-02 00:35:16
I am following a hyperledger composer tutorial . I am not able to execute step 15. while executing command : composer identity request -c PeerAdmin@byfn-network-org1-only -u admin -s adminpw -d alice I am getting the following error: Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] When I checked the running containers, CA is not running.. If this is the case then i don't understand why there isn't a command to start CA in the byfn script. Can anyone suggest

Getting timestamps in deterministic way in Hyperledger Composer transactions

落花浮王杯 提交于 2019-12-01 22:19:04
问题 Is there a deterministic way to get timestamp in transaction function, similar to stub.GetTxTimestamp() that can be used in Go version of Fabric's chaincode. 回答1: Just sharing an example that works with basic-sample-network network: In the model file ( lib/org.acme.sample.cto ) I extended SampleAsset definition any added new property called timestamp of type DateTime : asset SampleAsset identified by assetId { o String assetId --> SampleParticipant owner o String value o DateTime timestamp }