Software Environment
Machine a:win7x64 (192.168.8.8):
python2.7 + Fabric Latest
Django
Freesshd (SSH user name: Administrator,nt authentication, the Windows user password is ABC)
Putty (Verify SSH connection)
Machine B:
Linux
Git server
Machine C:
Linux
Ssh
Verify with
------------------------------------------------------
Fab website Tutorial:
Http://docs.fabfile.org/en/1.10/tutorial.html
1, the FAB official website tutorial used a Django projec
Fabric is made up of the core components described in the following section. 2.1 Architecture
This architecture reference focuses on three categories: Members (membership), Blockchain (Blockchan), and chain codes (Chaincode). These categories are logical structures, rather than physically dividing different components into separate processes, address spaces, (virtual) machines.
2.1.1 Member Services
Member services provide identity management, privacy
Fabric Source Analysis of the threads
Getting Started
Simply mention the Getting Started section of the fabric documentation. Description document download address in http://hyperledger-fabric.readthedocs.io/en/latest/. Where there is en in the Web site, the description of the various language versions of the document may be in the development, I hope that the Chinese version as soon as possible, after al
advantages are: fast and accurate, the disadvantage is: cost storage space. To improve efficiency we can use the hash table and map the elements in the collection to a bit in the bitmap, which saves space and time to find. But because of the hash conflict, we may have a miscarriage of judgment, that is, different elements may produce the same address after the hash function.
What are the applications of the Bron filter?1. Google's well-known distributed database BigTable uses a
Example of batch remote management and deployment tool Fabric in Python, pythonfabric
This example describes how to use the batch remote management and deployment tool Fabric of Python. Share it with you for your reference. The details are as follows:
Fabric is a powerful batch remote management and deployment tool in Python. It is often used to execute SSH tasks
Fabric is a Python library that can be remotely manipulated using fabric as long as the target machine supports SSH access (such as running shell commands on host2 remotely on host1), apparently because fabric is a python package, Therefore, other Python package can be import into the fabric-specific fabfile.py script
Docker
If you report the following error:
Got Permission denied while trying Toconnect to the Docker daemon sockets at Unix:///var/run/docker.sock:posthttp://%2fvar %2frun%2fdocker.sock/v1.32/images/hyperledger/fabric-ca:x86_64-1.0.4/tag?repo=hyperledger%2ffabric-catag= Latest:dial unix/var/run/docker.sock:connect:permissiondenied
Solve:
Su–root, chmod 777/var/run/docker.sock
Get SAMPLE:GITCLONEHTTPS://GitHub. COM/hyperledger/
Just these days to have a need to help customers magic change fabric-v0.6, put some hyperchain advanced characteristics of the past, take this opportunity to read before the source in the comb.The following is the fabric Consensus module source analysis and carding, the code is based on Fabric-v0.6-preview as an example, in 1.0 and subsequent versions are removed
-artifacts/org1mspanchors.tx-channelid $ Channel_name-asorg Org1msp
Configtxgen-profile twoorgschannel-outputanchorpeersupdate./channel-artifacts/org2mspanchors.tx-channelid $ Channel_name-asorg Org2msp
(generates two anchor peer anchor peers)
6: The preparation work is done, you can start the network. Because we need to use COUCHDB .
So execute: channel_name= $CHANNEL _name timeout=1000 docker-compose-f docker-compose-cli.yaml-f Docker-compose-couch.yaml Up-d
7: Setting the Manual environment:
Install the Python Fabric runtime environment in CentOS 6.3
Fabric is always not installed successfully when you install fabric in CentOS6.3, and an error is always thrown when you execute the fab command.Traceback (most recent call last ):File "/usr/bin/fab", line 5, in From pkg_resources import load_entry_pointFile "/usr/lib/python2.6/site-packages/pkg_resource
Installation of Fabric
Fabric support Pip,easy_install or source mode installation, it is very convenient to solve the problem of packet dependencies (according to the user environment, select PIP or Ease_install)Pip Install FabricEasy_install Fabric
The source installation is not introduced.Verify the installation results, if the import module does not indicat
This article describes what a smart contract is and how to write a simple smart contract demo under fabric. What is a smart contract.
Intelligent contract is a computer protocol which aims to disseminate, verify or execute contracts in an informational way. Smart contracts allow for credible transactions without a third party. These transactions are traceable and irreversible, and fabric provides a credibl
of each transaction, generally for a transaction, short-term effective.
Communication Certificate Tlscert: Control access to the network and prevent eavesdropping.
The new architecture designCurrently, the VP node performs all operations, including receiving transactions, verifying transactions, agreeing on conformance, maintaining ledger maintenance, and so on. The coupling of these features makes node performance difficult to scale.
The new idea is to decouple these functions so that e
I recently read a fabric, which is really a good thing. I suddenly wanted to use fabric to make a code version semi-automated O M management program and wanted to be fully automated. However, I am very comfortable with the front-end, it takes a lot of time to develop the front-end. There is really no time. Well, you can just write your own one in Python,The logical architecture is as follows:650) This. wid
: lsfabfile.py fabfile.pyc test.py test.pycDone.Start the actual combat:If you are submitting a copy of the configuration file settings.py to the version number library every day (there is no conflict case)Let's say manual operation:cd /home/project/test/conf/git add settings.pygit commit -m ‘daily update settings.py‘git pull origingit push originIn other words, these commands you have to manually knock every day, the so-called daily job, is to be repeated every day, mechanized work, let us
Take fabric-samples/balance-transfer Example:
1. Specific process
The FABRIC/EXAMPLES/E2E_CLI directory contains files network_setup.sh for one-click Deployment environments and test Chaincode sample code. This includes two sections, one that uses generateartifacts.sh script files to configure organizational relationships and issuing certificates, and the other is docker-compose-cli.yaml to start the clu
Installing fabric in a virtual environment
(Virenv_python_django) hadoop@node:~/virenv_python_django$ pip install Fabric
The error is as follows:
SRC/MD2.C:31:20: Fatal error: Python.h: no file or directoryCompilation interrupted.
Error:command ' gcc ' failed with exit status 1
。。。。 And so on, here are some of the package error messages.
Solution:
Install Python-dev, which is the Python hea
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 success:
Intermediate output slightly
Go is t
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.