CN113935071A - Data processing method, device, equipment and medium based on block chain system - Google Patents

Data processing method, device, equipment and medium based on block chain system Download PDF

Info

Publication number
CN113935071A
CN113935071A CN202111021860.XA CN202111021860A CN113935071A CN 113935071 A CN113935071 A CN 113935071A CN 202111021860 A CN202111021860 A CN 202111021860A CN 113935071 A CN113935071 A CN 113935071A
Authority
CN
China
Prior art keywords
chain
cross
event
verification
side chain
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
CN202111021860.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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202111021860.XA priority Critical patent/CN113935071A/en
Publication of CN113935071A publication Critical patent/CN113935071A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a medium for processing data based on a blockchain system. The blockchain system comprises a main chain and at least two side chains, and the method is applied to the main chain of the blockchain system and comprises the following steps: acquiring a chain crossing event of a first side chain and certification information of the chain crossing event; performing cross-chain verification on the cross-chain event based on the certification information; and when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to a second side chain, and performing data processing through the second side chain. By adopting the method, the data processing safety can be improved.

Description

Data processing method, device, equipment and medium based on block chain system
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a medium for processing data based on a blockchain system.
Background
In the course of blockchains being applied to physical economy, it is difficult to serve all business scenarios with only one or two blockchains due to the diversity of real-world business scenarios. Therefore, chains of blocks with different architectures and functions are often required to enable different scenarios. Under such multi-chain systems, value flow and interoperability between different blockchains becomes very important and significant.
In the conventional method, when processing cross-chain, a gateway usually declares that an event occurs on one chain to another chain, so as to complete the processing of the cross-chain event.
However, by performing assertion verification across chained gateways, there is a possibility that the gateways will be falsified, thereby affecting the security of data processing.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data processing method, apparatus, device and medium based on a blockchain system, which can improve data processing security.
A data processing method based on a blockchain system, the blockchain system comprising a main chain and at least two side chains, the method being applied to the main chain of the blockchain system, the method comprising:
acquiring a chain crossing event of a first side chain and certification information of the chain crossing event;
performing cross-chain verification on the cross-chain event based on the certification information;
and when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to a second side chain, and performing data processing through the second side chain.
In one embodiment, verifying cross-chain verification based on attestation information includes:
based on the certification information, invoking a cross-chain management contract;
determining verification information corresponding to the chain crossing event according to a chain crossing management contract, wherein the verification information is synchronous when the chain crossing event occurs to the first side chain;
and verifying the verification information through the verification information.
In one embodiment, the method further includes:
receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information;
performing registration verification on a side chain to be registered based on initial block header information, and generating a corresponding verification result;
and when the verification result indicates that the registration verification passes, determining that the side chain to be registered is successfully registered.
In one embodiment, the method further includes:
acquiring a logout request of a registered side chain;
determining a transaction event corresponding to the registered side chain according to the logout request;
at the end of the transaction event, the registered side chain is deregistered.
In one embodiment, obtaining the cross-chain event of the first side chain and the certification information of the cross-chain event includes:
monitoring the first side chain through a cross-chain gateway;
when a chain crossing request of a first side chain is monitored, a chain crossing event synchronized by a chain crossing gateway is obtained, and certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event is obtained.
In one embodiment, the cross-chain event comprises a cross-chain transaction;
when the cross-chain event passes the verification, the cross-chain event information of the cross-chain event is sent to a second side chain, and the processing is carried out through the second side chain, and the method comprises the following steps:
calling a service contract of the cross-chain transaction;
determining a second side chain corresponding to the cross-chain transaction based on the business contract;
and when the cross-chain event passes the verification, sending the transaction information of the cross-chain transaction to the second side chain, and processing through the second side chain.
A data processing apparatus based on a blockchain system, the blockchain system including a main chain and at least two side chains, the apparatus being applied to the main chain of the blockchain system, the apparatus comprising:
the acquisition module is used for acquiring a cross-chain event of the first side chain and certification information of the cross-chain event;
the verification module is used for performing cross-chain verification on the cross-chain event based on the certification information;
and the processing module is used for sending the cross-chain event information of the cross-chain event to the second side chain when the cross-chain event passes the verification, and performing data processing through the second side chain.
A blockchain system, the system comprising: a main chain, and a first side chain and a second side chain registered in the main chain, respectively;
the first side chain is used for generating a cross-chain event and synchronizing to the main chain;
the backbone is used to perform the steps of the method of any of the above embodiments;
and the second side chain is used for processing data of the cross-chain event based on the cross-chain time information sent by the main chain.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method of any of the above embodiments when the processor executes the computer program.
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 of the above embodiments.
In the data processing method, the device, the equipment and the medium based on the block chain system, the block chain system comprises a main chain and at least two side chains, the method is applied to the main chain of the block chain system, the method comprises the steps of obtaining a cross-chain event of a first side chain and certification information of the cross-chain event, then carrying out cross-chain verification on the cross-chain event based on the certification information, sending cross-chain event information of the cross-chain event to a second side chain when the cross-chain event verification passes, and carrying out data processing through the second side chain. Therefore, when cross-chain event verification is carried out, verification can be carried out through the main chain in the block chain system, then cross-chain event processing is carried out, and compared with the traditional mode that verification is carried out through the gateway, verification is carried out through the main chain, verification safety can be guaranteed, and then cross-chain event processing safety can be improved.
Drawings
FIG. 1 is a diagram of a blockchain system in accordance with one embodiment;
FIG. 2 is a flow diagram illustrating a data processing method based on a blockchain system according to an embodiment;
FIG. 3 is a schematic illustration of the backbone structure in one embodiment;
FIG. 4 is a flow chart illustrating a data processing method based on a blockchain system according to another embodiment;
FIG. 5 is a block diagram of a data processing apparatus based on a blockchain system in one embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
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 data processing method based on the blockchain system can be applied to the application environment shown in fig. 1. Where the side chains 102 interact with the main chain 104 through a cross-chain gateway 106. The side chains 102 include at least two side chains, such as a first side chain and a second side chain. The main chain 102 may obtain a cross-chain event of the first side chain and certification information of the cross-chain event, perform cross-chain verification on the cross-chain event based on the certification information, and when the cross-chain event verification passes, send cross-chain event information of the cross-chain event to the second side chain, and perform data processing through the second side chain.
In one embodiment, as shown in fig. 2, a data processing method based on a block chain system is provided, and the block chain system may include a main chain and at least two side chains, which is illustrated by applying the method to the main chain in fig. 1. In particular, the method may be applied to a server of a main chain, where the server may be a single server or a server cluster, and may include the following steps:
step S202, a chain crossing event of the first side chain and certification information of the chain crossing event are acquired.
The blockchain refers to a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A Block chain (Block chain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data Block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next Block.
In this embodiment, the blockchains may include different categories of blockchains, such as public chains, alliance chains, and private chains.
In this embodiment, the blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Specifically, when the first side chain generates a cross-chain event, a self-increment ID corresponding to the cross-chain event may be generated and placed in a block of the first side chain, that is, a block of the Merkle Tree, and the verification information of the cross-chain event, that is, the Merkle Root (also referred to as a Root hash value of the Merkle Tree) may be placed in a block header of the block, and after completion, the cross-chain event and the block height may be pushed out through the event.
In this embodiment, the main chain may obtain the chain crossing event of the first side chain based on the block header synchronized with the first side chain, and obtain corresponding certification information, that is, Merkle Proof, based on the self-increment ID of the chain crossing event.
And step S204, performing cross-chain verification on the cross-chain event based on the certification information.
The verification means that the main chain in the block chain system performs validity verification on the chain crossing event of the side chain, specifically, the block head is verified.
In this embodiment, the validity Verification of the block header by the main chain is performed by means of full block synchronization or SPV (simple Payment Verification).
In this embodiment, the check content may be different according to different chain types, and may include, but is not limited to, a hash check, a timestamp check, a difficulty check, a verification node signature check, and the like. For example, a chain Of POW (Proof Of Work), for example, the contents Of the check specifically include whether the block header includes a hash value Of the previous block header, a check timestamp, and a check difficulty (that is, the hash Of the block header needs to be smaller than a certain threshold). For the chain of POS (Proof of rights of sale), the contents of the check include whether the block header contains the hash value of the previous block header, a check timestamp, and a signature of the check verification node is greater than a certain threshold (generally 2/3).
In this embodiment, the main chain may be checked differently based on the type of side chain to generate corresponding results.
In this embodiment, the verification result may include verification pass or verification failure. Specifically, taking POS as an example, when all verification contents, that is, the hash value of the block header, the verification timestamp, and the signature of the verification node, are greater than a certain threshold and are all verified, it is determined that the verification passes, and when at least one verification fails, it is determined that the verification fails.
And step S206, when the cross-chain event passes the verification, sending the cross-chain event information of the cross-chain event to a second side chain, and performing data processing through the second side chain.
In this embodiment, when the main chain performs validity verification and when it is determined that the verification passes, the corresponding cross-link event information is sent to the second vehicle, and the second side chain performs processing, for example, sending the transaction parameter or the transaction information to the second side chain, so that the second side chain performs processing.
In this embodiment, the second side chain may invoke a service contract for specific data processing based on the service contract logic.
The method comprises the steps of obtaining a cross-link event of a first side link and certification information of the cross-link event, then carrying out cross-link verification on the cross-link event based on the certification information, sending cross-link event information of the cross-link event to a second side link when the cross-link event verification passes, and carrying out data processing through the second side link. Therefore, when cross-chain event verification is carried out, verification can be carried out through the main chain in the block chain system, then cross-chain event processing is carried out, and compared with the traditional mode that verification is carried out through the gateway, verification is carried out through the main chain, verification safety can be guaranteed, and then cross-chain event processing safety can be improved.
In one embodiment, verifying cross-chain verification based on attestation information may include: based on the certification information, invoking a cross-chain management contract; determining verification information corresponding to the chain crossing event according to a chain crossing management contract, wherein the verification information is synchronous when the chain crossing event occurs to the first side chain; and verifying the verification information through the verification information.
In this embodiment, each side chain and the main chain may be deployed with a cross-chain management contract, and when performing cross-chain, the cross-chain may be implemented only by calling a uniform method of the cross-chain management contract, without paying attention to specific cross-chain logic.
Specifically, the first side-chain may obtain the Merkle Proof by calling a cross-chain management contract and then send to the backbone. After receiving the Merkle Proof, the main chain may invoke a cross-chain management contract, acquire verification information, i.e., Merkle Root, from the synchronized block header, and then verify the Merkle Root through the verification information and the certification information.
The specific verification process may be as described above, and may include verification of a hash value, a check timestamp, and the like, which is not limited in this application.
In one embodiment, the method may further include: receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information; performing registration verification on a side chain to be registered based on initial block header information, and generating a corresponding verification result; and when the verification result indicates that the registration verification passes, determining that the side chain to be registered is successfully registered.
The registration request refers to a request for requesting registration, and the registration request may include specific request content.
In this embodiment, when initializing, the side chain to be registered may initiate a registration request to the main chain, and submit the side chain configuration information of the side chain to be registered and the initial block header information, where the block header information may include verifier information.
In this embodiment, after acquiring the initial block header information, the main chain may perform registration verification based on the acquired initial block header information, for example, the main chain may perform signature verification and the like based on the initial block header information.
In this embodiment, the side chain to be registered may also obtain the initial block header of the main chain at the same time, and perform registration verification based on the initial block header information in the initial block header of the main chain.
In this embodiment, the main chain may generate a corresponding registration verification result when performing registration verification on the initial block header, and determine that the registration of the to-be-registered side chain is successful when the verification result indicates that the registration verification passes.
As will be understood by those skilled in the art, the sign of successful registration may be that the pending side chain is determined to be successfully registered when the verification of registration of both the main chain and the side chain is passed.
In the above embodiment, the side chains to be injected are registered to the main chain, so that all the side chains are managed through the main chain, and the cross chains among all the side chains can be crossed through the main chain, compared with the traditional method of directly crossing any two chains, the scheme can reduce the complexity of the block chain system and improve the stability of the block chain system.
In one embodiment, the method may further include: acquiring a logout request of a registered side chain; determining a transaction event corresponding to the registered side chain according to the logout request; at the end of the transaction event, the registered side chain is logged out.
In this embodiment, if the registered side chain needs to logout, a logout application needs to be submitted to the main chain, that is, a logout request is sent to the main chain. After receiving the logout request, the main chain can determine the transaction event corresponding to the registered side chain, and when the transaction event is ended, the main chain carries out logout processing on the registered side chain. For example, taking asset transfer as an example, a user transfers assets from chain A to chain B, at which time chain B is to be deregistered, the user may transfer assets back to chain A, the transaction event ends, and the main chain may then deregister the registered side chain.
In one embodiment, the main chain may also set a buffer time beyond which chain B logs off and the user's assets in chain B will fail.
In one embodiment, obtaining the cross-chain event of the first side chain and the certification information of the cross-chain event may include: monitoring the first side chain through a cross-chain gateway; when a chain crossing request of a first side chain is monitored, a chain crossing event synchronized by a chain crossing gateway is obtained, and certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event is obtained.
In this embodiment, with continued reference to fig. 1, the side chains and the main chain may be connected by a cross-chain gateway.
Specifically, the main chain may monitor each side chain through the cross-link gateway, and monitor whether there is a cross-link request. As will be understood by those skilled in the art, the monitoring of the main chain on the plurality of side chains is parallel, and the main chain can monitor each corresponding side chain based on the cross-chain gateway corresponding to each side chain and acquire the synchronous cross-chain event.
Specifically, when a chain crossing event occurs in the side chain, the synchronization block header information may refer to the main chain, so that the main chain may acquire the chain crossing event.
Further, the main chain can acquire the certification information from the side chain through the cross-chain gateway and perform subsequent processing.
In one embodiment, referring to fig. 3, the main chain may include a cross-chain management module, a block header synchronization module, a multi-chain management module, and the like. The cross-chain gateway can synchronize the block head of the side chain synchronization to the block head synchronization module of the main chain, so that the cross-chain management module can acquire the block head information from the block head synchronization module when a cross-chain event occurs. Similarly, the inter-chain gateway may submit the acquired certification information, such as the Merkle certification, to the inter-chain management module, so that the inter-chain management module performs subsequent verification processing.
In this embodiment, the multi-chain management module of the main chain may further manage a plurality of side chains based on the obtained side chain information, such as registration management, logout management, side chain state management, and the like.
The side chain state comprises states of side chain registration in, registration success, cancellation in and cancellation. Taking registration as an example, specifically, the side chain state management is registration first, and the registration is successfully performed when voting approval is received by other members and the threshold number of votes is reached.
In one embodiment, the cross-chain event may include a cross-chain transaction.
In this embodiment, when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to the second side chain, and performing processing through the second side chain may include: calling a service contract of the cross-chain transaction; determining a second side chain corresponding to the cross-chain transaction based on the business contract; and when the cross-chain event passes the verification, sending the transaction information of the cross-chain transaction to the second side chain, and processing through the second side chain.
In this embodiment, referring to fig. 4, when a first side chain (i.e., chain a) initiates a cross-chain transaction, a cross-chain management contract may be invoked by invoking a cross-chain interface according to a business contract a of the specific transaction, and a cross-chain is performed.
In this embodiment, the cross-chain management contract of the chain a may prove that the obtained Merkle is sent to the cross-chain gateway, and is sent to the main chain, that is, the chain B, through the cross-chain gateway, after the main chain completes verification, the business contract B of the cross-chain transaction may be called to determine a transaction object, that is, the second side chain, corresponding to the cross-chain transaction. Further, the main chain may send transaction information for the cross-chain transaction to the second side chain for processing by the second side chain.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in a strict order unless explicitly stated herein, and may be performed in other orders. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a data processing apparatus based on a blockchain system, the blockchain system including a main chain and at least two side chains, the apparatus being applied to the main chain of the blockchain system, the apparatus may include: an acquisition module 100, a verification module 200, and a processing module 300, wherein:
the obtaining module 100 is configured to obtain a cross-chain event of the first side chain and certification information of the cross-chain event.
And the verification module 200 is configured to perform cross-chain verification on the cross-chain event based on the certification information.
And the processing module 300 is configured to send the cross-chain event information of the cross-chain event to the second side chain when the cross-chain event passes the verification, and perform data processing through the second side chain.
In one embodiment, the verification module 200 may include:
and the cross-chain management contract calling submodule is used for calling the cross-chain management contract based on the certification information.
And the verification information determining submodule is used for determining the verification information corresponding to the chain crossing event according to the chain crossing management contract, and the verification information is synchronous when the first side chain has the chain crossing event.
And the verification sub-module is used for verifying the verification information through the verification information.
In one embodiment, the apparatus may further include:
and the registration request receiving module is used for receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information.
And the registration verification module is used for performing registration verification on the side chain to be registered based on the initial block header information and generating a corresponding verification result.
And the registration module is used for determining that the side chain to be registered succeeds in registration when the verification result indicates that the registration verification passes.
In one embodiment, the apparatus may further include:
and the logout request acquisition module is used for acquiring a logout request of the registered side chain.
And the transaction event determining module is used for determining the transaction event corresponding to the registered side chain according to the logout request.
And the logout module is used for performing logout treatment on the registered side chain when the transaction event is ended.
In one embodiment, the obtaining module 100 may include:
and the monitoring submodule is used for monitoring the first side chain through the cross-chain gateway.
The obtaining submodule is used for obtaining a chain crossing event synchronized with a chain crossing gateway when a chain crossing request of a first side chain is monitored, and obtaining certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event.
In one embodiment, the cross-chain event may include a cross-chain transaction.
In this embodiment, the processing module 300 may include:
and the service contract calling submodule is used for calling the service contract of the cross-chain transaction.
And the second side chain determining submodule is used for determining a second side chain corresponding to cross-chain transaction based on the business contract.
And the processing sub-module is used for sending the transaction information of the cross-chain transaction to the second side chain when the cross-chain event passes the verification, and processing the transaction information through the second side chain.
For specific limitations of the data processing apparatus based on the blockchain system, reference may be made to the above limitations of the data processing method based on the blockchain system, which are not described herein again. The respective modules in the data processing apparatus based on the blockchain system described above may be wholly or partially implemented by software, hardware, and 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 blockchain system is provided, which may include: a main chain, and a first side chain and a second side chain registered in the main chain, respectively.
In one embodiment, with continued reference to fig. 1, the blockchain system may have three side chains, namely side chain a, side chain B, and side chain C, which may all be first side chains or second side chains, which cannot be the same side chain.
In this embodiment, the first side chain is used to generate a cross-chain event and is synchronized to the main chain. The backbone is used to perform the steps of the method described in any of the above embodiments. And the second side chain is used for processing data of the cross-chain event based on the cross-chain time information sent by the main chain.
In this embodiment, the main chain and the side chain may be connected through a cross-chain gateway, and each vehicle corresponds to a cross-chain gateway. The cross-chain gateway can monitor the side chain in real time and synchronize to the main chain when monitoring a cross-chain event.
Meanwhile, the cross-link gateway can synchronize the verification information of the side chain, so that the main chain can verify and process the face collapse event.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database 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 comprises a nonvolatile 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 database of the computer device is used for storing data such as cross-chain events and certification information. 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 method of data processing based on a blockchain system.
Those skilled in the art will appreciate that the architecture shown in fig. 6 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, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed: acquiring a cross-chain event of a first side chain and certification information of the cross-chain event; performing cross-chain verification on the cross-chain event based on the certification information; and when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to a second side chain, and performing data processing through the second side chain.
In one embodiment, the processor, when executing the computer program, performs cross-chain authentication based on the attestation information, and may include: based on the certification information, invoking a cross-chain management contract; determining verification information corresponding to the chain crossing event according to a chain crossing management contract, wherein the verification information is synchronous when the chain crossing event occurs to the first side chain; and verifying the verification information through the verification information.
In one embodiment, the processor, when executing the computer program, may further implement the following steps: receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information; performing registration verification on a side chain to be registered based on the initial block header information, and generating a corresponding verification result; and when the verification result indicates that the registration verification passes, determining that the side chain to be registered is successfully registered.
In one embodiment, the processor, when executing the computer program, may further implement the following steps: acquiring a logout request of a registered side chain; determining a transaction event corresponding to the registered side chain according to the logout request; at the end of the transaction event, the registered side chain is deregistered.
In one embodiment, the obtaining of the cross-chain event of the first side chain and the certification information of the cross-chain event when the processor executes the computer program may include: monitoring the first side chain through a cross-chain gateway; when a chain crossing request of a first side chain is monitored, a chain crossing event synchronized by a chain crossing gateway is obtained, and certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event is obtained.
In one embodiment, the cross-chain event may include a cross-chain transaction.
In this embodiment, when the processor executes the computer program to implement that the cross-chain event passes the verification, the sending the cross-chain event information of the cross-chain event to the second side chain, and performing processing through the second side chain may include: calling a service contract of the cross-chain transaction; determining a second side chain corresponding to the cross-chain transaction based on the business contract; and when the cross-chain event passes the verification, sending transaction information of the cross-chain transaction to the second side chain, and processing through the second side chain.
In one embodiment, a computer-readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring a chain crossing event of a first side chain and certification information of the chain crossing event; performing cross-chain verification on the cross-chain event based on the certification information; and when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to a second side chain, and processing data through the second side chain.
In one embodiment, the computer program when executed by the processor to perform cross-chain authentication based on attestation information may include: based on the certification information, invoking a cross-chain management contract; determining verification information corresponding to a cross-chain event according to a cross-chain management contract, wherein the verification information is synchronous when the first side chain generates the cross-chain event; and verifying the verification information through the verification information.
In one embodiment, the computer program when executed by the processor may further implement the steps of: receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information; performing registration verification on a side chain to be registered based on initial block header information, and generating a corresponding verification result; and when the verification result indicates that the registration verification passes, determining that the side chain to be registered is successfully registered.
In one embodiment, the computer program when executed by the processor may further implement the steps of: acquiring a logout request of a registered side chain; determining a transaction event corresponding to the registered side chain according to the logout request; at the end of the transaction event, the registered side chain is deregistered.
In one embodiment, the computer program, when executed by the processor, for obtaining a cross-chain event of the first side chain and attestation information of the cross-chain event may include: monitoring the first side chain through a cross-chain gateway; when a chain crossing request of a first side chain is monitored, a chain crossing event synchronized by a chain crossing gateway is obtained, and certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event is obtained.
In one embodiment, the cross-chain event may include a cross-chain transaction.
In this embodiment, when the computer program is executed by the processor to implement verification of the cross-chain event, sending cross-chain event information of the cross-chain event to the second side chain, and performing processing through the second side chain may include: calling a service contract of the cross-chain transaction; determining a second side chain corresponding to the cross-chain transaction based on the business contract; and when the cross-chain event passes the verification, sending transaction information of the cross-chain transaction to the second side chain, and processing through the second side chain.
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, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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 invention. 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 patent application shall be subject to the appended claims.

Claims (10)

1. A data processing method based on a blockchain system, wherein the blockchain system comprises a main chain and at least two side chains, and the method is applied to the main chain of the blockchain system, and the method comprises:
acquiring a chain crossing event of a first side chain and certification information of the chain crossing event;
performing cross-chain verification on the cross-chain event based on the certification information;
and when the verification of the cross-chain event passes, sending cross-chain event information of the cross-chain event to the second side chain, and performing data processing through the second side chain.
2. The method of claim 1, wherein verifying the cross-chain validation based on the attestation information comprises:
invoking a cross-chain management contract based on the attestation information;
determining verification information corresponding to the cross-chain event according to the cross-chain management contract, wherein the verification information is synchronous when the first side chain generates the cross-chain event;
and verifying the certification information through the verification information.
3. The method of claim 1, further comprising:
receiving a registration request of a side chain to be registered, wherein the registration request carries initial block header information;
performing registration verification on the side chain to be registered based on the initial block header information, and generating a corresponding verification result;
when the verification result indicates that the registration verification passes, determining that the side chain to be registered is successfully registered.
4. The method of claim 1, further comprising:
acquiring a logout request of a registered side chain;
determining a transaction event corresponding to the registered side chain according to the logout request;
and when the transaction event is ended, performing logout treatment on the registered side chain.
5. The method of claim 1, wherein obtaining the cross-chain event of the first side chain and the proof information of the cross-chain event comprises:
monitoring the first side chain through a cross-chain gateway;
when a chain crossing request of the first side chain is monitored, a chain crossing event synchronized by the chain crossing gateway is obtained, and certification information obtained by the chain crossing gateway from the first side chain based on the chain crossing event is obtained.
6. The method of claim 1, wherein the cross-chain event comprises a cross-chain transaction;
when the cross-chain event passes the verification, sending cross-chain event information of the cross-chain event to the second side chain, and processing through the second side chain, wherein the processing comprises:
invoking a business contract for the cross-chain transaction;
determining a second side chain corresponding to the cross-chain transaction based on the business contract;
and when the cross-chain event passes the verification, sending the transaction information of the cross-chain transaction to the second side chain, and processing through the second side chain.
7. A data processing apparatus based on a blockchain system, wherein the blockchain system includes a main chain and at least two side chains, the apparatus is applied to the main chain of the blockchain system, the apparatus includes:
the acquisition module is used for acquiring a cross-chain event of a first side chain and certification information of the cross-chain event;
the verification module is used for performing cross-chain verification on the cross-chain event based on the certification information;
and the processing module is used for sending the cross-chain event information of the cross-chain event to the second side chain when the cross-chain event passes the verification, and performing data processing through the second side chain.
8. A blockchain system, the system comprising: a main chain, and a first side chain and a second side chain registered in the main chain, respectively;
the first side chain is used for generating a cross-chain event and synchronizing to the main chain;
the backbone being used to perform the steps of the method of any one of the preceding claims 1 to 6;
and the second side chain is used for processing data of the cross-chain event based on the cross-chain time information sent by the main chain.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
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 6.
CN202111021860.XA 2021-09-01 2021-09-01 Data processing method, device, equipment and medium based on block chain system Pending CN113935071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111021860.XA CN113935071A (en) 2021-09-01 2021-09-01 Data processing method, device, equipment and medium based on block chain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111021860.XA CN113935071A (en) 2021-09-01 2021-09-01 Data processing method, device, equipment and medium based on block chain system

Publications (1)

Publication Number Publication Date
CN113935071A true CN113935071A (en) 2022-01-14

Family

ID=79274813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111021860.XA Pending CN113935071A (en) 2021-09-01 2021-09-01 Data processing method, device, equipment and medium based on block chain system

Country Status (1)

Country Link
CN (1) CN113935071A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052001A (en) * 2022-06-09 2022-09-13 上海万向区块链股份公司 Extensibility solution, system and medium for federation chains

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052001A (en) * 2022-06-09 2022-09-13 上海万向区块链股份公司 Extensibility solution, system and medium for federation chains
CN115052001B (en) * 2022-06-09 2024-04-05 上海万向区块链股份公司 Extendibility solving method, system and medium for alliance chain

Similar Documents

Publication Publication Date Title
CN108964924B (en) Digital certificate verification method and device, computer equipment and storage medium
CN110912712B (en) Service operation risk authentication method and system based on block chain
CN111159779A (en) Customs clearance data processing method and device, computer equipment and storage medium
CN110690974B (en) Block chain based data verification method, device, equipment and readable storage medium
CN111753334B (en) Method and device for verifying consistency of data across alliance chains and electronic equipment
CN111090581A (en) Intelligent contract testing method and device, computer equipment and storage medium
CN109886810B (en) Crowdsourcing transaction method and system, readable storage medium and terminal
WO2019025415A1 (en) Distributing a computation output
CN111967060A (en) Data file integrity verification method and device
CN112165448A (en) Service processing method, device, system, computer equipment and storage medium
CN113935071A (en) Data processing method, device, equipment and medium based on block chain system
CN112905477B (en) Automatic driving simulation test data release system, method, device and equipment
CN110910141A (en) Transaction processing method, system, device, equipment and computer readable storage medium
CN109033818B (en) Terminal, authentication method, and computer-readable storage medium
CN111277416B (en) Interactive zero knowledge proof method, device, computer equipment and storage medium
CN113205342A (en) User identity authentication method and device based on multi-terminal payment
CN112037062A (en) Transaction consensus method, device, electronic equipment and readable storage medium
CN111524009A (en) Transaction verification method and device for blockchain system and hardware equipment
CN116881936A (en) Trusted computing method and related equipment
CN111131329A (en) Data consensus method and device for block chain system and hardware equipment
CN110599332A (en) Block chain-based user intention determination method, device, equipment and storage medium
CN115314228A (en) Unmanned aerial vehicle identity authentication method, device and system
CN114936853A (en) Chain transaction protocol and transaction authentication method based on trusted execution environment
CN113326527A (en) Credible digital signature system and method based on block chain
CN111027992A (en) Asset transaction method and device based on blockchain system and hardware equipment

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