Images required to recompile the Docker development environment after Hyperledger/fabric new user
Author: Chen Zhao Lin email:chenlin2@ms9.hinet.net
Hyperledger does not belong to the public Chain, such as Bitcoin, he is a private chain that requires user review and authentication to join a blockchain transaction, which uses a CA (Certificate authority) for public key, private key, The issuance of digital
Hyperledger-Super Ledger study report
first, what is blockchain.
The fundamentals of the blockchain, the basic components include:
Trade: Changes in the state of the ledger;
Block: Record transactions and status, is a confirmation of the status of the current ledger;
Chains: Logging of state changes.
When a blockchain is used as a state machine, each transaction is an attempt to change the state, and each time a block is generated, the participant
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 COUCHDB username and password capabilities thr
This is a creation in
Article, where the information may have evolved or changed.
Summary
The Super Ledger (Hyperledger) is one of many projects under the Linux Foundation. The blockchain project, introduced in 2015 by IBM, Interlaken, and the financial companies, GP Morgan and other joint agencies, also includes 5 framework projects: Sawtooth, Iroha, Fabric, Burrow, Indy, and 3 tool projects: Blockchain Explorer, cello, Composer. One of the most wide
Hyperledger Fabric Super Ledger
The basic principles of the project agreement are: attaching importance to the modular design, including the trade, contract, consistency, identity, storage and other technical scenarios; Code readability ensures that new features and modules can be easily added and extended, evolving paths that evolve and evolve new projects as needs go deeper and more scenarios are applied. Catalogue
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 Fabric-samples in the
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
I. Concepts
Hyperledger is a umbrella project of open source Blockchains and related tools, started in December 2015 by the Linux Foundation, to support the collaborative development of blockchain-based ledgers.
Hyperledgerfabric is a subproject based in Openblockchain denoted by IBM.
Hyperledger Fabric is a platform for distributed ledger solutions, underpinned from a modular architecture delivering high D
First, preparatory work
1. Through the tutorial-"(i) Hyperledger fabric in the CentOS7.2 64-bit system development environment build" to determine has been downloaded Hyperledger Fabric official sample codes.
ii. generation of networks 1. Generate Network Identification
CD
Results after successful execution:
2. Start Network
./byfn.sh–m Up
Startup succe
the purpose of each method of the chain code (CHAINCODE) Shim API.Chaincode API (link code API)
Each chain code (CHAINCODE) program must implement a chain code (Chaincode) interface whose method is called to respond to the received transaction. The Init method performs the necessary initialization when the chain code (CHAINCODE) receives a instantiate or upgrade transaction, including initializing the state of the application. Call the Invoke method to handle the transaction that handles the ap
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
0x00
In fabric, peer is an important binary program, its function is mainly to provide peer related operations, regarding peer concept, can refer to official Document 1 and Official Document 2, peer this CLI tool, as a client, can be launched to the Blockchain Network ( channel ) peerrelated from the operation, this command contains a lot of sub-commands, this article will not be introduced, this is not the purpose of this article, this article is mainly through the analysis of the peer source c
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/
Docker-compose
Installation of Docker
On the command line, enterdocker --versionIf it is already installed, it will show the initial version number, if not installed, will prompt us to install the commandsudo apt install docker.ioAfter the installation is completed docker-verison , the version number is displayed, even if the installation is complete.
Environment construction
Quick Start: http://hyperledger-fabric.readthedocs.io/en/release-1.1/get
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
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.