This article supporting source code
Introduction
Part 2nd of this series describes the requirements that we will build and deploy in the WebSphere Process Server V6.1 to interact with the WebSphere Business Services fabric (hereinafter called fabric). This application simulates a car loan acquisition system that accepts user information and responds with approval or rejection of a loan request. You will l
Fabric Source Parsing 12--peer MSP service
MSP is the abbreviation for Membership service Provider , and the personal custom is a member relationship service provider . The role is similar to having a large number of participants in a running fabric system network, in order to manage these participants, identify who is qualified, who is ineligible, maintain the rights of one participant, and maintain the r
Let's first look at an example. We know that under *nix, the uname command is to view the distribution of the system.
You can write a fabric script like this:
From Fabric.api import Run
def host_type ():
run (' uname-s ')
By saving the above script as fabfile.py, you can fab execute the Host_type script on multiple hosts by command:
$ fab-h localhost,linuxbox host_type
[localhost] run:uname-s
[localhost] out:darwin
[Linuxbox] Ru
Key Benefits of Information FabricKey Benefits of Information fabricInformation fabric offers several key benefits, including:Information fabric can bring a lot of benefits, including:Enabling real-time data sharing and quality. Support for high quality real-time data sharing. Information fabric enables much richer data sharing and better data quality. Informatio
Tags: iat bulk query Bulk function name UNC app get handle funcHyperledger Fabric enables COUCHDB as a state database I. Overview
Data Request Flow
The super ledger uses an endorsement/consensus model, where simulation execution and block validation are performed separately in the nodes of different roles. Simulation execution is concurrent, which can improve scalability and throughput:
Endorsement node: Analog execution chai
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:
These two days, occasionally read this article again, and interested in fabric, perhaps I manage some servers may still be used, so it took a little time to understand the fabric. First, what is fabric? Fabric is a Python library and command-line tool that can be more efficient (pipelining) with application deploymen
If the currency block chain technology represented by the Bitcoin is 1.0, and the contract block chain technology represented by the Ether Square is 2.0, then the Hyperledger project which realizes the complete permission control and the security guarantee will undoubtedly represent the arrival of the block Chain Technology 3.0 ERA.
The Hyperledger project currently consists of fabric, sawtooth lake,iroha,blockchain-explorer four sub projects. Let's
Continue to start. Go Serve function, Peerserver object after Chaincodesupport service, also registered Admin,endorser service:
Pb. Registeradminserver (Peerserver.server (), Core. Newadminserver ())
serverendorser: = endorser. Newendorserserver ()
PB. Registerendorserserver (Peerserver.server (), Serverendorser)1 2 3 1 2 3
Its registration is consistent with the registered Chaincodesupport service, in Fabirc Source resolution 7 has been detailed, so this article will only focus on the admin and
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
1, Environmental structure Description: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.Go Lang Sdk:go language development, compilation environment;3.git:git Mirror Clone and commit;4.Rest client:rest API test;The main operations of the container are: Membersrv and peer;
2. Deployment Environment Readiness
3. Installation and Deployment3.1 Pulling the mirror from the DockerhubA. Ins
Automated O M tool Fabric-password Management (env. password and ssh key)
When Fabric is used, if a large number of servers are used for processing, we need to configure the host password. The password of each host is the same, but different, you need to configure different hosts. The following two configuration methods are available:
Note: This document mainly references Password management and grimnes Us
Looking back at my previous blog, in Fabric 1.0, we have 3 types of data storage, one is based on the filesystem block chain data, which is very much like the bitcoin, bitcoin is stored in the form of files. The block chain in Fabric1.0 stores the transaction order read and write sets. and read-write collection is exactly what it reads. Write what. In fact, our state Database, also known as the world, stores the business data we operate in Chaincode i
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.