hyperledger-composer

Extra dev peers in hyperledger fabric

*爱你&永不变心* 提交于 2019-12-11 06:03:11
问题 I am following the two org hyperledger fabric example. After starting the network I can see 4 extra dev peers running along with 4 peers(2 peers per org) in docker containers. But in configuration I gave only 4 peers. I am not understanding how the other 4 dev peers got created and whats their purpose. 回答1: A specific 'Chain Code Container' gets created for each peer running the Business Network. E.g. dev-peer0.org1.example.com-tutorial-network-0.16.3... . These containers are started and

Can we rely on Hyperledger Composer ACL for privacy?

£可爱£侵袭症+ 提交于 2019-12-11 05:27:23
问题 Composer provides some pretty good ACL features, with enough granularity to prevent unauthorized access based on complex business logic. I understand that using composer's APIs, an unauthorized user will not be able to read data. However, what if the user uses Fabric's APIs? How does composer implement their ACL at the Fabric level? Is a business network sharing a single channel? In which case, does it mean that any participant/node can look at the block manually and see private data? So my

Hyperledger Composer:: Error: The current identity must be activated (ACTIVATION_REQUIRED)

左心房为你撑大大i 提交于 2019-12-11 05:21:52
问题 Any one came across hyperledger composer's chaincode error like : Error: The current identity must be activated (ACTIVATION_REQUIRED)?? The identity which I am using showing ISSUED in composer-playground. But once I am using System/ping through REST server, chaincode log showing this error. I hope at the time when a participant submits a transaction using an enrollment certificate, the Composer chaincode extracts the enrollment ID from the enrollment certificate, and uses it to look up the

How does Hyperledger composer handle endorsements

走远了吗. 提交于 2019-12-11 05:17:29
问题 I have been reading about endorsement policies e.g.here and do understand that they determine which transactions are saved in the block chain in Hyperledger Fabric v1. I am wondering how I can be able to transfer an asset across multiple stages e.g. as shown here. Is it one transaction that goes through multiple stages in order to be approved i.e. using endorsement policies? Or there are many transactions, each with its own policies. Either way, I would like to have a transaction approved by

Error while generating REST api using hyperledger composer-rest-server in centOS

自古美人都是妖i 提交于 2019-12-11 04:26:41
问题 I'm able to deploy business network using hyperledger composer in CentOS linux server but while generating REST apis using composer-rest-server i'm getting connection error? [root@bctlpblockchain03 ~]#composer network ping -c admin@tutorial-network The connection to the network was successfully tested: tutorial-network version: 0.15.2 participant: org.hyperledger.composer.system.NetworkAdmin#admin Command succeeded [root@bctlpblockchain03 ~]# composer-rest-server ? Enter the name of the

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? inside a Dockerfile

限于喜欢 提交于 2019-12-11 02:02:11
问题 I have the following Dockerfile: FROM ubuntu ENV NPM_CONFIG_LOGLEVEL warn ENV admin_user="PeerAdmin" network_name=$1 version=$2 hversion=hlfv1 fabrik_path=/fabric-tools project_dir=$(pwd) ENV card_store_dir=$project_dir/.card-store stage_dir=$project_dir/.stage env_dir=$project_dir/env is_ok=1 FABRIC_VERSION=hlfv1 WORKDIR /app COPY . /app USER root # RUN chown -R ubuntu:ubuntu . WORKDIR /app RUN apt-get update && \ mkdir "$fabrik_path" && \ cd "$fabrik_path" && \ export FABRIC_VERSION=hlfv1 &

Composer-playground not working in firefox

拜拜、爱过 提交于 2019-12-11 01:57:38
问题 The composer playground web app doesn't work correctly in Firefox. It gives Error: Object with ID 'undefined' in collection with ID 'chaincodes' does not exist in Firefox, but it works perfectly in chrome. Any ideas? 回答1: I've got the same problem locally, so the solution as suggested is to delete your cookies and browser storage. If you use this locally delete the cookies for localhost 回答2: I was having this problem which I solved by using the following commands First stop the Fabrics and

How to create participant , there identities via rest api that generated by composer rest server without importing cards via /importwallets?

只愿长相守 提交于 2019-12-11 01:18:58
问题 I have created bna and deployed in composer rest server by enabling passport and multi-user, How to create participant, their identities via rest API that generated by composer rest server without importing cards via import wallets? and there is no proper documentation for this. 回答1: assuming you've done a /Wallet/Import of an identity that can issue other identities: eg. REST Endpoint /Wallets/Import browse for file your exported admin card eg. netadmin.card and Import it. use the POST

ssl_transport_security.cc:599] Could not load any root certificate

删除回忆录丶 提交于 2019-12-11 00:58:29
问题 I try to create my own network with hyperledger compposer/fabric (v0.19.0) The network build seems to be good but when I do a composer network install ... I got this error : Composer Install.... ⠹ Installing business network. This may take a minute...E0405 10:16:40.355332702 7660 ssl_transport_security.cc:599] Could not load any root certificate. E0405 10:16:40.355402056 7660 ssl_transport_security.cc:1400] Cannot load server root certificates. E0405 10:16:40.355430951 7660 security_connector

(hyperledger composer playground) Can you see results of console.log('something') in browser?

落花浮王杯 提交于 2019-12-10 23:25:30
问题 Where console.log('') gets printed, if I don't have a local setup and working on code inside the browser. 回答1: you can see the output in the Developer console. In Firefox and Chrome browsers for example - hit CTRL-SHIFT-I and it pops up - then go to ...Console..JS and you can see what you console.log() there Beyond that (eg. client and runtime logs) see How do I see the logs for Fabric Composer 回答2: Writing console.log in a Transaction can be used to debug and see the incoming and outgoing