blockchain

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

从0到1 快速建一个区块链

▼魔方 西西 提交于 2019-12-03 10:37:54
近期的区块链重回热点,如果你想深入了解区块链,那就来看一下本文,手把手教你构建一个自己的区块链。 弄懂区块链的最快方法-亲自构建一个 看到这篇文章,说明您也是对加密货币的兴起感兴趣,想知道区块链是如何工作的和其背后运行的技术原理。 但是想要搞懂区块链并不容易。我在众多的视频中苦苦钻研,跟随着漏洞百出的教程,经历着因区块链相关案例太少而产生的挫败感。 我喜欢从行动中学习。它迫使我从代码层面处理问题,从而解决问题。如果您和我一样做,那么在本指南的最后,您将拥有一个运行正常的区块链,并对它们的工作原理有深入的了解。 上手准备 请记住,区块链是一个不可变的、连续的记录链,称为块。它们可以包含事务、文件或您喜欢的任何数据。但是重要的是,它们通过使用哈希而被链接在一起。 如果您不确定什么是哈希值,请参考这里。 教程面向的人群? 可以轻松地阅读和编写一些基本的Python,并且对HTTP请求的工作方式有所了解,因为本文将通过HTTP与区块链进行交流。 需要准备什么? 确保已安装 Python 3.6 +(以及pip)。您还需要安装Flask和很棒的Requests库: pip install Flask==0.12.2 requests==2.18.4 您还需要HTTP客户端,例如Postman或cURL。 源代码可在此处获得。 步骤1:构建一个区块链 打开你最喜欢的文本编辑器或IDE

How to add a new peer to an existing Hyperledger Fabric network?

北城以北 提交于 2019-12-03 08:51:20
问题 When you create a hyperledger fabric network, you define organizations, orderers and peers in crypto-config.yaml and configtx.yaml . But how do you add a new organization or a new peer to an existing organization in a network that is already setup? Run cryptogen and configtxgen pointing to config files that contain only the new organizations/peers? Re-generate everything? 回答1: You can achieve this by generating the crypto material (using cryptogen extends ) for the new peer, spawning the new

properties of a cryptographic hash function

房东的猫 提交于 2019-12-03 05:43:57
问题 In the week 1 lecture of the bitcoin coursera course, there is a discussion of the 3 properties of a cryptographic hash functions: Collision-resistance: A hash function H is said to be collision resistant if it is infeasible to find two values, x and y , such that x != y , yet H(x)= H(y). Hiding: A hash function H is hiding if: when a secret value r is chosen from a probability distribution that has high entropy, then given H(r ‖ x) it is infeasible to find x. ‖ means concatenation of two

大话区块链【Blockchain】

风格不统一 提交于 2019-12-03 04:52:44
最近这几天区块链又粉墨登场了,新闻媒体也一直在大量报道,宣称可能要在金融界掀起一番浪潮。甚至有人说很久之前中国就出现了区块链的产物——麻将。那么区块链到底是什么,麻将和区块链又有什么关系呢? 笔者这两天也阅读了相关文献和资料,下图是我学习的一个路径,本文也是按照自己了解区块链的路径做的一些总结,篇幅较长,写这篇文章的目的也是希望能简单地向对区块链技术不了解但是想知道区块链是什么的人介绍区块链技术,因为自己在区块链方面也是一个小白,如果有错误的地方,还望各位留言指正。 区块链 -> 比特币 首先我们得先知道,区块链和比特币之间并不等同,如果要论辈分,区块链应该是比特币的爸爸,为什么这么说呢?我们先来了解下区块链是什么,以及区块链是用来干嘛的。 什么是区块链?区块链是做什么的? 一提到区块链,相信很多人都会想到什么去中心化、分布式、不可篡改之类的名词。说实话我刚开始由于姿势水平不够看到这些名词的时候也是一头雾水,《区块链技术发展现状与展望》一文给出如下定义: 狭义来讲,区块链是一种按照时间顺序将数据区块以链条的方式组合成特定数据结构, 并以密码学方式保证的不可篡改和不可伪造的去中心化共享总账(Decentralized shared ledger),能够安全存储简单的、有先后关系的、能在系统内验证的数据。 广义的区块链技术则是利用加密链式区块结构来验证与存储数据

What is blockchain and Ethereum? Where is it used?

最后都变了- 提交于 2019-12-03 03:51:56
I just got chance to work on Ethereum, block-chain based platform. But I don't have a clear idea in which scenarios this is used, any real life use of this.Could anybody help me understand blockchain based platform and its real life uses? Welcome to blockchain world.Don't get demotivated, Blockchain area is relatively new & hard to find good tutorials.I also started learning blockchain related technologies a month ago & I would like to share some ideas about Blockchain & Ethereum.Since your question is not directly related to Nodejs & Javascript,I would like to suggest you modify the question

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.

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

Performance Test of the Hyperledger Fabric

China☆狼群 提交于 2019-12-03 01:32:54
问题 During trying to achieve the performance with Hyperledger Fabric which IBM team reported in their article Hyperledger Fabric: A Distributed Operating System for Permissioned Blockchains, I faced some problems and errors. I collected all useful information and want to share it with the HF community. Also, I have a couple of questions to the Fabric developers about its performance. Target description Hyperledger Fabric v1.1.0 network deployed using Cello on four c5.9xlarge (36vCPU) aws