Hyperledger source code Analysis of Fabric
Deliver means that the client obtains data from the ordering service via the Grpc interface (for example, data from a specified block).
The Orderer node receives the request message, which is first given to the Deliver of the server structure in the Orderer.common.server package (SRV ab. Atomicbroadcast_deliverserver) Error method processing. This method further invokes the Handle of the deliverserver structu
Certificate requirements:
1. The format of the digital certificate follows the X.509 standard
2. Version V3
3. Signature Algorithm SHA256ECDSA
CA used in FABRIC-JAVA-SDK:
./e2e-2orgs/channel/crypto-config/peerorganizations/org1.example.com/users/admin@org1.example.com/msp/signcerts
./e2e-2orgs/channel/crypto-config/peerorganizations/org1.example.com/users/admin@org1.example.com/msp/keystore
Docker-compose.yaml the CA used in the conf
Hyperledger source code Analysis of Fabric
Broadcast means that the client sends the request message (for example, after the endorsement transaction is completed) to the ordering service via the Grpc interface.
These request messages are given to the broadcast (SRV ab) of the server structure in the Orderer.common.server package. Atomicbroadcast_broadcastserver) Error method processing. This method will mainly call the Handle (SRV ab) of the HANDLERIM
General use of fabric, mostly with the remote interaction, and in the interaction, in addition to the logic of simple code, time is also accompanied by the transmission of files, and there may be a lot of files in the file.
Whether we can make a judgment, if the file exists, then we do not upload, look at the code
# for a test
@task
@roles ("Mgmt")
def Test ():
if Int (run ("[E '/etc/passwd1 '] echo 11 | | echo ") = = one:
print" Yes, f
complete, unzip to the/usr/local directory:sudo tar -c/usr/local-xzf go1.10.1.linux-amd64.tar.gz To configure the GO locale variable:Enter the. BASHRC Configuration environment variable:$ sudo vim ~/. BASHRC or: $ sudo vim/etc/profileAdd the following code to the last side:Export gopath=/usr/local/goexport path= $GOPATH/bin: $PATH Save, exit.To make an environment variable effective:$ source ~/. BASHRC or: $ source/etc/profile After viewing the version number no problem, the configuration
-8-*-Each time you specify the password is also more troublesome, wrote a shell script, each time only need to specify the source IP, destination IP, port number, library name can bemysqlha_sync2test.sh#!/bin/bashS_host=$1D_host=$2Port=$3Db=$4Mysql_path= "/usr/local/mysql-5.6.24"Sync_time= ' date + '%h%m%s 'Sync_date= ' date + '%y%m%d 'S_user= ' Db_read_user 'S_pwd= ' 123456 'D_user= ' Root 'D_pwd= ' 123456 'Schemasync--tag= "${sync_time}"--output-dir= "/data/mysql_schemasync"--sync-comments mys
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
Lilypad Arduino wearable technology and electronic Fabric Controller Board Introduction 1th Chapter Lilypad Arduino OverviewAs the first chapter of this book, we will introduce the basic knowledge of Lilypad Arduino to the reader. For example, what Lilypad Arduino is and what it can do. In addition, some of the skills required to complete the follow-up study, such as the sewing basics and the writing ideas of this book, will be presented. After readin
Project background:Lab Environment:VMware Workstation 11Under the centos6.5 systemFabric Server Host: ip:192.168.0.14Fortress Machine: ip:192.168.0.44Target server: ip:192.168.0.26SECURECRT (SSH remote connection software)Software Introduction:What the fabric website says about it:Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application deployment or S Ystems administration tasks.It provides a basic su
You can install Fabric Using Pip or easy_install of Python. Under xubuntu, ISudo apt-Get install fabric is used for installation.
After the installation, go to the console and import the improt fabric module. If no error is reported, the module is successfully installed.
If you are 2.5, you need to write a statement:
From _ future _ import with_statement
2.6
Background: Fabric primarily executes remote shell commands, including file uploads, downloads, and other ancillary functions that prompt user input.Test system: UBUNTU16Requirements: Python//system has its own, ubuntu16 usually comes with python2.7.5First, install the fabric1. Install Fabric$ sudo apt-get install python---upgrade pip // upgrade pip$ sudo pip install fabric2. View
Have a public network environment of the server can directly see Hyperledger Fabric 1.0 from scratch (ii)--Environmental Construction (public network), this article similar to the previous article, but the environment needs to build in the intranet, that is, the network is limited under the circumstances.
1: Environmental construction and testing
The host environment used in this article is CentOS, the version is centos.x86_647.2, runs the
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
Today, we will share some interesting and fashionable fonts. With these fonts, you will easily embroider various styles of fonts on the fabric.
You may not be a master, but the work you embroider through these fonts is no less than the master's level. Please try it!
Address: http://www.goodfav.com/stitch-fonts-ready-to-write-on-fabric-17156.htmlSatin Stitch-MORE INFO
Mesh Stitch-MORE INFO
Stitches-MORE INFO
Installation
$ apt install npm
Upgrade to the new version
$ npm install -g npm@latest
Detect version after re-opening terminal
$ npm -v
version 4.3
root@lzj-ThinkCentre-M910t-D562:/# npm -v6.1.0root@lzj-ThinkCentre-M910t-D562:/# node -vv8.10.0
5 Download the Fabric code and Fabric-samples code
5.1 Building a folder directory
This is a created
article in which the information may have evolved or changed.
1. Environmental architecture
The system uses the container to run, the construction process is simple, each component division of labor is clear:
1.docker-compose:docker container management;
2.Golang Sdk:go Language Development, compilation environment;
3.git:git Mirror Clone and commit;
4.Rest client:rest API test;
The main components of the container are: Fabric
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 What, test, submit repository (2 minutes), SSH to test environment pull deployment (2 minutes), rsync to online machine a,b,c,d,e (1 min), ssh to ABCDE five machines, one restart (8-10 minutes) = 13-15 minutes of which depressed is , each operation is the same, the same command, the killer is on multipl
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.