CN112699136B - Cross-link certificate storage method and related device - Google Patents

Cross-link certificate storage method and related device Download PDF

Info

Publication number
CN112699136B
CN112699136B CN202011604937.1A CN202011604937A CN112699136B CN 112699136 B CN112699136 B CN 112699136B CN 202011604937 A CN202011604937 A CN 202011604937A CN 112699136 B CN112699136 B CN 112699136B
Authority
CN
China
Prior art keywords
chain
cross
evidence
evidence storing
transaction
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.)
Active
Application number
CN202011604937.1A
Other languages
Chinese (zh)
Other versions
CN112699136A (en
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011604937.1A priority Critical patent/CN112699136B/en
Publication of CN112699136A publication Critical patent/CN112699136A/en
Application granted granted Critical
Publication of CN112699136B publication Critical patent/CN112699136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a cross-chain evidence storing method and a related device, which relate to the technical field of block chains, and the cross-chain evidence storing method comprises the following steps: monitoring the deposit certificate transaction on the target block chain; judging whether the monitored evidence storing transaction meets a preset cross-link evidence storing condition or not; and if the judgment result is satisfied, performing cross-chain evidence storage processing on the evidence storage transaction so as to store the relevant information of the evidence storage transaction into the block chain linked with the target block chain. According to the technical scheme, automation of cross-chain certificate storage can be achieved, and efficiency of cross-chain certificate storage is improved.

Description

Cross-link certificate storage method and related device
Technical Field
The present application relates to the field of block chaining technologies, and in particular, to a cross-chain evidence storing method and a related apparatus.
Background
The block chain is 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, all nodes in a network commonly own, manage and supervise data through a cryptography technology, and the block chain has the characteristics of decentralization, unforgeability, no falsification, traceability and the like.
With the vigorous development of the block chain technology, more and more chains appear, and the chain crossing technology is an important means for getting through the barrier of value transfer between the chains and realizing the performance expansion, rich functions and ecological link of the block chain.
In the current chain crossing evidence storing technology, a user is required to manually send a chain crossing evidence storing request at regular time, and the chain crossing evidence storing request carries information to be stored, so that the information is stored in a corresponding block chain.
Disclosure of Invention
The application provides a cross-chain certificate storage method and a related device, which can realize the automation of cross-chain certificate storage and improve the efficiency of cross-chain certificate storage.
In order to achieve the above technical effect, a first aspect of the present application provides a cross-chain evidence storing method, including:
monitoring the deposit certificate transaction on the target block chain;
judging whether the monitored evidence storing transaction meets a preset cross-link evidence storing condition or not;
and if the judgment result is satisfied, performing cross-chain evidence storage processing on the evidence storage transaction so as to store the relevant information of the evidence storage transaction into the block chain linked with the target block chain.
Based on the first aspect of the present application, in a first possible implementation manner, the cross-chain evidence storing method further includes:
receiving cross-chain update information, wherein the cross-chain update information comprises: block height and cross-link evidence storage conditions;
and when the block height of the target block chain reaches the block height in the cross-chain updating information, updating a preset cross-chain evidence storing condition into the cross-chain evidence storing condition in the cross-chain updating information.
Based on the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner, the receiving cross-chain update information specifically includes: cross-chain update information based on application programming interface input is received.
Based on the first aspect of the present application, or the first possible implementation manner of the first aspect of the present application, or the second possible implementation manner of the first aspect of the present application, in a third possible implementation manner, a preset cross-chain evidence storing condition is associated with at least one block chain;
the cross-chain evidence storing processing is carried out on the evidence storing transaction so as to store the relevant information of the evidence storing transaction into the block chain linked with the target block chain, and the method specifically comprises the following steps:
and performing cross-chain evidence storage processing on the evidence storage transaction based on the blockchain associated with the preset cross-chain evidence storage condition so as to store the relevant information of the evidence storage transaction into the blockchain which is linked with the target blockchain and is associated with the preset cross-chain evidence storage condition.
Based on the first aspect of the present application, or the first possible implementation manner of the first aspect of the present application, or the second possible implementation manner of the first aspect of the present application, in a fourth possible implementation manner, the performing cross-chain evidence storage processing on the evidence storage transaction is performed to store the relevant information of the evidence storage transaction into a block chain linked to the target block chain, and specifically:
and performing cross-chain evidence storage processing on the evidence storage transaction based on a default block chain linked with the target block chain so as to store the relevant information of the evidence storage transaction into the default block chain.
This application second aspect provides a cross-chain deposit evidence device, includes:
the monitoring unit is used for monitoring the deposit certificate transaction on the target block chain;
the judging unit is used for judging whether the evidence storing transaction monitored by the monitoring unit meets a preset cross-link evidence storing condition or not;
and the cross-chain processing unit is used for performing cross-chain evidence storage processing on the evidence storage transaction when the judgment result of the judgment unit is satisfied so as to store the relevant information of the evidence storage transaction into the block chain linked with the target block chain.
Based on the second aspect of the present application, in a first possible implementation manner, the cross-chain evidence storing apparatus further includes:
a receiving unit, configured to receive cross-chain update information, where the cross-chain update information includes: block height and cross-link evidence storage conditions;
and the updating unit is used for updating a preset cross-chain evidence storing condition to the cross-chain evidence storing condition in the cross-chain updating information when the block height of the target block chain reaches the block height in the cross-chain updating information.
Based on the first possible implementation manner of the second aspect of the present application, in a second possible implementation manner, the cross-chain evidence storing device further includes: an application programming interface;
the receiving unit is specifically configured to receive cross-chain update information input based on the application programming interface.
A third aspect of the present application provides a cross-link evidence storing device, where the cross-link evidence storing device includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the cross-link evidence storing method mentioned in the first aspect or any possible implementation manner of the first aspect when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the cross-chain deposit certificate method mentioned in the first aspect or any possible implementation manner of the first aspect.
It can be seen from above that, the technical scheme of this application is through monitoring the deposit card transaction on the target block chain, when the deposit card transaction that monitors satisfied the cross-chain deposit card condition of predetermineeing, deposit the card transaction to this and cross the chain and deposit the card and handle to this has realized the automation of crossing the chain and deposit the card, because whole process need not the user additionally to initiate and cross the chain and deposit the card request, so can improve the efficiency of crossing the chain and deposit the card to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic structural diagram of an embodiment of a cross-chaining system provided by the present application;
fig. 2 is a schematic flowchart of an embodiment of a cross-link evidence storing method provided in the present application;
FIG. 3 is a flowchart illustrating an embodiment of updating a cross-chain storage condition in the cross-chain storage method provided in the present application;
fig. 4 is an interaction schematic diagram of a cross-link evidence storing method in an application scenario provided by the present application;
fig. 5 is a schematic structural diagram of an embodiment of a cross-link evidence storing device provided in the present application;
fig. 6 is a schematic structural diagram of another embodiment of the cross-link evidence storing device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments, and the present application is not limited by the embodiments described below.
In the specification and drawings, elements are described in singular or plural according to embodiments. However, the singular and plural forms are appropriately selected for the proposed cases only for the sake of explanation without intending to limit the present application thereto. Thus, the singular may include the plural and the plural may also include the singular, unless the context clearly dictates otherwise.
Embodiments of the present application relate to block chain and inter-chain technologies, and some concepts related to the embodiments of the present application will be described below for ease of understanding.
Block chains: the block chain data structure is a chain data structure which takes blocks (blocks) confirmed by a consensus mechanism as basic units, data in the block chain are distributed in temporally connected blocks, a Hash (Hash) value of the previous block is recorded in the next block, whether each block (and transaction in the block) is legal or not can be quickly checked by calculating the Hash value, and the block chain data structure has the characteristics of being not falsifiable, open and transparent.
Storing the certificate and trading: the real data generated by the physical world by the nodes in the block chain can be constructed into a standard transaction format supported by the block chain, then the real data is issued to the block chain, the received transaction is subjected to consensus processing by the nodes in the block chain, after consensus confirmation is achieved, the transaction is packaged (namely stored) into the block by the accounting nodes in the block chain, and persistent evidence is stored in the block of the block chain.
Accounting node/mining node (validator/miner): the nodes participating in consensus in the blockchain contribute strength to achieving consensus.
Consensus: typical consensus mechanisms of the algorithms for achieving consistency in the distributed system include proof of work (pow), proof of stop (pos), byzantine Fault Tolerance (BFT), and the like.
And (3) hash value: also called information characteristic value or characteristic value, a hash value is generated by converting input data of an arbitrary length into a password by a hash algorithm and outputting it fixedly, and it is a one-way encryption function that cannot retrieve the original input data by decrypting the hash value. In a blockchain, each block (except the original block) contains the hash value of the previous block, which is referred to as the parent block of the current block. Hash values are the core foundation and most important aspect of the potential in blockchain technology, which preserves the authenticity of the record and view data, as well as the integrity of the blockchain as a whole.
And (3) chain crossing: and the communication among different block chains is realized through intermediate equipment such as a cross-chain gateway, a cross-chain relay and the like. Fig. 1 is a schematic structural diagram of a chain crossing system, which includes: a blockchain 10 constructed from a number of nodes 12 (illustrated as 3), a blockchain 20 of a number of nodes 22 (illustrated as 3), a cross-chain gateway 11 that can communicate with the nodes 12 in the blockchain 10, and a cross-chain gateway 21 that can communicate with the nodes 22 in the blockchain 20. The cross-chain gateway 11 is connected with the cross-chain gateway 21 in a communication mode. In the cross-chain system, any node 12 of the blockchain 10 can participate in consensus verification of the blockchain 10, synchronize a shared account book of the blockchain 10, communicate with the cross-chain gateway 11 at an application layer, and communicate with a certain node or nodes of the blockchain 20 through the cross-chain gateway 11 and the cross-chain gateway 21. Similarly, any node 22 of the blockchain 20 may participate in consensus verification of the blockchain 20, synchronize the shared book of the blockchain 20, and communicate with the cross-chain gateway 21 at the application layer, and communicate with one or some nodes of the blockchain 10 through the cross-chain gateway 21 and the cross-chain gateway 11. The application layer is a layer isolated from the block chain underlying technology, belongs to the application layer of computer software, and can also be called as an application entity (abbreviated as "AE"), and is composed of a plurality of specific application service elements (abbreviated as "SASE") and one or more common application service elements ("CASE"), and provides specific application services for the SASE.
It should be noted that the structure of the cross-chain system shown in fig. 1 is merely an illustration, and does not constitute a structural limitation of the cross-chain system applied in the present application.
Fig. 2 is a schematic flow chart of a cross-link evidence storing method provided in the present application, including:
step 101, monitoring certificate storage transaction on a target block chain;
in this embodiment of the present application, a cross-link evidence storing device (for example, a cross-link gateway) connected to a target blockchain may monitor an evidence storing transaction on the target blockchain, and specifically, step 101 may include: monitoring whether a new evidence storing transaction is stored in a block (namely, a block of the target block chain) of the target block chain, determining to monitor the evidence storing transaction on the target block chain when the new evidence storing transaction is stored in the block of the target block chain, and otherwise, immediately or after waiting for a preset time, continuing to execute the monitoring action of the step 101.
In practical applications, one cross-chain evidence storing device may connect one or more than two blockchains, and when the cross-chain evidence storing device connects only one blockchain, the blockchain may be used as a target blockchain by default to execute the cross-chain evidence storing method shown in fig. 2. When the inter-chain evidence storing device is connected to more than two block chains, each block chain connected to the inter-chain evidence storing device can be used as a target block chain to respectively execute the inter-chain evidence storing method shown in fig. 2 for each target block chain; or, the cross-chain evidence storing device takes some, or all of the blockchains connected to the cross-chain evidence storing device as the target blockchain based on the setting or instruction of the user, which is not limited herein.
Step 102, judging whether the monitored evidence storing transaction meets a preset cross-link evidence storing condition;
when the evidence storing transaction on the target block chain is monitored, further judging whether the monitored evidence storing transaction meets a preset cross-chain evidence storing condition, if so, executing the step 103; otherwise, step 103 is not executed, and the process returns to step 101 immediately or after waiting for a preset time.
In this embodiment of the application, the determination action performed in step 102 may be performed by the cross-chain evidence storing device, or may also be triggered by the cross-chain evidence storing device to perform and acquire a determination result of another device in communication connection therewith, which is not limited herein.
103, performing cross-link evidence storing processing on the evidence storing transaction so as to store the relevant information of the evidence storing transaction into a block chain linked with the target block chain;
in this embodiment, the evidence storing transaction may be stored in any block chain or any plurality of block chains linked to the target block chain through a cross-chain evidence storing process, or the evidence storing transaction may be stored in a default block chain linked to the target block chain through a cross-chain evidence storing process, or the evidence storing transaction may be stored in a block chain linked to the target block chain and associated with the cross-chain evidence storing condition through a cross-chain evidence storing process, which is not limited herein. Two application scenarios provided by the present application are further explained below:
in one application scenario, the cross-link credit condition is associated with at least one blockchain. Step 103 may be embodied as: and performing cross-chain evidence storage processing on the evidence storage transaction based on the block chain associated with the preset cross-chain evidence storage condition so as to store the related information of the evidence storage transaction into the block chain which is linked with the target block chain and is associated with the preset cross-chain evidence storage condition. For example, if the target blockchain is set as blockchain a, the preset cross-chain evidence storing condition is associated with blockchain B and blockchain C, and blockchain a is linked with blockchain B and blockchain C, respectively, in step 103, the evidence storing transaction can be stored into blockchain B and blockchain C from blockchain a in a cross-chain manner.
In another application scenario, one or more blockchains linked to the target blockchain may be set as a default blockchain, and step 103 may be specifically expressed as: and performing cross-link evidence storage processing on the evidence storage transaction based on a default block chain linked with the target block chain so as to store the relevant information of the evidence storage transaction into the default block chain. For example, if the target block chain is a block chain a, the block chain B and the block chain C are respectively linked with the block chain a, and the block chain B is set as a default block chain, in step 103, the deposit transaction may be stored in the block chain B from the block chain a in a chain-crossing manner.
It can be seen from the above that, the technical scheme of this application is through monitoring the deposit certificate transaction on the target block chain, when the deposit certificate transaction that monitors satisfies the preset cross-chain deposit certificate condition, deposit certificate transaction to this and cross the chain and deposit certificate processing to this has realized the automation of cross-chain deposit certificate, because whole process need not the user additionally to initiate and cross the chain and deposit certificate request, so can improve the efficiency of cross-chain deposit certificate to a certain extent.
In this embodiment of the present application, the cross-link evidence storing condition may be set by a user in a customized manner, for example, the cross-link evidence storing condition may be: if the evidence storing transaction is related to a designated company (e.g., company C1), in step 102, determining whether the monitored evidence storing transaction on the target block chain is related to the designated company, if so, determining that the determination result is satisfied (i.e., the monitored evidence storing transaction satisfies a preset cross-chain evidence storing condition), otherwise, determining that the determination result is not satisfied (i.e., the monitored evidence storing transaction does not satisfy the preset cross-chain evidence storing condition); alternatively, the cross-chain evidence storing condition may be: if the evidence storing transaction occurs in a specific time period and is related to a designated company, in step 102, judging whether the monitored evidence storing transaction on the target block chain occurs in the specific time period and is related to the designated company, if the evidence storing transaction occurs in the specific time period and is related to the designated company, determining that the judgment result is satisfied, otherwise, determining that the judgment result is not satisfied; alternatively, the cross-chain evidence storing condition may be: if the block height of the block related to the evidence storing transaction is within the preset block height interval, in step 102, determining whether the monitored block height of the block related to the evidence storing transaction on the target block chain is within the block height interval, if so, determining that the determination result is satisfied, and if not, determining that the determination result is not satisfied; alternatively, the cross-chain evidence storing condition may be: if the block height of the block related to the evidence storing transaction is within the preset block height interval and is related to the designated company, in step 102, it is determined whether the monitored block height of the block related to the evidence storing transaction on the target block chain is within the block height interval and is related to the designated company, if so, the determination result is determined to be satisfied, and if not, the determination result is determined to be not satisfied.
In practical application, a user can trigger the update of the cross-chain evidence storing condition by sending cross-chain update information. Specifically, on the basis of the cross-chain evidence storing method shown in fig. 2, as shown in fig. 3, the cross-chain evidence storing method further includes:
step 201, receiving cross-chain updating information;
wherein the cross-chain update information includes: block height and cross-link evidence storage conditions.
In the embodiment of the present application, an application programming interface (i.e., API interface) for updating the cross-link evidence storing condition may be provided for the user, and the API interface needs to specify two parameters: cross-chain evidence-preserving conditions and block heights. The user may input a new cross-link credit condition and a block height through the API interface to generate cross-link update information, so that step 201 receives the cross-link update information input based on the API interface.
Step 202, when the block height of the target block chain reaches the block height in the cross-chain updating information, updating a preset cross-chain evidence storing condition into the cross-chain evidence storing condition in the cross-chain updating information;
in the embodiment of the application, when the block height of the target block chain reaches the block height in the cross-chain updating information, updating of the cross-chain evidence storing condition is triggered, that is, a preset cross-chain evidence storing condition is updated to the cross-chain evidence storing condition in the cross-chain updating information, and then the monitored evidence storing transaction is judged and screened according to the updated cross-chain evidence storing condition.
It should be noted that step 201 and step 202 may occur before or after any of the steps shown in fig. 2, that is, the user may trigger the update of the cross-chain evidence storing condition by inputting the cross-chain update information at any time.
In the embodiment of the application, by setting the cross-link evidence storing condition, a user can control data needing cross-link evidence storing in a finer granularity manner, and waste caused by cross-link of useless data can be reduced to a certain extent. And the hot update of the cross-chain evidence storage condition can be carried out on the premise of not restarting equipment (such as a cross-chain gateway device), so that the method is more user-friendly.
In order to better understand the technical solution of the present application, the cross-chain evidence storing method of the present application is described in a specific application scenario with reference to fig. 4. In fig. 4, a user U1 may operate on a blockchain A1 through a server or a client or other device, and the blockchain A1 is linked with a blockchain B through a cross-chain gateway 1 and a cross-chain gateway 2.
As can be seen from fig. 4, the user U1 may deploy a credentialing system on the blockchain a in advance, which may be any existing system capable of credentialing on a single blockchain. Then, the user U1 initializes the cross-link gateway 1 for cross-link certificate transfer, and during the initialization process, the initialized cross-link certificate storing condition may be specified by configuration, and then the cross-link gateway 1 is started.
When the evidence storing transaction monitored by the cross-link gateway 1 meets the currently set cross-link evidence storing condition, the cross-link gateway 2 performs cross-link evidence storing processing on the evidence storing transaction, so that the related information of the stored transaction is stored in the block chain B.
Further, the cross-link gateway 1 provides an API interface for updating the cross-link credential condition. The user U1 needs to update the cross-link condition at some point, either for business or other reasons. The user U1 inputs a new cross-chain evidence storing condition F' and a block height H through the API interface again to generate cross-chain updating information. And when the block height of the block chain A reaches the block height H, the cross-chain gateway updates the current cross-chain evidence storing condition F to F ', and then the evidence storing transaction occurring on the block chain A is screened according to F'.
The embodiment of the present application further provides a cross-chain evidence storing device, as shown in fig. 5, the cross-chain evidence storing device 500 includes:
a monitoring unit 501, configured to monitor a credit transaction on a target block chain;
the judging unit 502 is configured to judge whether the evidence storing transaction monitored by the monitoring unit 501 meets a preset cross-link evidence storing condition;
a cross-link processing unit 503, configured to, when the determination result of the determining unit 502 is satisfied, perform cross-link evidence storage processing on the evidence storage transaction, so as to store the relevant information of the evidence storage transaction in the block chain linked to the target block chain.
Optionally, the chain crossing evidence storing device further includes:
a receiving unit, configured to receive cross-chain update information, where the cross-chain update information includes: block height and cross-link evidence storage conditions;
and the updating unit is used for updating a preset cross-chain evidence storing condition to the cross-chain evidence storing condition in the cross-chain updating information when the block height of the target block chain reaches the block height in the cross-chain updating information.
Further, the cross-chain evidence storing device further comprises: an application programming interface;
the receiving unit is specifically configured to receive cross-chain update information input based on the application programming interface.
In one application scenario, a preset cross-chain evidence storing condition is associated with at least one block chain. The cross-chain processing unit 503 is specifically configured to, when the determination result of the determining unit 502 is satisfied, perform cross-chain evidence storage processing on the evidence storage transaction based on the blockchain associated with the preset cross-chain evidence storage condition, so as to store the relevant information of the evidence storage transaction in the blockchain linked with the target blockchain and associated with the preset cross-chain evidence storage condition.
In another application scenario, the cross-chain processing unit 503 is specifically configured to, when the determination result of the determining unit 502 is satisfied, perform cross-chain evidence storage processing on the evidence storage transaction based on a default blockchain linked with the target blockchain, so as to store the relevant information of the evidence storage transaction into the default blockchain.
It can be seen from above that, the technical scheme of this application is through monitoring the deposit card transaction on the target block chain, when the deposit card transaction that monitors satisfied the cross-chain deposit card condition of predetermineeing, deposit the card transaction to this and cross the chain and deposit the card and handle to this has realized the automation of crossing the chain and deposit the card, because whole process need not the user additionally to initiate and cross the chain and deposit the card request, so can improve the efficiency of crossing the chain and deposit the card to a certain extent.
The present application further provides another cross-chain evidence storing device, as shown in fig. 6, the cross-chain evidence storing device includes: a memory 601, a processor 602, and a computer program stored in the memory 601 and executable on the processor 602, wherein: the memory 601 is used to store software programs and modules, the processor 602 executes various functional applications and data processing by operating the software programs and modules stored in the memory 601, and the memory 601 and the processor 602 are connected by a bus.
Specifically, the processor 602 implements the following steps by running the above-mentioned computer program stored in the memory 601:
monitoring certificate storage transaction on a target block chain;
judging whether the monitored evidence storing transaction meets a preset cross-link evidence storing condition or not;
and if the judgment result is satisfied, performing cross-chain evidence storage processing on the evidence storage transaction so as to store the relevant information of the evidence storage transaction into the block chain linked with the target block chain.
Assuming the first possible implementation manner, in a second possible implementation manner based on the first possible implementation manner, the processor 602 further implements the following steps by running the computer program stored in the memory 601:
receiving cross-chain update information, wherein the cross-chain update information comprises: block height and cross-link warranty conditions;
and when the block height of the target block chain reaches the block height in the cross-chain updating information, updating a preset cross-chain evidence storing condition into the cross-chain evidence storing condition in the cross-chain updating information.
In a third possible implementation manner based on the second possible implementation manner, the receiving cross-chain update information is specifically: cross-chain update information based on application programming interface input is received.
In a fourth possible implementation manner based on the first possible implementation manner, the second possible implementation manner, or the third possible implementation manner, a preset cross-chain evidence condition is associated with at least one block chain;
the cross-chain evidence storing processing is carried out on the evidence storing transaction so as to store the relevant information of the evidence storing transaction into the block chain linked with the target block chain, and the method specifically comprises the following steps:
and performing cross-chain evidence storage processing on the evidence storage transaction based on the blockchain associated with the preset cross-chain evidence storage condition so as to store the relevant information of the evidence storage transaction into the blockchain which is linked with the target blockchain and is associated with the preset cross-chain evidence storage condition.
In a fifth possible implementation manner based on the first possible implementation manner, the second possible implementation manner, or the third possible implementation manner, the performing cross-chain evidence storage processing on the evidence-storing transaction to store the relevant information of the evidence-storing transaction in the block chain linked to the target block chain specifically includes:
and performing cross-chain evidence storage processing on the evidence storage transaction based on a default block chain linked with the target block chain so as to store the relevant information of the evidence storage transaction into the default block chain.
It can be seen from the above that, the technical scheme of this application is through monitoring the deposit certificate transaction on the target block chain, when the deposit certificate transaction that monitors satisfies the preset cross-chain deposit certificate condition, deposit certificate transaction to this and cross the chain and deposit certificate processing to this has realized the automation of cross-chain deposit certificate, because whole process need not the user additionally to initiate and cross the chain and deposit certificate request, so can improve the efficiency of cross-chain deposit certificate to a certain extent.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed, may implement the steps provided by the above-described method embodiments. Specifically, the computer program includes computer program code, which may be in one of a source code form, an object code form, an executable file or some intermediate form, and is not limited herein; the computer readable storage medium can be any entity or device capable of carrying the computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random Access Memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, and is not limited herein. It should be noted that the contents contained in the computer-readable storage medium can be increased or decreased as required by legislation and patent practice in the jurisdiction.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above described functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the present application. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
It should be noted that, the method and the details thereof provided in the foregoing embodiments may be combined with the apparatus provided in the embodiments, which are referred to each other and are not described again.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples 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 implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

Claims (10)

1. A cross-link evidence storing method is characterized by comprising the following steps:
monitoring certificate storage transaction on a target block chain;
judging whether the monitored evidence storing transaction meets a preset cross-link evidence storing condition or not;
if the judgment result is satisfied, performing cross-chain evidence storage processing on the evidence storage transaction so as to store the relevant information of the evidence storage transaction into a block chain linked with the target block chain;
wherein, when the cross-chain evidence storing condition is as follows: when the evidence storing transaction is related to a designated company, judging whether the monitored evidence storing transaction on the target block chain is related to the designated company, if so, determining that the judgment result is satisfied, namely, the monitored evidence storing transaction satisfies the preset cross-chain evidence storing condition, otherwise, determining that the judgment result is not satisfied, namely, the monitored evidence storing transaction does not satisfy the preset cross-chain evidence storing condition;
when the cross-chain evidence storing condition is as follows: if the evidence storing transaction occurs in the specific time period and is related to the designated company, determining whether the monitored evidence storing transaction on the target block chain occurs in the specific time period and is related to the designated company, if the evidence storing transaction occurs in the specific time period and is related to the designated company, determining that the determination result is satisfied, otherwise, determining that the determination result is not satisfied;
when the cross-chain evidence storing condition is as follows: when the block height of the block related to the evidence storage transaction is within a preset block height interval, judging whether the monitored block height of the block related to the evidence storage transaction on the target block chain is within the block height interval, if so, determining that the judgment result is satisfied, otherwise, determining that the judgment result is not satisfied;
when the cross-chain evidence storing condition is as follows: and if the block height of the block related to the evidence storing transaction is within the preset block height interval and is related to the designated company, judging whether the monitored block height of the block related to the evidence storing transaction on the target block chain is within the block height interval and is related to the designated company, if so, determining that the judgment result is satisfied, and if not, determining that the judgment result is not satisfied.
2. The cross-chain evidence storing method according to claim 1, further comprising:
receiving cross-chain update information, wherein the cross-chain update information comprises: block height and cross-link warranty conditions;
and when the block height of the target block chain reaches the block height in the cross-chain updating information, updating a preset cross-chain evidence storing condition into the cross-chain evidence storing condition in the cross-chain updating information.
3. The cross-chain evidence storing method according to claim 2, wherein the receiving of the cross-chain update information specifically comprises: cross-chain update information based on application programming interface input is received.
4. The cross-chain evidence storing method according to any one of claims 1 to 3, wherein a preset cross-chain evidence storing condition is associated with at least one blockchain;
the cross-chain evidence storing processing is carried out on the evidence storing transaction so as to store the relevant information of the evidence storing transaction into the block chain linked with the target block chain, and the method specifically comprises the following steps:
and performing cross-chain evidence storage processing on the evidence storage transaction based on the blockchain associated with the preset cross-chain evidence storage condition so as to store the relevant information of the evidence storage transaction into the blockchain which is linked with the target blockchain and is associated with the preset cross-chain evidence storage condition.
5. The cross-chain evidence storing method according to any one of claims 1 to 3, wherein the cross-chain evidence storing process is performed on the evidence storing transaction to store the relevant information of the evidence storing transaction in the block chain linked to the target block chain, specifically:
and performing cross-chain evidence storage processing on the evidence storage transaction based on a default block chain linked with the target block chain so as to store the relevant information of the evidence storage transaction into the default block chain.
6. A cross-chain evidence storing device is characterized by comprising:
the monitoring unit is used for monitoring the certificate storage transaction on the target block chain;
the judging unit is used for judging whether the evidence storing transaction monitored by the monitoring unit meets a preset cross-link evidence storing condition or not;
the cross-chain processing unit is used for performing cross-chain evidence storage processing on the evidence storage transaction when the judgment result of the judgment unit is satisfied so as to store the relevant information of the evidence storage transaction into the block chain linked with the target block chain;
wherein, when the cross-chain evidence storing condition is as follows: when the evidence storing transaction is related to a designated company, judging whether the monitored evidence storing transaction on the target block chain is related to the designated company, if so, determining that the judgment result is satisfied, namely the monitored evidence storing transaction meets the preset cross-chain evidence storing condition, otherwise, determining that the judgment result is not satisfied, namely the monitored evidence storing transaction does not meet the preset cross-chain evidence storing condition;
when the cross-chain evidence storing condition is as follows: if the evidence storing transaction occurs in the specific time period and is related to the designated company, determining whether the monitored evidence storing transaction on the target block chain occurs in the specific time period and is related to the designated company, if the evidence storing transaction occurs in the specific time period and is related to the designated company, determining that the determination result is satisfied, otherwise, determining that the determination result is not satisfied;
when the cross-chain evidence storing condition is as follows: when the block height of the block related to the evidence storing transaction is within a preset block height interval, judging whether the monitored block height of the block related to the evidence storing transaction on the target block chain is within the block height interval, if so, determining that the judgment result is satisfied, and if not, determining that the judgment result is not satisfied;
when the cross-chain evidence storing condition is as follows: and if the block height of the block related to the evidence storing transaction is within the preset block height interval and is related to the designated company, judging whether the monitored block height of the block related to the evidence storing transaction on the target block chain is within the block height interval and is related to the designated company, if so, determining that the judgment result is satisfied, and if not, determining that the judgment result is not satisfied.
7. The cross-chain evidence preservation device according to claim 6, further comprising:
a receiving unit, configured to receive cross-chain update information, where the cross-chain update information includes: block height and cross-link warranty conditions;
and the updating unit is used for updating a preset cross-chain evidence storing condition to the cross-chain evidence storing condition in the cross-chain updating information when the block height of the target block chain reaches the block height in the cross-chain updating information.
8. The cross-chain evidence keeping device of claim 7, further comprising: an application programming interface;
the receiving unit is specifically configured to receive cross-chain update information input based on the application programming interface.
9. A cross-chain storage device comprising a memory and a processor;
the memory stores a computer program which, when executed by the processor, implements the steps of the cross-link forensic method of any of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the cross-chain forensic method according to any of claims 1 to 5.
CN202011604937.1A 2020-12-29 2020-12-29 Cross-link certificate storage method and related device Active CN112699136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011604937.1A CN112699136B (en) 2020-12-29 2020-12-29 Cross-link certificate storage method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011604937.1A CN112699136B (en) 2020-12-29 2020-12-29 Cross-link certificate storage method and related device

Publications (2)

Publication Number Publication Date
CN112699136A CN112699136A (en) 2021-04-23
CN112699136B true CN112699136B (en) 2023-04-14

Family

ID=75512282

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011604937.1A Active CN112699136B (en) 2020-12-29 2020-12-29 Cross-link certificate storage method and related device

Country Status (1)

Country Link
CN (1) CN112699136B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113537745A (en) * 2021-07-06 2021-10-22 招商银行股份有限公司 Business processing method, device, medium and computer program product
CN114979171B (en) * 2022-08-01 2022-11-01 北京微芯区块链与边缘计算研究院 Government affair data sharing control method based on block chain intelligent contract

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN110020902B (en) * 2018-12-27 2021-01-08 创新先进技术有限公司 Cross-link certificate storage method, access method, device and electronic equipment
CN110046998B (en) * 2019-01-31 2020-04-14 阿里巴巴集团控股有限公司 Cross-chain right using system, method, device, electronic equipment and storage medium
CN110543488B (en) * 2019-09-11 2022-06-07 深圳市迅雷网络技术有限公司 Verification node updating method, device and equipment
CN111181968B (en) * 2019-12-30 2021-09-21 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Also Published As

Publication number Publication date
CN112699136A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN107911373B (en) A kind of block chain right management method and system
CN111291060B (en) Method, device and computer readable medium for managing blockchain nodes
CN108776929A (en) Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN113347164B (en) Block chain-based distributed consensus system, method, device and storage medium
CN107480990A (en) Block chain bookkeeping methods and device
CN111464518A (en) Method and device for sending and verifying cross-link communication data
CN105247529A (en) Synchronizing credential hashes between directory services
CN108022090B (en) Virtual account management method, device, system and readable storage medium
CN111754216A (en) Automatic switching method for payment link
CN112699136B (en) Cross-link certificate storage method and related device
CN102419852A (en) Online/offline invoicing automatic switching method based on password key
CN113645278B (en) Cross-chain message transmission method, device and storage medium of block chain
CN111488372A (en) Data processing method, device and storage medium
CN112202564B (en) Transaction transfer method and device, electronic equipment and readable storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN116112175A (en) Service processing method, device and medium of digital twin network based on block chain
CN110324365A (en) Without key front end cluster system, application method, storage medium, electronic device
CN109150981B (en) Block chain network networking method, device, equipment and computer readable storage medium
CN110210252A (en) A kind of active security method, device and the server of electronic data
CN112417052B (en) Data synchronization method, device, equipment and storage medium in block chain network
CN115865537B (en) Privacy computing method based on centralized system management, electronic equipment and storage medium
CN117938867A (en) Multi-block chain data processing method, device, equipment, medium and product
CN115345729A (en) Credit card issuing method and device, electronic equipment and storage medium
KR20210127231A (en) Energized Identity based blockchain

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
GR01 Patent grant
GR01 Patent grant