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
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 implements a defined interface in other prog
chaincodestubinterface for accessing and changing ledger, and for calling between Chaincode.
In this tutorial, we will demonstrate the use of these APIs by implementing simple Chaincode applications, which manage simple "assets".
2. Simple Asset Chaincode
Our application is a basic sample chaincode for creating assets on ledger (key-value pairs).
It is recommended to use Vscode for Go code writing,
Open the terminal and run the following command:
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
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
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 to configure Golang1.7 or later environments. Here's how to compile a binary file that generates components such as Fabric-peer, Fabric-
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
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
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
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
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/hyperledger/fabric$sudo chmod 777examples/e2e_cli/Docker-compose-e2e.yaml~/g
The tutorial default environment is ubuntu16.04
1. CURL
Curl is a file transfer tool that works under the command line using URL syntax, which was first released in 1997. It supports file uploads and downloads, so it is a comprehensive transfer tool, but traditionally, it is customary to call curl as a download tool. Curl also contains libcurl for program development.
The communication protocols supported by Curl are FTP, FTPS, HTTP, HTTPS, TFTP, SFT
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.
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 be used for scenarios such as global supply chain management, financial transactions, ass
: $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
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
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.