hyperledger

What is the size of the default block on hyperldger fabric?

巧了我就是萌 提交于 2019-12-03 06:59:14
I'm trying to create a estimation of the size of a chain if i create a new blockchain using hyperldger. In order to have an idea of disk space usage i would like to know that is the average size of a default block in the hyperldger fabric. Thank you before hand, Best Regards Bellow you can find default configuration provided for ordering service. You can actually control block size with BatchTimeout and BatchSize parameters, also note that this is pretty use case dependent as it relies on transaction size, i.e. the logic of your chaincode. ######################################################

Hyperledger Fabric(4)链码ChainCode

别等时光非礼了梦想. 提交于 2019-12-03 04:15:35
智能合约,是一个抽象的概念,智能合约的历史可以追溯到 1990s 年代。它是由尼克萨博(Nick Szabo)提出的理念,几乎与互联网同龄。 我们这里所说的智能合约只狭义的指区块链中。它能够部署和运行在区块链环境中,由 一段代码 来 描述 相关的 业务逻辑 。部署后的智能合约在区块链中 无法修改 ,智能合约的执行完全由代码决定,不受人为因素的干扰。一般来说,参与方通过 智能合约 规 定 各自 权利和义务 、 触发合约的条件 以及 结果 ,一旦该智能合约在 区块链环境 中运行就可以得出 客观 、 准确 的结果。 什么是ChainCode   ChainCode(链码)是智能合约在Fabric区块链网络的实现形式。分为 用户链码 和 系统链码 ,通常指的是用户链码。链码是 访问账本 的 基本方法 ,一般是用 Go 等高级语言编写的、 实现规定接口的代码 。上层 应用 可以通过 调用链码 来 初始化和管理账本的状态 。只要有适当的 权限 , 链码 之间也可以 互相调用 。   链码被部署在Fabric网络节点上,运行在隔离沙盒(目前为Docker容器)中,并通过gRPC协议与相应的Peer节点进行交互,以操作分布式账本中的数据。   启动Fabric网络后,可以通过命令行或SDK进行链码操作,验证网络运行是否正常。   它扮演的角色如下图所示:

What does each definition in configtx.yaml means in Hyperledger fabric v1.0?

允我心安 提交于 2019-12-03 04:01:54
This is related to Hyperledger fabric v1.0 network topology. From the example, configtx.yaml contains following definitions: Profiles: TwoOrgsOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: SampleConsortium: Organizations: - *Org1 - *Org2 TwoOrgsChannel: Consortium: SampleConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 - *Org2 There are two main sections. TwoOrgsOrdererGenesis This defines the orderer service and the genesis block details. TwoOrgsChannel This defines the channel details. Such as how many organization/entity are

No version of composer-cli has been detected

笑着哭i 提交于 2019-12-03 04:01:31
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? FYI the correct Install Doc for v0.19.0 of Composer is here It looks like you are using sudo for some of the commands which may well be causing the problems. You should not need to use root or sudo. There

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

核能气质少年 提交于 2019-12-03 03:21:09
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. 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 method will be executed. During “ Query ” - chain code will read the current state and send it back to user.

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

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 回答1: 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

What's the difference between Hyperledger Fabric and Sawtooth? [closed]

亡梦爱人 提交于 2019-12-03 02:40:33
问题 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 5 months ago . Both Hyperledger Fabric and Hyperledger Sawtooth are platforms for building distributed ledger applications, supporting pluggable consensus mechanisms and smart contracts (chaincodes). What are the main differences between then? When to choose one over the other to implement a

History For Private Data In Hyperledger Fabric

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there any way to get the history for Private data in Hyperledger Fabric node SDK. I've tried using getHistoryForKey(key) It returns an empty object with only { done: true } 回答1: The API to get history for private data is not yet implemented, but is planned for a future release of Hyperledger Fabric. In the interim you could add some minimal information to a public key in the same transaction for historical tracking. That could either be a logical key, or if the key itself is sensitive, you could take a hash of the logical key and save

HFC: CC deployment successfull while PEER: “Error building images: …”

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: TL;DR; Go to ---- EDIT section below I am using hfc@0.6.5 in a standalone node.js application. A membersrvc and peer are started with docker-compose , where: membersrvc: container_name: membersrvc image: hyperledger/fabric-membersrvc:latest ports: - "7054:7054" command: membersrvc vp0: container_name: peer image: hyperledger/fabric-peer:latest ports: - "7050:7050" - "7051:7051" - "7053:7053" environment: - CORE_PEER_ADDRESSAUTODETECT=true - CORE_VM_ENDPOINT=unix:///var/run/docker.sock - CORE_LOGGING_LEVEL=DEBUG - CORE_PEER_ID=vp0 - CORE

access denied: hyperledger fabric channel.initialize()

匿名 (未验证) 提交于 2019-12-03 01:25:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using a java sdk and getting an error while initializing a channel. Channel mychannel = fabClient.getInstance().newChannel(Config.CHANNEL_NAME); Orderer orderer = fabClient.getInstance().newOrderer(Config.ORDERER_NAME, Config.ORDERER_URL); Peer peer0_org1 = fabClient.getInstance().newPeer(Config.ORG1_PEER_0, Config.ORG1_PEER_0_URL); Peer peer1_org1 = fabClient.getInstance().newPeer(Config.ORG1_PEER_1, Config.ORG1_PEER_1_URL); mychannel.addOrderer(orderer); mychannel.addPeer(peer0_org1); mychannel.addPeer(peer1_org1); mychannel