hyperledger

composer-playground: command not found on ubuntu 16.04

半城伤御伤魂 提交于 2019-12-13 22:30:26
问题 Thanks please anyone suggest me what i am doing wrong in installation?enter image description here 回答1: the problem first is to properly clean out your 'old' PHP based install -> Remove composer - but there are a number of answers posted there. Once you've done that, I would do an npm uninstall -g composer-cli etc etc then follow the doc link you referred to earlier. Failing that, create a new user (or new environment) that does not have a prior footprint of your 'old' Composer PHP

How to get notifications in user applications?

蹲街弑〆低调 提交于 2019-12-13 20:23:34
问题 In blockchain I have emitted an event which is linked with a particular transaction. I have also subscribed the event in my transaction API. But what do I do after I subscribe the event in the API? I do not know how to generate notifications in my front-end or user application using this subscribed event which was emitted by the blockchain end. Kindly help. 回答1: You can use WebSocket to get events occurs on URL by using WebSocket in JS. class Events { constructor() { // Listen for events this

Questions on hyperledger fabric MSP setting

最后都变了- 提交于 2019-12-13 18:13:22
问题 Background I am studying the hyperledger fabic tutorial: Building Your First Network (BYFN), and studying the details of the scripts. The source codes can be found here. Question The command byfn.sh generate runs cryptogen generate ./config=./crypto-config.yaml and then generates certificates. A directory crypto-config/ is produced with sub-directories ordererOrganization/ and peerOrganizations/ . In the path crypto-config/peerOrganizations/org1.example.com/ . It consists of ca/ msp/ peers

Composer network install: ERROR no valid responses from any peers

一曲冷凌霜 提交于 2019-12-13 17:06:13
问题 I'm working on the hyperledger blockchain on Ubuntu 18-04 LTS via this tuto hyperledger.github.io/composer/latest/tutorials/developer-tutorial . I have installed all the pre-requisites and in this step of running "composer network install", I faced this issue and tried some solutions but still not working. Any help please ? Thanks ! ~/tutorial-network$ composer network install --card PeerAdmin@hlfv1 --archiveFile tutorial-network@0.0.1.bna ✖ Installing business network. This may take a minute

Hyperledger fabric understanding MSP

感情迁移 提交于 2019-12-13 16:54:06
问题 I want to clear in my mind the use of a MSP, So my question is when a user wants to use a channel for any reason, the local MSP provide him an identity with his private key (in docs said the MSP has a keystore) and after the channel confirm the user using the channel MSP? When CA involved to? 来源: https://stackoverflow.com/questions/53297909/hyperledger-fabric-understanding-msp

Unable to print to logs in Hyperledger chaincode

独自空忆成欢 提交于 2019-12-13 15:21:59
问题 Why am I not able to see output of any of the "fmt.Println" or "fmt.Printf" statements specified in the chaincode in the logs even when the logging level is set to "DEBUG"? I am using pre-built docker images to start a hyperledger node in Ubuntu. 回答1: Most likely that is happening because you are trying to find your messages in a log stream which is generated by peer server. But chaincode is executed in independent docker container and has it's own log stream. In order to get an access to the

chaincode in hyperledger composer vs chaincode in hyperleger fabric?

心不动则不痛 提交于 2019-12-13 13:24:09
问题 does same functionality can be achieved by writing chaincode with javascript in hyperledger composer as writing chaincode with go in Hyperledger fabric? and What are the limitations and benefits of writing chaincode in JS as compared to writing in go ? 回答1: On question 2: this article can explain as a side-by-side comparison (Golang (Go) and Composer model-driven approach) -> https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/. The main difference is Hyperledger

Can we add new node in running blockchain network developed using Hypeledger?

☆樱花仙子☆ 提交于 2019-12-13 10:06:43
问题 Can we add new node in running blockchain network developed using Hyperledger? 回答1: If I understand your question the right way, the answer is: Yes Just in case you want to add a new Organization into a running network, you can follow this tutorial. Briefly, It's 5 steps: Step 1: Prepare new Organization's configuration files ( new-org-crypto.yaml and configtx.yaml , which contains only the config of the new Organization). Step 2: Generate crypto materials for new organization base on the

Getting grpc timeout while setting up Hyperledger development environment and network

核能气质少年 提交于 2019-12-13 05:14:10
问题 I followed the docs provided by the hyperledger/fabric documentation. I have setup a network with two validating peers and not CA. I try to run the "peer node status" and "peer network list" command and keep getting the following error: "Error: Error trying to connect to local peer: grpc: timed out trying to connect" I also tried changing the "maxprocs" to 2 in the core.yaml file, but it still didn't fix the issue. Any help is appreciated. 回答1: The “Error: Error trying to connect to local

v0.19.2 hyperledger composer network start failed

不打扰是莪最后的温柔 提交于 2019-12-13 05:09:20
问题 I have already implemented my .bna file named "supply-chain-network" but I think that the problem isn't in the .bna , since I have tried with another .bna (the basic-sample-network in hyperledger composer playground) and the problem still persists. Composer version: 0.19.2 Operating System: Ubuntu 16.04 running in VM Steps: download the fabric-dev-servers ./downloadFabric.sh ./startFabric.sh ./createPeerAdminCard.sh exported the basic-sample-network from the playground (my-basic-sample.bna)