CN114268638A - Block chain platform channel management method and device, computer equipment and storage medium - Google Patents

Block chain platform channel management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114268638A
CN114268638A CN202111674571.XA CN202111674571A CN114268638A CN 114268638 A CN114268638 A CN 114268638A CN 202111674571 A CN202111674571 A CN 202111674571A CN 114268638 A CN114268638 A CN 114268638A
Authority
CN
China
Prior art keywords
platform
channel
block chain
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202111674571.XA
Other languages
Chinese (zh)
Inventor
闫核心
关琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingzhu Technology Co ltd
Original Assignee
Shenzhen Mingzhu Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingzhu Technology Co ltd filed Critical Shenzhen Mingzhu Technology Co ltd
Priority to CN202111674571.XA priority Critical patent/CN114268638A/en
Publication of CN114268638A publication Critical patent/CN114268638A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to a channel management method and device for a block chain platform, computer equipment and a storage medium. The method comprises the following steps: acquiring an operation instruction sent by a block chain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target block chain for managing a communication channel, wherein the first platform and the second platform belong to different block chain networks; generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through the target block chain; and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link and the target node based on the channel auditing result. By adopting the method, the block chain account numbers of different block chain platforms can be established or added into a cross-platform communication channel through the corresponding nodes by depending on the target block chain, so that the information interaction between the first platform and the second platform is realized.

Description

Block chain platform channel management method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for managing channels of a blockchain platform, a computer device, a storage medium, and a computer program product.
Background
With the development of the blockchain technology, a blockchain platform appears, the blockchain platform combines a blockchain framework with a cloud computing platform, and by utilizing the advantages of high availability and convenient expansion of cloud service infrastructure, the blockchain platform provides a scalable blockchain ecological environment and ecological supporting service which are available for a developer to purchase, so that a novel business scheme for helping an enterprise to simplify the operation process is formed.
Most of the current block chain platforms are constructed based on a multi-user mode, user information is stored and managed in a centralized mode, and different users schedule and communicate resources through a centralized platform. The information management mechanism in the block chain ensures that the information security of the user cannot be guaranteed. Moreover, when each organization belongs to different blockchain platforms, information interaction is extremely inconvenient, and the creation of channels for service cooperation is not friendly. Barriers exist for communication interaction between different blockchain platforms.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a platform channel management method, apparatus, computer device, computer readable storage medium, and computer program product for performing communication between nodes across platforms.
In a first aspect, the present application provides a channel management method for a blockchain platform, where the method includes:
acquiring an operation instruction sent by a blockchain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target blockchain for managing a communication channel, wherein the first platform and the second platform belong to blockchain platforms in different blockchain networks;
generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through a target block chain;
and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
In one embodiment, the determining that the operation instruction is related to a target node connected to the second platform includes:
analyzing the operation instruction, and determining a service requirement corresponding to the operation instruction;
acquiring a candidate communication channel corresponding to the second platform based on the target block chain, wherein the candidate communication channel comprises at least one candidate communication node;
and judging the corresponding relation between the service demand and the candidate communication node, and determining that the operation instruction is related to a target node connected with a second platform based on the corresponding relation.
In one embodiment, the determining the correspondence between the service requirement and the candidate communication node includes:
acquiring a block chain service account corresponding to the candidate communication node, and determining a service function corresponding to the block chain service account;
and obtaining the corresponding relation between the service demand and the candidate communication node based on the corresponding relation between the service demand and the service function.
In one embodiment, the target block chain corresponds to a first preset data format and a second preset data format, and the generating of the permission check information corresponding to the operation instruction includes:
determining a channel authority acquisition function in the operation instruction, and converting the channel authority acquisition function based on the first preset data format to obtain a converted channel authority acquisition function;
determining a requirement to be authorized of the operation instruction, and converting the requirement to be authorized based on the second preset data format to obtain a converted requirement to be authorized;
and combining the converted requirement to be authorized with the converted authorization judgment function to obtain the authority verification information.
In one embodiment, the channel audit result includes channel authorization information, and the generation of the channel audit result includes:
determining a plurality of authority checking accounts based on a communication channel of a target node, and determining authority checking nodes corresponding to the authority checking accounts;
and after each authority auditing account respectively audits the authority auditing information, generating the channel authorization information based on each authority auditing node.
In one embodiment, the method further comprises: and storing the authority verification information between the first platform and the second platform, the channel verification result and the process information generated by the channel verification result by applying the target block chain.
In one embodiment, the determining, based on the channel audit result, a communication channel between the block link node and the target node includes:
after the channel authorization information is received, the target block chain is applied to generate a communication channel between the block chain link point connected with the first platform and the target node; or,
and after receiving the channel authorization information, applying the target block chain to connect the block chain link point connected by the first platform to the communication channel where the target node is located.
In a second aspect, the present application further provides a device for managing channels of a blockchain platform, where the device includes:
a target block chain determining module, configured to obtain an operation instruction sent by a node of a block chain account connected to a first platform, determine a target block chain for managing a communication channel if the operation instruction is determined to be related to a target node connected to a second platform, where the first platform and the second platform belong to block chain platforms in different block chain networks;
the communication auditing module is used for generating authority auditing information corresponding to the operation instruction and sending the authority auditing information to the target node through the target block chain;
and the channel determining module is used for acquiring a channel auditing result corresponding to the authority auditing information through the target block chain and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring an operation instruction sent by a blockchain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target blockchain for managing a communication channel, wherein the first platform and the second platform belong to blockchain platforms in different blockchain networks;
generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through a target block chain;
and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring an operation instruction sent by a blockchain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target blockchain for managing a communication channel, wherein the first platform and the second platform belong to blockchain platforms in different blockchain networks;
generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through a target block chain;
and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring an operation instruction sent by a blockchain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target blockchain for managing a communication channel, wherein the first platform and the second platform belong to blockchain platforms in different blockchain networks;
generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through a target block chain;
and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
The channel management method, the device, the computer equipment, the storage medium and the computer program product of the block chain platform obtain an operation instruction sent by a block chain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, a target block chain for managing a communication channel is determined, wherein the first platform and the second platform belong to block chain platforms in different block chain networks, permission audit information corresponding to the operation instruction is generated, the permission audit information is sent to the target node through the target block chain, a channel audit result corresponding to the permission audit information is obtained through the target block chain, and the communication channel between the block chain node and the target node is determined based on the channel audit result. The information interaction between users connected with one block chain platform can be carried out in a channel creating mode, and the users between different block chain platforms can build or join a cross-platform communication channel through corresponding nodes of the users by depending on a target block chain, so that the information interaction between the first platform and the second platform is realized.
Drawings
FIG. 1 is a diagram of an embodiment of an application environment for a channel management method for a blockchain platform;
FIG. 2 is a flowchart illustrating a channel management method for a blockchain platform according to an embodiment;
FIG. 3 is a flow chart illustrating the determination of correspondence in one embodiment;
FIG. 4 is a flow chart illustrating correspondence determination in another embodiment;
FIG. 5 is a schematic diagram of a flow of audit information generation in one embodiment;
FIG. 6 is a flow diagram illustrating the generation of authorization information in one embodiment;
FIG. 7 is a schematic flow chart diagram illustrating the overall structure of one embodiment;
FIG. 8 is a flowchart illustrating a channel management method for a blockchain platform according to an embodiment;
FIG. 9 is a flowchart illustrating a channel management method for a blockchain platform according to an embodiment;
FIG. 10 is a block diagram of a channel management device of the blockchain platform according to an embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
The block chain platform can be used for building a management system (BaaS platform) with functions of centralized management, centralized operation and maintenance and centralized supervision, provides one-stop subchain link building capability, and realizes full-life-cycle management on the whole network, each subchain node and resources. The blockchain platform can also be an application service platform (SaaS platform) with a one-key blockchain application deployment function, and provides efficient and convenient application development, deployment and management environments under a multi-bottom-layer framework for developers. After generating scattered blockchain nodes or complete blockchains based on the blockchain platform, if communication needs to be performed on each node, a communication channel needs to be used.
The communication channel may be referred to as a channel for short, and is a network in which a block chain account in a federation chain creates an independent block chain for performing a service. Channels allow a particular set of peers and applications to communicate with each other within a blockchain network, channels do not actually exist, but rather are logical structures formed by a collection of physical peers. Each channel has a completely independent ledger, which means completely independent blockchains, and completely independent status. An organization may join multiple channels to participate in multiple independent blockchain networks. However, there are differences in the technologies such as rules and data structures of each blockchain platform, and it is difficult to establish a trust mechanism between different platforms, so that cross-platform communication is difficult to implement, and particularly, in the case where a blockchain account belongs to each organization of a federation chain, this phenomenon is particularly obvious, where an organization is a member in the federation chain, and is an entity corresponding to a real scene, and different organizations generate information such as their own identity certificates for interaction and authentication in the federation chain network.
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The channel management method of the block chain platform provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. The scheme provided by the embodiment of the application can be realized by the terminal 102; or cooperatively implemented by the terminal 102 and the server 104, wherein both the terminal 102 and the server 104 may be real blockchain nodes, and the terminal 102 and/or the server 104 may also refer to corresponding virtual blockchain nodes.
In one embodiment, as shown in fig. 2, a method for managing channels of a blockchain platform is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step 202, obtaining an operation instruction sent by a blockchain node connected to a first platform, and if it is determined that the operation instruction is related to a target node connected to a second platform, determining a target blockchain for managing a communication channel, where the first platform and the second platform belong to blockchain platforms in different blockchain networks.
The first platform is a blockchain platform in a blockchain network, the blockchain platform connection comprises one or more blockchain nodes, and a blockchain link point can be a node in a real blockchain or a discrete blockchain link point, and most of the discrete blockchain link points are used for testing or learning.
After the block link point connected to the first platform sends the operation command, the server 104 corresponding to the first platform may determine according to the corresponding relationship or data dependency, and when the operation command is not related to the target node, the target block link may not be scheduled. For example: if the operation command is corresponding to the block link point, the operation command is not related to a target node connected with the second platform; if the operation instruction is a management state or a running state corresponding to the second platform, the operation instruction is not related to a target node connected with the second platform.
When the operation instruction corresponds to the target node, the operation instruction is related to the target node connected with the second platform, because the first platform and the second platform belong to different block chain networks respectively, the rules and data structures between the first platform and the second platform are different, and the trust mechanism between different platforms is difficult to establish, the target block chain for managing the communication channel needs to be determined, and after the target block chain is determined, the first platform generates some request instructions, and the process of information interaction is performed with the target block chain through the request instructions.
And 204, generating permission verification information corresponding to the operation instruction, and sending the permission verification information to the target node through the target block chain.
For the generation process of the authority checking information, it may be that partial data in the operation instruction is directly used as data corresponding to the authority checking information, it may also be that data corresponding to the operation instruction is used as data corresponding to the authority checking information, it may also be a process of performing information integration on the operation instruction, and the information integration may be a data integration process or content integration.
For the data integration of the permission audit information, the process may be to perform format conversion on the operation instruction, or to perform parsing and recombination on some data mapped by the operation instruction, or to start some functions to implement corresponding functions. For example: if the operation instruction is in a data format in the first platform, the operation instruction needs to be converted into a data format of a target block chain or a second platform; if the operation instruction can be mapped to a certain preset service function of the first platform, analyzing or recombining the service logic for realizing the preset service function so as to adapt to the data format of the target block chain or the second platform; and if the operation instruction can trigger an event function for generating the interaction event, starting the event function corresponding to the operation instruction to generate the authority auditing information.
And integrating the content of the authority auditing information. The process may be to perform feature extraction on the operation instruction, or may be to perform feature extraction on a function corresponding to the operation instruction. For example: if the operation instruction points to data such as table images, texts, video and audio files and the like, performing feature extraction on the data so as to obtain required authority verification information; if the operation instruction triggers certain functions or events, the functions or events are subjected to feature extraction.
After the authority audit information is generated, the target block chain transmits the authority audit information, and the data format corresponding to the authority audit information is one or more of the data format standard, the function standard and the like which accord with the target block chain transmission, so that the request information of the block chain node is conveniently sent to the target node through the target block chain, and the information interaction between the first platform and the second platform is realized.
And after the authority audit information is sent to the second platform, the target node audits the authority audit information and generates an initial audit result of a corresponding channel according to the data rule of the second platform, wherein the initial audit result can be a digital signature and can be some identification or data obtained by generating a block based on a consensus mechanism.
After the initial audit result is generated, if the initial audit result simultaneously conforms to the preset data format of the target block chain, the task execution subject corresponding to the second platform can directly send the initial audit result to the target block chain; and if the initial auditing result does not conform to the preset data format of the target block chain, the initial auditing result needs to be converted according to the rule corresponding to the target block chain to obtain the converted auditing result, and the converted auditing result is sent to the target block chain.
And step 206, acquiring a channel audit result corresponding to the authority audit information through the target block chain, determining a communication channel between the block chain link and the target node based on the channel audit result, and realizing communication between the first platform and the second platform.
And for the obtained channel auditing result, the obtained channel auditing result may represent that the communication channel is forbidden or authorized. If the channel audit result indicates that the communication channel is prohibited from being used, the communication channel may need to be managed by other block chains or schemes, rather than managing the communication between the block chain node and the target node by this target block chain. And if the channel auditing result represents the authorization of the communication channel, determining the communication channel between the block chain link point and the target node according to the operation instruction. For this process of determining the communication channel, it may be a process of adding the block link point to the communication channel where the target node is located, or a process of generating a communication channel between the block link point and the target node.
After the communication channel is determined, the interaction between the first platform and the second platform is realized based on the communication channel. It can be understood that a communication channel is an independent block chain network created for performing a certain service by an organization in a federation chain, the communication between a block chain link point and a target node is realized through the communication channel, the channel is a logical structure formed by a physical peer node set, and each channel can have a completely independent block chain book to ensure the reliability of information interaction.
It can be understood that the target blockchain has a decentralized characteristic, and by applying one or more management means such as data encryption, timestamp, distributed consensus and the like, the nodes distributed on the first platform and connected with the second platform can realize information interaction based on decentralized, so that the problems of high cost, low efficiency, unsafe data storage and the like caused by centralization of the blockchain by the blockchain platform can be solved. For example: the first platform and the second platform are respectively developed, operated, maintained, managed and/or monitored by different platform management organizations, and technical barriers, trust and other problems exist between the different platform management organizations, so that a communication channel needs to be managed based on a target block chain.
In the channel management method of the block chain platform, an operation instruction sent by a block chain node connected with a first platform is obtained, and if the operation instruction is determined to be related to a target node connected with a second platform, a target block chain for managing a communication channel is determined, wherein the first platform and the second platform belong to different block chain networks; generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through the target block chain; and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, determining a communication channel between the block chain link and the target node based on the channel auditing result, and realizing communication between the first platform and the second platform. Therefore, not only can information interaction be carried out between users connected with one block chain platform in a channel creating mode, but also the users between different block chain platforms can build or join a cross-platform communication channel by depending on a target block chain through corresponding nodes, and the information interaction between the first platform and the second platform is realized. In addition, the related information of the communication channel can be traced back through the target block chain, and the safety of information interaction is guaranteed.
In one embodiment, as shown in fig. 3, determining that the operation instruction is related to the target node connected to the second platform includes:
step 302, analyzing the operation instruction, and determining a service requirement corresponding to the operation instruction.
The operation instruction can be interpreted by the first platform to realize the analysis of the operation instruction, and the analysis process can also be realized by other platforms or some task execution bodies corresponding to the first platform. After the operation instruction is analyzed, the service requirement corresponding to the operation instruction can be determined. The service requirement may be a requirement for establishing a federation or joining a federation, or may be another requirement associated with the target node.
Step 304, obtaining a candidate communication channel corresponding to the second platform based on the target block chain, where the candidate communication channel includes at least one candidate communication node.
Step 306, judging the corresponding relation between the service requirement and the candidate communication node, and determining that the operation instruction is related to the target node connected with the second platform based on the corresponding relation.
When the service requirement does not have a corresponding relation with the candidate communication node, the target node corresponding to the service requirement does not exist in the candidate communication node, so that information interaction is not needed.
When at least one corresponding relation exists between the service requirement and the candidate communication nodes, the target node is determined from the candidate communication nodes, so that the corresponding relation between the service requirement and the target node is clear, and information interaction between the block link node and the target node is convenient to realize.
In this embodiment, the candidate communication node is determined by the target block chain, and the target node is determined based on the correspondence between the candidate communication node and the service requirement. Therefore, the target node is determined according to the service requirement, so that on one hand, many problems caused by data dependency can be reduced, on the other hand, the target node can be determined more accurately, and information interaction among different block chain platforms is facilitated.
Judging the corresponding relation between the service requirement and the candidate communication node, comprising:
step 402, obtaining a block chain service account corresponding to the candidate communication node, and determining a service function corresponding to the block chain service account.
For candidate communication nodes connected to the second platform, the candidate communication nodes may be virtual nodes or real devices, and one candidate communication node may correspond to one or more blockchain service accounts, which may provide some or some service function when the blockchain service account belongs to an organization or an individual, and the service function may be an authorization function.
Step 404, obtaining a corresponding relation between the service requirement and the candidate communication node based on the corresponding relation between the service requirement and the service function.
In this embodiment, the service function is determined by the blockchain service account, and the corresponding relationship between the service requirement and the candidate communication node is determined according to the corresponding relationship between the service function and the service requirement. Therefore, the alliance information between the first platform and the second platform can be directly determined, so that a communication channel can be generated or created, and the communication security of the nodes of different blockchain platforms is higher.
In one embodiment, as shown in fig. 5, the target block chain corresponds to a first predetermined data format and a second predetermined data format, and the first predetermined data format and the second predetermined data format are both data formats specified by the target block chain and are used for converting data output by the first platform into the data formats. The first preset data format is used for determining a data type or a function type corresponding to a channel authority acquisition function, and the second preset data format is used for determining a data type or a function type corresponding to a demand to be authorized; for specific format requirements, the first preset data format and the second preset data format may have the same data type or different data types. The authority verification information corresponding to the generated operation instruction includes:
step 502, determining a channel permission obtaining function in the operation instruction, and converting the channel permission obtaining function based on a first preset data format to obtain a converted channel permission obtaining function.
The channel permission obtaining function is used for obtaining the channel permission, and the converted channel permission obtaining function not only has the function of the channel permission obtaining function, but also has the convenience brought by the first preset data format, and is beneficial to reducing the influence caused by format problems.
Step 504, determining a to-be-authorized requirement of the operation instruction, and converting the to-be-authorized requirement based on a second preset data format to obtain a converted to-be-authorized requirement.
The requirement to be authorized may refer to a specific authorization requirement, or may be a requirement corresponding to other related functional requirements, and the compatibility problem of data between different blockchain platforms can be avoided through the converted substitute authorization requirement.
Step 506, combining the converted to-be-authorized requirement with the converted authorization judgment function to obtain the authorization audit information.
In this embodiment, data conversion is performed according to a preset data format to adapt to a data standard of a target block chain, and since the first platform performs data format conversion instead of format conversion based on the target block chain, a certain amount of computing resources can be saved.
In one embodiment, as shown in fig. 6, the channel audit result includes channel authorization information, and the generation of the channel audit result includes:
step 602, determining a plurality of permission auditing accounts based on the communication channel of the target node, and determining permission auditing nodes corresponding to the permission auditing accounts.
And step 604, after each authority checking account respectively checks the authority checking information, generating channel authorization information based on each authority checking node.
In this embodiment, a communication channel of a target node is used to determine a permission audit account, and after each permission audit account corresponding to the channel respectively audits permission audit information, channel authorization information is generated based on a permission audit node corresponding to the permission audit account. Therefore, the authority checking information can not be diffused to each node in a large scale, the checking efficiency can be guaranteed, and the communication enables the authority checking accounts to form a set so as to avoid the large-scale diffusion of the authority checking information.
The method further comprises the following steps: and the application target block chain stores the authority verification information, the channel verification result and the flow information generated by the channel verification result between the first platform and the second platform.
In this embodiment, after the information is stored in the target block chain, the characteristics of the block chain in the aspects of non-falsification, decentralization and the like can be fully exerted, and the permission audit information, the audit process and the audit result can be traced, so that a trust mechanism corresponding to nodes connected to different platforms of the target block chain can be better established, a cross-platform alliance chain can be established, and cross-platform communication can be realized.
In one embodiment, determining the communication channel between the block link node and the target node based on the channel audit result comprises:
after receiving the channel authorization information, generating a communication channel between a block chain link point connected with the first platform and a target node by using the target block chain; or after receiving the channel authorization information, applying the target block chain to connect the block chain link point connected by the first platform to the communication channel where the target node is located.
In this embodiment, the communication flow can be accelerated by generating the communication channel, the possibility of information congestion is reduced, and the excessive occupation of computing resources due to excessive communication channels can be avoided by connecting to the communication channel. Therefore, the two data processing modes can be used for adjusting the overall process of data interaction so as to facilitate cross-platform information interaction.
The target block chain is taken as a management chain of an organization union, the first platform and the second platform are collectively called block chain platforms, and service functions in the block chain platforms are discussed.
In an alternative embodiment, the block chain platform represented by the Baas platform has three types of functions, which are as follows:
a channel control module: and defining specific logic of the channel management service, including a channel creation process and a channel configuration updating process. And the block chain platform interfaces such as the BaaS API and the like call the specific method of the module to execute the relevant logic, and the module calls the channel configuration management module method to carry out uplink storage on the channel configuration and correspondingly expand the underlying infrastructure.
A channel configuration management module: the specific channel configuration information management method comprises the steps of storing and updating the uplink of the configuration information.
A chain interaction module: defining an interaction standard and an interaction method of a block chain platform and a channel management chain such as BaaS, and the like, wherein the interaction standard and the interaction method comprise the steps of obtaining information on the chain, submitting uplink of the information and submitting transaction information.
An event center: monitoring the channel management chain information, informing the channel control module to perform relevant processing, monitoring the approval condition of the submitted information, triggering a corresponding event when the approval is passed, and calling the channel control module to perform processing.
A bottom layer interaction module: and defining an interaction standard and an interaction method of the BaaS platform to the bottom infrastructure, and operating and processing the bottom nodes according to the channel configuration.
In an optional embodiment, the target block chain is used as a channel management chain of the BaaS platform, and has two functions, specifically as follows:
channel information management function: the functions include approval of the creation of channel transactions, uplink storage of channel information, and updates to channel information.
The channel information interaction function is as follows: the function defines the format and the specification of the BaaS platform for uplink storage of the channel information, and the standard format and the method for interacting with the channel management chain, and provides the modified record tracing of the channel information.
Relative to the first platform, users of the first platform are users of the BaaS platform, users of the second platform are other users, and the other users comprise other isomorphic and heterogeneous BaaS platform users and non-BaaS platform users; based on the same principle, compared with the second platform, the user of the second platform is the user of the BaaS platform, the user of the first platform is other users, and the other users comprise other isomorphic and heterogeneous BaaS platform users and non-BaaS platform users.
In an alternative embodiment, as shown in fig. 7, the blockchain accounts in the blockchain platform interact through an internal interface of the platform, and the blockchain platforms interact through an interface of a management chain for managing cross-platform communication, for example: the method comprises the steps that an organization corresponding to a block chain account in the BaaS platform and an interactive interface of the BaaS platform service are established; the management chain API is an external interface for interaction between the non-native BaaS platform organization and the native BaaS platform management chain, and is authorized to be accessible.
In an optional embodiment, as shown in fig. 8, taking the blockchain account number of the first platform as a main descriptor, in a scenario of discussing authorization, an overall process of adding the blockchain account number of the first platform into a communication channel where a target blockchain of the second platform is located includes:
1. calling a channel information interaction function through a management chain API to acquire the access authority of a channel management chain and acquire the added channel information;
2. initiating a multi-sign transaction for joining the channel through a channel information interaction function, and waiting for user approval in the channel; other members in the channel monitor the chain information through a chain interaction module, and the event center informs the user to examine and approve;
3. calling a channel information management function through a management chain API (application program interface) to uplink and store the information added into the channel;
4. and the channel configuration management module updates the configuration of the bottom infrastructure through the bottom interaction module.
In an optional embodiment, as shown in fig. 9, taking the blockchain account number of the second platform as a main descriptor, in a scenario of discussing authorization, an overall process of adding the blockchain account number of the second platform into a communication channel where a target blockchain of the second platform is located includes:
1. calling a channel control module through the BaaS API, executing relevant logic of the added channel, and calling a configuration management module to generate corresponding configuration information.
2. And the channel configuration management module interacts with the channel management chain through the chain interaction module, initiates a multi-label transaction of joining the channel and waits for the examination and approval of the channel members.
3. The BaaS user in the channel monitors chain information through the event center and carries out examination and approval; other users monitor the chain information through the management chain API through the channel information interaction function, and examine and approve the information needing to be examined and approved. And after the approval is passed, the event center informs the channel control module.
4. And the channel configuration management module calls a chain interaction module to store the channel configuration information in a channel management chain, and calls a bottom layer interaction module to modify the information of the base nodes of the bottom layer alliance chain.
Based on this, the alliance chain is used as a management chain, and a non-native BaaS platform user wants to interact information through the native BaaS, needs to acquire an authorized identity through the management chain first, and interacts with the management chain through a management chain API. The BaaS platform user interacts with the BaaS platform service through the BaaS API. The channel operation is managed through the block chain, and a channel information interaction mechanism between different BaaS platforms is provided, so that different BaaS platforms and the stray nodes can mutually interact information to create and add channels, and meanwhile, the modification records of the channel information can be traced.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a channel management device for a blockchain platform, which is used for implementing the channel management method for the blockchain platform. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the embodiments of the channel management device for one or more blockchain platforms provided below can be referred to the above limitations on the channel management method for the blockchain platform, and are not described herein again.
In one embodiment, as shown in fig. 10, there is provided a channel management apparatus for a blockchain platform, including: a target blockchain determination module 1002, a communication auditing module 1004, and a channel determination module 1006, wherein:
a target block chain determining module 1002, configured to obtain an operation instruction sent by a node of a block chain account connected to a first platform, determine a target block chain for managing a communication channel if the operation instruction is determined to be related to a target node connected to a second platform, where the first platform and the second platform belong to block chain platforms in different block chain networks;
a communication auditing module 1004, configured to generate permission auditing information corresponding to the operation instruction, and send the permission auditing information to the target node through the target block chain;
a channel determining module 1006, configured to obtain a channel audit result corresponding to the permission audit information through the target block chain, and determine a communication channel between the block chain link point and the target node based on the channel audit result.
In one embodiment, the target block chain determining module 1002 includes:
the requirement determining unit is used for analyzing the operation instruction and determining the service requirement corresponding to the operation instruction;
a candidate node determining unit, configured to obtain a candidate communication channel corresponding to the second platform based on the target block chain, where the candidate communication channel includes at least one candidate communication node;
and the target node determining unit is used for judging the corresponding relation between the service requirement and the candidate communication node and determining that the operation instruction is related to a target node connected with a second platform based on the corresponding relation.
In one embodiment, the target node determining unit includes:
the function determining subunit is configured to acquire a block chain service account corresponding to the candidate communication node, and determine a service function corresponding to the block chain service account;
and the corresponding relation determining subunit is used for obtaining the corresponding relation between the service demand and the candidate communication node based on the corresponding relation between the service demand and the service function.
In one embodiment, the target block chain corresponds to a first preset data format and a second preset data format, and the communication auditing module 1004 includes:
the function conversion unit is used for determining a channel authority acquisition function in the operation instruction, and converting the channel authority acquisition function based on the first preset data format to obtain a converted channel authority acquisition function;
the requirement conversion unit is used for determining a requirement to be authorized of the operation instruction, and converting the requirement to be authorized based on the second preset data format to obtain a converted requirement to be authorized;
and the auditing information generating unit is used for combining the converted to-be-authorized requirement with the converted authorization judgment function to obtain the authority auditing information.
In one embodiment, the channel audit result includes channel authorization information, and the communication audit module 1004 includes:
the node determination unit is used for determining a plurality of permission auditing accounts based on a communication channel of a target node and determining permission auditing nodes corresponding to the permission auditing accounts;
and the channel authorization unit is used for generating the channel authorization information based on each authority verification node after each authority verification account respectively verifies the authority verification information.
In one embodiment, the channel determining module 1006 is configured to store, by using the target block chain, permission verification information between the first platform and the second platform, the channel verification result, and process information generated by the channel verification result.
In one embodiment, the channel determination module 1006 includes:
the channel generation unit is used for generating a communication channel between the block chain link point connected with the first platform and the target node by applying the target block chain after receiving the channel authorization information; or,
and the channel creating unit is used for connecting the block link point connected by the first platform to the communication channel where the target node is located by applying the target block chain after receiving the channel authorization information.
The modules in the channel management device of the blockchain platform may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a channel management method for a blockchain platform.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for channel management in a blockchain platform, the method comprising:
acquiring an operation instruction sent by a blockchain node connected with a first platform, and if the operation instruction is determined to be related to a target node connected with a second platform, determining a target blockchain for managing a communication channel, wherein the first platform and the second platform belong to blockchain platforms in different blockchain networks;
generating authority checking information corresponding to the operation instruction, and sending the authority checking information to the target node through a target block chain;
and acquiring a channel auditing result corresponding to the authority auditing information through the target block chain, and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
2. The method of claim 1, wherein determining that the operational directive is associated with a target node to which a second platform is connected comprises:
analyzing the operation instruction, and determining a service requirement corresponding to the operation instruction;
acquiring a candidate communication channel corresponding to the second platform based on the target block chain, wherein the candidate communication channel comprises at least one candidate communication node;
and judging the corresponding relation between the service demand and the candidate communication node, and determining that the operation instruction is related to a target node connected with a second platform based on the corresponding relation.
3. The method of claim 2, wherein the determining the correspondence between the service requirement and the candidate communication node comprises:
acquiring a block chain service account corresponding to the candidate communication node, and determining a service function corresponding to the block chain service account;
and obtaining the corresponding relation between the service demand and the candidate communication node based on the corresponding relation between the service demand and the service function.
4. The method according to claim 1, wherein the target block chain corresponds to a first preset data format and a second preset data format, and the generating of the permission review information corresponding to the operation instruction comprises:
determining a channel authority acquisition function in the operation instruction, and converting the channel authority acquisition function based on the first preset data format to obtain a converted channel authority acquisition function;
determining a requirement to be authorized of the operation instruction, and converting the requirement to be authorized based on the second preset data format to obtain a converted requirement to be authorized;
and combining the converted requirement to be authorized with the converted authorization judgment function to obtain the authority verification information.
5. The method according to any one of claims 1 to 4, wherein the channel audit result includes channel authorization information, and the generation of the channel audit result includes:
determining a plurality of authority checking accounts based on a communication channel of a target node, and determining authority checking nodes corresponding to the authority checking accounts;
and after each authority auditing account respectively audits the authority auditing information, generating the channel authorization information based on each authority auditing node.
6. The method of claim 1, further comprising: and storing the authority verification information between the first platform and the second platform, the channel verification result and the process information generated by the channel verification result by applying the target block chain.
7. The method of claim 5, wherein the determining a communication channel between the block link node and the target node based on the channel audit result comprises:
after the channel authorization information is received, the target block chain is applied to generate a communication channel between the block chain link point connected with the first platform and the target node; or,
and after receiving the channel authorization information, applying the target block chain to connect the block chain link point connected by the first platform to the communication channel where the target node is located.
8. An apparatus for channel management of a blockchain platform, the apparatus comprising:
a target block chain determining module, configured to obtain an operation instruction sent by a node of a block chain account connected to a first platform, determine a target block chain for managing a communication channel if the operation instruction is determined to be related to a target node connected to a second platform, where the first platform and the second platform belong to block chain platforms in different block chain networks;
the communication auditing module is used for generating authority auditing information corresponding to the operation instruction and sending the authority auditing information to the target node through the target block chain;
and the channel determining module is used for acquiring a channel auditing result corresponding to the authority auditing information through the target block chain and determining a communication channel between the block chain link point and the target node based on the channel auditing result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111674571.XA 2021-12-31 2021-12-31 Block chain platform channel management method and device, computer equipment and storage medium Withdrawn CN114268638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111674571.XA CN114268638A (en) 2021-12-31 2021-12-31 Block chain platform channel management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111674571.XA CN114268638A (en) 2021-12-31 2021-12-31 Block chain platform channel management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114268638A true CN114268638A (en) 2022-04-01

Family

ID=80832274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111674571.XA Withdrawn CN114268638A (en) 2021-12-31 2021-12-31 Block chain platform channel management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114268638A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086352A (en) * 2022-05-06 2022-09-20 讯飞智元信息科技有限公司 Block chain event processing method and related device, platform and storage medium
CN115086353A (en) * 2022-05-06 2022-09-20 讯飞智元信息科技有限公司 Block chain event processing method and related device, equipment, platform and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115086352A (en) * 2022-05-06 2022-09-20 讯飞智元信息科技有限公司 Block chain event processing method and related device, platform and storage medium
CN115086353A (en) * 2022-05-06 2022-09-20 讯飞智元信息科技有限公司 Block chain event processing method and related device, equipment, platform and storage medium
CN115086352B (en) * 2022-05-06 2024-07-26 讯飞智元信息科技有限公司 Block chain event processing method, related device, platform and storage medium

Similar Documents

Publication Publication Date Title
US11921682B2 (en) Extracting data from a blockchain network
EP3559874B1 (en) Event-driven blockchain workflow processing
CN112073269B (en) Block chain network testing method, device, server and storage medium
CN110598446A (en) Block chain based test method and device, storage medium and computer equipment
CN111066047A (en) Implementing a blockchain based workflow
CN111414413A (en) Block chain endorsement verification
CN112053274B (en) Construction guide method and device for government block chain network
CN114039733B (en) Certificate storage service transfer method, device and equipment for alliance chains
CN114626088A (en) Task processing method and device of privacy computing platform based on algorithm interconnection
CN110362318A (en) Using dispositions method, device, equipment and storage medium
CN112035350B (en) Test method and device for block chain system and computer equipment
CN114398684B (en) Block chain-based information processing method and device, storage medium and electronic equipment
CN109474706B (en) data security centralized service method and system
CN115296794A (en) Key management method and device based on block chain
CN112766998A (en) Data processing method and device for business activities
CN114268638A (en) Block chain platform channel management method and device, computer equipment and storage medium
US11563559B2 (en) Parallel processing of blockchain procedures
CN112181599A (en) Model training method, device and storage medium
CN116521509A (en) Intelligent contract testing method, device, equipment, storage medium and product
CN115145976A (en) Data processing method and device based on block chain, computer equipment and medium
CN114443215A (en) Service application deployment method and device, computer equipment and storage medium
CN111339189A (en) Data processing method and device and computer readable storage medium
CN114298694A (en) Block chain service platform management method and device, computer equipment and storage medium
CN111813842B (en) Data processing method, device, system, equipment and storage medium
CN116032494B (en) Data interaction method, blockchain predictor, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20220401

WW01 Invention patent application withdrawn after publication