hyperledger-composer

How to deal with forms,images,videos of an asset in hyperledger composer

别说谁变了你拦得住时间么 提交于 2019-12-30 07:45:08
问题 While defining an asset in hyperledger composer model file, how do we deal with forms, images, videos? What are the data types available? For example, if my asset is house and I want to store an image of the house how do I define this in an asset? I have referred the documentation, it says the primitive data types available are string, integer, double, DateTime and boolean.] 回答1: So technically, this is a Node question. Using Javascript, eg. fs.readFileSync(‘yourimageFile.jpg’).toString(

Using endorsements in Hyperledger Composer to design a process

痞子三分冷 提交于 2019-12-30 03:37:12
问题 NB: I am seeking to understand how endorsements works in general. This will help me determine how to design applications when using Hyperledger Composer. When I read the links here and here, I came across this statement: "Transactions have to be “endorsed” and only endorsed transactions may be committed and have an effect on the state". The statement is clear. However, let's consider the composer developer tutorial here. We have a commodity that is currently owned by an owner(Trader1) who

nodejs test hyperledger composer v0.15 fails with Error: Card not found: PeerAdmin@hlfv1

落花浮王杯 提交于 2019-12-29 09:22:19
问题 With the implementation of cards in v0.15, previous versions of test routines which used profiles (obviously) won't work. However, I cannot find an SDK approach to create the necessary cards to run tests. The 'before' section of code up through v0.14 for my tests has looked like the following, which uses an embedded profile, creates a temporary instance of the network and runs the tests: describe('Finance Network', () => { // let adminConnection; let businessNetworkConnection; before(() => {

How to use passport-local to authenticate in composer rest server

江枫思渺然 提交于 2019-12-28 14:59:05
问题 I want to use passport-local to authenticate user to login into composer rest server like other passport strategies ( e.g passport-github , passport-google ). So first I try to set COMPOSER_PROVIDER variable like this "local": { "provider": "local", "module": "passport-local", "usernameField": "username", "passwordField": "password", "authPath": "/auth/local", "successRedirect": "/", "failureRedirect": "/"} Then i run the server in docker (with mongo as persisted datasource) and add some user

Error while starting hyperledger explorer with hyperledger composer

大城市里の小女人 提交于 2019-12-25 18:17:08
问题 I have deployed a simple business network using fabric-dev-servers. Everything is working fine but i am trying to integrate explorer with it. I have installed everything as it has been defined in the docs available at github. But explorer fails to start on browser. And gives error "" Failed to render one or more components". App logs [2018-08-15 15:10:13.639] [DEBUG] FabricConfiguration - Msp ID : Org1MSP [2018-08-15 15:10:13.656] [DEBUG] FabricConfiguration - Msp ID : Org1MSP [2018-08-15 15

Bluemix Blockchain service error with Fabric Composer

╄→尐↘猪︶ㄣ 提交于 2019-12-25 16:57:25
问题 Using fabric composer v0.7.0 I have deployed a business network to a Blockchain service on Bluemix (v0.6). After the app runs for a while I get the following error: throw er; // Unhandled 'error' event ^ Error at ClientDuplexStream._emitStatusIfDone (/home/vcap/app/node_modules/grpc/src/node/src/client.js:189:19) at ClientDuplexStream._receiveStatus (/home/vcap/app/node_modules/grpc/src/node/src/client.js:169:8) This sometimes happens when executing the composer network deploy command as well

Unable to import card in Hyperledger composer

我的梦境 提交于 2019-12-25 02:21:49
问题 I'm trying to deploy a business network to Hyperledger Fabric runtime by following Hyperledger Composer tutorial on "Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations)". But whenever I try to import a network card to the network, it gives an error specifying that "Errors found in the connection profile in the card". How can I solve this issue? 回答1: Composer 0.19.13 has removed the mandatory requirement for eventUrl being present in the

Composer network start [ssl certificate error] after providing .npmrc file

岁酱吖の 提交于 2019-12-25 02:16:22
问题 I am trying to deploy a sample business network from behind a corporate proxy. I am following the developer tutorial provided. While running the command composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card -o npmrcFile=/Users/user/.npmrc I get the following error Error: Error trying to start business network. Error: No valid responses from any peers. Response from

Hyperledger, Using Google OAUTH2.0 with a REST server

蹲街弑〆低调 提交于 2019-12-25 02:16:03
问题 I deployed the network to query from the REST client and launched the REST instance. I wanted to use Google Oauth for the authentication needs but there happens to be an authentication error. The network is on the localhost:3000 and looks fine; however, when I import a business card and "try it out" the /system/historian I get this response body: "error": { "statusCode": 500, "name": "Error", "message": "Error trying login and get user Context. Error: Error trying to enroll user or load

Does Hyperledger support running multi-channels in one peer?

谁说我不能喝 提交于 2019-12-25 01:48:10
问题 Same as the topic, is it possible to run 2 or more channels on a same peer container? I have been reading the docs for days about how to configure the MSP to allow such doing so? 回答1: Yes, you can run on one peer multiple chains, all you need is to produce configuration for each one of them and make peer to join it. Basically the flow works as following: You need to provide chain configuration within configtx.yaml . Use configtxgen to produce create channel transaction and updates for anchor