Prerequisite
Http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html
Installation method Vim bootstrap.sh chmod +x bootstrap.sh the copy in the URL into the bootstrap.sh and then executes
Node installation Note Node version
wget https://npm.taobao.org/mirrors/node/v6.9.5/node-v6.9.5-linux-x64.tar.gz
TAR-ZVXF node-v6.9.5-linux-x64.tar.gz MV node-v6.9.5-linux-x64//usr/local/cellar/node
Go install yum install Golang Find/-name Golang set path/u
business data by directly changing the COUCHDB.Let's take the official marble as an example and see what happens when we change couchdb.The following are the steps:1.install,instantiate and initializing data:Peer ChaincodeInstall-N marbles02-v1.0-P github.com/hyperledger/fabric/examples/chaincode/go/Marbles02peer Chaincode Instantiate-O orderer.example.com:7050--tls $CORE _peer_tls_enabled--cafile/opt/gopath/src/github.com/
Docker-compose
Installation of Docker
On the command line, enterdocker --versionIf it is already installed, it will show the initial version number, if not installed, will prompt us to install the commandsudo apt install docker.ioAfter the installation is completed docker-verison , the version number is displayed, even if the installation is complete.
Environment construction
Quick Start: http://hyperledger-fabric.readthedocs.io/en/release-1.1/get
The environment required to build the fabric under the ubantu environment.Configure Ubantu virtual machine under Mac, tutorial can refer to above.When the Ubantu system is ready, start the environment setup.
Environment construction
Quick Start: http://hyperledger-fabric.readthedocs.io/en/release-1.1/getting_started.html
Premise
Install Git
$ sudo apt update$ sudo apt install git
Installing Curl
$ sudo apt install curl
Install Vim
$ sudo apt install v
=/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
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
Hyperledger source code Analysis of Fabric
Deliver means that the client obtains data from the ordering service via the Grpc interface (for example, data from a specified block).
The Orderer node receives the request message, which is first given to the Deliver of the server structure in the Orderer.common.server package (SRV ab. Atomicbroadcast_deliverserver) Error method processing. This method further invokes the Handle of the deliverserver structu
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
corresponding directory, and then enter the directory, git download source code
# download Install git
$ apt-get install git
# Create source directory
$ mkdir-p/opt/gopath/src/github.com/hyperledger
$ cd/opt/ Gopath/src/github.com/hyperledger
$ git clone https://github.com/hyperledger/fabric.git
$ cd Fabric
# Use Git to get the specified version of
git checkout
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/
Super Ledger Hyperledger Cello installation deployment and simple use
Cello GitHub
Hyperledger Cello helps manage blockchain networks effectively. use to quickly build a blockchain-as-a-service (BaaS) platform. Immediately provide customizable blockchain, such as Hyperledger Fabric Network v1.0 can be used on bare metal, virtual cloud (virtual machine, virtual c
Fabric-sdk-java build and compile (this article is based on 1.0.1 version)
1, install jdk1.8 and above version
2, download Fabric-sdk-java GitHub address: Https://github.com/hyperledger/fabric-sdk-java
3. Import into Eclipse tools
4, switch to the project directory under the Command Window mode of execution: MVN compile-dskiptests,
Refresh the project after
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
First, preparatory work
1. Through the tutorial-"(i) Hyperledger fabric in the CentOS7.2 64-bit system development environment build" to determine has been downloaded Hyperledger Fabric official sample codes.
ii. generation of networks 1. Generate Network Identification
CD
Results after successful execution:
2. Start Network
./byfn.sh–m Up
Startup success:
Intermediate output slightly
Go is t
the Go programming language installed and your system is configured correctly.
Now you need to create a subdirectory under your $gopath/src/to store your link code program.
To make things simple, we provide a simple instruction:
Mkdir-p $GOPATH/src/sacc cd $GOPATH/SRC/SACC
We create a source file:
Touch Sacc.go
Housekeeping (coded)
First let's prepare the code. Like every chain code, it implements the Init and invoke functions of the chain code. So let's use the GO Import statement to impo
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.