Transferred from: https://www.ibm.com/developerworks/community/blogs/8d277a63-4204-4fd3-8cb8-b7cb222cd522/entry/Steps_to_ Setup_blockchain_hyperledger_fabric_0_6_development_environment_on_ubuntu?lang=zh
We heard about Blockchain technology and understand their value to business. Here we would want to share our learnings with you all, acquired during setting up a single node Hyperledger blockchain de V Environment during a client engagement. This ent
This is a creation in
Article, where the information may have evolved or changed.
Hyperledger Fabric Client SDK for Go
Go get-u github.com/hyperledger/fabric-sdk-go
Document Https://godoc.org/github.com/hyperledger/fabric-sdk-go
compatibility
Fabric v1.0.1 Fabric-ca v1.0.1
Fabric-sdk-go:master:head
Fabric v1.0.0 Fabric-ca v1.0.0
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 not be restored only screenshots):2/Instructor
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
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
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
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/
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
IBM Blockchain Series Hyperledger, in addition to the most core of the fabric network also out a series of tools and engineering, this is recorded under the Blockchain browser installation deployment, the current version is to use the PostgreSQL database to store data (previous version using MySQL).Browsers use Psql and Nodejs to develop, so for Java or Golang small partners, will definitely touch some nails. (The official installation is not very det
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
Note: This article was first published on 2017-09-22.
Hyperledger source code Analysis of Fabric introduction
The Chaincode is the user chaincode,ucc, which is important for application developers, and it provides state processing logic based on the blockchain distributed ledger, which can be used to develop a variety of complex applications.
Hyperledger Fabric, Chaincode runs in the Docker container by d
This is a creation in
Article, where the information may have evolved or changed.
HyperLedger Fabcar Study notes (writing the first app based on the Super Ledger)
Translated from: Http://hyperledger-fabric.rea ...
Writing the first application
We need to implement the following three steps
First set up a development environment
Learn some simple parameters of the smart contract that our app will us
This is a creation in
Article, where the information may have evolved or changed.
HyperLedger Fabcar Study notes (writing the first app based on the Super Ledger)
Translated from: Http://hyperledger-fabric.rea ...
Writing the first application
We need to implement the following three steps
First set up a development environment
Learn some simple parameters of the smart contract that our app will us
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/
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
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.