CN116628093A - Method and device for performing cross-chain interaction, electronic equipment and storage medium - Google Patents

Method and device for performing cross-chain interaction, electronic equipment and storage medium Download PDF

Info

Publication number
CN116628093A
CN116628093A CN202310638813.2A CN202310638813A CN116628093A CN 116628093 A CN116628093 A CN 116628093A CN 202310638813 A CN202310638813 A CN 202310638813A CN 116628093 A CN116628093 A CN 116628093A
Authority
CN
China
Prior art keywords
chain
cross
link
asset
destination
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.)
Pending
Application number
CN202310638813.2A
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.)
Qingdao Haier Refrigerator Co Ltd
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Refrigerator Co Ltd
Qingdao Haier Smart Technology R&D Co Ltd
Haier Smart Home 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 Qingdao Haier Refrigerator Co Ltd, Qingdao Haier Smart Technology R&D Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Refrigerator Co Ltd
Priority to CN202310638813.2A priority Critical patent/CN116628093A/en
Publication of CN116628093A publication Critical patent/CN116628093A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to the technical field of data interaction, and discloses a method for performing cross-chain interaction, which comprises the following steps: and establishing connection between the parallel chains and a preset cross-chain platform by using a chain card, and monitoring the parallel chains by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform. In this way, the link between the parallel link and the cross-link platform is opened through the link card, and the cross-link operation can be realized through the link card and the preset cross-link platform for different application types without changing different interface calling methods, data uplink structures, data analysis modes, communication protocols and the like. The cross-link operation is more convenient, so that the efficiency of cross-link interaction is improved. The application also discloses a device for performing cross-chain interaction, electronic equipment and a storage medium.

Description

Method and device for performing cross-chain interaction, electronic equipment and storage medium
Technical Field
The present application relates to the field of data interaction technologies, and for example, to a method and apparatus for performing cross-link interaction, an electronic device, and a storage medium.
Background
Blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like, and is undeletable, unchangeable and high in transparency, so that the blockchain technology is applied to a plurality of industries. Parallel chains refer to co/heterogeneous blockchains that run in parallel in a blockchain cross-chain scenario. The cross-chain is used for realizing the operations of data sharing, asset circulation, application coordination and the like between two or more identical/heterogeneous parallel chain systems.
In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:
in the related art, when performing one-chain-to-multiple-chain, different interface calling methods, data uplink structures, data parsing modes, communication protocols and the like need to be converted. The operation is very complicated, so that the efficiency of performing cross-chain interaction is poor.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Disclosure of Invention
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview, and is intended to neither identify key/critical elements nor delineate the scope of such embodiments, but is intended as a prelude to the more detailed description that follows.
The embodiment of the disclosure provides a method and a device for performing cross-chain interaction, electronic equipment and a storage medium, so that the efficiency of the cross-chain interaction can be improved.
In some embodiments, the method for cross-chain interaction comprises: and establishing connection between the parallel chains and a preset cross-chain platform by using a chain card, and monitoring the parallel chains by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform.
In some embodiments, establishing a connection between the parallel chains and a preset cross-chain platform using the chain card includes: and carrying out identity verification on the parallel chains. And under the condition that the identity verification is passed, acquiring a chain card and an identity certificate corresponding to the parallel chain. And sending the chain card and the identity certificate to the parallel chain, triggering the parallel chain to mount the chain card and store the identity certificate, and opening the cross-chain authority to the parallel chain. The cross-chain rights include: the chain card can monitor all cross-chain transaction information related to parallel chains in a preset cross-chain platform.
In some embodiments, the parallel strands include a source strand and a destination strand, both of which are parallel strands; the chain cards comprise a source chain card and a destination chain card; the method for carrying out the cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform comprises the following steps: and under the condition that the application type is data cross-link, acquiring first cross-link transaction information by using a source chain card, and transmitting the first cross-link transaction information to a cross-link platform. Billing the first cross-chain transaction information using the cross-chain platform. And acquiring first cross-link transaction information related to the destination link on the cross-link platform by using the destination link card, sending the first cross-link transaction information to the destination link, and triggering the destination link to bill the first cross-link transaction information. And determining whether the destination chain is complete data cross-chain by using a cross-chain platform. In the event that the destination chain completion data cross-chain is determined, the first cross-chain transaction information is billed on the cross-chain platform and the source chain.
In some embodiments, the parallel strands include a source strand and a destination strand, both of which are parallel strands; the chain cards comprise a source chain card and a destination chain card; the method for carrying out the cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform comprises the following steps: and under the condition that the application type is asset cross-link, acquiring a source link asset ID and second cross-link transaction information by using a source link card, and transmitting the source link asset ID and the second cross-link transaction information to a cross-link platform. And verifying the second cross-link transaction information by using the cross-link platform, searching whether a mapping relation corresponding to the source chain asset ID exists in a preset asset mapping table under the condition that verification is passed, obtaining a searching result, and accounting the source chain asset ID and the second cross-link transaction information. And acquiring second cross-link transaction information related to the destination link by using the destination link card, and sending the search result and the second cross-link transaction information to the destination link, and triggering the destination link to bill the second cross-link transaction information according to the search result. A determination is made as to whether the destination chain completes asset cross-chain using the cross-chain platform. And acquiring the billing content of the destination chain under the condition that the destination chain is determined to finish asset cross-chain, and billing the second cross-chain transaction information according to the billing content and the cross-chain platform and the source chain.
In some embodiments, the destination chain accounts for the second cross-chain transaction information according to the retrieval result by: verifying the second cross-link transaction information under the condition that the retrieval result is that the mapping relation corresponding to the source link asset ID does not exist in the asset mapping table; generating a destination chain asset ID according to a preset algorithm under the condition that verification is passed; the source chain asset ID, the destination chain asset ID, and the second cross-chain transaction information are billed. And/or, if the retrieval result is that the mapping relation corresponding to the source chain asset ID exists in the asset mapping table, verifying the second cross-chain transaction information and obtaining an alternative ID corresponding to the source chain asset ID; and in the case that the verification is passed and the alternative ID is the asset ID corresponding to the destination chain, billing the source chain asset ID, the alternative ID and the second cross-chain transaction information.
In some embodiments, the billing content includes a source chain asset ID, a destination chain asset ID, and second cross-chain transaction information; billing the second cross-chain transaction information according to the billing content and the cross-chain platform and the source chain, including: and verifying the second cross-chain transaction information. The source chain asset ID, the destination chain asset ID, and the second cross-chain transaction information are posted on the cross-chain platform and the source chain if the verification passes.
In some embodiments, after determining whether the destination chain completes asset cross-chain using the cross-chain platform, further comprising: and under the condition that the retrieval result is that the mapping relation corresponding to the source chain asset ID does not exist in the asset mapping table, establishing the mapping relation between the source chain asset ID and the destination chain asset ID, and storing the mapping relation between the source chain asset ID and the destination chain asset ID into the asset mapping table. And/or, under the condition that the retrieval result is that the mapping relation corresponding to the source chain asset ID exists in the asset mapping table, acquiring an alternative ID corresponding to the source chain asset ID; and exchanging the mapping relation between the source chain asset ID and the alternative ID in the asset mapping table.
In some embodiments, the means for performing cross-chain interactions comprises: a processor and a memory storing program instructions, the processor being configured to perform the above-described method for cross-chain interaction when executing the program instructions.
In some embodiments, the electronic device comprises: an electronic device body; the device for performing cross-chain interaction is installed on the electronic equipment body.
In some embodiments, the storage medium stores program instructions that, when executed, perform the method for cross-chain interaction described above.
The method and device for performing cross-chain interaction, the electronic equipment and the storage medium provided by the embodiment of the disclosure can realize the following technical effects: the parallel chains are connected with a preset cross-chain platform by using the chain card, and the parallel chains are monitored by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform. In this way, the link between the parallel link and the cross-link platform is opened through the link card, and the cross-link operation can be realized through the link card and the preset cross-link platform for different application types without changing different interface calling methods, data uplink structures, data analysis modes, communication protocols and the like. The cross-link operation is more convenient, so that the efficiency of cross-link interaction is improved.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
FIG. 1 is a schematic diagram of parallel link cross-link interactions using a link card and a cross-link platform;
FIG. 2 is a schematic diagram of a method for cross-chain interactions provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another method for cross-chain interaction provided by embodiments of the present disclosure;
FIG. 4 is a schematic diagram of another method for cross-chain interaction provided by embodiments of the present disclosure;
FIG. 5 is a schematic diagram of an apparatus for cross-chain interactions provided by an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Reference numerals:
1: parallel chains; 2: a chain card; 3: a cross-chain platform.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
Referring to FIG. 1, FIG. 1 is a schematic diagram of parallel link cross-link interactions using a link card and a cross-link platform. In fig. 1, each parallel chain 1 establishes connection with a cross-chain platform 3 through a chain card 2, so as to realize cross-chain functions such as data storage, data sharing, asset transfer and the like. The parallel chain 1 reports basic information to the cross-chain platform 3, and after receiving the basic information of the parallel chain 1, the cross-chain platform 3 sends a chain card corresponding to the basic information to the parallel chain 1 for installation.
In some embodiments, because different parallel chains may have different chain architectures, the cross-chain platform needs to send and install with the corresponding chain cards. For example, some parallel chains are suitable for IOS systems and some parallel chains are suitable for android systems. So that different types of chain cards can be provided according to different development languages. The data in the chain card sent to the parallel chain by the cross-chain platform is encrypted based on the public key of the cross-chain platform, the data is in Json format, and the parallel chain is installed after obtaining the decryption of the data in the chain card by the private key. By setting the data in the chain card to be in the Json format, the chain card is suitable for platforms of many different architectures after packaging, and has high universality. And by using asymmetric encryption algorithms, privacy of the cross-chain transaction can be ensured. Meanwhile, the cross-chain platform 3 supports an external supervision organization to set nodes to realize cross-chain operation supervision. The cross-chain platform 3 is used to implement cross-chain operations between multiple co/heterogeneous parallel chains. The cross-chain platform comprises: an application layer, cross-chain middleware, and an infrastructure layer. Wherein the application layer includes basic functions and cross-chain functions. The cross-chain functions include account cross-chain, data cross-chain, and asset cross-chain. The cross-chain middleware comprises functions of a chain card, transaction management, a message mechanism, privacy protection and the like. The chain card comprises a client installation package, a communication protocol, an encryption and decryption mechanism, cross-chain contract deployment, a main data standard, an interface using method and a permission authentication and monitoring mechanism. The infrastructure layer is mainly a cloud service and blockchain platform supporting cross-chain operation. A cross-chain intelligence contract is deployed in the blockchain platform. The cross-chain intelligent contracts include cross-chain rights authentication, cross-chain transaction monitoring, cross-chain transaction billing, cross-chain sharing applications, cross-chain message distribution, asset cross-chain processing and cross-chain message rollback mechanisms. Thus, the cross-chain platform provides better security and privacy when implementing multi-parallel chain cross-chain. When the chain card realizes data interaction between the parallel chains and the cross-chain platform, an asymmetric encryption algorithm is used, so that the privacy of the cross-chain transaction can be ensured. Meanwhile, each parallel chain can inquire the required data, and the cross-chain authority can be obtained in an application mode, so that the safety and the effectiveness of the cross-chain among the parallel chains can be ensured.
In some embodiments, preset contracts are installed in each of the parallel chains 1 and the cross-chain platform 3. Therefore, by installing the preset contracts, not only can the data among different blockchains be converted and shared, but also the data safety in the data cross-chain transmission can be ensured, thereby realizing the cross-chain functions of data storage, data sharing, asset transfer and the like.
In some embodiments, cross-chain rights authentication is used to issue identity credentials for parallel chains that pass identity authentication. And if the parallel chain is detected to have the identity certificate, determining that the parallel chain has the cross-chain authority. In the event that no identity certificate is detected for a parallel chain, then it is determined that the parallel chain does not have cross-chain rights. Cross-chain transaction monitoring is used to monitor and acquire all transaction cases related to cross-chains using chain cards. The cross-chain transaction accounting is used to account for both cross-chain transaction parties and cross-chain content. The cross-chain sharing application is used for aiming at parallel chains with data requirements, and a requirement party initiates an application to a provider by calling a cross-chain sharing application function so as to obtain the data provided by the provider. Cross-chain message distribution is used to lock, map, generate processes, etc., digital assets in the event that parallel chains initiate asset cross-chain operations. The cross-chain transaction rollback mechanism is used for triggering the cross-chain transaction rollback mechanism to roll back to the last cross-chain transaction node and account for when the parallel chain does not respond to the cross-chain transaction for a long time and the accounting action does not occur, until the cross-chain transaction publisher is rolled back to complete the closed loop of the cross-chain failure.
In some embodiments, the chain card implements cross-chain operations between parallel chains by providing the communication protocols, communication encryption and decryption mechanisms, cross-chain listening mechanisms, cross-chain master data standards, cross-link port calls, multi-language cross-chain intelligent contracts, and identity authentication required for the cross-chains.
In some embodiments, the architecture of the chain card includes basic services, cross-chain execution, and cross-chain applications.
In some embodiments, the base services include a cross-chain authentication mechanism module, a cross-chain communication setup module, an interface call module, a data compatibility module, an identity authentication module, a contract provision module, a privacy protection module, a communication security module, and a log service module.
The cross-chain verification mechanism module is used for verifying whether a cross-chain exists or not and verifying whether the cross-chain is valid or not. The cross-link communication establishment module is used for providing a communication protocol and performing communication encryption/decryption. Therefore, the security of data cross-link can be improved by carrying out communication encryption/decryption when the cross-link connection is established, and the privacy of users and the security of data transmission are protected. The interface calling module is used for calling the certificate storage interface and the unified data cross-chain interface. The data compatible module is used for providing a main data standard and performing data analysis by using a unified data analysis mode. Therefore, the problem that the cross-link transaction data is difficult to be compatible due to the difference of data uplink structures and the difference of data analysis methods caused by different structures can be avoided by unifying the data cross-link ports and the data analysis modes. The identity authentication module is used for carrying out account authentication and authority authentication. Thus, identity authentication, privacy protection, communication security and the like are performed, so that the same/different block chains can be ensured to conveniently realize the cross-chain operation in a safe environment. The contract providing module is used for carrying out authority authentication, transaction monitoring, cross-chain sharing, cross-chain certificate storage, asset processing, message distribution or transaction rollback and the like.
In some embodiments, the cross-chain execution includes a cross-chain transaction management module and a security mechanism module. The cross-chain transaction management module is used for performing cross-chain transaction monitoring, cross-chain transaction acquisition, cross-chain transaction checking, cross-chain transaction analysis, providing cross-chain transaction routing and acquiring cross-chain transaction logs. The security mechanism module is used for performing key management, transaction signature, privacy protection or security rollback and the like.
In some embodiments, the cross-chain application includes cross-chain transaction application, cross-chain transaction audit, cross-chain sharing management or cross-chain state management, and the like. In this way, the chain card module can provide cross-chain communication, cross-chain business operation, cross-chain rules and the like between the parallel chains and the cross-chain Hub platform. Because the chain card contains unified cross-chain communication protocols, main data standards, interface usage patterns and the like. After both sides of the cross-link requirement complete the installation of the link card, the link card can serve as a connecting medium for both sides to realize the monitoring and acquisition of the cross-link event. The two sides of the cross-link can support all types of cross-link scenes without paying excessive attention to the structure and the consensus characteristic of the cross-link and completing the pre-deployment of the cross-link according to the requirements of the chain card device. The chain card can open the data interaction channel and the technical support among the parallel chains, thereby realizing application scenes such as data storage, data sharing, asset circulation and the like.
As shown in conjunction with fig. 2, an embodiment of the present disclosure provides a method for performing cross-chain interactions, including:
step S201, the electronic device establishes connection between the parallel chains and a preset cross-chain platform by using a chain card, and monitors the parallel chains by using the chain card. A chain card is a software component for cross-chain interactions.
Step S202, under the condition that the electronic equipment monitors that a parallel chain initiates a cross-chain transaction request, the electronic equipment acquires an application type corresponding to the cross-chain transaction request.
And step S203, the electronic equipment performs cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform.
By adopting the method for performing cross-chain interaction, which is provided by the embodiment of the disclosure, the parallel chains are connected with the preset cross-chain platform by using the chain card, and the parallel chains are monitored by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform. In this way, the link between the parallel link and the cross-link platform is opened through the link card, and the cross-link operation can be realized through the link card and the preset cross-link platform for different application types without changing different interface calling methods, data uplink structures, data analysis modes, communication protocols and the like. The cross-link operation is more convenient, so that the efficiency of cross-link interaction is improved.
Further, the electronic device establishes connection between the parallel chains and a preset cross-chain platform by using a chain card, including: the electronic device performs authentication on the parallel chain. And under the condition that the identity verification is passed, acquiring a chain card and an identity certificate corresponding to the parallel chain. The method comprises the steps of sending a chain card and an identity certificate to a parallel chain, triggering the parallel chain to mount the chain card and store the identity certificate, and opening a cross-chain authority to the parallel chain; the cross-chain rights include: the chain card can monitor all cross-chain transaction information related to parallel chains in a preset cross-chain platform.
Further, the electronic device performs identity verification on the parallel chain, including: the electronic device acquires the basic information of the parallel chains by using the cross-chain platform. And determining that the verification is passed under the condition that the information which is the same as the basic information is stored in a preset information database. In some embodiments, the basic information of the parallel chain includes the IP (Internet Protocol ) address of the parallel chain, the alternate IP address, operator information, contact phones and mailboxes, etc. Thus, identity authentication is carried out on the parallel chains by utilizing the cross-chain platform, and the chain cards corresponding to the parallel chains are obtained. The method can unify the data uplink format, unify the data cross-link interface, unify the data analysis mode, the encryption and decryption mode with high security and the like. The method is convenient for realizing the cross-link interaction between parallel chains, and can improve the efficiency of the cross-link interaction while improving the data compatibility.
Further, the parallel chain includes a source chain and a destination chain, both of which are parallel chains; the chain cards include a source chain card and a destination chain card. The electronic equipment performs cross-chain interaction between parallel chains according to the application type by using a chain card and a preset cross-chain platform, and the method comprises the following steps: under the condition that the application type is data cross-link, the electronic equipment acquires first cross-link transaction information by utilizing a source chain card and sends the first cross-link transaction information to a cross-link platform. Billing the first cross-chain transaction information using the cross-chain platform. And acquiring first cross-link transaction information related to the destination link on the cross-link platform by using the destination link card, sending the first cross-link transaction information to the destination link, and triggering the destination link to bill the first cross-link transaction information. And determining whether the destination chain is complete data cross-chain by using a cross-chain platform. In the event that the destination chain completion data cross-chain is determined, the first cross-chain transaction information is billed on the cross-chain platform and the source chain. In this way, by utilizing the cross-chain platform for billing, a strong certificate-storing endorsement can be provided, so that an attacker is effectively prevented from stealing and falsifying data through the cross-chain transaction.
In some embodiments, the source chain card is used to monitor cross-chain transaction information related to the source chain. After the source chain initiates a cross-chain transaction request to the destination chain, the source chain card acquires first cross-chain transaction information corresponding to the cross-chain transaction request.
Further, the electronic device uses the cross-link platform to account for the first cross-link transaction information, including: the electronic equipment verifies the first cross-link transaction information by using the cross-link platform, and accounts the first cross-link transaction information under the condition that the verification is passed. In some embodiments, the first cross-link transaction information includes a cross-link transaction partner including a source link and a destination link and cross-link content. In some embodiments, the cross-chain transaction parties are characterized by their IP addresses. For example: characterizing the source chain by its IP address; the destination chain is characterized by its IP address.
Further, the electronic device verifies the first cross-link transaction information by using the cross-link platform, including: the electronic equipment determines that the source chain and the destination chain corresponding to the first cross-chain transaction information are subjected to identity authentication by utilizing the cross-chain platform, and determines whether the transaction corresponding to the first cross-chain transaction information is a cross-chain transaction or not. And under the condition that the source chain and the destination chain corresponding to the first cross-chain transaction information pass identity authentication and the transaction corresponding to the first cross-chain transaction information is a cross-chain transaction, determining that the first cross-chain transaction information passes verification.
In some embodiments, the electronic device determines, by using the cross-chain platform, that the source chain and the destination chain corresponding to the first cross-chain transaction information perform identity authentication by: the electronic equipment determines whether the source chain and the destination chain have identity certificates or not by utilizing the cross-chain platform, and confirms that the identity authentication passes under the condition that the source chain and the destination chain have the identity certificates.
In some embodiments, the first cross-chain transaction information includes both cross-chain transactions. The electronic device determines whether a transaction corresponding to the first cross-link transaction information is a cross-link transaction by using a cross-link platform in the following manner: the electronic equipment acquires the two cross-link transaction sides by using the cross-link platform, and determines that the transaction corresponding to the first cross-link transaction information is the cross-link transaction under the condition that the two cross-link transaction sides are the source chain and the destination chain.
Further, the first cross-link transaction information includes both cross-link transaction parties and cross-link content. The electronic device billing the first cross-chain transaction information using the cross-chain platform, comprising: the electronic device accounts both sides of the cross-chain transaction and the cross-chain content on the cross-chain platform. In this way, by utilizing the cross-chain platform for billing, a strong certificate-storing endorsement can be provided, so that an attacker is effectively prevented from stealing and falsifying data through the cross-chain transaction.
Further, the destination chain accounts for the first cross-chain transaction information by: and the destination chain verifies the first cross-chain transaction information, and the first cross-chain transaction information is checked on the destination chain under the condition that the verification is passed.
In some embodiments, the destination chain verifies the first cross-chain transaction information, including: the destination chain determines that the source chain and the destination chain corresponding to the first cross-chain transaction information carry out identity authentication, and determines whether the transaction corresponding to the first cross-chain transaction information is a cross-chain transaction or not. And under the condition that the source chain and the destination chain corresponding to the first cross-chain transaction information pass identity authentication and the transaction corresponding to the first cross-chain transaction information is a cross-chain transaction, determining that the first cross-chain transaction information passes verification.
Further, the electronic device determining whether the destination link completes data cross-link by using the cross-link platform includes: under the condition that the electronic equipment monitors first cross-link transaction information of the uplink of the destination link, the electronic equipment determines that the destination link finishes data cross-link.
In some embodiments, the first cross-chain transaction information is billed on the cross-chain platform in the event that it is determined that the destination chain completes the data cross-chain. After the first cross-link transaction information is counted on the cross-link platform, the source chain card is used for monitoring the cross-link platform, and under the condition that the first cross-link transaction information related to the target chain is monitored on the cross-link platform, the target chain is determined to finish data cross-link. The first cross-chain transaction information is billed on the source chain.
Optionally, under the condition that the cross-link platform does not acquire the destination link to complete data cross-link through the destination link card within a preset time period, triggering a cross-link transaction rollback mechanism in a preset contract, and uplink the cross-link transaction rollback message. And when the source chain card monitors the cross-chain transaction rollback message, the cross-chain transaction rollback message is sent to the source chain, the source chain is triggered to verify the cross-chain transaction rollback message, and when the verification is passed, the cross-chain transaction rollback message is uplink on the source chain.
In some embodiments, the source chain validates the cross-chain transaction rollback message by: and the source verifies whether the cross-link transaction two sides corresponding to the cross-link transaction rollback message are the source chain and the destination chain, and if the cross-link transaction two sides are the source chain and the destination chain, the verification is confirmed to pass.
Further, the parallel chain includes a source chain and a destination chain, both of which are parallel chains; the chain cards include a source chain card and a destination chain card. The electronic equipment performs cross-chain interaction between parallel chains according to the application type by using a chain card and a preset cross-chain platform, and the method comprises the following steps: and under the condition that the application type is asset cross-link, the electronic equipment acquires the source link asset ID and the second cross-link transaction information by utilizing the source link card, and sends the source link asset ID and the second cross-link transaction information to the cross-link platform. And verifying the second cross-link transaction information by using the cross-link platform, searching whether a mapping relation corresponding to the source chain asset ID exists in a preset asset mapping table under the condition that verification is passed, obtaining a searching result, and accounting the source chain asset ID and the second cross-link transaction information. And acquiring second cross-link transaction information related to the destination link by using the destination link card, and sending the search result and the second cross-link transaction information to the destination link, and triggering the destination link to bill the second cross-link transaction information according to the search result. A determination is made as to whether the destination chain completes asset cross-chain using the cross-chain platform. And acquiring the billing content of the destination chain under the condition that the destination chain is determined to finish asset cross-chain, and billing the second cross-chain transaction information on the cross-chain platform and the source chain according to the billing content.
In some embodiments, the second cross-chain transaction information includes both cross-chain transactions.
Further, the electronic device verifies the second cross-link transaction information, including: the electronic equipment determines that the source chain and the destination chain corresponding to the second cross-chain transaction information carry out identity authentication, and determines whether the transaction corresponding to the second cross-chain transaction information is a cross-chain transaction or not. And under the condition that the source chain and the destination chain corresponding to the second cross-chain transaction information pass the identity authentication and the transaction corresponding to the second cross-chain transaction information is the cross-chain transaction, determining that the second cross-chain transaction information passes the authentication.
In some embodiments, the electronic device determines that the source chain and the destination chain corresponding to the second cross-chain transaction information are authenticated by: the electronic device determines whether the source chain and the destination chain have identity certificates, and confirms that the identity authentication passes under the condition that the source chain and the destination chain have the identity certificates.
In some embodiments, the second cross-chain transaction information includes both cross-chain transactions. The electronic device determines whether the transaction corresponding to the second cross-chain transaction information is a cross-chain transaction by using a cross-chain platform in the following manner: the electronic equipment acquires both sides of the cross-link transaction, and determines that the transaction corresponding to the second cross-link transaction information is the cross-link transaction under the condition that both sides of the cross-link transaction are the source chain and the destination chain.
Further, the second cross-link transaction information includes both cross-link transactions. The destination chain accounts for the second cross-chain transaction information according to the search result, and the method comprises the following steps: and the destination chain verifies the second cross-chain transaction information under the condition that the retrieval result is that the mapping relation corresponding to the source chain asset ID does not exist in the preset asset mapping table, generates the destination chain asset ID by using a preset algorithm under the condition that the second cross-chain transaction information passes the verification, and accounts both sides of the cross-chain transaction, the source chain asset ID and the destination chain asset ID on the destination chain. And/or, if the retrieval result is that the mapping relation corresponding to the source chain asset ID exists in the preset asset mapping table, the destination chain acquires the destination chain asset ID corresponding to the source chain asset ID, the second cross-chain transaction information is verified, and under the condition that verification is passed, accounting is carried out on both cross-chain transaction sides, the source chain asset ID and the destination chain asset ID on the destination chain.
Further, the electronic device determining whether the destination chain completes asset cross-chain by using the cross-chain platform includes: the electronic device determines that the destination chain completes data cross-chain under the condition that the billing content of the destination chain is monitored by the cross-chain platform and comprises a cross-chain transaction party, a source chain asset ID and a destination chain asset ID.
Further, the billing content of the destination chain includes both cross-chain transaction parties, source chain asset ID, and destination chain asset ID. The electronic device accounts the second cross-chain transaction information on the cross-chain platform and the source chain according to the accounting content, comprising: and the electronic equipment verifies the second cross-link transaction information, and under the condition that the verification is passed, the cross-link transaction two sides, the source chain asset ID and the destination chain asset ID are billed on the cross-link platform. Optionally, after accounting the two cross-link transaction sides, the source chain asset ID and the destination chain asset ID on the cross-link platform, acquiring second cross-link transaction information by using the source chain card, verifying the second cross-link transaction information by using the second cross-link transaction information, and accounting the two cross-link transaction sides, the source chain asset ID and the destination chain asset ID on the source chain under the condition that verification is passed.
In some embodiments, the electronic device verifies the second cross-chain transaction information, including: the electronic equipment determines whether the transaction corresponding to the second cross-link transaction information is a cross-link transaction or not by utilizing the cross-link platform, and determines that verification is passed under the condition that the transaction corresponding to the second cross-link transaction information is the cross-link transaction.
In some embodiments, the second cross-link transaction information includes a cross-link transaction party, and in the case that the cross-link transaction party is a source chain and a destination chain, the transaction corresponding to the second cross-link transaction information is determined to be a cross-link transaction.
Further, the destination chain accounts for the second cross-chain transaction information according to the search result by: and the destination chain verifies the second cross-chain transaction information under the condition that the retrieval result is that the mapping relation corresponding to the source chain asset ID does not exist in the asset mapping table. And generating a destination chain asset ID according to a preset algorithm under the condition that verification is passed. The source chain asset ID, the destination chain asset ID, and the second cross-chain transaction information are billed. And/or, if the retrieval result is that the mapping relation corresponding to the source chain asset ID exists in the asset mapping table, verifying the second cross-chain transaction information and obtaining the alternative ID corresponding to the source chain asset ID. And in the case that the verification is passed and the alternative ID is the asset ID corresponding to the destination chain, billing the source chain asset ID, the alternative ID and the second cross-chain transaction information.
In some embodiments, the alternate ID is a destination chain asset ID.
As shown in table 1, table 1 is an example table of an asset mapping table provided by embodiments of the present disclosure. The source chain in table 1 includes a first parallel chain and a second parallel chain. The destination chain includes a third parallel chain and a fourth parallel chain. In the case where the source chain asset ID of the first parallel chain is aaaaaaaaaa1, the destination chain asset ID of the corresponding third parallel chain is cccccccccc. When the source chain asset ID of the second parallel chain is bbbbbbbbbb1, the destination chain asset ID of the corresponding fourth parallel chain is dddddddddd1. In the case where the source chain asset ID of the first parallel chain is aaaaaaaaaa2, the destination chain asset ID of the corresponding fourth parallel chain is dddddddddd2. In this way, by designing the asset mapping table for asset cross-links, the occurrence of double-flower phenomenon in the asset cross-link process can be prevented.
TABLE 1
Source chain Source chain asset ID Destination chain Destination chain asset ID
First parallel chain aaaaaaaaaa1 Third parallel chain cccccccccc1
Second parallel chain bbbbbbbbbb1 Fourth parallel chain dddddddddd1
First parallel chain aaaaaaaaaa2 Fourth parallel chain dddddddddd2
Further, the electronic device billing content includes a source chain asset ID, a destination chain asset ID, and second cross-chain transaction information. The electronic device accounts the second cross-chain transaction information according to the account content and the cross-chain platform and the source chain, comprising: the electronic device verifies the second cross-chain transaction information. The source chain asset ID, the destination chain asset ID, and the second cross-chain transaction information are posted on the cross-chain platform and the source chain if the verification passes.
Further, after determining whether the destination chain has completed asset cross-chain by using the cross-chain platform, the electronic device further includes: and under the condition that the retrieval result is that the mapping relation corresponding to the source chain asset ID does not exist in the asset mapping table, the electronic equipment establishes the mapping relation between the source chain asset ID and the destination chain asset ID, and stores the mapping relation between the source chain asset ID and the destination chain asset ID into the asset mapping table. And/or, if the retrieval result is that the mapping relation corresponding to the source chain asset ID exists in the asset mapping table, acquiring an alternative ID corresponding to the source chain asset ID. And exchanging the mapping relation between the source chain asset ID and the alternative ID in the asset mapping table.
Optionally, the electronic device pre-records the source chain asset ID in the preset asset mapping table when the search result is that the mapping relationship corresponding to the source chain asset ID does not exist in the preset asset mapping table.
Optionally, under the condition that the cross-link platform does not acquire the destination link through the destination link card to complete asset cross-link within a preset time period, triggering a cross-link transaction rollback mechanism in a preset contract, deleting the source link asset ID pre-recorded in the asset mapping table, and uplink the cross-link transaction rollback message. And in the case that the source chain card monitors the cross-chain transaction rollback message, the cross-chain transaction rollback message is sent to the source chain. Triggering the source chain to verify the cross-chain transaction rollback message, and uploading the cross-chain transaction rollback message on the source chain under the condition that verification is passed, so as to complete the closed loop.
In some embodiments, the source chain validates the cross-chain transaction rollback message by: and the source verifies whether the cross-link transaction two sides corresponding to the cross-link transaction rollback message are the source chain and the destination chain, and if the cross-link transaction two sides are the source chain and the destination chain, the verification is confirmed to pass.
As shown in conjunction with fig. 3, an embodiment of the present disclosure provides a method for performing cross-chain interactions, including:
step S301, when the application type is asset cross-link, the electronic device acquires the source chain asset ID and the second cross-link transaction information by using the source chain card, and sends the source chain asset ID and the second cross-link transaction information to the cross-link platform.
Step S302, the electronic device verifies the second cross-link transaction information by using the cross-link platform, searches whether a mapping relation corresponding to the source link asset ID exists in a preset asset mapping table under the condition that verification is passed, and pre-records the source link asset ID in the preset asset mapping table and accounts for the source link asset ID and the second cross-link transaction information under the condition that the searching result is that the mapping relation corresponding to the source link asset ID does not exist in the preset asset mapping table.
Step S303, when the electronic device does not acquire the destination chain through the destination chain card within the preset time period and completes asset chain crossing, triggering a chain-crossing transaction rollback mechanism in a preset contract, deleting the source chain asset ID pre-recorded in the asset mapping table, and uplink the chain-crossing transaction rollback message.
Step S304, the electronic device acquires the cross-link transaction rollback message by using the source link card, sends the cross-link transaction rollback message to the source link, triggers the source link to verify the cross-link transaction rollback message, and links the cross-link transaction rollback message on the source link under the condition that verification is passed.
By adopting the method for performing cross-link interaction provided by the embodiment of the disclosure, under the condition that the cross-link platform does not acquire the destination link through the destination link card to complete asset cross-link within a preset time period, the functions of link closed loop and node traceability can be realized under the condition that the cross-link connection of data is interrupted by triggering the cross-link transaction rollback mechanism.
Optionally, the electronic device marks the mapping relationship corresponding to the source chain asset ID when the search result is that the mapping relationship corresponding to the source chain asset ID exists in the preset asset mapping table. Thus, by marking the mapping, billing and adjustment of the mapping is facilitated.
Optionally, under the condition that the cross-link platform does not acquire the destination link through the destination link card within a preset time period to complete asset cross-link, triggering a cross-link transaction rollback mechanism in a preset contract, releasing a mark in an asset mapping table, and uplink a cross-link transaction rollback message. And in the case that the source chain card monitors the cross-chain transaction rollback message, the cross-chain transaction rollback message is sent to the source chain. Triggering the source chain to verify the cross-chain transaction rollback message, and uploading the cross-chain transaction rollback message on the source chain under the condition that verification is passed, so as to complete the closed loop.
As shown in conjunction with fig. 4, an embodiment of the present disclosure provides a method for performing cross-chain interactions, including:
in step S401, the electronic device obtains the source chain asset ID and the second cross-chain transaction information by using the source chain card when the application type is asset cross-chain, and sends the source chain asset ID and the second cross-chain transaction information to the cross-chain platform.
Step S402, the electronic device verifies the second cross-link transaction information by using the cross-link platform, searches whether a mapping relation corresponding to the source chain asset ID exists in a preset asset mapping table under the condition that verification is passed, marks the mapping relation in the preset asset mapping table under the condition that a mapping relation corresponding to the source chain asset ID exists in the preset asset mapping table as a search result, and accounts the source chain asset ID and the second cross-link transaction information.
Step S403, when the electronic device does not acquire the destination chain through the destination chain card within the preset time period and completes asset chain crossing, triggering a chain-crossing transaction rollback mechanism in a preset contract, releasing a mark in an asset mapping table, and uploading a chain-crossing transaction rollback message.
Step S404, the electronic device acquires the cross-link transaction rollback message by using the source link card, sends the cross-link transaction rollback message to the source link, triggers the source link to verify the cross-link transaction rollback message, and links the cross-link transaction rollback message on the source link under the condition that verification is passed.
By adopting the method for performing cross-link interaction provided by the embodiment of the disclosure, under the condition that the cross-link platform does not acquire the destination link through the destination link card to complete asset cross-link within a preset time period, the functions of link closed loop and node traceability can be realized under the condition that the cross-link connection of data is interrupted by triggering the cross-link transaction rollback mechanism.
As shown in connection with FIG. 5, an embodiment of the present disclosure provides an apparatus 500 for cross-chain interactions, including a processor 504 and a memory 501. Optionally, the apparatus may further comprise a communication interface (Communication Interface) 502 and a bus 503. The processor 504, the communication interface 502, and the memory 501 may communicate with each other via the bus 503. The communication interface 502 may be used for information transfer. The processor 504 may invoke logic instructions in the memory 501 to perform the method for cross-chain interactions of the above-described embodiments.
By adopting the device for performing cross-chain interaction, which is provided by the embodiment of the disclosure, the parallel chains are established by using the chain card to be connected with the preset cross-chain platform, and the parallel chains are monitored by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform. In this way, the link between the parallel link and the cross-link platform is opened through the link card, and the cross-link operation can be realized through the link card and the preset cross-link platform for different application types without changing different interface calling methods, data uplink structures, data analysis modes, communication protocols and the like. The cross-link operation is more convenient, so that the efficiency of cross-link interaction is improved.
Further, the logic instructions in the memory 501 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 501 is a computer readable storage medium that may be used to store a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 504 executes the functional applications and data processing by running the program instructions/modules stored in the memory 501, i.e. implements the method for cross-chain interaction in the above embodiments.
Memory 501 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 501 may include a high-speed random access memory, and may also include a nonvolatile memory.
As shown in connection with fig. 6, an embodiment of the present disclosure provides an electronic device, including: the electronic device body 600, and the apparatus 500 for performing cross-chain interactions described above. The apparatus 500 for performing cross-chain interactions is mounted to an electronic device body 600. The mounting relationships described herein are not limited to being placed within the electronic device body 600, but include mounting connections with other components of the electronic device body, including but not limited to physical connections, electrical connections, or signal transmission connections, etc. Those skilled in the art will appreciate that the apparatus 500 for cross-chain interaction may be adapted to a viable electronic device body 600 to enable other viable embodiments.
By adopting the electronic equipment provided by the embodiment of the disclosure, the parallel chains are connected with the preset cross-chain platform by using the chain card, and the parallel chains are monitored by using the chain card. A chain card is a software component for cross-chain interactions. Under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request. And carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform. In this way, the link between the parallel link and the cross-link platform is opened through the link card, and the cross-link operation can be realized through the link card and the preset cross-link platform for different application types without changing different interface calling methods, data uplink structures, data analysis modes, communication protocols and the like. The cross-link operation is more convenient, so that the efficiency of cross-link interaction is improved.
Optionally, the electronic device comprises a computer or a server or the like.
The embodiment of the disclosure provides a storage medium storing program instructions which, when run, perform the method for performing cross-chain interaction.
The disclosed embodiments provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the above-described method for cross-chain interaction.
The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb (universal serial bus), a removable hard disk, a Read-only Memory (ROM), a random access Memory (RAM, randomAccess Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this disclosure is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in the present disclosure, the terms "comprises," "comprising," and/or variations thereof, mean that the recited features, integers, steps, operations, elements, and/or components are present, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (10)

1. A method for cross-chain interaction, comprising:
establishing connection between a parallel chain and a preset cross-chain platform by using a chain card, and monitoring the parallel chain by using the chain card; the chain card is a software component for performing cross-chain interaction;
under the condition that a parallel chain initiates a cross-chain transaction request, acquiring an application type corresponding to the cross-chain transaction request;
and carrying out cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform.
2. The method of claim 1, wherein establishing a connection between the parallel chains and the preset cross-chain platform using the chain card comprises:
carrying out identity verification on the parallel chains;
under the condition that the identity verification is passed, acquiring a chain card and an identity certificate corresponding to the parallel chain;
the method comprises the steps of sending a chain card and an identity certificate to a parallel chain, triggering the parallel chain to mount the chain card and store the identity certificate, and opening a cross-chain authority to the parallel chain; the cross-chain rights include: the chain card can monitor all cross-chain transaction information related to parallel chains in a preset cross-chain platform.
3. The method of claim 1, wherein the parallel strands comprise a source strand and a destination strand, the source strand and the destination strand being parallel strands; the chain cards comprise a source chain card and a destination chain card; the method for carrying out the cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform comprises the following steps:
Under the condition that the application type is data cross-link, acquiring first cross-link transaction information by using a source link card, and transmitting the first cross-link transaction information to a cross-link platform;
billing the first cross-link transaction information by using a cross-link platform;
acquiring first cross-link transaction information related to a destination link on a cross-link platform by using a destination link card, sending the first cross-link transaction information to the destination link, and triggering the destination link to bill the first cross-link transaction information;
determining whether the destination chain is completed by using a cross-chain platform;
in the event that the destination chain completion data cross-chain is determined, the first cross-chain transaction information is billed on the cross-chain platform and the source chain.
4. The method of claim 1, wherein the parallel strands comprise a source strand and a destination strand, the source strand and the destination strand being parallel strands; the chain cards comprise a source chain card and a destination chain card; the method for carrying out the cross-chain interaction between parallel chains according to the application type by using the chain card and a preset cross-chain platform comprises the following steps:
under the condition that the application type is asset cross-link, acquiring a source link asset ID and second cross-link transaction information by utilizing a source link card, and transmitting the source link asset ID and the second cross-link transaction information to a cross-link platform;
Verifying the second cross-link transaction information by using a cross-link platform, searching whether a mapping relation corresponding to the source chain asset ID exists in a preset asset mapping table under the condition that verification is passed, obtaining a searching result, and accounting the source chain asset ID and the second cross-link transaction information;
acquiring second cross-link transaction information related to the destination link by using a destination link card, and sending a search result and the second cross-link transaction information to the destination link, and triggering the destination link to bill the second cross-link transaction information according to the search result;
determining whether the destination chain is completed asset chain crossing by using a chain crossing platform;
and acquiring the billing content of the destination chain under the condition that the destination chain is determined to finish asset cross-chain, and billing the second cross-chain transaction information according to the billing content and the cross-chain platform and the source chain.
5. The method of claim 4, wherein the destination chain accounts for the second cross-chain transaction information based on the retrieval result by:
verifying the second cross-link transaction information under the condition that the retrieval result is that the mapping relation corresponding to the source link asset ID does not exist in the asset mapping table; generating a destination chain asset ID according to a preset algorithm under the condition that verification is passed; accounting the source chain asset ID, the destination chain asset ID and the second cross-chain transaction information; and/or the number of the groups of groups,
Under the condition that the retrieval result is that a mapping relation corresponding to the source chain asset ID exists in the asset mapping table, verifying the second cross-chain transaction information and acquiring an alternative ID corresponding to the source chain asset ID; and in the case that the verification is passed and the alternative ID is the asset ID corresponding to the destination chain, billing the source chain asset ID, the alternative ID and the second cross-chain transaction information.
6. The method of claim 4, wherein the billing content includes a source chain asset ID, a destination chain asset ID, and second cross-chain transaction information; billing the second cross-chain transaction information according to the billing content and the cross-chain platform and the source chain, including:
verifying the second cross-link transaction information;
the source chain asset ID, the destination chain asset ID, and the second cross-chain transaction information are posted on the cross-chain platform and the source chain if the verification passes.
7. The method of claim 5, wherein determining whether the destination chain has completed asset cross-chain using the cross-chain platform further comprises:
when the retrieval result is that the mapping relation corresponding to the source chain asset ID does not exist in the asset mapping table, establishing the mapping relation between the source chain asset ID and the destination chain asset ID, and storing the mapping relation between the source chain asset ID and the destination chain asset ID into the asset mapping table; and/or the number of the groups of groups,
Under the condition that the retrieval result is that a mapping relation corresponding to the source chain asset ID exists in the asset mapping table, acquiring an alternative ID corresponding to the source chain asset ID; and exchanging the mapping relation between the source chain asset ID and the alternative ID in the asset mapping table.
8. An apparatus for performing cross-chain interactions, comprising a processor and a memory storing program instructions, wherein the processor is configured, when executing the program instructions, to perform the method for performing cross-chain interactions of any one of claims 1 to 7.
9. An electronic device, comprising:
an electronic device body;
the apparatus for cross-chain interaction of claim 8, mounted to the electronic device body.
10. A storage medium storing program instructions which, when executed, perform the method for cross-chain interaction of any one of claims 1 to 7.
CN202310638813.2A 2023-05-31 2023-05-31 Method and device for performing cross-chain interaction, electronic equipment and storage medium Pending CN116628093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310638813.2A CN116628093A (en) 2023-05-31 2023-05-31 Method and device for performing cross-chain interaction, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310638813.2A CN116628093A (en) 2023-05-31 2023-05-31 Method and device for performing cross-chain interaction, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116628093A true CN116628093A (en) 2023-08-22

Family

ID=87613187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310638813.2A Pending CN116628093A (en) 2023-05-31 2023-05-31 Method and device for performing cross-chain interaction, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116628093A (en)

Similar Documents

Publication Publication Date Title
CN112446785B (en) Cross-chain transaction method, system, device, equipment and storage medium
CN110113167B (en) Information protection method and system of intelligent terminal and readable storage medium
CN111010382B (en) Method and apparatus for processing data requests in a blockchain network
CN108684041B (en) System and method for login authentication
CN111010372A (en) Block chain network identity authentication system, data processing method and gateway equipment
US8484460B1 (en) Post attack man-in-the-middle detection
CN107770159B (en) Vehicle accident data recording method and related device and readable storage medium
RU2676896C2 (en) Method and system related to authentication of users for accessing data networks
KR102315794B1 (en) Methods and devices for connecting to accounts and providing service processes
CN111444273B (en) Data authorization method and device based on block chain
CN111327564B (en) Access method and device for alliance chain
CN112686668A (en) Alliance chain cross-chain system and method
CN104869175A (en) Cross-platform account resource sharing implementation method, device and system
CN101351027A (en) Method and system for processing service authentication
CN101527634B (en) System and method for binding account information with certificates
CN111131416A (en) Business service providing method and device, storage medium and electronic device
CN110381075B (en) Block chain-based equipment identity authentication method and device
CN111880919B (en) Data scheduling method, system and computer equipment
CN105610872B (en) Internet-of-things terminal encryption method and internet-of-things terminal encryption device
CN112950201A (en) Node management method and related device applied to block chain system
CN115796871A (en) Resource data processing method and device based on block chain and server
CN113196703A (en) System and method for protecting computer networks from man-in-the-middle attacks
CN111769956B (en) Service processing method, device, equipment and medium
Kang et al. A strengthening plan for enterprise information security based on cloud computing
CN113722749A (en) Data processing method and device for block chain BAAS service based on encryption algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication