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

Cross-link certificate storage method and related device Download PDF

Info

Publication number
CN112699136A
CN112699136A CN202011604937.1A CN202011604937A CN112699136A CN 112699136 A CN112699136 A CN 112699136A CN 202011604937 A CN202011604937 A CN 202011604937A CN 112699136 A CN112699136 A CN 112699136A
Authority
CN
China
Prior art keywords
chain
cross
evidence
transaction
evidence storing
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.)
Granted
Application number
CN202011604937.1A
Other languages
Chinese (zh)
Other versions
CN112699136B (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 storing method and a related device, which can realize automation of cross-chain certificate storing and improve efficiency of cross-chain certificate storing.
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 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.
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 cross-chain evidence storage processing is performed on the evidence storage transaction, so as to store the relevant information of the evidence storage transaction into 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.
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 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 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.
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 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.
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-link system provided herein;
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 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 blockchain and cross-chain technologies, and some concepts related to the embodiments of the present application will be described below for the sake of understanding.
Block chains: the block chain data structure takes blocks (blocks) confirmed by a consensus mechanism as basic units, data in the block chain are distributed in the blocks which are connected in time, the 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 in a way of calculating the Hash value, and the block chain data structure has the characteristics of being not falsifiable, open and transparent.
And (3) deposit and certificate transaction: 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 fixedly outputting, and original input data cannot be retrieved by decrypting the hash value, which is a one-way encryption function. 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 nodes 12 in blockchain 10, and a cross-chain gateway 21 that can communicate with nodes 22 in 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 book of the blockchain 10, and 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 a deposit certificate transaction on a target block chain;
in this embodiment of the present application, a cross-link credentialing device (for example, a cross-link gateway) connected to a target blockchain may monitor a credentialing transaction on the target blockchain, 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 connects more than two block chains, each block chain connected with the inter-chain evidence storing device can be used as a target block chain, so as to respectively execute the inter-chain evidence storing method shown in fig. 2 for each target block chain; alternatively, the inter-chain evidence storing device takes some, or all of the blockchains connected to the inter-chain evidence storing device as the target blockchain based on the setting or indication 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 cross-chain evidence storing processing, or the evidence storing transaction may be stored in a default block chain linked to the target block chain through cross-chain evidence storing processing, 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 cross-chain evidence storing processing, which is not limited herein. Two application scenarios provided by the present application are further explained below:
in one application scenario, the cross-chain warranty 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 block chains linked to the target block chain may be set as a default block chain, 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-chain evidence storing condition may be set by a user in a customized manner, for example, the cross-chain 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-link 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-link 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 warranty 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 warranty conditions and block height. The user may input a new cross-link warranty 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 chain-crossing evidence storage condition, a user can control data needing chain-crossing evidence storage in a finer granularity, and waste caused by chain-crossing 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 friendly to users.
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, user U1 may operate on blockchain a1 through a server or client or other device, and blockchain a1 is linked with blockchain B through cross-chain gateway 1, cross-chain gateway 2.
As can be seen in fig. 4, user U1 may have previously deployed a vouching system on blockchain a, which may be any existing system capable of vouching on a single blockchain. Then, the user U1 initializes the cross-chain gateway 1 for cross-chain credentialing transfer, and during the initialization, the initialized cross-chain credentialing condition can be specified by configuration, and then the cross-chain 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. User U1 needs to update the cross-link credential condition at some point, either for business or other reasons. User U1 inputs a new cross-chain credit condition F' and tile height H by re-entering the API interface to generate cross-chain update 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'.
An 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-chain processing unit 503, configured to perform cross-chain evidence storage processing on the evidence storage transaction when the determination result of the determining unit 502 is satisfied, 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 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.
Further, the chain crossing 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 warranty condition is associated with at least one blockchain. 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 storing processing on the evidence storing transaction based on the block chain associated with the preset cross-chain evidence storing condition, so as to store the relevant information of the evidence storing transaction into the block chain linked with the target block chain and associated with the preset cross-chain evidence storing 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 storing processing on the evidence storing transaction based on a default block chain linked with the target block chain, so as to store the relevant information of the evidence storing 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 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 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.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner based on the above first possible implementation manner, the processor 602 further implements the following steps by running the above 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 specifically includes: 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 credentialing processing on the credentialing transaction to store the relevant information of the credentialing transaction in the block chain linked with 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 will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned 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-mentioned 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 for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It should be noted that, the methods and the details thereof provided in the foregoing embodiments may be combined with the apparatuses provided in the embodiments, which are referred to each other and are not described again.
Those of ordinary skill in the art would 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 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.
2. The cross-chain credentialing method of 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 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.
7. The cross-chain evidence keeping device of 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-chain 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 true CN112699136A (en) 2021-04-23
CN112699136B 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)

Cited By (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
CN114979171A (en) * 2022-08-01 2022-08-30 北京微芯区块链与边缘计算研究院 Government affair data sharing control method based on block chain intelligent contract

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020902A (en) * 2018-12-27 2019-07-16 阿里巴巴集团控股有限公司 Card method and access method, device, electronic equipment are deposited across chain
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN110543488A (en) * 2019-09-11 2019-12-06 深圳市网心科技有限公司 Verification node updating method, device and equipment
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN110020902A (en) * 2018-12-27 2019-07-16 阿里巴巴集团控股有限公司 Card method and access method, device, electronic equipment are deposited across chain
CN110046998A (en) * 2019-01-31 2019-07-23 阿里巴巴集团控股有限公司 Across chain use weighs system and method, device, electronic equipment, storage medium
CN110543488A (en) * 2019-09-11 2019-12-06 深圳市网心科技有限公司 Verification node updating method, device and equipment
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WURUIQI: "一文读懂跨链网关的设计理念", 《HTTPS://TECH.HYPERCHAIN.CN》 *
WURUIQI: "走进Cosmos之入门", 《HTTPS://TECH.HYPERCHAIN.CN》 *

Cited By (3)

* 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
CN114979171A (en) * 2022-08-01 2022-08-30 北京微芯区块链与边缘计算研究院 Government affair data sharing control method based on block chain intelligent contract
CN114979171B (en) * 2022-08-01 2022-11-01 北京微芯区块链与边缘计算研究院 Government affair data sharing control method based on block chain intelligent contract

Also Published As

Publication number Publication date
CN112699136B (en) 2023-04-14

Similar Documents

Publication Publication Date Title
WO2020168937A1 (en) Block chain multi-party witness method, apparatus and device, and computer-readable storage medium
CN107911373B (en) A kind of block chain right management method and system
CN109302415B (en) A kind of authentication method, block chain node and storage medium
CN111291060B (en) Method, device and computer readable medium for managing blockchain nodes
CN107315786A (en) Business datum storage method and device
CN111371905B (en) Block chain layering consensus proving system and method based on cloud computing
CN109919771B (en) Industrial internet transaction device applying hierarchical block chain technology
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN112699136B (en) Cross-link certificate storage method and related device
CN102017573A (en) Method and device for dynamic deployment of trust bridges in an ad hoc wireless network
CN108022090B (en) Virtual account management method, device, system and readable storage medium
CN102419852A (en) Online/offline invoicing automatic switching method based on password key
Cong et al. A blockchain consensus protocol with horizontal scalability
CN114881648A (en) Block chain interconnection method and equipment based on prediction machine and oriented to cross-chain asset replacement scene
CN112950201A (en) Node management method and related device applied to block chain system
CN113901505A (en) Data sharing method and device, electronic equipment and storage medium
CN109150981B (en) Block chain network networking method, device, equipment and computer readable storage medium
Cong et al. DTNB: A blockchain transaction framework with discrete token negotiation for the delay tolerant network
CN112202564B (en) Transaction transfer method and device, electronic equipment and readable storage medium
CN110210252A (en) A kind of active security method, device and the server of electronic data
CN113449322A (en) Data sharing method and device based on block chain, electronic equipment and readable medium
CN115865537B (en) Privacy computing method based on centralized system management, electronic equipment and storage medium
CN112200680A (en) Block link point management method, device, computer and readable storage medium
Durán et al. An architecture for easy onboarding and key life-cycle management in blockchain applications
CN109523440A (en) A kind of equipment based on block chain reports method, server, system and medium for repairment

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