hyperledger

peer channel creation fails in Hyperledger Fabric

拥有回忆 提交于 2019-11-27 11:42:59
I am trying to set up a sample hyperledger fabric environment with an orderer and 2 peers. I am not using docker approach instead I am running the actual executable itself. Orderer and 2 peer nodes started successfully. However, channel creation fails with the following error. Any help would be greatly appreciated. Error on the orderer window > 2017-08-17 07:28:22.338 IST [orderer/common/deliver] Handle -> WARN > 029 Error reading from stream: rpc error: code = Canceled desc = > context canceled 2017-08-17 07:31:08.044 IST [common/config/channel] > CommitProposals -> WARN 02a Current

Error in starting hyperledger fabric network with hyperledger composer

五迷三道 提交于 2019-11-27 09:33:42
I am trying to set up a network using hyper ledger composer, for which I followed the Developer tutorial for creating a Hyperledger Composer solution but when I use the command composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card It is giving the following error : Starting business network tutorial-network at version 0.0.1 Processing these Network Admins: userName: admin ✖ Starting business network definition. This may take a minute... **Error: Error trying to start

Cannot run peer because cannot init crypto

霸气de小男生 提交于 2019-11-27 08:13:42
问题 I want to run the facbar-samples on windows10,reference the http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html but get the error: $ ./startFabric.sh orderer.example.com is up-to-date couchdb is up-to-date peer0.org1.example.com is up-to-date cli is up-to-date 2017-07-05 08:17:06.550 UTC [main] main -> ERRO 001 Cannot run peer because cannot init crypto, missing /etc/hyperledger/fabric/C:/Program Files/Git/etc/hyperledger/msp/users/Admin@org1.example.com/msp folder some

Hyperledger Composer Web application user authentication

别等时光非礼了梦想. 提交于 2019-11-27 07:20:59
I already created a business network using hyperledger composer and I created a simple web app for adding participants and submitting transactions through web interface by using angular. Also, I have enabled authentication for the REST server using passport and I have used multiple user mode so I could export business network card to the rest api and change the default card and submit transaction via different users. Now I want to create the registration part of my web app, so my users could be able to register through the web application, issue an identity and then submit transactions or view

What is the difference between MSP and Fabric CA?

牧云@^-^@ 提交于 2019-11-27 01:06:11
问题 Is Fabric CA an implementation of MSP? Is an MSP useless by itself? What are the functions of the MSP and Fabric CA? And differences in those functions? 回答1: MSP is a Membership Service Provider - pluggable interface to support variety of credentials architectures, basically offering abstraction layer for membership orchestration architecture. MSP abstraction provides: Concrete identity format User credential validation User credential revocation Signature generation and verification While

Are blocks mined in HyperLedger Fabric?

风流意气都作罢 提交于 2019-11-27 00:48:09
问题 I have been reading the documentation on how HyperLedger Fabric's project is implementing a open source BlockChain solution: https://github.com/hyperledger/fabric/blob/master/docs/protocol-spec.md I have seen that PBFT consensus algorithm is used, but I do not understand how blocks are mined and shared among all Validating Peers in the BlockChain network. 回答1: Hyperledger Validating Peers (VPs) do not mine blocks and do not share the blocks between them. Here is how it works: A transaction is

Error in starting hyperledger fabric network with hyperledger composer

耗尽温柔 提交于 2019-11-26 14:47:36
问题 I am trying to set up a network using hyper ledger composer, for which I followed the Developer tutorial for creating a Hyperledger Composer solution but when I use the command composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card It is giving the following error : Starting business network tutorial-network at version 0.0.1 Processing these Network Admins: userName:

peer channel creation fails in Hyperledger Fabric

♀尐吖头ヾ 提交于 2019-11-26 12:14:14
问题 I am trying to set up a sample hyperledger fabric environment with an orderer and 2 peers. I am not using docker approach instead I am running the actual executable itself. Orderer and 2 peer nodes started successfully. However, channel creation fails with the following error. Any help would be greatly appreciated. Error on the orderer window > 2017-08-17 07:28:22.338 IST [orderer/common/deliver] Handle -> WARN > 029 Error reading from stream: rpc error: code = Canceled desc = > context

Hyperledger Fabric初识与环境搭建

巧了我就是萌 提交于 2019-11-26 11:00:36
目录 Fabric简介 Fabric环境搭建 Fabric目录结构 Node环境搭建 一.Fabric 简介 在介绍我们的主角Fabric之前,我们先来介绍一下它的父项目:Hyperledger-超级账本 Hyperledger 项目是首个面向企业的开放区块链技术的重要探索。在 Linux 基金会的支持下,吸引了包括 IBM、Intel、摩根等在内的众多科技和金融巨头的参与。 1.发展历史 区块链已经成为当下最受人关注的开源技术,有人说它将颠覆金融行业的未来。然而对很多人来说,区块链技术难以理解和实现,而且缺乏统一的规范。 2015 年 12 月,开源世界的旗舰——Linux 基金 会牵头,联合 30 家初始企业成员(包括 IBM、Accenture、Intel、J.P.Morgan、R3、DAH、DTCC、FUJITSU、HITACHI、SWIFT、Cisco 等),共同 宣告 了 Hyperledger 项目的成立。该项目试图打造一个透明、公开、去中心化的分布式账本项目,作为区块链技术的开源规范和标准,让更多的应用能更容易的建立在区块链技术之上。项目官方信息网站在 hyperledger.org, 目前已经有超过 120 家全球知名企业和机构(大部分均为各自行业的领导者)宣布加入 Hyperledger 项目,其中包括 30 家来自中国本土的企业

Hyperledger Fabric 链码(智能合约)基本操作

China☆狼群 提交于 2019-11-26 10:59:55
目录 链码概念 链码操作 一.链码概念 1.基本概念 Fabric的智能合约称为链码(chaincode),分为系统链码和用户链码。系统链码用来实现系统层面的功能,用户链码实现用户的应用功能。链码被编译成一个独立的应用程序,运行于隔离的Docker容器中。 和以太坊相比,Fabric链码和底层账本是分开的,升级链码时并不需要迁移账本数据到新链码当中,真正实现了逻辑与数据的分离,同时,链码采用Go、Java、Nodejs语言编写。 2.数据流向 Fabric链码通过gprc与peer节点交互 (1)当peer节点收到客户端请求的输入(propsal)后,会通过发送一个链码消息对象(带输入信息,调用者信息)给对应的链码。 (2)链码调用ChaincodeBase里面的invoke方法,通过发送获取数据(getState)和写入数据(putState)消息,向peer节点获取账本状态信息和发送预提交状态。 (3)链码发送最终输出结果给peer节点,节点对输入(propsal)和 输出(propsalreponse)进行背书签名,完成第一段签名提交。 (4)之后客户端收集所有peer节点的第一段提交信息,组装事务(transaction)并签名,发送事务到orderer节点排队,最终orderer产生区块,并发送到各个peer节点,把输入和输出落到账本上,完成第二段提交过程。 3.链码类型