Fabric Solution
Table of Contents
- [Solution description](#Solution description) - [Concept description](#Concept Description) - [Solution positioning](#Solution positioning) - [Solution architecture](#Solution architecture) - [Solution advantages](#Solution advantages) - [Solution application scenarios](#Solution application scenarios)
- [Guide](#Operation guide) - [Environment preparation](#Environment preparation) - [Environment configuration](#Environment configuration) - [Configure smart contracts](#Configure smart contracts) - [View Dapp configuration](#View Dapp configuration) - [Access Dapp](#Access Dapp)
Solution description
Introduction to concept
Hyperledger fabric concepts It is a modular blockchain framework that utilizes unique distributed ledger implementation technology to provide enterprise-level network security, scalability, confidentiality and performance.
Distributed ledger It records all transactions occurring in the fabric network and is jointly maintained by decentralized nodes.
Chain code (ChainCode) It is an application program developed by users based on service logic, supporting multiple languages such as Go, Node.js and Java, and runs in the fabric network. The content of the ledger can be modified by executing chain code through transactions.
Transaction A transaction is a chain code call initiated by a node, and the resulting outcome is recorded in the ledger.
Channel It is a private "subnet" between two or more specific network members, used for private or confidential transactions. Channels can be established between designated organizations as needed. The chain codes and transactions in the channel are only visible to nodes in the organization that joined the channel. The same node can join multiple channels and maintain a ledger for each channel's content.
Organization (Org) It refers to various entities participating in the blockchain service network, such as government agencies, enterprises and non-governmental organizations. An organization can have multiple nodes.
Orderer node (Orderer) It provides consensus services for sorting and packaging transactions in blockchain networks.
Node (Peer) It hosts ledgers and smart contracts, forming the physical structure of the fabric network.
Solution positioning
Baidu AI Cloud has a comprehensive strategy in the blockchain sector. We offer extensive technical capabilities covering applications, service implementations, and a unified cloud framework, along with abundant experience in alliance chain, public chain, and private chain use cases. Utilizing Baidu’s proprietary blockchain 3.0 technology framework, Baidu Xuper Chain delivers advanced, one-stop blockchain technology and product capabilities to users and partners.
Baidu AI Cloud blockchain solution positioning:
A cloud-native blockchain "empowerment center" integrates advanced cloud technologies with blockchain frameworks, offering features like containerized development models, one-click deployment, secure cloud application hosting, graphical operation interfaces, extensive OpenAPIs, pluggable blockchain scenario parameters, and customizable, optimized blockchain components. It empowers partners by leveraging Baidu’s superior blockchain practices to advance the industry's ecosystem growth and development.
Baidu AI Cloud blockchain solutions are available in two categories: technology solutions and industry solutions.
The BaaS solution leverages an advanced "cloud + chain" technical architecture. It supports one-click deployment, operation, and maintenance of mainstream blockchain technologies such as Baidu Xuper Chain, Ethereum, and Fabric on the cloud, and offers cloud-based development, deployment, operation, maintenance, and template services for smart contracts and DApps, thus lowering the technical barriers for blockchain users.
The Fabric solution focuses on creating trusted alliances for blockchains and suits scenarios like permissioned blockchains, trusted organization collaboration between enterprises, and financial-grade compliant blockchains.
Solutions for the Internet of Things, financial transactions, and asset securitization (ABS) combine industry-specific features with tailored blockchain capabilities. Baidu AI Cloud integrates its extensive practical experience in blockchain commercialization and technical expertise to deliver solutions and product services that empower industry-specific blockchain scenarios. These templates expedite blockchain implementation across niche sectors while fostering collaboration with partners to develop benchmark "blockchain + X" practices in the industry.
Baidu AI Cloud continues to make advancements in areas such as three-dimensional chain network architecture, single-chain performance, multi-chain trusted interaction, consensus mechanism optimization, secure blockchain sandbox environments, node security, blockchain+AI, and blockchain+Internet of Things. These efforts aim to build a high-performance, stable, and technologically sophisticated blockchain platform.
Solution architecture
For the overall architecture of the blockchain solution, please click for details: https://cloud.baidu.com/solution/blockchain.html
Among them, the architecture of the fabric solution is as follows:

Solution advantages
Advantages of the fabric solution:
- One-click deployment
- Elastic hosting of application containers
- Cloud SLA
- Unified architecture for public and private chains
- High performance
- Modular
- Permissioned blockchain organizations
Solution application scenarios
application scenarios of the fabric solution:
- Multi-party trusted alliances
The fabric network features permissioned access, modular technical architecture and optional consensus mechanisms, which are particularly suitable for enterprise-level blockchain application scenarios. For example, multiple enterprises can build an underlying trust mechanism through the fabric network to form a multi-enterprise trusted alliance, where multiple parties jointly supervise or participate in the construction and circulation of the service system. For example, blockchain asset securitization service scenarios involving joint supervision by multiple participants are suitable for construction using the fabric alliance chain solution.
Operation guide
This document will introduce how to build your fabric blockchain distributed application (Dapp) on Baidu AI Cloud container clusters, with the specific steps as follows:
Step I: [Environment Preparation](#Environment preparation); it mainly creates the operating environment for blockchain applications - container clusters.
Step II: [Environment Configuration](#Environment configuration); it mainly deploys the blockchain application platform - fabric.
Step III: [Configure Smart Contracts](#Configure smart contracts); it mainly configures the blockchain smart contract ChainCode.
Step IV: [Configure Dapp Parameters](#Configure Dapp Parameters); it mainly configures the parameters of the distributed application Dapp.
Step V: [Access Dapp](#Access Dapp); it is mainly for users to access the Dapp.

Environment preparation
Apply for blockchain solution permissions
- Sign in to the official website of Baidu AI Cloud Blockchain Solution.
- Click Apply Now to enter Application for the Use of Blockchain Solutions, fill in the application as required, and then click Submit.
Warm Reminder: After receiving your application, we will proceed to the review phase. If your application is approved, a dedicated representative will contact you using the provided contact details to discuss your requirements further. If you have been notified that the usage permission for the blockchain solution has been activated, you can log in to the console interface, navigate to Computing - Cloud Container Engine (CCE) - Solutions - Fabric Solution, and start creating your application.
Create a container cluster
Create the operating environment for blockchain applications - container clusters. For specific operation steps, please refer to Create Cluster
Environment configuration
Configure fabric parameters
After the container cluster is created successfully, start deploying the fabric application platform. Parameters support one-click configuration. Users only need to select and configure parameters as prompted on the fabric deployment page:

- Select a cluster: Choose the cluster designated for deploying the fabric application platform. If no cluster has been created yet, click "Create Now" to redirect to the container cluster creation page.
- Network name: Customize your fabric network name to effectively identify your network details.
- Network type: Choose between a private chain or an alliance chain. For private chains, institutional nodes (peers) remain unexposed to the internet via EIP. For alliance chains, institutional nodes (peers) are accessible on the internet via EIP.
- Channel name: Personalize your channel name; the channel serves as a ledger whose status is maintained by all participating members.
- Organization name: Define your organization name; this organization will engage in the channel of the fabric network for chain code management and transaction approvals.
- Number of orderer nodes: Specify the number of orderer nodes. The maximum count depends on the chosen cluster's node capacity.
- Number of peer nodes: Select the number of peer nodes; the maximum value is the maximum number of nodes in the selected cluster. After completing the above steps, users can choose Deploy Directly to deploy the fabric network, or select Next to enter the smart contract configuration page.
Configure smart contracts
Users can select and configure smart contracts on the current page:

- Smart contract name: You can set a custom name for the smart contract. The system will also generate a default ID for the contract. The contract name can contain up to 40 characters.
- Configure endorsement policy: Choose an endorsement policy. A strict policy requires every organization's approval, while a flexible policy allows selecting specific organizations for endorsements.
- Initial parameters: Define the initial parameters for the smart contract.
After completing the steps, you can either select Deploy Directly to implement the changes immediately or click Next to set up your Dapp configuration.
Note: Deploying directly from this page will both deploy the fabric network and the smart contract ChainCode.
View Dapp configuration
Users can view the Dapp configuration on the current page:

Once the above steps are completed, users can choose Deploy Directly to deploy and proceed to build a Dapp application.
Access Dapp
After the user’s fabric network is deployed successfully, they can click Download Network, Contract and Application Parameters.

After verifying the pop - up window verification code, users can download the Dapp information.

The downloaded csv file contains the information about the current fabric network.

According to the Dapp’s IP and Port in the csv file, enter IP:Port in the browser’s address bar, and then we can access the deployed Dapp:

