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 programming languages, such as Java. The chain co
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/core/chaincode/shim" "
github.com/ Hyperledg
Label:One, MySQL fabric high-availability cluster A database crashes, does not affect the integrity of the data1. Pre-Test preparationA) View the server status of the Group_id-1 cluster groupMysqlfabric Group Lookup_servers Group_id-1return Result:Command: {success = True return = [{' Status ': ' PRIMARY ', ' server_uuid ': ' 7a45f71d-7934-11e4-9e8c-782bcb74823a ', ' mode ': ' Read_write ', ' Weight ': 1.0, ' address ': ' 192.168.1.71:3306 '}, {' Stat
Root CA
CAs are generally grouped by organization, that is, ORG1,ORG2,ORG3 have their own CAs.
When the CA is started, two environment variables, fabric_ca_server_ca_certfile and Fabric_ca_server_ca_keyfile, are set.
What happens if you don't set these two up? In fact, if not set, the CA server will generate these two files on its own according to the default CA CONFIG.
This time the CA is called the ROOTCA.
· Fabric_ca_server_ca_certfile is the certificate of the current CA (public key)
· Fabri
Reply content:These three are very handy for Python project deployment.
1. Virtualenv is used to create a virtual Python environment, a project-specific Python environment. It is very useful to use virtualenv to keep a clean environment.
2. Pip is used to solve the project dependency problem. Write all dependent third-party libraries of the project in one Requirements.txt and batch install with PIP. Typically used in conjunction with VIRTUALENV, all packages are installed in the VIRTUALENV envir
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: These three are very convenient for Python project deployment.
1. virtualenv is used to establish a virtual python environment, a python
Talking about the Super ledger, the Super Ledger is a blockchain development platform, a blockchain open source project led by the Linux Foundation, designed to create a cross-domain blockchain application, and fabric is a framework project for the Super ledger.
The next step is to introduce the installation and deployment of fabric, and choose Ubuntu 16.04 as the platform.
1 Installation of the development
Block chain browser can make the project more intuitive to show the preliminary preparation
Install GIT,MYSQL,NODE,NPM, each version as followsOne pulls the item from the GitHub
git clone https://github.com/hyperledger/blockchain-explorer.git
CD Blockchain-explorer
Two new database and configuration file
Create a new database from a file in Db/fabricexplorer.sql
Mysql-u
Then configure the database informationConfigure and modify database-related configuration information in the Config.json of t
OverviewFirst of all, this article is only a refinement of the official documents (Chinese, English), detailed installation instructions please read the official documents carefully.While the official name of service fabric is often added to Azure, in fact (many people don't know) that service fabric can be installed on an on-premises datacenter or on any public cloud, there is a chapter in the official doc
Fabric CA User's Guide
Certification Authority
The features provided are: identity registration : or connecting to LDAP (Lightweight Directory Access Protocol, Lightweight Directory Access Protocol) as a user registry; issuance of a registration certificate (ecerts) (Enrollment certificates) issuing Transaction certificate (tcerts) (Transaction certificates) : Provides anonymity and is not linked when trading on Hyperledger
MSP is the abbreviation of Membership service provider, the personal custom literal translation is the member relation service provider. The role is similar to having a large number of participants in a running fabric system network, which is designed to manage these participants, identify who is qualified, who are ineligible, maintain the rights of one participant, and maintain relationships between participants. For more professional concepts of MSP
Because the software (Docker fabric 0.6) and the system (Ubuntu 16.04TLS) operating environment version of the changing, so the online list of various tutorials or the personal summary of netizens may not be able to walk in their own environment, especially for the novice, out of the wrong. Fabric 1.0 is not going to be ready at the end of March, so share your summary of the kids ' shoes that you want to pr
How to install and use fabric in Ubuntu 9.10
From its website: "Fabric is a Python library and command-line tool that simplifies the use of SSH for application deployment or system management tasks." More specifically, the fabric is: A tool that allows you to execute arbitrary python functions from the command line; A subroutine library (above the lower level
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 mai
Deploy hadoop and hbase with fabric
Fabric is an automated framework for executing programs in batches on multiple machines through SSH. The pre-edited project configuration file can be used to automatically deploy and maintain the project. The entire operation is performed in the local directory, which is very convenient.
Fabric's idea may be based on Capistrano: an automatic deployment framework designe
The real name of magic sound fabric is Cameron akhunaton, a new electronic musician. His music is trying to bring the illusion of being ethereal, chill-out, ambient, those who like electronic music are worth listening.
Magic sound fabric brings together the brilliant work of European newage companies. Along with the pace of recording technology, we constantly experiment with the sound of all kinds of mus
During normal development, you should often encounter code online problems. Generally, there are several headaches:Generally, you have two options:Then fabric is selected and the code is directly displayed.
#-*-Coding = UTF-8 -*-
From fabric. API import *From fabric. contrib. Project import rsync_project
Env. roledefs = {'Liyun G': [# telecom data center'[Email p
Fabric
Title is development, but at the same time to do development testing and operation of the work ... For Mao Task*3 Not salary * 3 (O (╯-╰) o)
Recently took over more and more things, release and operation of the work is quite mechanical, coupled with the frequency is quite high, resulting in time wasted or a lot of advantages.
Fix bugs, test, submit repository (2 minutes), SSH to test environment pull deployment (2 minutes), rsync to online mac
Fabric
Title is development, but at the same time to do development testing and operation of the work ... For Mao Task*3 Not salary * 3 (O (╯-╰) o)
Recently took over more and more things, release and operation of the work is quite mechanical, coupled with the frequency is quite high, resulting in time wasted or a lot of advantages.
Fix bugs, test, submit repository (2 minutes), SSH to test environment pull deployment (2 minutes), rsync to online mach
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.