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
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-
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
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
then click Finish to import the project.When you are finished importing the project, make sure that Java perspectiveis selected and that the Chaincodetutorial project you just imported appears in Project Explorer view.Once the code is imported into the Eclipse workspace, you can write the chain code.4. Explore the Chain Code framework ProjectIn this section, you'll explore the chain code project to understand how it should work before you write any Java code.As a
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
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.
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
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
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
syntax format check and test, and make sure all the checks and tests are passed.
Submit the code to the local repository.
$ git commit-a-S
A window will open with the commit information in the form of the general requirements:
Simple words to describe main change this
fixes #FAB-xxx.
A more detailed description can is here, with several
paragraphs and sentences ...
Then use the GIT Review command to push to the remote repository.
$ git Review
After the submission is successful, you can
accounts with balances below $100 last month. Complex filtering: Queries all Trudy, occurring in Syria or Iraq, with a total value greater than a threshold, and the names of other parts match a regular expression of the trade. Association: Determine if Alice bought more than one oil at the same gas station the same day. Enter this information into the scam detection model. Forecast: Inquire about the city, state, country, and amount of Alice's last 10 transactions. This information is entered i
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
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.