hyperledger

Difference between Fabric CA server and CA Client

半城伤御伤魂 提交于 2019-12-21 20:29:05
问题 What are the functions of the Fabric CA Server and Fabric CA Client? What are the Roles of the Fabric CA Server and Fabric CA Client? Thanks 回答1: Fabric CA provides features such as: Registration of identities with roles like peer, user or application, or connects to an existing LDAP as the user registry to fetch identities of the mentioned roles. Issuance of Enrollment Certificates (ECerts) for signing and identifying Issuance of Transaction Certificates (TCerts), providing both anonymity

Hyperledger Fabric on Raspberry pi 3

北城余情 提交于 2019-12-21 20:17:52
问题 I'm trying to deploy hyperledger fabric on a raspberry pi, but it doesn't work. I'm searching for some tutorial but i didn't found it, there are someone that just did it? 回答1: Last time I've tried to run Hyperledger Fabric on RPi I've prepared following instructions: Install latest RASPBIAN on SD card, you can download image from:
 https://www.raspberrypi.org/downloads/raspbian/ Update and upgrade latest by running:
 sudo apt-get update && sudo apt-get upgrade -y Install required dependencies

How are new participants authenticated into a channel in hyperledger fabric

ぃ、小莉子 提交于 2019-12-21 06:26:20
问题 I came across Hyperledger fabric client which has methods/functions to authenticate new members into blockchain network. But I am not sure how I can authenticate new users into a channel in blockchain network. Can i use channel configuration(configtx) in hyperledger fabric to invite/register new participants into a channel? Link to channel configuration :http://hyperledger-fabric.readthedocs.io/en/latest/configtx.html#channel-creation 回答1: you can use fabric-ca. Fabric-ca provides several

Unable to connect peer to channel in hyperledger fabric

天涯浪子 提交于 2019-12-21 06:01:06
问题 I am following below link to setup my first network on Hyperledger Fabric http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html Whatever steps are mentioned in this setup i am pretty much able to do all. The issue is than when I try to join other peers to the channel, using below instruction You can make other peers join the channel as necessary by making appropriate changes in the four environment variables. I export following variables export CORE_PEER_MSPCONFIGPATH=/opt

Difference between chain and state database in Hyperledger fabric?

六月ゝ 毕业季﹏ 提交于 2019-12-21 04:42:24
问题 What are the main difference between chain and state database in Hyperledger fabric. I'm confusing whether they both are same. 回答1: There are two place which "store" data in Hyperledger Fabric: the ledger the state database The ledger is the actual "blockchain". It is a file-based ledger which stores serialized blocks. Each block has one or more transactions. Each transaction contains a read-write set which modifies one or more key/value pairs. The ledger is the definitive source of data and

Java Chaincode学习交易系统中Hyperledger Fabric帐户钱包模型

邮差的信 提交于 2019-12-20 16:31:27
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 这是Hyperledger Fabric Java Chaincode的教程。还有Go和NodeJS Chaincodes,我们将来可能会讨论它们。此外,我采用基于帐户的钱包模型作为示例,我们将使用Hyperledger Fabric构建你的第一个网络(BYFN,build your first network),作为我们的测试环境(v1.4网络)。 如果你不知道如何启动 BYFN 网络,我也会提供步骤,不用担心。但是如果你想了解 BYFN 是如何工作的,你可以参考: 1. Hyperledger Fabric官方 BYFN 教程 2. 我之前关于 BYFN 的文章 基于帐户的钱包模型 基于帐户的钱包模型是交易系统的实现之一,一般而言系统中存在一些钱包,并且每个钱包包含可用于转账的一些值或代币。当然,实现的细节有很多变化,例如代币交换和多代币功能。 特征 在Java Chaincode中,我们将实现: 1.用户钱包创建。 2.用户钱包查询。 3.钱包代币转账(即从一个钱包发送钱或代币到另一个钱包)。 [可选] Hyperledger Fabric中有两个数据库选项用于保存超级账本的 world state :LevelDB和CouchDB,在本教程中,为了简单起见,我将使用LevelDB。 [可选]在上面,

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

♀尐吖头ヾ 提交于 2019-12-20 15:28:06
问题 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

Error building images: Tag latest not found in repository docker.io/hyperledger/fabric-baseimage

纵饮孤独 提交于 2019-12-20 07:34:28
问题 I deployed a chaincode to a network of peers. It was unsuccessful. I looked at a peer's log and saw an error message: Error building images: Tag latest not found in repository docker.io/hyperledger/fabric-baseimage. 回答1: Pull a specific base image from https://hub.docker.com/r/hyperledger/fabric-baseimage/ using docker pull hyperledger/fabric-baseimage:<tag name> Check the image id of the downloaded image using docker images Tag this image as latest docker tag <imageID> latest 回答2: you should

Hyperledger explorer in docker-compose is not working with the Hyperledger blockchain

吃可爱长大的小学妹 提交于 2019-12-20 07:14:39
问题 I am trying to get hyperledger explorer to work with docker-compose, hyperledger blockchain explorer did not connect to the hyperledger blockchain network. It says "Failed to connect client peer, please check the configuration and peer status". However I followed all instructions I could find to get it to connect. The Hyperledger explorer starts up and I can access it at http://localhost:8090/ but it does not connect to the blockchain. Here is the github project where it is not working. https

Composite key vs Single key append strings

左心房为你撑大大i 提交于 2019-12-20 06:19:33
问题 Watching many examples in Hyperledger Fabric I found two ways to achieved a key: Let's suposse we have two fields visa and type of visa. Visa: "1212323" Type of Visa: "Student Visa" So we can create a key neither: Using CompositeKey function provide by stub key, err := stub.CreateCompositeKey(indexName,[]string{visa, typeVisa}) stub.PutState(key, value) Concatenating the two fields stub.PutState(visa+typeVisa, value) What is the difference between those two approaches? What is the best