: $PATH
Exit Edit and enter the following command to make the changes effective:
Source/etc/profile
Enter the following command to see if the installation was successful:
Go version
If it appears: Go version go1.9.2 LINUX/AMD64 indicates a successful configuration.
As for Gopath, this is the directory where the Go program runs, that is, all the go programs you write are placed in this directory. Based on the above configuration, we create a new Gopath folder in the ~ directory and then create
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
time, which may miss this "virtual value" during this process. COUCHDB is run as a standalone database process with peer, so there are additional considerations for setup, management, and operation. We can consider starting with the default embedded Leveldb, which can be transferred to COUCHDB if additional complex rich queries are required. modeling Chaincode Asset data as JSON is a good practice so that we can execute the complex rich queries we need in the future. Using the CouchDB in Ch
This is a creation in
Article, where the information may have evolved or changed.
Source code compilation-why?
The compilation of fabric source code is based on the basic knowledge of some of the modules or modules of the fabric. But why compile the source of the fabric, the gods have already written the fabric of the
Guide for installing and using Fabric, an automated deployment module of Python, pythonfabric
Fabric is a python2.5 or higher library. You can execute tasks in batches on multiple hosts through ssh. complete system management tasks. it provides a set of basic operations to execute shell commands locally and remotely, or upload and download files to help users input or terminate execution.
The following two
1. Way One
Direct download to the Docker hub:
https://hub.docker.com/r/hyperledger/
Docker Pull hyperledger/fabric-peer:x86_64-1.0.1Docker Pull hyperledger/fabric-orderer:x86_64-1.0.1Docker Pull hyperledger/fabric-ccenv:x86_64-1.0.1Docker Pull hyperledger/fabric-ca:x86_64-1.0.1Docker Pull hyperledger/
Fabric Source Parsing 12--peer MSP service
MSP is the abbreviation for Membership service Provider , and the personal custom is a member relationship service provider . The role is similar to having a large number of participants in a running fabric system network, in order to manage these participants, identify who is qualified, who is ineligible, maintain the rights of one participant, and maintain the r
Output:go version go1.10.1 linux/amd64
If you have an older version of Golang in your system, uninstall the old version of Golang using the following command, and then reinstall
$ su -# apt-get remove golang-go --purge apt-get autoremove --purge apt-get clean
Installing node and NPM
Install NVM
Install node
$ nvm install v8.11.1
Check node version
$ node -v
Output:v8.11.1
Check NPM version
$ npm -v
Output:5.6.0
Hyperledger Fabric Samp
Take a look at the samples two department network three automation scripts have done what to boot block chain network execution Scriptsscriptsh scripts four themselves perform Channelchaincode related operations start the network into the CLI container create channel add to channel install C Haincode initialization chaincode Chaincode Query method Chaincode Invoke method Chaincode other methods
A. Download Samples
Note: build the basic environment first, then follow the steps below.
git clone ht
Let's first look at an example. We know that under *nix, the uname command is to view the distribution of the system.
You can write a fabric script like this:
From Fabric.api import Run
def host_type ():
run (' uname-s ')
By saving the above script as fabfile.py, you can fab execute the Host_type script on multiple hosts by command:
$ fab-h localhost,linuxbox host_type
[localhost] run:uname-s
[localhost] out:darwin
[Linuxbox] Ru
Key Benefits of Information FabricKey Benefits of Information fabricInformation fabric offers several key benefits, including:Information fabric can bring a lot of benefits, including:Enabling real-time data sharing and quality. Support for high quality real-time data sharing. Information fabric enables much richer data sharing and better data quality. Informatio
Tags: iat bulk query Bulk function name UNC app get handle funcHyperledger Fabric enables COUCHDB as a state database I. Overview
Data Request Flow
The super ledger uses an endorsement/consensus model, where simulation execution and block validation are performed separately in the nodes of different roles. Simulation execution is concurrent, which can improve scalability and throughput:
Endorsement node: Analog execution chai
These two days, occasionally read this article again, and interested in fabric, perhaps I manage some servers may still be used, so it took a little time to understand the fabric. First, what is fabric? Fabric is a Python library and command-line tool that can be more efficient (pipelining) with application deploymen
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,blockchain-explorer four sub projects. Let's
Continue to start. Go Serve function, Peerserver object after Chaincodesupport service, also registered Admin,endorser service:
Pb. Registeradminserver (Peerserver.server (), Core. Newadminserver ())
serverendorser: = endorser. Newendorserserver ()
PB. Registerendorserserver (Peerserver.server (), Serverendorser)1 2 3 1 2 3
Its registration is consistent with the registered Chaincodesupport service, in Fabirc Source resolution 7 has been detailed, so this article will only focus on the admin and
-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
Today's article is from Wen Aviva, who is a face-to-face programmer of Jerry.
Jerry has introduced Aviva in his previous article titled "displaying the 3D model view of product master data with pure Javascript in sap ui, other colleagues in the SAP Chengdu c4c development team commented that:"Beauty and wisdom embodiment","Queen of the cloud age","Is the Guide to cutting-edge technologies". Because Jerry and Aviva are in a group, my opinion is that these reviews are all named.
For example, Jerry
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 only look at the theoretical knowledge, try to
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.