The 1.Chaincode interface must be implemented by all the code on the chain, and the fabric runs the transaction by invoking these specified functions
Call the INIT function to allow code on the chain to initialize internal data after the container
First of all, a simple look at the above transaction flow chart, the following is a detailed diagram of the entire fabric of the whole business process:
1. The block chain client sends the transaction request to all endorsed nodes (endorsing peer)
bringing up a kafka-based ordering Service
The sorting service needs to handle all transaction messages in the FABIRC network, which is the key to the whole network. Fabric currently (2018/01) supports two types of sorting: Solo and Kafka. In the
Third, the core package of the BSSCP (Blockchain encryption service provider) package of SW Encryption Package
Package Content Description: The entire WS package according to the file type, basically contains a few pieces: AES encryption module go
Peer service is the primary service.
The service supports a variety of peer commands.
Includes query status, start, Stop node service, and so on.
The startup process is in Peer/main.go. Serve function
The most important is the Func serve (args
1. During the network initialization process, the node is connected to the other peer as the client during the creation of the node engine during the execution of the following
Peerserver, err = Peer. Newpeerwithengine (Sechelperfunc, Helper.)
This is a creation in
Article, where the information may have evolved or changed.
The entire functional architecture is shown.
Includes three main components: Blockchain service (Blockchain), Chain Code Service (Chaincode), Member Rights Management
./bash.sh Down
a@ubuntu:~/hyfa/fabric-samples/first-network$ sudo./byfn.sh down
[sudo] password for a:
Stopping with Channel ' MyChannel ' and CLI timeout of ' seconds and CLI delay of ' 3 ' seconds
Continue? [y/n] Y
Proceeding ...
Stopping the
Take fabric-samples/balance-transfer Example:
1. Specific process
The FABRIC/EXAMPLES/E2E_CLI directory contains files network_setup.sh for one-click Deployment environments and test Chaincode sample code. This includes two sections, one that
Anchor Peer-Anchor node is a peer-to-peer node in the channel that can be detected by all peer nodes and can communicate with it. Each member of the channel has one (or more, in case of a single point of failure) Anchor node that allows nodes
I. Initiation of Transaction
When the client wants to initiate a transaction, it will first send a propose message to a set of endorser nodes it chooses, the message mode has the following two kinds, the node is free to choose (may have more kinds):
1.serve function in Genesis block start, call makegenesis function
Makegenesiserror: = Genesis. Makegenesis ()
if makegenesiserror! = nil {
return makegenesiserror
}
2.MakeGenesis Create a Genesis block and add it to the blockchain
1. Configure the application demo marbles of the Blockchain project developed by IBM to Bluemix
Marbles's access address is https://github.com/IBM-Blockchain/marbles, click the Deploy to Bluemix button and the app will be deployed automatically.
Quad, core pack BSSCP (Blockchain cryptographic service provider) package Util Toolkit
Package Description: This package is mainly related to BCCSP (Blockchain cryptographic service provider) of the core files of the interface files, mainly to
About Super Ledger
December 2015, led by the Linux Foundation, IBM, Intel, Cisco and so on jointly announced the establishment of Hyperledger joint project.
Super Ledger project provides open source reference implementation for transparent, open and decentralized enterprise-class distributed ledger technology
The current super ledger community already has
Aiyisai, Onchain, near-win, Bitse, Boobie, 31 Heavy Industries, Wanda, Huawei and many othe
. 1.1 Compiling build Cryptogen
Now that we have the source code for the fabric, we can easily compile the required program with the Make command. Fabric officially provides a portal specifically for compiling Cryptogen, and we just need to run the following command:
CD ~/go/src/github.com/hyperledger/fabric make
Cryptogen
The system returns results after the run:
Build/bin/cryptogen
cgo_cflags= "" Gobin=/home/studyzy/go/src/github.com/
: Cryptogen. 1.1 compilation Generation Cryptogen
Now that we have the source code for fabric, we can easily compile the required programs using the Make command. Fabric Official provides a specially compiled Cryptogen portal, we only need to run the following command:
CD ~/go/src/github.com/hyperledger/fabric make
Cryptogen
After the run system returns results:
Build/bin/cryptogen
cgo_cflags= "" Gobin=/home/studyzy/go/src/github.com/
a brief introduction to the chain code for Java developers
Click to view the video demo to view the transcript
You may have heard of the chunk chain, but you may not be sure what it does for Java™ developers. This tutorial will help you to dispel the confusion. I'll show you how to use the hyperledger Fabric v0.6 to build, run, and execute a smart contract or chain code written in the Java language. You will install tools, define local block chain net
a brief introduction to the chain code for Java developers
Click to view the video demo to view the transcript
You may have heard of the chunk chain, but you may not be sure what it does for Java™ developers. This tutorial will help you to dispel the confusion. I'll show you how to use the hyperledger Fabric v0.6 to build, run, and execute a smart contract or chain code written in the Java language. You will install tools, define local block chain net
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.