hyperledger-composer

Can we define multiple orderers and ca in connection.json?

北慕城南 提交于 2019-12-11 16:59:30
问题 Can we define multiple orderers and ca in connection.json, so that if one orderer is down then client application will automatically connect with the another available orderer? And same with the case of CA server. 回答1: The node sdk for hyperledger fabric v1.0 has always supported adding multiple orderers in it's various pre-releases of v1.0 so the hyperledger composer connection profile has always supported being able to add multiple orderers. However with the release of rc1 the comments to

What Admin peer can do in hyperledger composer?

我的未来我决定 提交于 2019-12-11 16:16:02
问题 I am following the tutorials of hyperledger composer at composer playground. In defining a business network, at some point after starting fabric, a PeerAdminCard is created by ./createPeerAdminCard.sh After that it can be seen in the card name and when imported for a specific business network, it can be seen to what Business Network it has been assigned. Based on my undestanding this peer is the admin of the network, and when you run composer-playground, this is what you see in ID Registry on

composer identity issue Authorization failure error hyperldeger composer v0.15.0

醉酒当歌 提交于 2019-12-11 15:56:46
问题 I had the same issue which discussed here, and based on comments I fixed the problem by removing .composer-credentials directory and deploying my network again. Now I am using the new version of composer(v0.15.0). I already removed two directories ( .composer-credentials and .composer-connection-profiles ), but again when I run composer identity issue -c admin@test-network -f membercard -u member -a "resource:org..." I get the same error --> fabric-ca request register failed with errors [[{

Composer rest server entity too large

♀尐吖头ヾ 提交于 2019-12-11 15:45:11
问题 I'm storing images in fabric blockchain as base64 strings. Here, whenever I try to interact(update or add assets including base64 strings) with the blockchain through the composer rest server, it throws below error, Error: request entity too large How to increase the request size limit or what are other possible approaches to handle this issue? 回答1: I was able to edit the maximum request size of the REST server by editing the server.js located in path_to_rest_server/server/ . I edited below

Error: Error trying install composer runtime. Error: Connect Failed

走远了吗. 提交于 2019-12-11 15:31:55
问题 Prog:dist abhishek$ composer network deploy -a my-network.bna -p hlfv1 -i PeerAdmin -s randomString Deploying business network from archive: my-network.bna Business network definition: Identifier: my-network@0.1.6 Description: My Commodity Trading network ✖ Deploying business network definition. This may take a minute... Error: Error trying deploy. Error: Error trying install composer runtime. Error: Connect Failed Command failed when trying to install the composer runtime,returns Prog:dist

Chaincode using GO or Composer

我的梦境 提交于 2019-12-11 15:31:07
问题 I understand that chaincode(smart contracts) on hyperledger-fabric can be written using golang. But the other thing I see as of fabric 1.0 is the composer - where I could write the 'transactions' part using JS. Is the difference that go APIs give me more lower level controls like access to MSP and CA and others? Or is it that the newer version would want you to write all your code using JS? I am looking for some clarification on specific uses of each approach. 回答1: This tutorial -> https:/

Getting an error certificate signed by unknown authority

你离开我真会死。 提交于 2019-12-11 15:29:32
问题 I am trying the "Deploying a Hyperledger Composer blockchain business network to Hyperledger Fabric (multiple organizations)" tutorial and I am stuck at the composer network ping stuff. The ping commands fails giving this error "Error: Error trying to ping. Error: Error trying to query business network. Error: Failed to deserialize creator identity, err The supplied identity is not valid, Verify() returned x509: certificate signed by unknown authority". I am trying with "tls disabled" flag

Hyperledger Composer ping on REST multi-user mode: ECONNREFUSED for issued identities from single user REST

家住魔仙堡 提交于 2019-12-11 14:26:21
问题 Following: https://hyperledger.github.io/composer/v0.19/tutorials/google_oauth2_rest I have the same problem of: Hyperledger Composer multi-user mode: ECONNREFUSED for issued identities Basically, i have two rest server and when i issue a id from port 3001 (admin card single user) then import and try to ping on port 3000 (multi-user), the same error appears. Seems like the card are being imported with the wrong hostname. But i can't do the same that the user says: " I changed the URLs over

Automatically execute transactions in hyperledger Composer

让人想犯罪 __ 提交于 2019-12-11 14:24:57
问题 This is my current composer state. Nothing special... Script File: * global getAssetRegistry getFactory emit */ /** * Sample transaction processor function. * @param {org.example.basic.SampleTransaction} tx The sample transaction instance. * @transaction */ async function sampleTransaction(tx) { // eslint-disable-line no-unused-vars // Save the old value of the asset. const oldValue = tx.asset.value; // Update the asset with the new value. tx.asset.value = tx.newValue; // Get the asset

Function in logic.js works in playground but not in REST server

百般思念 提交于 2019-12-11 14:11:34
问题 I have a function in my logic.js file that retrieves the latitude and longitude of a plane from an api: function getLocation(){ var url = 'https://opensky-network.org/api/states/all?time=1458564121&icao24=3c6444' return fetch(url) // Call the fetch function passing the url of the API as a parameter .then(function(resp){ data = resp.json() // Transform the data into json return data }).then(function(data) { lat = data.states[0][5] long = data.states[0][6] lat = lat.toString() long = long