1, Environmental structure Description:The system uses the container to run, the construction process is simple, each component division of labor is clear:1.docker-compose:docker container management;2.Go Lang Sdk:go language development, compilation environment;3.git:git Mirror Clone and commit;4.Rest client:rest API test;The main operations of the container are: Membersrv and peer;
2. Deployment Environment Readiness
3. Installation and Deployment3.1 Pulling the mirror from the DockerhubA. Ins
First, the Fabric SDK
The latest official document for Hyperledger fabric (V1.1.0-preview), the description of the Fabric SDK is still poor, just a few simple descriptions, plus two GitHub links: Fabric-sdk-node Fabric-sdk-java
In fact, through the Hyperledger project on GitHub we can see that Hyperledger fabric also offers another three kinds of sdk:fabric-sdk-
=/opt/gopath
Then Soorce
source/etc/profile.
Attention
If the mirror is slow, set up with Daocloud to download
curl-ssl https://get.daocloud.io/daotools/set_mirror.sh | sh-s/HTTP/ 6b8ef0e5.m.daocloud.io
Service Docker restart
if the download process encounters protoc-gen-go missing, download and copy to the corresponding directory
go get-u Github.com/golang/protobuf/protoc-gen-go
4 Fabric Mirroring
Install the fabric image (there are 2 methods, the 1th is to download the source code
Hyperledger Fabric Trading Flow
Hyperledger Fabric v1.1 provides several special chain codes to perform certain special tasks, which are known as system chain codes (Systems Chaincode). The purpose of this paper is to summarize the implementation, function and usage of these chain codes. Similar to the user chain code, the system chain code also implements the Init () and Invoke () methods. There are five t
Prerequisite conditions
CentOS 7.4 64-bit
Install Docker and configure the Aliyun accelerator
Install Docker Compose
Install Golang
Because of the forbidden relationship, there is no way to direct access to the golang.org site, but the domestic download site a lot of their own Baidu can be.
My installation path is/usr/local/src/go
Edit/etc/profile file Add related environment variables as follows
Install Git
Yum Install git
Download Fabric Source Code
Mkdir-p ~/go/src/github.com/
> Before learning bitcoin and Ethereum, must first learn its block structure, at that time in the bank to do hyperledger related projects, I was very neglected in the structure, only care about the smart contract, incredibly can also initially master and start Project-related development. This shows that the super-Ledger block attribute is actually weaker, and it is important that the properties of the smart contract. Performance is also good. In this
First, start the process of developing code on the Java chain 1. Make sure you have grandle tools.2. Download the binary distribution package from the http://gradle.org/gradle-download/3. Unpack, move to the location you want, add the Grandle Bin directory to the system path4. Ensure that the GRANDLE-V command can be executed, the version shown is 2.12 or higher5. Ensure Grandle daemon can be quickly created6. Make sure you've turned jdk8.0 and also make sure that the Java directory is in your p
problems of the project, specific instructions can refer to/usr/lib/python2.7/site.py file:
Docker-compose-f Docker-compose-cli.yaml Down
Execute command
Docker run-it CLI BashAbnormal:
[ROOT@IZ2ZEIVRKCKULQ2DTIDZTMZ e2e_cli]# Docker exec-it CLI bash
Error response from Daemon:container 1f9b6f7d709f26 3F4A67A67AD91B419B13844EFAAA4CAEB6DD571BFA829822C7 is not running
Workaround:
CLI:
container_name:cli ...
Working_dir:/opt/gopath/src/github.com/
How to contribute code to the Hyperledger Fabric project
Installation Environment
It is recommended to develop the code in the Ubuntu 14.04+ environment and install the following tools. git: Used to get the code; Golang 1.6+: Environment variables such as configuration $GOPATH after successful installation. Get Code
First register the Linux Foundation ID and log in to https://gerrit.hyperledger.org/to add a personal SSH pub key.
Look at the list of
What has been harvested and what has been done is an important issue.This article is only to learn to exchange information, personal summary. A brief analysis of Hyperledger fabric PBFT algorithm Architecture
Fabric Consensus algorithm code is all in the Consensus folder, consensus folder is mainly divided into Controller,executor,helper,noops,pbft,util file module.Among them, consensus.go mainly contains the internal interface of the algorithm plug-i
[translation]next-ledger-architecture-proposal
Original: Https://github.com/hyperledger/fabric/blob/master/proposals/r1/Next-Ledger-Architecture-Proposal.md
Translation: Sycamore Tree
Draft / in progress
This document is a proposal for a future ledger architecture based on community feedback. All inputs are the goal of community efforts. Catalogue
ObjectiveApiPoint-in-time queryQuery Language Purpose
The motivation for exploring the new ledger archit
Have the version number of the strict as required, encountered a lot of pits1) No requirement to install Git version2) Install the Go 1.9 configuration environment variable3) Install Vagrant 1.9.44) Install VirtualBox 5.1.285) Create the following directory under the Go installation directory/src/(no restrictions on location)D:\Go\src\github.com\hyperledger6) Use Git to draw official source codegit clone https://github.com/hyperledger/fabric.git7) Ope
Then the previous article also recorded the fabric1.0 test process has been in accordance with the "Blockchain Technology Guide" operation, the background log in the start of the output of the following error message
The background error of the cluster will cause the command error, guess the reason is that there is a dependency between the containers, Orderer 7050 has not been opened, Peer0 Grpc failed.
Purely personal guess, because the following error is also shown because GRPC timed out
The
As we all know, the database used by Hyperledger is ROCKSDB, and if you do not modify it, the data will be stored in the/var/hyperledger/production/db directory.
Now let's analyze the relevant code in the gray section of the diagram.
The code structure diagram is as follows
Start the database, initialize the OPENCHAINDB instance, and open the database. Note that this method does not guarantee the correct
Have a public network environment of the server can directly see Hyperledger Fabric 1.0 from scratch (ii)--Environmental Construction (public network), this article similar to the previous article, but the environment needs to build in the intranet, that is, the network is limited under the circumstances.
1: Environmental construction and testing
The host environment used in this article is CentOS, the version is centos.x86_647.2, runs the fabric nod
This article address: original link
Share your experience on Hyperledger smart contracts.
Source Address: Chaincode_example2
In the previous setfabriconubuntu, there was no need for virtualbox and vagrant to deploy the fabric directly, and its usefulness now manifests itself ~
The operation of the smart contract Chaincode does not require multiple nodes to be started locally and can be tested directly. Then we can test the existing CHAINCODE_EXAMPLE0
Installing Curl (Install curl)
If you do not have curl installed, download and install it.
Note: If it is windows, please look at the following Windows extras;
Docker and Docker Compose
Below you talk about installing Docker and Docker compose.
MAXOSX, *nix, or Windows 10 requires the installation of Docker V1.12 or a later version.
Older versions of Windows need to be installed first: Docker Toolbox before installing Docker V1.12 or later.
You can view your Docker version by entering the fol
("Creating consensus plugin%s", plugin)
Return PBFT. Getplugin (Stack)
}
Logger. Info ("Creating default consensus plugin (noops)")
Return Noops. Getnoops (Stack)
}
The controller directory is a function of the consensus plug-in selection moduleThe---->hyperledger provides two algorithms pbft and Noops----> Default single node Usage noops is equivalent to no consensus algorithm
Func newconsenter (Stack consensus. Stack) consensus. Consenter
If the currency block chain technology represented by the Bitcoin is 1.0, and the contract block chain technology represented by the Ether Square is 2.0, then the Hyperledger project which realizes the complete permission control and the security guarantee will undoubtedly represent the arrival of the block Chain Technology 3.0 ERA.
The Hyperledger project currently consists of fabric, sawtooth lake,iroha,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.