first of all thanks to the dark blue habitat, this tutorial is based on his tutorial [http://www.cnblogs.com/studyzy/p/7437157.html] collation, block chain technology developed quickly, in the great God's tutorial a little to add. In addition, there are also in the learning block chain students can contact me, we learn from each other.
In the first contact with Hyperledger, very confused, do not know where to start. The tutor suggested that I not on
Operating Environment CENTOS7 64-bit
1. CentOS Docker Installation
Yum-y Install Docker-io
2. Start Docker Service
Start: Service Docker start
Boot from: Chkconfig Docker on
View Docker versions: Docker version
3. Installation container compose:
Curl-l https://github.com/docker/compose/releases/download/1.11.2/docker-compose-' uname-s '-' uname-m ' >/usr/ Local/bin/docker-compose
chmod +x/usr/local/bin/docker-compose
View the version number and display version information if the installati
Blockchain is a popular technology nowadays, where IBM Hyperledger (open source) is the leader in the alliance chain. IBM has the relevant courses.
The following is the entire process of building hyperledger fabric in your own Ubuntu development environment for reference.
First, the previous step diagram
(the original is not carefully encrypted by the DSM, can no
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
-compose
View Dockercompose Version Information
$ docker-compose --version
Output:docker-compose version 1.8.0, build unknown
Golang
Fabric1.1.0 Version Requirements go1.9+
Fabric1.0.0 Version Requirements go1.7+
Upload go1.10.1.linux-amd64.tar.gz
Unzip the file
$ tar -zxvf go1.10.1.linux-amd64.tar.gz
Edit environment variable File
Add the following content:
export GOPATH=$HOME/gocodeexport GOROOT=$HOME/goexport PATH=$GOROOT/bin:$PATH
$ source .bashrc$ go version
Output:go version go1.10.1 linu
I. Concepts
Hyperledger is a umbrella project of open source Blockchains and related tools, started in December 2015 by the Linux Foundation, to support the collaborative development of blockchain-based ledgers.
Hyperledgerfabric is a subproject based in Openblockchain denoted by IBM.
Hyperledger Fabric is a platform for distributed ledger solutions, underpinned
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
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/gopa
0x00
In fabric, peer is an important binary program, its function is mainly to provide peer related operations, regarding peer concept, can refer to official Document 1 and Official Document 2, peer this CLI tool, as a client, can be launched to the Blockchain Network ( channel ) peerrelated from the operation, this command contains a lot of sub-commands, this article will not be introduced, this is not the purpose of this article, this article is mai
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
. IbmBluemix garages for blockchainHelp businesses accelerate the design and development of blockchain applications, for more Info-https://www.ibm.com/block Chain/garage.html.
Let ' s get started. As you can see from the below snapshot, I am using Ubuntu 16.04.1 LTS machine with 8 core processor and GB RAM. Using Putty I am accessing it as superuser.
Make sure network was configured properly and Internet is accessible. You can check/etc/hosts and/etc/resolv.conf. Try to ping any Web address t
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
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,
written yet) and why it failed. In other words, you can use JUnit testing as a guide to implement code correctly.Now, if it's hard to understand, don't worry; I've provided a solution in com.makotojava.learn.blockchain.chaincode.solution in case you're stuck (or want to help with the implementation by reference).Writing the Java chain codeLet's start by introducing some of the background you need to know to implement the chain code approach in Chaincodelog. The Java chain code communicates with
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
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/
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
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 modu
current fabric there is limited development resources, so in 1.0 will not do, may be achieved in the future. COUCHDB Installation
Now let's talk about this couchdb.
COUCHDB is a database of key values for a full local restful API, which means we don't need any clients, we just need to operate the database via HTTP requests. Leveldb is a peer local database, then certainly and peer one-to-one relationship, then COUCHDB is a network database, should an
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.