hyperledger

Hyperledger Composer: Error: failed to request identity. Error trying to enroll user and return certificates

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following a hyperledger composer tutorial . I am not able to execute step 15. while executing command : composer identity request -c PeerAdmin@byfn-network-org1-only -u admin -s adminpw -d alice I am getting the following error: Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1:7054] When I checked the running containers, CA is not running.. If this is the case then i don't understand why there isn't a

Hyperledger Composer - multi host installation

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've been experimenting with Hyperledger Fabric, deployed over 2 VirtualBox Ubuntu images with docker swarm. But I have some issues when it comes to the Composer installation. Network Setup: Host1: Orderer, Peer1.Org1, Peer2.Org1, CLI Host2: Peer1.Org2, Peer2.Org2 When it comes to the Fabric setup everything appears to be ok. I'm able to start the network, join the peers from the second host, and update the anchor peers (one for each organisation). The Composer installation starts with creating and importing the business network card and

Chaincode for Developers - Hyperledger Fabric Tutorial

匿名 (未验证) 提交于 2019-12-03 01:07:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm doing the Chaincode Tutorial and I have problems to compile the given chaincode ("Building Chaincode"). If I try to compile the sacc.go with go get -u --tags nopkcs11 github.com/hyperledger/fabric/core/chaincode/shim I get package plugin: unrecognized import path "plugin" (import path does not begin with hostname) package context: unrecognized import path "context" (import path does not begin with hostname) I was thinking about $GOPATH and $GOROOT as problems, so go env gives me GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64"

hyperledger fabric fabcar error

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to run fabcar example from hyperledger-fabric tutorial https://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html . when I run ./startFabric.sh I got the error : //Join peer0.org1.example.com to the channel. docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel join -b mychannel.block 2017-08-06 08:05:59.338 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2017-08-06 08:05:59.338 UTC [msp]

健康链(HDC):基础公链为经,医疗引擎为纬

我只是一个虾纸丫 提交于 2019-12-03 00:52:14
摘要: 健康链(HDC), 作为致力于建立全球慢性病数据医疗系统平台的区块链生态网络,综合考虑行业生态发展现状与技术应用实践,以建设多层级多网络的区块链网络平台为基础,更侧重医疗大数据、健康数据库、医疗人工智能的深度应用与挖掘。 HDC区块链网络平台会以基础技术公链+医疗健康专属技术引擎两个维度发展与建设,从基础设施公链角度来看,未来社会发展生态一定是多个主流生态区块链网络,各个模块技术也会迭代进化,我们在目前的架构设计中,将区块链平台技术核心模块化,实现区块链核心模块的组件化运行。 区块链带来了疯狂与迷思,更带来敬畏与焦虑,有着数不完的技术名字、技术路线和专业术语,区块链的从业者、信仰者已经眼花缭乱,好像懂了一点,但过不了几天又会迷失在新的技术陷阱中,好像无从自拔…… 区块链技术带来了什么?什么是区块链?这样的问题无数次遇到,无数人在回答,大家都在思索中前行,探索中并剖析自己的理解。我们的产业,我们的产品需要区块链化吗?我们传统产业,传统生意是不是离区块链很远?这些问题,现在的世界给我们什么样的启示与领悟。 回答这些问题最为关键的要素是区块链到底在承载什么样的价值,本质上来说区块链技术带给我们的是一种信任解决方案,是目前唯一且正在被广泛传播的一种信任网络体系和标准,它不一定是最终的选择,也不一定是最合适的选择;以现有的发展趋势与社会现状,它寄托了人们对信任的一种诉求

Difference between various blockchain protocols [closed]

只谈情不闲聊 提交于 2019-12-03 00:40:35
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . As the developers are constantly using different network protocols of blockchain such as Hyperledger, multichain, Ethereum, Corda, and others. Community will appreciate if the developers & blockchain enthusiasts can pour in some key differences between various types of

Hyperledger Fabric中的Identity

匿名 (未验证) 提交于 2019-12-03 00:37:01
区块链网络中存在如下的角色:peers, orderers, client application, administrators等等。每一个这样的角色都有一个身份标识(Identity),该身份标识是通过X.509 数字证书来表示的。这些身份标识决定了该角色的对区块链网络上资源的权限,比如是否有权限访问区块链上的某种信息。 数字身份有很多附加属性,供fabric来判断权限。数字身份给出了一个身份的组合结构,与之相关的属性称之为principal。Principals 就像用户ID或者是群组ID,但是更加复杂,因为principal中包含了该角色的一系列属性信息。当我们谈论principal的时候,就是在说觉得角色权限的各种属性信息。 为了保证身份(identity)是可以被验证的,Identity必须来自于一个受信任的颁发机构。在Fabric中,这是通过membership service provider (MSP) 来实现的。MSP是Fabric中的一个组件,它定义了管理有效identity的规则。Fabric中默认的MSP实现是使用X.509证书作为identity,采用传统的PKI(Public Key Infrastructure )结构模型。 假设你正在逛超市买东西,在买单时发现收银台只支持银联和visa的银行卡。这时如果你想使用一张不属于银联和visa的卡来支付

Hyperledger Fabric 手动部署

匿名 (未验证) 提交于 2019-12-03 00:33:02
官网的部署是做过很多封装的,即使部署成功,对于里面的组件也不是很清楚,这次会在三台虚拟机上手动一部分一部分的搭建,OS 是centos7, 由于我是在公司搭建的,公司会对IP进行检查,所以我用了NAT模式,只要注意端口冲突就好了。先搭建简单的fabric链来熟悉,整体架构如下。 Virtual Box: https://www.virtualbox.org/wiki/Downloads Centos7: https://www.centos.org/download/ putty:SSH工具, https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html FileZila: FTP工具, https://filezilla-project.org/download.php?type=client NAT的配置: Org1 Order & Peer0 Org1 Peer1 Org2 Peer0 centos 7 内部网络配置,三台server都要这样: 基础网络配置 vi /etc/sysconfig/network -scripts /ifcfg -enp0s3 然后将 ONBOOT = yes service network restart verify: ping 10.222 .48 .152 vi /etc

多机上启动多组织(4org)的fabric网络

匿名 (未验证) 提交于 2019-12-03 00:22:01
启动命令与过程与官方2org的相似,但由于组织增至了4个,所以无法用官方提供的scripts/scripts.sh脚本一键启动网络,具体分步操作如下: 首先来启动orderer节点,在orderer服务器上运行: 运行完毕后我们可以使用docker ps看到运行了一个名字为orderer.example.com的节点。 然后我们切换到peer0.org1.example.com服务器,启动本服务器的peer节点和cli,命令为: 运行完毕后我们使用docker ps应该可以看到2个正在运行的容器。 接下来依次在另外3台服务器运行启动peer节点容器的命令: 现在我们整个Fabric4+1服务器网络已经成型。 切换到peer0.org1.example.com服务器上,使用该服务器上的cli来运行创建Channel和运行ChainCode的操作。首先进入cli容器: docker exec -it cli bash 进入容器后我们可以看到命令提示变为: root @b41e67d40583 :/opt/gopath/src/github .com/hyperledger/fabric/peer # 说明我们已经以root的身份进入到cli容器内部。 创建Channel的命令是peer channel create,我们前面创建Channel的配置区块时

How to get all transaction history against a chaincode in Hyperledger fabric

こ雲淡風輕ζ 提交于 2019-12-03 00:13:47
I am able to do transactions in Hyperledger (fabric implementation). I want to see all the transactions and its payload details initiated by a user by passing the user's key. for example: A transfers 10 units to B A transfers 5 units to C D transfers 8 units to A When I pass A's key then fabric must provide me all the transactions of A. Is there any way? Or which fabric API function call should I use? You can develop the proper indexing and query function in your chaincode. Meaning for each transaction you store its details in the internal key/value store (stub.PutState) with the user as key