hyperledger

No version of composer-cli has been detected

Deadly 提交于 2019-12-03 14:10:33
问题 All, After following the instructions in this page: Installing the Development Environment to install Hyperledger Composer, I encountered this error every time I use sudo ./createPeerAdminCard.sh I am sure that I have installed the correct version of composer-cli by executing these commands: npm install -g composer-cli@next or npm install -g composer-cli@0.19.0 Can someone advice what to do? 回答1: FYI the correct Install Doc for v0.19.0 of Composer is here It looks like you are using sudo for

Where can I find out the possible environment variables for Hyperledger Fabric peer command?

空扰寡人 提交于 2019-12-03 13:42:40
问题 When configuring a peer node to run, there are a number of environment variables included in the sample docker-compose files. Is there somewhere that I can find them all documented? e.g. environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer0.org1.example.com - CORE_LOGGING_PEER=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 回答1:

私有区块链Hyperledger Fabric和公共区块链ARK.io如何通过solidity智能合约结合

喜夏-厌秋 提交于 2019-12-03 13:07:01
我想展示如何将公共区块链(如ARK.io)的功能与私有区块链(如Hyperledger)结合起来。特别是,我们将看到ARK.io上的交易如何触发在Hyperledger Fabric + Burrow中部署的Solidity Smart Contract的执行。 安装Hyperledger Fabric 删除以前的Hyperledger Docker镜像(如果有): docker kill $(docker ps -q) docker rm $(docker ps -aq) docker rmi $(docker images dev-* -q) 安装先决条件: https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html 安装依赖项: https://hyperledger-fabric.readthedocs.io/en/latest/install.html cd ~ curl -sSL http://bit.ly/2ysbOFE | bash -s 1.3.0 设置环境变量: vi ~/.profile PATH="$HOME/bin:$HOME/.local/bin:$PATH" GOPATH="$HOME/go" FABRIC_CFG_PATH="$GOPATH/src/github.com

Hyperledger Fabric 客户端开发一

北战南征 提交于 2019-12-03 13:06:50
前面介绍了hyperledger Fabric 安装, Chaincode的开发和运维, 现在来说说hyperledger fabric的客户端相关的开发。hyperledger 的客户端开发, 实际上指的是Chaincode的客户端开发。 同传统的互联网开发一样, 可以理解为hyperledger fabric是C/S架构, 当然这样的类比不是很严谨。那么, 以前的服务端API在hyperledger fabric中相当于Chaincode开发, 以前的容器或者其他类似与Tomcat, Nginx 的服务器相当于 hyperledger 中的 Blockchain 本身, 当然在Blockchain中, 数据存储也在Blockchain上, 所以Blochchain也是新的存储平台, 而传统的客户端开发, 其实就是通过SDK或者Restful APIs 和服务端进行交互, 在hyperledger中, 同样可以使用SDK 或者 Restful APIs 来和服务端进行交互, 只是, 这个交互不仅仅适合自己定义的Chaincode中的业务逻辑来进行交互, 也和Chaincode本身进行交互, 在hyperledger中, 例如客户端application 通过SDK连接访问 peer, channel, orderer , Block, Transaction等。 总的来说,

Farbic区块链PHP SDK

不羁岁月 提交于 2019-12-03 13:06:35
Hyperledger Fabric PHP SDK是社区提供的用于Hyperledger Fabric区块链应用 开发的软件包,其目的在于为PHP应用提供访问Hyperledger Farbic区块链的能力, 例如:创建通道、安装链码、访问链码等等。 如果希望快速掌握Fabric区块链的链码及应用开发,建议访问汇智网的在线互动课程: Fabric区块链Java开发详解 Fabric区块链NodeJs开发详解 Hyperledger Fabric PHP SDK的源代码仓库地址: https://github.com/americanexpress/hyperledger-fabric-sdk-php 1、Hyperledger Farbic PHP SDK的安装方法 使用php的包管理器composer安装Hyperledger Farbic PHP SDK: composer require americanexpress/hyperledger-fabric-sdk-php 2、Hyperledger Farbic PHP SDK的使用方法 使用Channel对象的 queryByChaincode 方法在PHP代码中查询链码状态。例如, $config = new \AmericanExpress\HyperledgerFabricClient\Config

What happened exactly on chaincode deploy and invoke , query, in Hyperledger?

你离开我真会死。 提交于 2019-12-03 12:59:51
问题 What happened exactly on chaincode deploy and invoke , query, in Hyperledger? Need to confirm the cost of system on Chaincode deploy, invoke and query. If they are the same, seems better to make Chaincode more than one, even hundreds, thousands. 回答1: During “ Deploy ” the chain code is submitted to the ledger in a form of transaction and distributed to all nodes in the network. Each node creates new Docker container with this chaincode embedded. After that container will be started and Init

ERROR: manifest for hyperledger/fabric-orderer:latest not found

心不动则不痛 提交于 2019-12-03 12:55:05
I am trying to start up network using following command ./network_setup.sh up channel After running this command I am receiving this errro ERROR: manifest for hyperledger/fabric-orderer:latest not found How I can remove this error?please help me This error information reveals that currently there is NO existing 'latest' tag in most 'fabric-*' images on the public docker Hub. We have to specify which image version we want to pull, either in docker command or docker-compose file You can find all available tags of 'fabric-orderer' here For example: In docker command # pull to local before using

How do we enforce privacy while providing tracing of provenance using multiple channels in Hyperledger Fabric v1.0?

大城市里の小女人 提交于 2019-12-03 12:53:15
In Hyperledger Fabric v0.6, a supply chain app can be implemented that allows tracing of provenance and avoids double-spending (i.e., distributing/selling items more than it has) and thus avoids counterfeit. As an example, when a supplier supplies 500 units of an item to a distributor, this data is stored in the ledger. The distributor can distribute a specified quantity of an item to a particular reseller by calling a "transfer" function. The transfer function does the following: checks if the distributor has enough quantity of an item to distribute to a particular reseller (i.e., if quantity

Hyperledger Docker endpoint not found

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have setup a 2 node Hyperledger network using Docker images on Ubuntu 14.04 by creating 2 containers as per the steps provided @ http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup/#leveraging-published-docker-images Then I tried to deploy a chaincode, which compiles without errors, by calling POST /chaincode API and got response 200 with the hash returned for the deployed chaincode. But immediately after that I got the following error in the docker logs: 08:44:26.560 [consensus/noops] processTransactions -> DEBU 053

hyperledger fabric java chaincode error

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i used peer chaincode deploy to run go src example, i got the right result, then i tried the java src example, enter image description here i got a chaincode,but when i used this chaincode for query,it showed me: Error: Error querying chaincode: rpc error: code = 2 desc = "Error:Failed to launch chaincode spec(Could not get deployment transaction a3a350ff98660bcade4570acd507d0b380f374ea9399194b39e0301135849feb0732 - LedgerError - ResourceNotFound: ledger: resource not found)" i use docker-tool box to create the envirement for hyperledger