Before you begin, you need to export a custom variable to facilitate subsequent operations:Export fabric=/opt/gopath/src/github.com/hyperledger/fabric/devenv1. Perform the following on the real machine to enter the virtual machineCD $FABRICvagrant up // start a virtual machine SSH // Enter virtual machine2. Perform the following actions in the virtual machine, start Memberserv and peer, and keep the termina
fabric is a python library that fabric can manage servers in bulk via SSH. in theLearningFabricbefore, installing fabric was our first step. How to install it? The first step installs the dependency packageinstalling the Epel sourceInstall fabric dependency and Pipsecond step to install fabricThird Step test installati
This article mainly introduces Python fabric using notes, fabric is a remote operation and deployment of powerful tools, this article gives a number of examples of its use, the need for friends can refer to the
Fabric
Title is the development, but at the same time to dry development test and operation of the life ... For Mao Task*3 Not salary * 3 (O (╯-╰) o)
R
How to contribute code to the Hyperledger Fabric project
Installation Environment
It is recommended to develop the code in the Ubuntu 14.04+ environment and install the following tools. git: Used to get the code; Golang 1.6+: Environment variables such as configuration $GOPATH after successful installation. Get Code
First register the Linux Foundation ID and log in to https://gerrit.hyperledger.org/to add a personal SSH pub key.
Look at the list of
Fabric Source Code Analysis--Preface
Individuals are non-go programmers, but no way, the fabric project is written with go. The additional use of Docker,grpc,protocol Buffer,shell scripts, Yaml profiles, cryptographic certifications, and so on, is Google, or a variety of open source technologies. and from github to download source files, source code, tools, pre-configuration files, samples, sub-projects, d
First, WRK deployment
1 , deploy the control machine
A machine is required to install fabric and wrk as a control machine.
(1) Install fabric
The first step: after the Fabric.rar decompression, the entire directory uploaded to the control machine/home directory
Install package:
Cffi-1.9.1.tar.gzCryptography-1.6.tar.gzEcdsa-0.13.tar.gzEnum34-1.1.6.tar.gzFabric-1.12.0.tar.gzgmp-6.0.0a.tar.bz2Idna-2.1.tar.g
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
This is a creation in
Article, where the information may have evolved or changed.
Brief introduction
Chaincode is the user chain code, which provides state processing logic based on the blockchain distributed ledger.Fabric, Chaincode is run by default in the Docker container.Peer creates and launches the Chaincode container by calling the Docker API.Chaincode A GRPC connection is created between the container and peer, and both parties communicate interactively by sending Chaincodemessage.
This is a creation in
Article, where the information may have evolved or changed.
Overall structure
Fabric-peer: Mainly peer role, including endorser (endorser), committer two rolesFABRIC-CA: The original MEMBERSRVC, independent into a new projectFabric-order: Play the order role
Core Code Package
BCCSP Package: Support for encryption and decryption algorithms and mechanismsCommon package: Some general-purpose modulesCore package: Most
structure-sized memory spacemarshal.copy (bytes, 0,structptr,size); // obj= marshal.ptrtostructure (Structptr,type); marshal.freehglobal (STRUCTPTR); Returnobj; } } } 3. Last look at the client//1. Create a nested section wordm_s=NewSockets (AddressFamily.InterNetwork, Sockettype.dgram, PROTOCOLTYPE.UDP);//2. Fill in the server IPIPAddress IP=Ipaddress.parse ("127.0.0.1");IPEndPoint Ipe=NewIPEndPoint (IP,4321);//Send this user information to the serverCp2pmessage msg=NewCp2pmessage ();
AgentAn HTTP intermediate entity located between the client and the serverCacheHTTP repositories, so that copies of common pages can be saved closer to the clientGatewayA special Web server that connects other applications, typically used to convert HTTP traffic to other protocol trafficTunnelA special agent for blind forwarding of HTTP communication messagesThe difference between proxy and gateway:The agent is the intermediate substance that connects the two identical protocol endpoints, and th
, which I have converted to Swift3 : Final class Box { var unbox:a Init (_ value:a) { unbox = value } } struct Gaussianblur { private var boxedfilter:box= { var filter = cifilter (name: "Cigaussianblur", Withinputparameters: [:])! Filter.setdefaults () return Box (filter) }() fileprivate var filter:cifilter { get {return Boxedfilter.unbox} set {boxedfilter = Box (newvalue)} } private var filterforwriting:cifilter { mutating get { if!isknownuniquelyreferenced (boxedfilter) { filter = filter.copy
invoke.App layer is the application layer, address Book phone SMS mailbox Web browser and other applications, providing user interface.So integration, the Android development model is the classic multi-layered model, the APP is the presentation layer Framework provides basic functionality to encapsulate the Native Lib +dalvik virtual machine similar to the. NETFramework CLR.Finally, the executable instructions are sent to the Linux kernel, and the Linux system contains the lowest-level call man
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.