hyperledger

Hyperledger Fabric - Error while Instantiating chaincode (error trying to connect to local peer: context deadline exceeded)

北战南征 提交于 2019-12-04 21:12:27
I am using Hyperledger Fabric v 1.3.0 and trying to deploy using swarm network on multiple hosts. I am facing an issue when trying to instantiate the chaincode. The error i get is below in the image Chaincode Instantiate Error : I keep getting "Error trying to connect to local peer: context deadline exceeded" From some discussions, i added these 2 environment variables in the peer yaml CORE_PEER_ADDRESSAUTODETECT=true CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052 But still i get the same error. Any pointers regarding the same? I've seen this issue before when the peer is trying to stand up a

what kind of peer types does hyperledger have?

坚强是说给别人听的谎言 提交于 2019-12-04 19:59:34
I have heard that hyperledger has different kind of peer(node) types. I have heard that there are endorser, general, anchor, leader, orderer peers. Question 1) Could you tell me what each of these peer's role is? Question 2) Could you tell me what each of these peer has? I mean who has the ledger and chaincode both, who has only the ledger and not the chaincode or who has the chaincode and not the ledger? Fundamentally there are three types of peers in hyperledger fabric 1- Endorsing peers Endorsing peers are those peers which simulates transactions in an isolated chaincode containers and

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

≡放荡痞女 提交于 2019-12-04 19:47:00
问题 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

How to fetch asset modification history in hyperledger fabric

亡梦爱人 提交于 2019-12-04 19:39:26
I am using IBM bluemix blockchain service to tryout some smart contract logic for my asset sharing demo. Is there anyway to query the asset modified history in hyperledger fabric network. I have checked with documentations for both fabric 0.6 and 1.0 versions, but I can find only the stub.pushState(key,value_json) and stub.getState(key) to interact width the ledger. But using stub.getState(key) , I can fetch only the latest entry of the key, but how can I fetch and display the series of changes/modification written for the same key. I have iterated through the block using {peeraddress}/Block

hyperledger fabric first_network example create channel got BAD_REQUEST

好久不见. 提交于 2019-12-04 17:41:19
I have been following tutorial on hyper ledger website: https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#behind-scenes . I was able to run ./byfn.sh -m generate ./byfn.sh -m up This setup run all the way through of showning the end. like: ===================== All GOOD, BYFN execution completed ===================== _____ _ _ ____ | ____| | \ | | | _ \ | _| | \| | | | | | | |___ | |\ | | |_| | |_____| |_| \_| |____/ ./byfn.sh -m down Then I begun to follow the tutorial further to execute each line manually. I have successfully executed: cryptogen generate --config=.

Hyperledger fabric Crypto materials

China☆狼群 提交于 2019-12-04 17:16:34
If we see the crypto-config folder in basic-network of fabric-sample , we have various certificate materials with various types: └── example.com ├── ca │ ├── 0d46ccf0e9436c1bc3b6e2bf80cdb202c4943604f95c72ee0ff839d3ec300719_sk │ └── ca.example.com-cert.pem ├── msp │ ├── admincerts │ │ └── Admin@example.com-cert.pem │ ├── cacerts │ │ └── ca.example.com-cert.pem │ └── tlscacerts │ └── tlsca.example.com-cert.pem ├── orderers │ └── orderer.example.com │ ├── msp │ │ ├── admincerts │ │ │ └── Admin@example.com-cert.pem │ │ ├── cacerts │ │ │ └── ca.example.com-cert.pem │ │ ├── keystore │ │ │ └──

Modifying Hyperledger Composer WebApp

a 夏天 提交于 2019-12-04 16:58:19
I've completed the Hyperledger Composer Developer tutorial https://hyperledger.github.io/composer/tutorials/developer-guide.html and I've generated the BNA, deployed it to a local Hyperledger Fabric 1.0 instance, generated the REST API, and generated the skeleton webapp using yo. However, I noticed that the resulting webapp only has a menu for adding assets, and none for adding participants and submitting transactions. I have two questions: 1) Why doesn't the webapp generate menus for adding participants and submitting transactions? (or does it, and how do I get it to do that?) 2) In an

一个关于如何成为Java区块链开发人员采访

蹲街弑〆低调 提交于 2019-12-04 16:28:56
最近这些天,区块链是每个开发人员的谈资。来自各个领域的许多软件开发商现在正试图进入区块链市场。我们与Mobilunity的区块链软件开发人员Eugene Kyselev 讨论了他是如何走出区块链开发方面的第一步的,希望对大家有所帮助。 JAXenter:Eugene,请告诉我们您在区块链开发方面的经验。你是怎么开始的? Eugene Kyselev :说起来很平淡,一切都在正确的时间出现,对我来说,区块链开发是一个合乎逻辑的延续。我从JavaScript和其他框架开始,我想继续朝这个方向发展。几年前,随着各种ICO和采矿趋势的开始,我毫不犹豫地决定尝试区块链开发。 区块链开发现在正在以光速发展。区块链技术引起了政府和各国央行的注意;简而言之,一切都表明区块链前景光明。 JAXenter:你认为“区块链时代”将持续多久? Eugene Kyselev :很难说,这就像问“全球化时代将持续多久?” 我认为,只要对加密货币和其他区块链解决方案的需求不断增加,就需要持续一段时间。所有的一切,每件事物都会经历自己的发展,最终出现了加密货币和各种ICO,我很确定现在就是“区块链时代”,区块链技术还有许多其他重要的发现和创新应用。可以带来整个行业的新突破。 JAXenter:为什么要将技术专长转变为区块链开发? Eugene Kyselev :没有所谓的技术技能转变这样的东西

How to achieve decentralized membership in Hyperledger Fabric 1.0

别等时光非礼了梦想. 提交于 2019-12-04 14:38:41
问题 Currently in Hyperledger Fabric 1.0 there is a central membership service. I want a way to make it decentralized so that atlas 50% of the members have to agree for a new member to join the network. How can I achieve this? The idea is basically put the membership logic in chain code and let member service fetch data from chain code at the time of enrollment. But how to enforce this, I mean how do we know that membership service is actually reading from blockchain and not cheating. 回答1: This is

ERRO 003 Error trying to connect to local peer: context deadline exceeded

对着背影说爱祢 提交于 2019-12-04 14:32:21
Following my previous question . I'm still trying to make the tutorial "Chaincode for Developers" work. It still does not work : Terminal 2 - Build & start the chaincode , getting this error when running chaincode : userChaincodeStreamGetter -> ERRO 003 Error trying to connect to local peer: context deadline exceeded danrb1978 After coming across this issue, I checked which ports which were being used by "peer", and was surprised to see that the port in question, 7052, was not listed as a peer node port. So, I updated to this command, i.e. changing port 7052 to 7051: CORE_PEER_ADDRESS=peer