Method for externally calling a fabric chain code under BaaS architecture based on PaaS platform

An external call and chain code technology, applied in program control design, program control device, transmission system, etc., can solve problems such as inability to respond to high-frequency requests, inflexible deployment and invocation, and inability to freely determine the location of blockchain machines. , to save resources and facilitate upgrades

Pending Publication Date: 2021-11-05
NANJING XINWANG VIDEO NETWORK TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing methods have the following problems: 1. It is impossible to freely determine the location of the machine where the smart contract of the blockchain runs, and it can only be transferred by the system at will, which creates a big obstacle for the smart contract of the fabric to run in the PaaS environment; 2. At the same time, it is also impossible to efficiently allocate machine resources, resulting in inflexible deployment and invocation, unable to cope with high-frequency requests

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for externally calling a fabric chain code under BaaS architecture based on PaaS platform
  • Method for externally calling a fabric chain code under BaaS architecture based on PaaS platform
  • Method for externally calling a fabric chain code under BaaS architecture based on PaaS platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0033] refer to figure 1 , a method for externally invoking a fabric chaincode under a BaaS architecture based on a PaaS platform, comprising the following steps:

[0034] S1. Chain building: create a blockchain network with 2 organizations, each with 2 nodes, and 3 orders, and join them in the same channel;

[0035] S2. Setting up the anchor node: set peer0 as the anchor node of the organization in Organization 1 and Organization 2 respectively, and the chain code is only installed on the anchor node;

[0036] S3, builder and generator: install the builder and generator on the anchor nodes of each organization respectively, the builder is used to discover the chain code file, and the generator is used to detect the chain code file;

[0037] S4. Deploy chain code: deploy chain code management service on the specified container and upload the corresponding chain code file;

[0038] S5. Start the chain code: use the chain code management service to start the corresponding chai...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the technical field of block chain technologies and PaaS platforms and services, and particularly relates to a method for externally calling a fabric chain code under a BaaS architecture based on a PaaS platform, and the method comprises the following steps: building a chain: building a block chain network with two organizations, two nodes of each organization and three orders, and adding the block chain network into the same channel; setting anchor nodes: respectively setting peer0 as the anchor nodes of the organization in the organization I and the organization II, wherein the chain codes are only installed on the anchor nodes; installing the constructors and the generators on the anchor nodes of all the organizations respectively, wherein the constructors are used for discovering the chain code files, and the generators are used for detecting the chain code files; and deploying a chain code: deploying a chain code management service on the specified container and uploading a corresponding chain code file. According to the method, resources are saved, and due to the fact that the chain service is alliance in the PaaS environment, only one chain code service needs to be started, and compared with the prior art that one chain code service needs to be installed and started for each endorsement node, the resources are greatly saved.

Description

technical field [0001] The present invention relates to the field of block chain technology, PaaS platform and service technology, in particular to a fabric chain code external calling method under the BaaS architecture based on the PaaS platform. Background technique [0002] The traditional method is that the underlying chain fabric starts container technology such as docker to run the smart contract (chain code) of the fabric. The invention is that the smart contract of the fabric uses PaaS technology to flexibly specify the machine to deploy its own smart contract. [0003] The existing methods have the following problems: 1. It is impossible to freely determine the location of the machine where the smart contract of the blockchain runs, and it can only be transferred by the system at will, which creates a big obstacle for the smart contract of the fabric to run in the PaaS environment; 2. At the same time, the resources of the machine cannot be allocated efficiently, re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityApplications(China)
IPC IPC(8): H04L29/08G06F9/455
CPCH04L67/10G06F9/45558G06F2009/45595G06F2009/45562G06F2009/45575H04L9/50
Inventor石光捷张良付飞龙黄丽莉孙含新
OwnerNANJING XINWANG VIDEO NETWORK TECH