hyperledger

shim-client-1.0.jar missing when compiling the JAVA Chain code

感情迁移 提交于 2019-12-12 02:39:50
问题 I tried to compile the Java chain code. I get a below error . Please let me know how to fix the issue. Could not resolve all dependencies for configuration ':examples:chaincode:java:Example:compileClasspath'. Could not find org.hyperledger:shim-client:1.0. Searched in the following locations: file:/C:/Users/IBM_ADMIN/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.pom file:/C:/Users/IBM_ADMIN/.m2/repository/org/hyperledger/shim-client/1.0/shim-client-1.0.jar https://repo1.maven

Unable to register user using Hyperledger membersrvc

99封情书 提交于 2019-12-12 02:14:00
问题 I have Hyperledger setup in Ubuntu using docker images for fabric-peer and membersrvc and I am trying to setup CA as per https://github.com/hyperledger/fabric/blob/master/docs/Setup/ca-setup.md I started the docker containers using docker-compose up command but getting the following error when trying to login using POST /registrar API, with the following payload: { "enrollId": "test_vp0", "enrollSecret": "MwYpmSRjupbT" } But getting the following errors: vp0_1 | 04:40:24.157 [rest] Register -

how many number of nodes we can create under hyperledger fabric

大城市里の小女人 提交于 2019-12-11 18:37:29
问题 Is there any limit of creating number of nodes while configuring hyperledger fabric? I have gone through the below answer but I'm not clear what he is explaining. Limit of number of nodes in Hyperledger When I say number of nodes, it could be number of stakeholders(marked as organizations) or peers or endorser nodes. 回答1: The answer on that post is now incorrect. Fabric does not currently used Byzantine Fault Tolerance, it only has Crash Tolerance through Kafka ordering. Byzantine Fault

Couchdb port mapping in yaml file for Hyperledger Fabric V1.0 network setup

纵然是瞬间 提交于 2019-12-11 18:26:44
问题 Can someone please explain the port mapping in this docker-compose-couch.yaml. Please look into the following container_name: couchdb0 -ports: - "5984:5984" -- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb0:5984 container_name: couchdb1 -ports: -- "6984:5984" -- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb1:5984 container_name: couchdb2 -ports: -- "7984:5984" -- CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS=couchdb2:5984 container_name: couchdb3 -ports: -- "8984:5984" --

Connecting to a Hyperledger Fabric CA-Server using an endpoint device

不问归期 提交于 2019-12-11 18:10:10
问题 I have setup a Hyperledger Fabric CA-Server on an Ubuntu machine. I have enrolled an admin and also tried enrolling a few users. It worked perfectly fine. I now want to register a few users through a Windows machine (Client) by sending requests to the validator machine. How do I proceed for this? What are the prerequisites to be installed in the client machine? How do I make use of the APIs of the Fabric network? Currently, it says, 'Listening on http://0.0.0.0:7054' . Should the Firewall be

超级账本Fabric的交易背书过程解读

好久不见. 提交于 2019-12-11 17:43:35
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Hyperledger Fabric和其他许多区块链的关键区别之一,就在于Fabric区块链的交易执行过程:Fabric交易需要首先通过节点的背书,然后再进行交易排序,最后才利用有序交易进行账本的更新。本文将介绍Hyperledger Fabric所采用的执行-排序-验证这一三步交易模型的工作原理,以及引入背书环节对Hyperledger Fabric区块链性能的有益作用。 Hyperledger Fabric相关开发教程: Java链码与应用开发详解 Node.js链码与应用开发详解 1、交易的生命周期:Hyperledger Fabric vs. 其他区块链 在其他区块链平台中,交易生命周期基本由如下环节构成: 排序:交易有序加入账本,然后扩散到所有节点 执行:交易在所有节点上按顺序依次执行并更新账本 为了让所有节点保持一致的状态,交易必须确定性执行,也就是说,无论何时何地,同样的交易必须产生同样的结果。这一要求对智能合约形成了很强的约束,也是智能合约通常需要使用领域特定语言(DSL)来开发的原因之一,因此使用像Java或Go这样的通用开发语言基本上无法保证确定性。 在Hyperledger Fabric中,交易的声明周期则有所不同: 执行:交易(通过智能合约)以任意顺序执行,甚至可以并行执行 排序

REST client is stopped when angular application running

笑着哭i 提交于 2019-12-11 17:32:25
问题 In my application, I'm using a REST client and an Angular application generated by composer-cli. In sometimes, the REST client is terminated while I'm using the Angular app. I noticed that this termination happens especially whenever I'm trying to use images in the Angular app. It seems an unwanted request is sent to the REST client when the image is loading. REST client's log is as below. I'm using a default generated Angular app. Any suggestions? 回答1: I figured out the issue in my code. It

Hyperledger Fabric - Ledger encryption

允我心安 提交于 2019-12-11 17:22:07
问题 I have some doubts related to data registered in the ledger in HL Fabric v1.4.0. Are the data stored in the peers encrypted (world state and blockchain)? In which files of the peer is stored the ledger (blockchain part)? Is it possible to read data from the ledger data without using a chaincode? 回答1: Data is not encrypted by default. The FAQ recommends using file system encryption on the peer to achieve this. If you're using private data collections or channels the data may be encrypted even

hyperledger fabric devmode

牧云@^-^@ 提交于 2019-12-11 17:19:39
问题 I am trying to deploy chaincode in devmod on my ubuntu machine. I am following this tutorial. The issue is when I use this command : CORE_CHAINCODE_LOGLEVEL=debug CORE_PEER_ADDRESS=localhost:7052 npm start it shows the following error: 2018-09-20T16:27:18.292Z ERROR [lib/handler.js] uncaughtException: The "peer.address" program argument must be set to a legitimate value of <host>:<port> Full logs can be found here: https://hastebin.com/arerozesad.sql I am following this tutorial: https:/

How to read Block data received by transaction id in Hyperledger Fabric Go?

跟風遠走 提交于 2019-12-11 16:48:48
问题 I am working on reading the Block data received by transaction id. I have queried the ledger and received the block but not able to find a way to decode the internal data of a block. MyCode block, err := ledgerClient.QueryBlockByTxID(transactionID) if err != nil { return nil, errors.WithMessage(err, "QueryBlockByTransactionID return error") } if block == nil { return nil, errors.WithMessage(nil,"Block info not available") } here in this query, it returns the block created by a transaction. So