If you have installed tools such as Go, git and checkout related and download related images, you can only get up to 5 steps below. e2e_cli~/go/src/github.com/hyperledger/fabric$sudo chmod 777 release~/go/src/github.com/hyperledger/fabric$sudo chmod 777examples/e2e_cli~/go/src/github.com/
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
I
Super Ledger Hyperledger-fabric local compilation and installation
From Yang Paohua and other "blockchain-principles, design and Application" Local compilation installation deployment Super Ledger fabric network.
The super ledger fabric is based on the Go language implementation, and local compilation is recommended t
00 Introduction
The open source Blockchain distributed ledger--hyperledger Fabric, launched by the Linux Foundation, has ushered in the 1.2.0 version. The project focuses on performance and reliability, as well as cross-industry collaboration to drive blockchain and distributed ledger technology. Hyperledger Fabric can
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
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
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/
: $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
Password. Password: # Number of retries for CouchDB errors maxretries:3# Number of retries for CouchDB errors during peer startup Maxretriesonstartup:10# CouchDB Request Timeout (unit:duration, e.g. 20s) requesttimeout:35s # Limit on the number of Reco RDS to return per query Querylimit:10000 COUCHDB is hosted in a Docker container by using a Docker compose script that uses Hyperledger fabric to set C
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. Two. Enable Couchdb This article uses the relevant components and resources in the
There is a entire library of Blockchain APIs which you can select according to the needs that suffice your application. Some Libraries is open-sourced and Some are private. For examples, IBM ' s Hyperledger Fabric Project, Ethereum, Openchain, Multichain is few of the open sourced models which a Re popular in the industry today.This tutorial aims to help you get started and setup your development environmen
Copyright Notice: Blog Article copyright owners all, without authorization, prohibit reprint, reprint please specify the source installation Environment installation JDK
Download URL: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Download jdk-8u151-macosx-x64.dmg install to PC install maven
Download URL: https://maven.apache.org/download.cgi
Extract to/users/fujinliang/documents/environment
Open terminal , modify. BASHRC
VI ~/.BASHRC
Add the following code
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
variable:
Enter the. BASHRC Configuration environment variable:
$ sudo vim ~/. BASHRC or: $ sudo vim/etc/profile
Add the following code to the last side:
Export gopath=/usr/local/goexport path= $GOPATH/bin: $PATH
Save, exit.
To make an environment variable effective:
$ source ~/. BASHRC or: $ source/etc/profile
After viewing the version number no problem, the configuration is successful.1.3.2 node. js
Download node. js
$ CURL-SL https://
Install node. js
sudo Install -y Nodejs
Check
This is the Chaincode for developers chapter in the official document of Hyperledger Fabric V1.0.The first translation, the wrong place also asked netizens to point out that we learn together progress.Original address (http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html) chain code is what
Chaincode is a program written with go, which eventually
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
the code
The preferred need is to determine that the go environment is installed and properly configured.
For the sake of simplicity, we use the following command:
Mkdir-p $GOPATH/src/asset cd $GOPATH/src/asset
Next, we create the source file
Touch Asset.go
2.2 Introduction Package
Each Chaincode implements the Chaincode interface
Package main
Import (
"FMT"
"Github.com/hyperledger/fabric/cor
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.