hyperledger

How can I set up hyperledger fabric with multiple hosts using Docker?

百般思念 提交于 2019-11-28 14:55:59
问题 I work on the Hyperledger Fabric v1.0 and would like to make the Getting Setup work on multiple hosts. For now, 2 would be great. Here is what I want to do: Host1 : start an orderer and 2 peers Host2 : start 1 peer Host2 : A client creates a channel (using the channel_test.sh updated with the good hosts IP) and join all the 3 peers Host1 : Call de deploy.js of the given example to deploy the chaincode I have a problem on the 3rd step. I think the channel creation works but on my peers log I

Cannot run peer because cannot init crypto

扶醉桌前 提交于 2019-11-28 14:10:40
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 that I have installed: $ npm -v 5.0.4 $ node -v v6.11.0 $ curl -V curl 7.54.0 (x86_64-w64-mingw32)

Historian for a particular participant

流过昼夜 提交于 2019-11-28 13:09:09
Is there any way in which I can get Historian for a particular participant in hyperledger-composer using node API? I am developing an application based on hyperledger-composer using Node APIs.I want to show the history of transaction of a particular participant in his/her profile. I have created the permission.acl for that and that is working fine in playground. But when i am accessing the historian from node API it is giving complete historian of the network. I don't know how to filter that for a participant. you can return results from REST API calls since v0.20 to the calling client

IBM Blockchain - Simple Application

烂漫一生 提交于 2019-11-28 11:55:35
问题 Alright, I need to develop a simple application in an IBM Blockchain(starter plan). But I can't get it done, after almost 1 month of trial and error and thousands of tutorials. So, my case is really simple(I guess): I have a models.cto file: namespace com.test.models /** * A company asset. */ asset Company identified by company_id { o String company_id o String document_key o String document_value o String name o String telephone o String email } /** * A person_in_charge asset. */ asset

Hyperledger fabric client credential store using CouchDB

馋奶兔 提交于 2019-11-28 10:19:21
问题 I am using Hyperledger Fabric SDK for node.js to enroll a user. I am using this code to deploy in fabric. It uses FileKeyValueStore (uses files to store the key values) to store client's user credential. I want to use CouchDBKeyValueStore to store user key in CouchDB database instance. What changes do i need to make in client connection profile configuration file for credential store and in code to do so. Any link to sample code will also help. 回答1: There is no built-in support in the

How to use hyperledger getnative API

佐手、 提交于 2019-11-28 08:28:42
问题 I came across the getNative API through which one call chaincode from Hyperledger composer. See here: https://github.com/hyperledger/composer/issues/3120 Can someone please tell me exactly how does this work? Say if I have a very simple chaincode with a getter and setter, can I invoke those from the JS code in composer 回答1: To call the Hyperledger Fabric API in a transaction processor function of composer , the function getNativeAPI must be called. getNativeAPI allow users to call directly of

What is the difference between MSP and Fabric CA?

故事扮演 提交于 2019-11-28 06:24:26
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? 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 Fabric-CA used to generate certificates and keys to actually initialize MSP facilities. Fabric-CA is a default

Are blocks mined in HyperLedger Fabric?

橙三吉。 提交于 2019-11-28 05:07:05
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. Hyperledger Validating Peers (VPs) do not mine blocks and do not share the blocks between them. Here is how it works: A transaction is send to one trusted VP. The VP broadcasts the transaction to all other VPs. All VPs reach consensus (using

Hyperledger Fabric GOSSIP_BOOTSTRAP & GOSSIP_EXTERNALENDPOINTS

…衆ロ難τιáo~ 提交于 2019-11-27 15:16:47
问题 I was looking into the docker configuration files and found two parameters in peer environment as shown below: environment: - CORE_PEER_ID=peer0.org1.example.com - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP Can anyone explain what there two variables CORE_PEER_GOSSIP_BOOTSTRAP & CORE_PEER_GOSSIP_EXTERNALENDPOINT works. How they can be

Difference between hyperledger composer and hyperledger fabric?

安稳与你 提交于 2019-11-27 11:59:56
问题 I am java developer and new to hyperledger. I am interested in learning it and need to know where to start . fabric vs composer? 回答1: Hyperledger Composer simplifies application development on top of the Hyperledger Fabric blockchain infrastructure. If you are interested in the blockchain infrastructure, start with the Fabric tutorials. If you are interested in blockchain applications, start with the Composer tutorials. The Fabric tutorials also include samples of low level chaincode