hyperledger

Fabric开发(一)ubuntu下快速搭建fabric1.4.3

五迷三道 提交于 2019-12-26 14:40:04
1、安装前准备: 安装 git、curl、pip sudo apt-get install git sudo apt-get install curl sudo apt-get install python-pip pip install --upgrade pip 2、安装go 我这次安装的是go12.5 wget https://storage.googleapis.com/golang/go1.12.5.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.12.5.linux-amd64.tar.gz 接下来编辑当前用户的环境变量: vi ~ / . profile 添加如下: export PATH = $PATH : / usr / local / go / bin export GOROOT = / usr / local / go export GOPATH = $HOME / go export PATH = $PATH : $HOME / go / bin 编辑保存并退出vi后,记得把这些环境载入: source ~ / . profile 我们把go的目录GOPATH设置为当前用户的文件夹下,所以记得创建go文件夹 cd ~ mkdir go 3.Docker安装 卸载旧版本docker sudo apt -

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

HyperLedger-Fabric ChainCode Deployment Giving Parse Error

假如想象 提交于 2019-12-25 09:14:14
问题 I have setup a peer in a vm and its running fine. Also i have registered the chaincode with the peer through this CORE_CHAINCODE_ID_NAME=chaincode_example02 CORE_PEER_ADDRESS=localhost:51011 ./chaincode_example02 and it showed no error Now after this when i try to hit the init method from rest using this json { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID":{ "name": "chaincode_example02", "path": "github.com/hyperledger/fabric/examples/chaincode/go/chaincode

区块链技术开发路线

僤鯓⒐⒋嵵緔 提交于 2019-12-25 03:39:03
〇、背景陈述:      已经对区块链领域的学习研究了一段时间。总体来说,前期主要是围绕bitcoin架构及其源码学习的,但对这个领域的技术开发还是不太熟悉。为了使自己对区块链领域有一个系统的学习和技术锤炼,特此总结了如下技术开发路线,来逐渐充实自己的区块链开发知识体系。   这篇博文主要是对之后的技术开发路线做一个清晰的规划。   对于一个古典互联网人如何进入区块链呢?我觉得比较现实的有两种姿势。           一种是信仰,说实话,当前阶段不炒币来做区块链特别是公链的人,那真的需要信仰啊, 公链要技术上能投入实用,要把生态建立起来需要很长的过程,能耐住性子,经历创业九死一生,那不是信仰又是什么呢?这样的人值得尊敬,因为他们推动了真正的技术进步。   另一种是实用,深圳前不久开出了第一张基于区块链的发票, 现在要想做联盟链相关 的项目,其实真的机会很多,技术也相对的成熟,做做项目养家糊口很实际啊,这里区块链跟其它技术没什么两样。    作为一名比较务实的技术开发人员,为了谋生而将主要精力放在Hyperledger Fabric(联盟链)的开发上,是一个比较稳健的选择。但是对于区块链的鼻祖——比特币的学习,我认为又是不可或缺的。比特币相当于公链,相对于以太坊来说,比特币是属于比较早期的区块链。我们学习比特币主要在于对区块链的经典技术原理有一个较全面的认识和积累。  

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

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

Hyperledger Composer Identity Issue error after network restart (code:20, authorization failure)

不问归期 提交于 2019-12-25 01:36:46
问题 I am using Docker Swarm and docker-compose to setup my Fabric (v1.1) and Composer (v0.19.18) networks. I wanted to test how my Swarm/Fabric networks would respond to a host/ec2 failure, so I manually reboot the host which is running the fabric-ca, orderer, and peer0 containers. Before the reboot, everything runs perfectly with respect to issuing identities. After the reboot, though all of the Fabric containers are restarted and appear to be functioning properly, I am unable to issue

Getting Error: http: read on closed response body from Transaction Processor function in Hyperledger Composer

十年热恋 提交于 2019-12-25 00:56:14
问题 I've a fabric network running with a simple BNA. This BNA defines two types of participants viz. Corporate and Person. Here, each Person has a relationship with the corporate as shown below (cto file): participant Corporate identified by corporateId { o String corporateId o String corporateName } participant Person identified by personId { o String personId --> Corporate corporate } What I'm trying to do: Create a Corporate using Transaction Processor Function: Success Create a Person using

Organization based restrictions for participant identity issuing in Hyperledger Composer

匆匆过客 提交于 2019-12-25 00:51:25
问题 lets say we have a 2 organization network (OrgA and OrgB) both organizations have there own "Admin" identity that can issue identities. If the admin identity for OrgA issues a identity for a participant "ParA", how can one prohibit OrgB to issue a identity for that participent? 回答1: You can use ACLs to restrict the kind of participants created or that are viewable, by either Organisation's admins. Simplest way is designated participant classes for each Org and control access to participants

Hyperledger Fabric ./byfn -m up doesn't bring the network up

纵然是瞬间 提交于 2019-12-25 00:35:48
问题 I am following the tutorial to build the first network at Building your first network. When in fabric-samples/first-network, I run the command: ./byfn.sh -m generate two peers, channel, chaincode, orderer genesis block and cryptogen are created successfully. But when I run the command: ./byfn.sh -m up I get the error "line 159: docker compose: command not found. ERROR!!! Undable to start network." I have made a new clean Ubuntu 16.04 and installed everything to make sure everything is clean.