هذه الصفحة غير متوفرة حاليًا بلغتك المحلية. نحن نعمل جاهدين على إضافة المزيد من اللغات. شاكرين تفهمك ودعمك المستمر لنا.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring the Application

Updated on 2023-01-16 GMT+08:00

Before initiating transactions, the inviting party must download the administrator certificates of the orderer and organization democraticBank, and the certificates in which the private keys are hidden by invitees A and B.

Encrypt the private keys in the downloaded certificates for storage.

Prerequisites

An ECS has been created. For more information on how to create ECSs, see Elastic Cloud Server User Guide.

Downloading SDK Configurations and Certificates

  1. On the Instance Management page, click Download Client Configuration on the card containing the bank-union-demo instance of the inviting party.
  2. Select SDK Configuration File and set the parameters as described in Table 1.

    NOTICE:

    To ensure that the demo runs properly, set the parameters as described in the following table.

    Table 1 SDK file parameters

    Parameter

    Setting

    Chaincode Name

    Enter fabbank.

    Certificate Root Path

    Enter /opt/bank/src/bank/conf/crypto.

    NOTE:

    /opt/bank/src/bank/conf/crypto is the internal path of the container and is mounted to the /root/bankuniondemo path of the ECS.

    Channel

    Retain the automatically selected testchannel.

    Member

    Retain the default settings. Do not select all organizations and peers.

  3. Select Orderer Certificate and Peer Certificates. Under Peer Certificates, retain the default selection for Peer Organization and select Administrator certificate. Click Download.
  4. Decompress the downloaded file. Duplicate the sdk-config.yaml file with another two copies, and name the three files democraticBank.yaml, civilizationBank.yaml, and harmoniousBank.yaml. Then, save the files to the /root/bankuniondemo directory on the ECS.

    NOTE:
    • Create the bankuniondemo directory in the /root directory of the ECS.
    • According to Installing and Instantiating a Chaincode, the chaincode installed by all parties (inviting party democraticBank, invitee A civilizationBank, and invitee B harmoniousBank) must be the same one. Therefore, you only need to download the inviting party's SDK configuration file sdk-config.yaml to obtain the chaincode and certificate path information. Then, duplicate the file with two copies, and rename the three files.

  5. On the card containing the instance of invitee A, click Download Client Configuration, and select Peer Certificates and Administrator certificate to download the administrator certificate of the civilizationBank organization.
  6. Invitee A deletes the private key files (server.key file in the tls directory and files in the keystore folder in the msp directory) from the administrator certificate of organization civilizationBank.

    Figure 1 Deleting the server.key file from the tls directory
    Figure 2 Deleting the keystore file from the msp directory

  7. Invitee B repeats 5 to 6 to download the administrator certificate of organization harmoniousBank and delete the private key files.
  8. The inviting party stores the downloaded bank-union-demo-orderer administrator certificate, the administrator certificate of organization democraticBank, and certificates of organizations civilizationBank and harmoniousBank (in which the private key files have been deleted by the invitees) to the /root/bankuniondemo directory of the prepared ECS.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback