A secure multi-distributed ledger system
By monitoring and verifying instructions from multiple distributed ledgers and using Merkle trees to update records, the issues of data consistency and security among DLTs are resolved, enabling secure and reliable data management across multiple DLTs.
Patent Information
- Application Number
- CN202180066280.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-20
- Filing Date
- 2021-11-19
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-11-19
AI Technical Summary
With the growth and development of distributed ledger technology (DLT), different entities find it difficult to securely and reliably manage data using a single DLT, and face security and consistency challenges when migrating data, especially when using multiple DLTs, which may lead to data inconsistency and security vulnerabilities.
By monitoring multiple distributed ledgers, identifying and verifying instructions to be executed, and storing the execution results in electronic data records, while using Merkle trees to update records, the order and consistency of instructions are ensured. Multiple DLTs are used to independently control data and broadcast and verify it when necessary.
It enhances data security and reliability, avoids potential security vulnerabilities of a single DLT, ensures data consistency and integrity across different DLTs, and reduces the risk of data loss and fraud.
Smart Images

Figure CN116324781B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to methods, systems, electronic devices, and computer programs for executing instructions using any one of two or more different distributed ledgers, such as enabling secure control of user-related data using any one of two or more different distributed ledgers. Background Technology
[0002] Distributed ledger technology (DLT) has broad application potential, providing a method for securely and reliably storing data without the need for a central data authentication authority. Therefore, DLT can bring a range of technological advantages across a wide range of fields, including improved data transparency, more robust data storage independent of specific storage entities, improved data security, and enhanced fraud resistance. It has already been applied in various areas such as power distribution and peer-to-peer cloud storage.
[0003] Blockchain is an example of DLT (Digital Technology) and was first published in 2009 under the name of Satoshi Nakamoto in a white paper titled "Bitcoin: A Peer-to-Peer Electronic Cash System." A copy of the white paper can be found at: https: / / bitcoin.org / bitcoin.pdf. This white paper proposed a peer-to-peer version of electronic cash called "Bitcoin," which utilizes technology later known as blockchain to record peer-to-peer transfers of Bitcoin.
[0004] Distributed ledgers, such as blockchains or Block DAGs (as described in the paper "Inclusive Block Chain Protocols" by Yoad Lewenberg et al. - https: / / fc15.ifca.ai / preproceedings / paper_101.pdf), are digital ledgers or electronic data records that can be used to store valid, immutable records of data. They can be decentralized because they do not necessarily require a central authority to add data to the distributed ledger or maintain its integrity. In some cases, they are permissionless, meaning any entity / node can write data to or read data from the distributed ledger. In other cases, they are permissioned, meaning read and / or write permissions are granted only to authorized entities / nodes participating in the distributed ledger. Data can be added to a distributed ledger by an entity that broadcasts a "transaction" to the network of nodes participating in the distributed ledger network, where the transaction includes the data to be added to the distributed ledger and cryptographic elements conforming to the distributed ledger protocol. Then, each node participating in the distributed ledger network can check the validity of the transaction. If it is authorized, it can immediately add the transaction to its local copy of the distributed ledger, or add the transaction to the block of transactions it is processing, or add the transaction to the list of unconfirmed transactions, waiting to be included in the broadcast block of another node.
[0005] While processing a transaction block, each node can also add other new transactions broadcast to the node network to its new block. After a period of time, a node publishes its new block to other nodes in the network. The new block includes various new transactions and cryptographic data binding the new block to the previous block in the blockchain or the previous block in the block DAG. By binding consecutive blocks together cryptographically in this way, if a block in the blockchain or block DAG is modified at any time later (e.g., someone intends to fraudulently change data stored in the blockchain or block DAG), it can be easily detected.
[0006] After a node publishes a new block, other nodes in the network can inspect the contents of the new block. If accepted, they add the entire block to their local copy of the distributed ledger. Additionally and optionally, each node can now begin processing its next new block, which will again be cryptographically bound to one or more of its predecessors. Thus, it can be seen that the blockchain and the block DAG grow with each new block published and accepted, with each newly accepted block cryptographically bound to one or more of its predecessors. The process by which nodes inspect published new transactions and new blocks and accept them into their copies of the distributed ledger is commonly referred to as the "consensus" mechanism.
[0007] The white paper, "Bitcoin: A Peer-to-Peer Electronic Cash System," proposes a specific protocol for the Bitcoin blockchain. This protocol covers aspects such as the format and type of information to be included in transactions, the format and type of information to be included in new blocks, the cryptographic techniques and formulations applied to transactions and new blocks, and the specific type of consensus mechanism to be used (for example, in Bitcoin, the consensus mechanism uses hash-based proof-of-work in each block of the blockchain, which is also the cryptographic link between each consecutive block). If a broadcast transaction does not fully comply with the protocol, it will not be included in any new block. Similarly, if a new block does not fully comply with the protocol, it will not be accepted onto the blockchain by the node network.
[0008] While DLTs, including blockchains and block DAGs, were initially proposed to support the cryptocurrency Bitcoin, many other uses have since been discovered. Initially, new cryptocurrencies such as Litecoin, Ripple, and Namecoin were launched, each running on its own specific distributed ledger network and using its own specific DLT protocol. Since then, it has been recognized that DLTs may have broader applications than cryptocurrencies and can be used in any scenario where valid and immutable data records are useful. For example, Ethereum and Corda are DLTs created for the use of more expressive smart contracts, which are computer programs or instructions that run on DLTs and can be configured to execute specific processes when specific data appears on the distributed ledger. Another example of a DLT is Hashgraph, which uses block DAGs. This has led to a rapid increase in the number of different DLTs currently existing, each tailored to its specific use case, and this number is expected to continue to increase as the technology further develops and gains acceptance. Summary of the Invention
[0009] According to a first aspect of this disclosure, a computer-implemented method is provided for executing instructions issued by any one of two or more different distributed ledgers. The method includes: monitoring a plurality of distributed ledgers to obtain distributed ledger transactions containing instructions to be executed; identifying a plurality of first distributed ledger transactions, wherein each of the plurality of first distributed ledger transactions appears in any one of the plurality of distributed ledgers, and each of the plurality of first distributed ledger transactions includes instructions to be executed; verifying at least a portion of a plurality of first instructions in the identified plurality of first distributed ledger transactions; and for each of the plurality of first instructions that has been verified, executing the instruction; and storing the result of the executed instruction in an electronic data record.
[0010] The method may further include: after executing a verified instruction among the plurality of first instructions, storing a first verification record in at least one of the plurality of distributed ledgers that indicates each result stored in the electronic data record.
[0011] The first verification record may indicate the execution order of the verified instructions among the plurality of first instructions. Additionally or optionally, the first verification record may indicate the storage order of the results of the executed plurality of first instructions in the electronic data record.
[0012] The electronic data record may include a Merkle tree, wherein the method further includes updating the Merkle tree in the electronic data record at least in part based on each stored result of an executed instruction among the plurality of first instructions, wherein the first verification record includes the first Merkle root of the updated Merkle tree in the electronic data record.
[0013] The method may further include: after executing the verified instruction among the plurality of first instructions, generating a first instruction record based on the executed instruction among the plurality of first instructions, wherein the first verification record further includes the first instruction record.
[0014] The first instruction record can indicate the execution order of the verified instructions among the plurality of first instructions.
[0015] The first instruction record may include a second Merkle root generated using at least a portion of the executed instructions from the plurality of first instructions. Additionally or optionally, the first instruction record may include a value (e.g., a hash value) that uniquely indicates at least a portion of the executed instructions from the plurality of first instructions.
[0016] The first verification record includes a sequence identifier that indicates the relative order of verification records in at least one of the multiple distributed ledgers.
[0017] The method may further include: after storing the first verification record in at least one of the plurality of distributed ledgers, checking whether the first verification record exists in at least one of the one or more distributed ledgers; if the first verification record does not exist in at least one of the plurality of distributed ledgers, then re-inserting the first verification record into at least one of the one or more distributed ledgers.
[0018] The method may further include: storing a copy of each of the plurality of first instructions that has been executed; checking whether each of the plurality of first instructions exists in at least one of the plurality of distributed ledgers; and for each of the plurality of first instructions that does not exist in at least one of the plurality of distributed ledgers, broadcasting a new distributed ledger transaction to at least one of the plurality of distributed ledgers, the new distributed ledger transaction including the executed instruction.
[0019] The method may further include: determining the execution order of a plurality of verified first instructions; and executing the plurality of verified first instructions according to the determined order.
[0020] The method may further include: identifying a plurality of second distributed ledger transactions, wherein each of the plurality of second distributed ledger transactions appears in any of the plurality of distributed ledgers, and each of the plurality of second distributed ledger transactions includes an instruction to be executed; verifying at least a portion of the plurality of second instructions; and, for each verified instruction among the plurality of second instructions: executing the instruction; and storing the result of the executed instruction in the electronic data record.
[0021] The method may further include: after executing a verified instruction among the plurality of second instructions, storing a second verification record in at least one of the plurality of distributed ledgers, wherein the second verification record indicates the result stored in the electronic data record as the result of each of the executed instructions among the plurality of second instructions.
[0022] The second verification record can indicate the execution order of the verified instructions among the plurality of second instructions.
[0023] The electronic data may include a Merkle tree, wherein the method further includes: further updating the Merkle tree in the electronic data record based at least in part on the stored result of each of the executed instructions in the plurality of second instructions, wherein the second verification record includes a third Merkle root of the further updated Merkle tree of the electronic data record.
[0024] The method may further include: after executing the verified instruction among the plurality of second instructions, generating a second instruction record based on the executed instructions among the plurality of second instructions, wherein the second verification record includes the second instruction record.
[0025] The second instruction record can indicate the execution order of the verified instructions among the plurality of second instructions.
[0026] The second instruction record may include a fourth Merkle root generated using at least a portion of the executed instructions from the plurality of second instructions. Additionally or optionally, the second instruction record may include a value (e.g., a hash value) that uniquely indicates at least a portion of the executed instructions from the plurality of second instructions.
[0027] The second verification record may include a sequence identifier indicating that the second verification record is located after the first verification record.
[0028] The method may further include: determining the execution order of the verified instructions among the plurality of second instructions; and executing the verified instructions among the plurality of second instructions according to the determined order.
[0029] At least one of the plurality of first distributed ledger transactions may appear in a first distributed ledger of the plurality of distributed ledgers and include instructions for executing a process associated with the first user; at least one other of the plurality of first distributed ledger transactions may appear in a second distributed ledger of the plurality of distributed ledgers and include instructions for executing additional processes associated with the first user.
[0030] Instructions for executing processes associated with the first user may include instructions for modifying data associated with the first user. Instructions for executing additional processes associated with the first user may include instructions for further modifying data associated with the first user.
[0031] At least one of the plurality of first distributed ledger transactions may appear in the first distributed ledger of the plurality of distributed ledgers and may include instructions for executing a process associated with the first user; at least one of the plurality of second distributed ledger transactions may appear in the second distributed ledger of the plurality of distributed ledgers and may include instructions for executing additional processes associated with the first user.
[0032] Instructions for executing processes associated with the first user may include instructions for modifying data associated with the first user. Instructions for executing additional processes associated with the first user may include instructions for further modifying data associated with the first user.
[0033] Each of the plurality of first instructions may include an identifier of the user associated with the instruction, and each result of the executed instruction is stored in electronic data storage in association with the user associated with the executed instruction.
[0034] The method may further include: receiving a first status query regarding the status of electronic data stored in the electronic data storage associated with a first user; and in response to the first status query, conveying a status notification, wherein the status notification includes: an indication of the status of the electronic data associated with the first user, and a status certificate for verifying the indicated status of the electronic data associated with the first user.
[0035] The first state query may relate to the current state of the electronic data associated with the first user. The state notification may also instruct a verification record stored in one or more of the plurality of distributed ledgers, wherein the verification record corresponds to the stored result of an executed instruction record that resulted in the current state of the data associated with the first user.
[0036] The first state query may also include the identifier of a verification record stored in one or more of the plurality of distributed ledgers, wherein the indication of the electronic data status may be an indication of the electronic data status associated with the first user when the verification record is identified.
[0037] The electronic data record may include a Merkle tree. The state proof includes a Merkle proof. The verification record corresponding to the indicated state of the electronic data associated with the first user includes a Merkle root generated at least in part based on the stored result of an executed instruction, wherein the executed instruction is an instruction that results in the indicated state of the electronic data associated with the first user.
[0038] According to a second aspect of this disclosure, a computer program (e.g., a non-transitory computer program) is provided for performing the method described in the first aspect when it is run on at least one processor of an electronic device.
[0039] According to a third aspect of this disclosure, an electronic device (e.g., an operator disclosed herein) is provided for performing the methods of the first aspect. For example, the electronic device may include one or more processors and a memory, wherein the memory includes a computer program configured to perform the methods of the first aspect when executed on any of the one or more processors.
[0040] According to a fourth aspect of this disclosure, a computer-implemented method is provided for monitoring the execution of instructions issued by any one of two or more different distributed ledgers. The method includes: monitoring a plurality of distributed ledgers to obtain distributed ledger transactions containing instructions to be executed; identifying a plurality of first distributed ledger transactions, wherein each of the plurality of first distributed ledger transactions appears in any one of the plurality of distributed ledgers, and each of the plurality of first distributed ledger transactions includes instructions to be executed; identifying a first verification record stored in at least one of the plurality of distributed ledgers, wherein the first verification information is used to verify the execution of the instructions among the plurality of first instructions; and using the first verification information to verify the execution of the instructions.
[0041] The result of each executed instruction can be stored in an electronic data record, wherein the first verification record may include a first data modification statement that instructs the electronic data record storing the execution result of the instruction to be verified to use at least the first data modification statement.
[0042] The execution of the verification instruction can also use a prior verification record stored in at least one of the plurality of distributed ledgers and located before the first verification record.
[0043] The prior verification record may include prior data modification statements, wherein the prior data modification statements indicate electronic data records prior to the execution of the verification instruction, and the execution of the verification instruction uses at least the prior data modification statement.
[0044] The electronic data record may include a Merkle tree, wherein the first data modification statement includes a first Merkle root, and the prior data modification statement includes a prior Merkle root.
[0045] Execution of verification instructions may include verifying the execution order of at least a portion of the plurality of first instructions. Optionally, verifying the execution order of at least a portion of the plurality of first instructions may also use one or more other verification records.
[0046] The method may further include: receiving a first state query from an electronic data record storing the execution result of each instruction regarding the current state of data associated with a first user; and, in response to the first state query, conveying a state notification, wherein the state notification includes: an indication of the current state of the data associated with the first user; an identifier of a verification record stored in one or more of the plurality of distributed ledgers, the verification record including a verification record for verifying the indicated current state of the data associated with the first user; and a state certificate for verifying the indicated state of the electronic data associated with the first user.
[0047] The method may further include: receiving a second status query about the data status associated with a first user from an electronic data record storing the execution result of each instruction, wherein the second status query includes an identifier of a verification record stored in one or more distributed ledgers among the plurality of distributed ledgers; and, in response to the second status query, conveying a status notification, wherein the status notification includes: an indication of the data status associated with the first user when the verification record is identified, and a status certificate used to verify the indicated status of the electronic data associated with the first user when the verification record is identified.
[0048] According to a fifth aspect of this disclosure, a computer program (e.g., a non-transitory computer program) is provided for performing the method described in the fourth aspect when executed on at least one processor of an electronic device.
[0049] According to a sixth aspect of this disclosure, an electronic device (e.g., a monitoring entity disclosed herein) is provided for performing the methods of the fourth aspect. For example, the electronic device may include one or more processors and a memory, wherein the memory includes a computer program configured to perform the methods of the fourth aspect when executed on any of the one or more processors.
[0050] According to a seventh aspect of this disclosure, a computer-implemented method is provided for a first user to verify the status of data associated with and stored in an electronic data record. The method includes: outputting a status query regarding the status of the data associated with the first user in the electronic data record, wherein the status query includes an identifier of the first user; receiving a status notification, wherein the status notification includes: an indication of the status of the data associated with the first user, and a status certificate for verifying the indicated status of the electronic data associated with the first user; identifying a verification record of one or more distributed ledgers among a plurality of distributed ledgers for verifying the indication of the status of the data associated with the first user; and using the status certificate and the identified verification record to verify the indication of the status of the data associated with the first user.
[0051] The status notification may include instructions to verify the record.
[0052] According to the eighth aspect of this disclosure, a computer program (e.g., a non-transitory computer program) is provided for performing the method described in the seventh aspect when it is run on at least one processor of an electronic device.
[0053] According to a ninth aspect of this disclosure, an electronic device (e.g., a first user or a second user disclosed herein) is provided for performing the method described in the seventh aspect. For example, the electronic device may include one or more processors and a memory, wherein the memory includes a computer program configured to perform the method described in the seventh aspect when executed on any of the one or more processors.
[0054] According to a tenth aspect of this disclosure, a computer-implemented method is provided for issuing an executable instruction using any one of a plurality of different distributed ledgers. The method includes: issuing a first executable instruction to a first distributed ledger among the plurality of different distributed ledgers, wherein the first instruction includes an identifier of a first user, and execution of the first instruction causes modification of data stored in an electronic data record associated with the first user; and issuing a second executable instruction to a second distributed ledger among the plurality of different distributed ledgers, wherein the second instruction includes an identifier of the first user, and execution of the second instruction causes modification of data stored in the electronic data record associated with the first user.
[0055] According to the eleventh aspect of this disclosure, a computer program (e.g., a non-transitory computer program) is provided for performing the method described in the tenth aspect when it is run on at least one processor of an electronic device.
[0056] According to a twelfth aspect of this disclosure, an electronic device (e.g., an operator disclosed herein) is provided for performing the method of the tenth aspect. For example, the electronic device may include one or more processors and a memory, wherein the memory includes a computer program configured to perform the method of the first aspect when executed on any of the one or more processors. Attached Figure Description
[0057] The embodiments disclosed herein will be described by way of example only in conjunction with the following accompanying drawings, wherein:
[0058] Figure 1 A schematic diagram of a system 100 according to one aspect of this disclosure is shown;
[0059] Figure 2 It shows Figure 1 The system is shown with a visualization of the data records, the first DLT, and the second DLT.
[0060] Figure 3 An example of representation is shown. Figure 1 The diagram shows a sequence of an example flow of the first user modifying their associated data in the system.
[0061] Figure 4 It was shown as Figure 3 A visual example of data contained in a blockchain transaction, which is part of the process shown.
[0062] Figure 5 It shows Figure 4 A visual example of the data contained in the instructions of a blockchain transaction;
[0063] Figure 6 It was shown as Figure 3 A visual example of the data contained in the verification record, which is part of the process shown;
[0064] Figure 7 It shows Figure 1 An example of a Merkle tree for the second-level data records of the system shown;
[0065] Figure 8 It shows the use of Figure 6 An example of a Merkle tree for the instructions to verify the record is shown;
[0066] Figure 9 An example of a fork in a blockchain is shown;
[0067] Figure 10 It was shown as Figure 3 Examples of instructions and verification records in the first and second DLTs, which are part of the process shown;
[0068] Figure 11 It shows that, Figure 1 The diagram shows a sequence of an example process in which the first user in the system verifies the current state of their data in the second-level data record. Detailed Implementation
[0069] The inventors have recognized that as distributed ledger technology (DLT) grows and evolves, it may become increasingly difficult for different entities to use it with confidence, security, and reliability. For example, if a particular DLT is chosen to manage data or assets / data assets (such as financial assets / tokens, like digital currencies or cryptocurrencies, or any other form of data / information / instructions to be securely stored or operated via DLT), it may be difficult to migrate the data or assets / data assets to a different DLT if the initially chosen DLT proves insecure, unreliable, or obsolete. Therefore, the inventors have realized that using two or more different DLTs to control the same data can be beneficial. This can enhance the data security and reliability of the DLT because the stored data will no longer be tied to a single, specific DLT platform that may suffer from any number of known / unknown security vulnerabilities, attacks, and / or other defects / flaws in the future. However, this presents several different technical challenges. For example, if the same data can be controlled using two or more different DLTs, it can be modified independently through two different, independent mechanisms. This can lead to security and stability vulnerabilities due to inconsistencies and / or incorrect ordering of transactions / instructions related to data processing. Furthermore, if data from two or more DLTs is not consistently updated, inaccuracies / inconsistencies may exist between the different DLTs, potentially indicating further security / stability risks. This can be significant when the controlled data is cryptocurrency, for example, leading to double-spending or other types of accidental / intentional fraud, and is generally also important for all types of DLTs and data records. The resulting technical problems and the inventors' solutions will be detailed later, particularly regarding handling blockchain rollbacks.
[0070] Throughout the following disclosure, the terms “blockchain,” “distributed ledger,” “blockchain technology,” and “distributed ledger technology (DLT)” are used interchangeably. It should be understood that a blockchain is a specific type of DLT, but the invention is equally applicable to other types of DLTs, such as block DAGs. Therefore, wherever the term “blockchain” is used, it should be understood that this disclosure applies equally to any other type of DLT. Furthermore, throughout the following disclosure, the term “transaction” is used in relation to DLT. Those skilled in the art will understand that “transaction” in this context is not limited to the transfer of ownership of something, such as currency. Rather, a “transaction” is a way of placing some form of information on a DLT. For example, an entity may broadcast a “transaction” to be placed on a DLT, which includes information to be placed on the DLT and any other data items required to accept the transaction on the DLT (e.g., public key, signature, hash value, etc.). The information to be placed on the DLT may relate to the financial transfer of currency, but it can also be any other type of data or information (e.g., a piece of data that an entity wishes to store on the DLT for later reference, or instructions for performing certain further processing, such as through a computer program that can be triggered by instructions (e.g., a smart contract)). Therefore, alternative terms for "transaction" can be used, such as DLT / blockchain "instruction" or DLT / blockchain "message".
[0071] Figure 1 A schematic diagram of a system 100 according to one aspect of this disclosure is shown. System 100 includes an operator 110, an electronic data record 115 at least partially controlled / maintained by operator 110, a first DLT network 120, a second DLT network 130, a first user 140, a second user 150, and a monitoring entity 160. Each of operator 110, first user 140, second user 150, and monitoring entity 160 can be implemented as part of any suitable electronic computing device / entity, such as a server, computer, or mobile computing device, such as a smartphone, tablet, laptop, etc. For example, the functionality of each of operator 110, first user 140, second user 150, and monitoring entity 160 (described below) can be encoded in software / computer programs that can be stored in memory on a computing device and run using one or more processors of the computing device. Although two different users are shown, system 100 may optionally include only one user, or three or more users, each configured to perform user operations described below.
[0072] Although Figure 1The diagram represents two DLTs, but operator 110, first user 140, second user 150, and monitoring entity 160 can interact with any number of DLTs. Each DLT may have its own specific DLT operation protocol, such as reading data from the blockchain and / or writing data to the blockchain and / or transferring data ownership from one entity to another entity on the same blockchain. Each DLT can be permissioned or permissionless. As a non-limiting example, each DLT can operate according to any protocol such as Bitcoin, Ethereum, Corda, Quorum, Hyperledger, etc.
[0073] Electronic data record 115 can be implemented as any suitable form of data storage, such as a DLT in which operator 110 participates (e.g., a permissioned blockchain in which the operator has the right to edit), or it can be a non-blockchain data record, such as any form of database managed at least in part by operator 110.
[0074] Although Figure 1 Although not explicitly stated, operator 110 and monitoring entity 160 may optionally communicate with each other. Operator 110 and first user 140 may optionally communicate with each other. Operator 110 and second user 150 may optionally communicate with each other. Monitoring entity 160 and first user 140 may optionally communicate with each other. Monitoring entity 160 and second user 150 may optionally communicate with each other. Each communication interface can be implemented using any suitable electronic communication protocol / standard. Although Figure 1 Each communication interface shown is a direct connection, but it is understood that any number of intermediate devices / entities may optionally exist in the communication path.
[0075] Figure 2A visual representation of the hierarchical structure of data record 115, first DLT 120, and second DLT 130 is shown. DLTs 120 and 130 can be considered as being in “Layer 1” of the system architecture. There can be any number of different DLTs in Layer 1, each editable and readable by different participants in system 110, such as operator 110, first user 140, second user 150, and monitoring entity 160. Data record 115 can be considered as being in “Layer 2” of the system architecture. Data record 115 in Layer 2 is maintained / controlled by operator 110. In the system 100 of this disclosure, two or more Layer 1 DLTs can be used to control specific data items or assets. For example, first user 140 may own a data asset, such as a certain amount of digital currency or any other form of information / data they wish to control using two or more Layer 1 DLTs. This data can be controlled through instructions they issue to first DLT 120 or second DLT 130. Operator 110 uses data records in Layer 2 to maintain the consistency of data simultaneously controlled by two or more Layer 1 DLTs. In this way, user-related data can be modified securely and consistently across all Layer 1 DLTs via transactions / instructions published to any one of them. Layer 1 can conceptually be considered above Layer 0 of the system, which is the public / private network on which Layer 1 DLTs operate.
[0076] Figure 3 A sequence diagram is shown representing an example flow of a command to be executed issued by the first user 140.
[0077] In step S310, the first user 140 broadcasts the first DLT transaction 400 (hereinafter referred to as the first blockchain transaction) to the first DLT 120 or the second DLT 130.
[0078] Figure 4 A visual example of data contained in a first blockchain transaction 400 is shown. The first blockchain transaction 400 can be formatted according to a protocol used for any DLT broadcast to, such as including DLT transaction required parameters 410 (which may include, for example, any one or more of sender address, receiver address, transaction fee, etc.) and a DLT transaction signature 420. The DLT transaction signature 420 can be generated by a first user 140 signing the contents of the first blockchain transaction 400 using their DLT private key according to the cryptographic protocol used for any DLT broadcast to the first blockchain transaction 400. According to this disclosure, the first user 140 includes a first instruction 500 in the first blockchain transaction. As those skilled in the art will understand, blockchain transactions typically have a user-defined data field 430 available, and the first instruction 500 can be included in the user-defined data field 430.
[0079] Figure 5 A visual example of the data contained in the first instruction 500 is shown. The first instruction 500 can be configured to include data that operator 110 can use to identify the first user 140, as well as data indicating the nature of the instruction. For example, the instruction could be to perform some modification on the first user's data in electronic data record 115, or to trigger some computer program / process (such as a smart contract) stored on or elsewhere in electronic data record 115 and linked to operator 110 or electronic data record 115, so that the execution of the instruction triggers the computer program / process, and any other data required according to any security / encryption program set by operator 110. In this example, the first instruction 500 includes a first user ID 512 that operator 110 can use to uniquely identify the first user, and therefore uniquely identify any data within layer 2 data record 115 associated with the first user 140. The first user ID 512 can uniquely indicate the first user 140, or the first user 140 can have multiple different first user IDs, each first user ID associated with some different data in layer 2 data record 115. In this case, the first user ID 110 can be regarded as the account ID of the first user 140 account in the identification layer 2.
[0080] exist Figure 5 In the example shown, function 514 and variable 518 are used to indicate the nature of the instruction. Depending on the specific type of instruction allowed by system 100 configuration, various functions can be set for the first user 140, such as "trigger," "send," "delete," "replace," "transfer," "add," etc. Variable 518 can include any data required to execute the indicated instruction (e.g., data to be added to data record 115, or the identifier of the computer program / routine to be triggered, or another user account whose data is modified in some way, or the content and recipient of the message to be conveyed, etc.). For example, if the first user holds multiple DLT digital currencies in a Layer 2 account, function 514 can indicate that a financial transfer of a certain amount of currency to the first user is required. In this case, function 514 can be set to indicate "transfer," and the variable can indicate the amount to be transferred and the Layer 2 account to which the amount is to be transferred. In a further example, function 514 can indicate a specific process or operation to be executed / triggered, where variable 518 includes any data required for the process or operation to occur, such as the identifier of the address of the routine to be executed and / or the payload to be passed to the routine, etc.
[0081] exist Figure 5In the example shown, the security / encryption requirements of the multi-DLT system 100 are set to require instruction details 510 to include a first user serial number 516, and the first instruction 500 to include a first user signature 520 (although both user serial number 516 and first user signature 520 are optional, and in some implementations, operator 110 may not require one or both of them to appear in a transaction for transaction pass verification). The first user serial number 516 can be a value that the first user 140 increments / decrements with each new instruction it generates. This allows operator 110 to enhance the security of the multi-DLT system 100, such as preventing replay attacks, and / or checking the relative execution order that instructions from the first user 140 may require, when performing the process of step S330 below. The first user signature 520 can be a digital signature of the instruction details 510, generated using the private key associated with the first user 140 according to any encryption protocol for instruction execution defined by the system security standard. The encryption standard used for the first user signature 520 to protect the first instruction 500 may differ from the encryption standard used for the DLT transaction signature 420. Therefore, operations performed at the Layer 2 data record may be at a higher encryption standard than that used by the first DLT 120 and / or the second DLT 130. Thus, this disclosure can enhance the data security of the first DLT 120 and / or the second DLT 130 during system operation.
[0082] It should be understood that different Layer 1 DLTs may require different types of DLT transaction parameters 410 and / or DLT transaction signatures 420, but the content of instruction 500 may always be the same, regardless of which DLT it is sent to. Therefore, each distinct instruction broadcast to any Layer 1 DLT can be uniquely identified from its content, and optionally, a unique cross-DLT ID can be generated for each instruction, for example, by generating a hash of instruction 500 or instruction details 510 (e.g., see instruction record 616 described later).
[0083] Operator 110 is configured to monitor the first DLT 120 and the second DLT 130 to look for distributed ledger transactions that include instructions. For example, operator 110 may run participating nodes on the first and second DLTs and receive each broadcast transaction. Additionally or optionally, they may read the contents of each block added to the first and second DLTs (each block includes multiple distributed ledger transactions). Additionally or optionally, operator 110 may not run nodes on the first and second DLTs, but instead monitor one or more of the first and second DLTs by querying entities running nodes on the first and second DLT networks.
[0084] In step S320, operator 110 identifies the first distributed ledger transaction as one containing instructions to be executed. It should be understood that each of the first and second DLTs can contain numerous distributed ledger transactions unrelated to this disclosure (e.g., if they are general-purpose DLTs, such as Ethereum). In this case, operator 110 is configured to identify the distributed ledger transaction containing instructions, thus ignoring other transactions on the DLT. Operator 110 can identify transactions containing instructions to be executed in various different ways, and these different possibilities are not the subject of this disclosure. Therefore, no detailed explanation is given in this disclosure, but only illustrated by a simple example: operator 110 can evaluate the contents of each transaction to find references. Figure 5 The data in the form of the described instruction, or it can be configured to look up data in the DLT transaction required parameter 410 and / or user-defined data fields that identify the user / account registered with operator 110 (e.g., using the first user ID 512, or indicating the tier 2 account ID to which the transfer is made and comparing it with the user ID / account ID registered with operator 110, etc.), or look up any other data items in the transaction that are marked as being associated with operator 110 (e.g., a flag indicating that the transaction includes an instruction to be executed).
[0085] In step S330, after identifying the first distributed ledger transaction 400 as relevant, operator 110 verifies the first instruction 500. Verification may include any one or more of the following: checking that the instruction format is correct; checking the first user signature 520 using the encryption key registered with the first user and standard symmetric / asymmetric encryption techniques; checking that the first user sequence number 516 is as expected (e.g., operator 110 has not previously seen a value contained in a previously identified instruction from the first user 140 and / or the contained value correctly increments / decrements from previous instructions from the first user 140).
[0086] It should be understood that many different instructions may appear on the first DLT 120 and / or the second DLT 130 from various different users (e.g., first user 140, second user 150, etc.). Operator 110 may continuously monitor the first and second DLTs to look for these instructions and, when these instructions are identified, verify their contents. For example, operator 110 may store (e.g., in a portion of layer 2 data record 115, or in any other memory accessible to operator 110) a copy of each identified instruction and then periodically or intermittently verify one or more identified instructions (e.g., verify in the chronological order in which the instructions were identified, so that the earliest instruction is verified first, or in any order in which the instructions are identified, or in any other order, etc.). Optionally, a copy of each instruction that passes verification (i.e., passes all verification checks) may be recorded by operator 110 (e.g., recorded in a portion of layer 2 data record 115, or recorded in any other memory accessible to operator 110) and marked as "pending". Operator 110 can then periodically select one or more pending instructions to execute (e.g., prioritizing based on the time spent processing, prioritizing based on any other requirement (e.g., any order identified in the instructions), or executing based on any other sorting scheme or process). Optionally, operator 110 can execute each instruction immediately after verification.
[0087] Before executing identified instructions, operator 110 can be configured to determine the order in which instructions are executed. This can be done before verifying the identified instructions, for example, if the instructions are executed upon passing verification or immediately after verification, such as if the operator verifies the instructions and adds the verified instructions to a "pending" pool from which the operator selects instructions for execution. It should be understood that operator 110 can be configured to determine the execution order in any suitable manner depending on the specific implementation of system 100. For example, it can be based on any execution order rules that operator 110 is configured to follow and / or the content of the instructions (e.g., following any sequential numbering included in user sequence number 516 / variable 518, or determining the correct order based on the nature of instructions such as function 514 and / or variable 518), and / or the time when operator 110 identifies the instructions (e.g., executing instructions in the order they were identified). In this way, operator 110 can maintain the correct order of instruction execution regardless of which 1DLT layer each instruction is issued on, which maintains the security, reliability, and robustness of system 100.
[0088] In step S340, the verified first instruction 500 is executed. For example, if instruction details 510 instructs first user 512 to transfer a certain amount of currency from their Layer 2 account to a different user's Layer 2 account, operator 110 will modify electronic data record 115 to reflect this change by storing the execution result of the instruction (in this case, the result would include reducing the balance of the first user's account and increasing the balance of the different user's account). In a further example, if instruction details 510 includes additional data that first user 140 wishes to store, operator 110 stores the additional data associated with first user ID 512 in electronic data record 115 as the result of the executed instruction. In a further example, if modification details 510 is an instruction that triggers some other process (e.g., calling a Layer 2 smart contract or some other form of computer code / program to execute a specific process), operator 110 will execute these instructions and store the execution result of the instruction in electronic data record 115 (optionally, associated with user ID 512 so that the user can later query the current state of their data in electronic data record 115, which depends on the stored result). In this example, the stored result could be, for example, a value returned by a triggering process, such as the receipt or result or response of the process, and / or could be computer code included in instruction detail 510, the storage of which may selectively trigger another process and cause the result to also be stored as part of the result.
[0089] Optionally, for all types of stored results, the stored result may include a sequence number (e.g., sequence number 516, which may create an additional link between the executed instruction and the result; or a sequence number that changes with each further update of the data associated with the first user, such as incrementing or decrementing with each stored result associated with the user; or a sequence number that changes with each result stored by operator 110, such as incrementing or decrementing with each new stored result regardless of which user is associated). For example, each stored result may include: a sequence number; new data generated by the executed instruction, such as a new account balance, or a response / receipt / result returned by the executed instruction, etc. It may also optionally include the user ID of the user associated with the result, or the user may be associated with the stored result in any other way within the electronic data record 115. In this way, a historical record of each stored result can be established.
[0090] The number of stored results is not necessarily in a 1:1 ratio to the number of executed instructions. For example, executing an instruction may result in two different stored results, such as a decrease in one user's balance (which would be one stored result) and an increase in another user's balance (which would be another stored result). Furthermore, if a set of instructions is executed (described later in the context of "verification groups") and both instructions cause changes to stored data associated with a specific user, operator 110 may be configured to store a separate result for each instruction, or may be configured to store one result of executing both instructions for a specific user.
[0091] Operator 110 may store / record (e.g., in a portion of Layer 2 data record 115, or in any other memory accessible to operator 110) the entire contents of the first instruction 500, for example, in a “verification group.” As explained in further detail later in the “Instruction Execution Ordering” section, operator 110 may maintain a record of each executed instruction in a series of consecutive verification groups, each verification group comprising one or more executed instructions. This record may be useful for the verifiability of the ordering of executed transactions and / or for handling blockchain rollbacks, as further explained in the “Instruction Execution Ordering” section.
[0092] In step S350, operator 110 stores a first verification record 600 on the first DLT 120 and / or the second DLT 130, which indicates the storage result of the executed first instruction 500 (in electronic data record 115).
[0093] Figure 6 A visual example of the data included in the first verification record 600 is shown. The purpose of the first verification record 600 is to enable the first user 140 and / or monitoring entity 160 to verify whether the operator 110 has correctly executed the instructions. Verification details 610 may include information that enables the first user 140 and / or monitoring entity 160 to perform the verification. The operator signature 620 is optional and is a digital signature of the verification details 610 generated by the operator 110 using its associated private key to prove that the first verification record 600 originates from the operator 110. This can be used to check the integrity of the first verification record 600 and ensure that the first verification record 600 originates from an entity authorized to execute instructions and modify layer 2 data record 115, and is therefore trustworthy. However, trust in the source and content of the first verification record 600 can be achieved in any other suitable manner.
[0094] Verification details 610 include a data record modification statement 614 that indicates the layer 2 data record 115 after the execution result of the instruction has been stored (e.g., the data record modification statement could indicate the stored result of the executed instruction). This can be used by the first user 140 and / or monitoring entity 160 to verify the executed instruction. In a particular example where layer 2 data record 115 includes a Merkle tree, when operator 110 records the execution result of an instruction, they can update the Merkle tree with the stored result, and data record modification statement 164 can include the Merkle root of the updated Merkle tree. When verification records are used to verify two or more stored results, such as when two or more instructions have been executed (e.g., the corresponding verification group includes two or more instructions), data record modification statement 614 can indicate the storage order of the results. In some configurations, the storage order of the results can also indicate the execution order of the corresponding instructions (e.g., when operator 110 is configured to store the result of each instruction it executes, it can store these results in the Merkle tree in the same order in which the instructions were executed). However, in other implementations, the storage order of results may not indicate the execution order of instructions, for example, in cases where two or more instructions that may not be executed consecutively result in only one result to be stored. Data record modification statements 614, which indicate the storage order of results, can be implemented in many different ways by generating data record modification statements in a manner that depends on the storage order of results, for example using a Merkle tree as described later.
[0095] In a further example, layer 2 data record 115 may not include a Merkle tree, but can be constructed in any other way. In this case, the way data is stored in layer 2 data record 115 can indicate the storage order of the results, and data record modification statement 164 can include the database hash of the data, such that the database hash can also indicate the storage order of the results.
[0096] Optionally, the verification details 610 may also include an operator ID 612 that uniquely identifies operator 110. This can be used, for example, if more than one operator 110 is authorized to execute instructions and modify layer 2 data records 115.
[0097] Further optionally, the verification details 610 may include a verification record ID 618 that uniquely identifies the first verification record 600. The verification record ID 618 can be used to uniquely identify the first verification record 600. The verification record ID can serve as a sequence identifier indicating the relative order of verification records stored on the layer 1 DLT; for example, if it is an incrementing / decrementing number, then the incrementing / decrementing verification record ID 618 appears in a previous verification record. However, it should be understood that the first verification record 600 can be uniquely identified in any other way (e.g., by a data record modification statement 614, which may be unique for verification records stored on the first and / or second DLT).
[0098] Further optionally, the first verification record 600 may include an instruction record 616 indicating instructions associated with the first verification record 600 (i.e., instructions included in the corresponding verification group). As previously described and explained in more detail in “Instruction Execution Sequencing” below, each verification group recorded by operator 110 may include one or more executed instructions, and each verification record stored by operator 110 on the first and / or second DLT may correspond to a verification group (e.g., each verification group may be uniquely numbered—optionally in a manner indicating the relative order / sequence of verification groups—and the number may be associated with or the same as verification record ID 618). Data record modification statement 614 indicates the state of layer 2 data record 115 after the execution results of one or more instructions are stored in the verification group. Instruction record 616 indicates one or more executed instructions in the verification group and may indicate the relative order in which the instructions were executed.
[0099] Instruction record 616 may include one or more of the following: a Merkle root generated based on at least a portion of one or more executed instructions; and / or a hash value (or some other unique record / identifier / value) of at least a portion of each executed instruction and / or hash values (or some other unique record / identifier / value) of at least a portion of two or more executed instructions. In the case of including hash values / identifiers of at least a portion of each executed instruction, they may optionally be ordered within instruction record 616 in a manner indicating the order in which they were executed. In the case of including hash values / identifiers of at least a portion of two or more executed instructions, these instructions may be arranged in an order corresponding to the order in which they were ordered, and then hash values may be used such that hash values / identifiers generated based on these instructions will indicate the order of execution.
[0100] Figure 7An example of a Merkle tree for layer 2 data record 115 is shown. Those skilled in the art will readily understand the operation of a Merkle tree. In this particular example, the execution results of four different instructions are stored in layer 2 data record 115 (e.g., this could be the execution results of four different instructions, or fewer than four executed instructions, or more than four executed instructions, as previously described), resulting in a Merkle tree with four leaves, each indicating a stored result. However, it should be understood that a Merkle tree can include any number of leaves. In this example, the hash value H1 of leaf 1 relates to the stored result of the executed first instruction 500. The content of leaf 1 (i.e., the stored result of the executed first instruction, or the hash value of the stored result of the executed first instruction) depends on the implementation of system 100 and the nature of the instruction being executed. For example, it could include a copy of layer 2 data associated with the first user 140 after a data modification requested by the first user, or it could be the return result / receipt of a program / process triggered by an instruction (and optionally instruction sequence number 516), etc. In one example where the first instruction 500 relates to a currency transaction, leaf 1 may include a first user ID 510 and the balance of the first user account after the transaction has been executed. As previously mentioned, the order of each leaf can indicate the order in which each result is stored, which in some implementations also indicates the order in which operator 110 executes instructions (e.g., the operator is configured to store one or more results of each executed instruction and store these results in an order corresponding to the order in which the instructions were executed). For example, in Figure 7 In this context, the instruction that causes leaf 1 to include a stored result may have been executed before the instruction that causes leaf 2 to include a stored result. The relative ordering of the leaves affects the Merkle root of the tree, thus allowing the Merkle root to indicate the relative ordering of the stored results.
[0101] Figure 8 An example of a Merkle tree of instructions associated with the first verification record 600 is shown. In this particular example, the first verification record 600 relates to four instructions that have been executed by operator 110, resulting in a Merkle tree with four leaves, each leaf indicating the executed instruction. However, it should be understood that a Merkle tree can include any number of leaves. In this example, leaf 1 includes at least partially executed first instructions, such as the entirety of first instruction 500, or the hash of first instruction 500, or instruction details 510, or the hash of instruction details 510 (i.e., the unique cross-DLT ID described above). Optionally, each leaf may also include some data indicating instruction execution, such as the receipt or result of a process / procedure triggered by the instruction. If the relative execution order of each instruction associated with verification record 500 is important, the order of each leaf can indicate the execution order of the instructions. For example, in Figure 8In this tree, leaf 1 instructions may be executed before leaf 2 instructions, and so on. The relative ordering of the leaves affects the Merkle root of the tree, so that the Merkle root can indicate the relative ordering of the executed instructions. However, if the relative order of the executed instructions associated with the first verification record 600 is not important, the order of the leaves constituting the Merkle root can be arbitrary. By generating the Merkle tree in this way, operator 110 can include the Merkle root as part of instruction record 616, thereby including a relatively small / shorter provable record of all executed instructions associated with the first verification record 600, and optionally, can also choose their execution order.
[0102] Operator 110 can store the first verification record 600 by broadcasting additional blockchain transactions to the first DLT 120 and / or the second DLT 130, wherein the first verification record 600 includes user-defined data fields (as described above). Figure 4 (As shown). Therefore, the first verification record 600 can be stored in a valid and invariable manner that is readable by the first user 140, the second user 150, and the monitoring entity 160. The first user 140 and / or the monitoring entity 160 can then use the first verification record 600 to verify that the operator 110 has correctly executed the instructions, as explained later in "Proving Instruction Execution". Instruction execution sorting
[0103] Instruction execution ordering can be critical for the secure and reliable operation of System 100. For example, it has been previously recognized that to prevent cryptocurrency double-spending fraud, it is essential to be able to determine whether cryptocurrency has been used previously. Many existing independent blockchains achieve this through the temporal ordering of blocks on the blockchain, with each block including a timestamp and checking in existing blocks whether cryptocurrency identified in new transactions has not yet been used.
[0104] However, the inventors have recognized that reliable ordering may be important not only in currency-related applications but more generally for all applications. For example, it should be understood that in various Internet and telecommunications domains and protocols, improperly ordered instruction / message delivery can be exploited as a vulnerability to security and stability. For instance, each of the aforementioned instructions may include communication data, such as TCP / IP packets, and the ordering and synchronization of this communication data can affect system security in a variety of ways, such as incorrectly ordered or incomplete sets of messages / instructions leading to compromises in the system's security, integrity, or availability. As previously stated, the instructions of this disclosure can relate to data instructions / messages of any form. Therefore, the inventors have recognized that maintaining and / or verifying the order of instruction execution, for example when used to carry instructions / messages and when used for any other purpose, can be of great importance for achieving secure, reliable, and fraud-proof systems.
[0105] However, this is particularly challenging in multi-DLT systems where the system operates across multiple layers of 1DLT (e.g., first DLT 120 and second DLT 130). For example, instructions issued across two or more different layers of 1DLT may need to be executed in a specific order to maintain the system's security, reliability, and fraud resistance. A particular challenge in maintaining and verifying instruction execution ordering and system consistency across multiple layers of 1DLT is "blockchain rollback," where blocks within the blockchain may be lost. For example, a rollback might be caused by a blockchain fork, where one or more blockchain transactions appearing on the shorter branch of the fork may be lost (or rolled back) from the blockchain. Those skilled in the art will readily understand the possibility of DLT forks and the behavioral characteristics of DLTs when forks occur. As a result, a replay of a distributed ledger transaction including the first instruction (previously lost in a ledger rollback) might appear on the distributed ledger after other distributed ledger transactions including the second instruction, even though the first instruction was actually executed before the second instruction.
[0106] Figure 9 This illustrates an example of a fork in a blockchain. Transaction 1 is part of block B1 and appears on “branch 1” of the blockchain. However, due to the fork, it has actually been lost from the blockchain, as the blockchain continues on a longer branch, “branch 2”. Transaction 2 is part of block B3 and appears on “branch 2”. Later, transaction 1 can be appended to the blockchain as part of block B8 on “branch 2”, for example, by a node participating in the blockchain. Therefore, transaction 1 appears in the blockchain later than transaction 2. However, if it is important that transaction 1 precedes transaction 2 (e.g., they are related to consecutive messages), this could lead to security or stability failures, or potentially allow fraud to occur in applications using the blockchain. Another reason for a rollback could be that blockchain participants agree to roll back the blockchain to a specific earlier block for some reason (e.g., the Ethereum and Ethereum Classic fork).
[0107] Lost blockchain transactions can be particularly problematic in this disclosure because the relative order of instruction execution across different layers of 1DLT can be critical to the security and stability of the system, as well as the verifiability of operator actions. In this case, simply replaying blockchain transactions lost on a layer of 1DLT due to a rollback may be insecure, as the replayed transactions may not reflect the actual order of instruction execution.
[0108] To address these technical challenges, the inventors have implemented the use of the aforementioned verification records.
[0109] Figure 10Examples of instructions and verification records on the first DLT 120 and the second DLT 130 are shown. Each instruction is represented by a single letter, such as A, Q, M, etc., and is included in a blockchain transaction within a block of the first DLT 120 or the second DLT 130. Each instruction may take the form of the first instruction 500 described above. It is understood that the first user 140 may issue an instruction to one of the layer 1 DLTs and then issue subsequent instructions to the same or different layer 1 DLTs (i.e., instructions may be issued to any layer 1 DLT such that data stored in the electronic data storage associated with the first user 140 (e.g., layer 2 data) is equally controllable on all layer 1 DLTs).
[0110] Each blockchain transaction, including instructions A, Q, M, etc., is identified by operator 110 in step S320 above, verified in step S330, and executed in step S340. (In this example, verification is performed on all identified instructions, and they all pass verification; however, in an alternative scenario, only some identified instructions A, Q, M might be verified at this point—other instructions might be verified later, for example, causing them to appear in a later verification group / record). As previously described, operator 110 can be configured to determine the correct execution order of instructions A, Q, M, thereby maintaining system security and reliability. As part of the process in step S340, operator 110 may also record (e.g., in a portion of layer 2 data record 115, or in any other memory accessible to operator 110) copies of the executed instructions, such as the "verification group" as previously described. For example, operator 110 may identify instruction A and add it to the pending group. Operator 110 performs the same operation on each additional identified instruction (instructions Q and M in this example) until a predetermined time period has elapsed or until the pending group is full. When each instruction is executed, they may be stored in a verification group. If the relative order of instruction execution within the verification group is important for security / verifiability purposes, their relative execution order can be recorded, for example, through a Merkle tree of Electronic Data Record 115 (EDR). Figure 7 ) and / or the Merkle tree of executed instructions ( Figure 8 (For example, leaf 1 includes at least a portion of instruction A, leaf 2 includes at least a portion of instruction Q, etc.). Therefore, regardless of which layer 1DLT the instruction is found on, operator 110 can maintain and record the relative order of transaction execution. If the relative order of instruction execution in the verification group is not important, the execution order may not need to be recorded.
[0111] Operator 110 can generate verification records corresponding to the verification group. The verification records can take the form of the first verification record 600 described above. For example, verification record... nIt is generated based on the stored results of the instructions (in this example, instructions A, Q, and M) executed (i.e., data record modification statement 614 is generated based on the stored results of instructions A, Q, and M). Verify the record. n It can also be generated based on at least a portion of executed instructions A, Q, and M (e.g., instruction record 616 can be generated based on at least a portion of each of instructions A, Q, and M). Once generated, operator 110 can optionally verify the record. n A copy of the record is recorded / stored in a location different from that of the Layer 1 DLT (e.g., in a portion of the Layer 2 data record 115, or in memory accessible to any other operator 110). If a verification record is lost from any Layer 1 DLT in the future... n This might be useful. Operator 110 can also store / record verification records. n and verification group n The association between them (or simply as a verification group) n (A copy of a portion of the executed instructions).
[0112] Optionally, before storing the latest verification record to at least one layer 1DLT, operator 110 can check earlier verification records. n-1 and / or with prior verification records n-1 Related executed instructions (e.g., as prior verification groups) n-1 (part of the executed instructions) and / or with the current verification record n Related executed instructions (e.g., those to be used as verification records) n Store the current verification group n (A portion of the executed instructions) and still exist on layer 1DLT. If not, they can be added back to at least one layer 1DLT.
[0113] For example, in Figure 10 As can be seen, the second DLT 130 has a fork. The lower branch of the fork moves forward, thus the content of the upper branch is lost. Instructions M and Z, and verification records. n Initially, these all appeared on the upper branch of the second DLT 130 and would be lost due to the rollback caused by this fork. Operator 110 is ready to verify the records. n+1 After that, it can check the data included in the verification group. n and verification group n+1 and verification records n Whether the executed instructions appear in layer 1DLT. At this time, operator 110 can identify instructions M and Z and verify the record. nThe instruction M has already been lost due to a rollback. The operator is able to broadcast a new blockchain transaction to the second DLT 130 that lost the instruction M (this is possible because operator 110 retains a copy of instruction M, which can be included as part of the new blockchain transaction. Whether the new blockchain transaction originates from operator 110 and is signed by the operator is not important. The origin of the Layer 1 distributed ledger transaction is independent of the current system. The user-defined data fields of the new transaction will include a complete copy of the previously lost instruction, which is crucial information for the operation and verification process of this invention). This occurs when... Figure 10 On the lower branch of the middle fork. It may also broadcast another one including verification records. n The new blockchain transaction and another new blockchain transaction including instruction Z, both of which also appeared in Figure 10 The lower branch of the middle fork. Then, the latest verification record. n+1 These transactions can be stored on at least one layer 1DLT. While each of these new transactions is represented in a separate block, some or all of them may appear on a second DLT 130 within the same block. Furthermore, the order in which the new transactions appear on the second DLT 130 is not important, as will be understood from the explanation below.
[0114] The relative order in which executed instructions and verification records appear in Layer 1DLT is not important, because the actual order in which these verification records are executed (which may be important for the robust, secure, and reliable operation of System 100) is included in the content of the verification records, regardless of where these verification records appear in Layer 1DLT. Specifically, each verification record may include a sequence identifier indicating the relative sequence / order of verification records. In this case, it is possible to identify the sequence of verification records. n-1 The relevant instructions are all related to the verification log. n The relevant instructions were executed before the verification record was checked. n All the instructions involved are verified in the log. n+1 The relevant instructions will be executed beforehand.
[0115] In some system implementations, knowing the relative order of instruction execution in each verification record may not be important. For example, in systems where only a coarse level of execution order verifiability is needed to maintain system security and stability, or where operator 110 is configured to execute instructions in a manner that makes the execution order of two or more instructions important, each of them may appear in a different verification group so that the order of execution can be verified in this way, or operator 110 may be configured to include only one executed instruction in each verification group.
[0116] However, in other systems, understanding the relative order of instruction execution within each verification record may be important; that is, the verification execution order needs to reach the finder level. This can be achieved using the data record modification statement 614 and / or instruction record 616 described earlier.
[0117] In this way, a record of each executed instruction can be maintained, along with verification data that allows the execution order to be checked and verified (coarse or fine). Therefore, the user can be confident that once the verification record is included in the Layer 1 DLT, the relevant instructions will be executed by operator 110, and their ordering relative to earlier executed instructions can be verified, regardless of any rollback on the Layer 1 DLT. Another benefit of this involves the period of time during which the user can be confident that instructions have been reliably executed. For example, for many blockchain technologies such as Bitcoin, it is recommended that, in order to rely on blockchain transactions, it is best to wait for a certain number of blocks (e.g., 6 blocks) to be added after the block in which the transaction occurred. This is to ensure that transactions are not lost due to forks. Each block takes a period of time to be added (e.g., approximately 10 minutes), so this waiting can be significant. However, in this disclosure, once the operator stores a verification record based on the user's instructions on the Layer 1 DLT, the user can be confident that the instruction has been executed, regardless of any potential future rollbacks (assuming the user has verified its contents, as described later). This can significantly improve speed and efficiency, allowing the user to be confident in the execution of instructions issued through the Layer 1 DLT.
[0118] It should be understood that, although Figure 10 The block is represented as containing only a single transaction, but in reality, each block may contain multiple transactions. Figure 10 Empty blocks are not actually empty, but in this example, they do not include any blockchain transactions with instructions according to this disclosure. In this example, the verification record is stored on both the first and second DLTs. This may be more suitable for improving robustness and data integrity, thereby enhancing security. Therefore, even in the event of a fork, there should always be at least one copy of the verification record on the layer 1 DLT (it is extremely unlikely that two DLTs would fork simultaneously and independently, causing them to both lose the same verification record). However, this is not required, and in an alternative scenario, the verification record can be stored in only one of the layer 1 DLTs.
[0119] Although in the example above, operator 110 checks whether the instructions of the previous verification record and / or the previous verification group and / or the current verification group exist on layer 1DLT, operator 110 may also optionally check at any time whether the instructions of any prior verification group and any prior verification record still appear on layer 1DLT. Proof of instruction execution
[0120] To ensure that operator 110 is executing instructions correctly, the user may try to verify the status of layer 2 data record 115 by attempting to use the modification record stored on layer 1 DLT.
[0121] Figure 11 A sequence diagram of an example flow is shown, illustrating how a first user 140 can verify the current state of their data on layer 2 data record 115.
[0122] In step S1110, the first user 140 communicates a first status query to operator 110 and / or monitoring entity 160. Monitoring entity 160 may be an entity configured to monitor Layer 1DLT to identify blockchain transactions including instructions and to identify verification records stored on Layer 1DLT. It may also be configured to determine which verification records are associated with which executed instructions. This can be done using instruction hashes included in instruction record 616 of the verification records, for example, by generating a hash of the relevant portion of each instruction identified in Layer 1DLT and comparing it with the hash of the relevant portion included in instruction record 616. Optionally, if the instruction hash does not constitute part of instruction record 616, operator 110 may, for example, notify monitoring entity 160 which instructions are associated with each verification record via a communication channel between monitoring entity 160 and operator 110. Optionally, monitoring entity 160 may use instruction record 616 to verify the information communicated by operator 110. For example, if the instruction record 616 of the verification record 600 instructed by operator 110 includes a Merkle root, monitoring entity 160 can generate a Merkle root based on the fact that the instructions declared by operator 110 are part of the instructed verification record 600 and the order in which they are included in the Merkle tree as declared by operator 110, and compare this Merkle root with the Merkle root in the instruction record 616 of the instructed verification record 600. Alternatively, in addition to conveying which instructions are associated with the verification record, operator 110 can also provide proofs, such as a Merkle proof when the instruction record includes a Merkle root, or a zero-knowledge proof (ZK proof) when the instruction record includes the hashes of two or more executed instructions, to prove the instruction record in the verification record. Therefore, monitoring entity 160 can verify the information provided by operator 110 (and verify the order of instruction execution within the relevant verification record). Furthermore, monitoring entity 160 may optionally monitor the status of data stored in electronic data record 115, for example, by updating its stored shadow copy record with each executed instruction and / or by having operator 110 communicate the result of each stored instruction execution to monitoring entity 160 (which can be verified via data record modification statement 614 in each verification record). Thus, monitoring entity 160 may have a very similar level of operation and knowledge to operator 110, but unlike operator 110, operator 160 is not authorized to execute instructions, modify layer 2 data record 115, or store verification records on layer 1 DLT.
[0123] The monitoring entity 160 in system 100 is optional, as operator 110 can perform the same functions as monitoring entity 160. However, having a monitoring entity 160 independent of operator 110 may have some advantages, such as preventing / detecting instruction review by operator 110 and / or detecting fraud / inaccuracy from operator 110 and / or providing a communication interface to the user so that operator 110 does not need to communicate with the user.
[0124] For example, a first state query could be a request for the current state of data associated with a first user in electronic data record 115, or a request for the state of data associated with a first user in electronic data record 115 at a specific verification time in layer 1DLT. A first state query could include the identifier of the first user (e.g., first user ID 512) and information related to the nature of the query (e.g., whether it is a request for the state at a specific verification time; it could include the identifier of the verification record, such as verification record ID 618).
[0125] In step S1120, operator 110 and / or monitoring entity 160 may communicate a status notification to the first user. The status notification may include an indication of the status of the first user's data (e.g., current / latest status, or status at the time of verification of a record identified in the first status query). The current / latest status may be the most recently stored instruction execution result associated with the first user (e.g., each record stored by the operator in step S340 includes, for example: a serial number; a user ID; and new data generated by instruction execution; the indication of the current status may be a storage result with the latest serial number). The status at the time of verification of a record identified in the first status query may be the storage result associated with the first user on which the verification record was based, or the most recently stored result associated with the first user before the verification record was generated (e.g., when the verification record is generated based on a storage result unrelated to the first user). The status notification may further include a status certificate for the first user 140 to use when verifying the indicated status of the first user's data. When the first state query is for the latest state of the data, the state notification may further include an indication of a verification record corresponding to the most recent change in the state of the first user data (i.e., the verification record including data record modification statement 614 is generated at least in part based on the most recent change in the first user data caused by the execution record of the instruction stored by operator 110). The state proof may take any suitable form that enables the first user 140 to verify the indicated state of the first user data using the state proof in the relevant verification record and data record modification statement 614. For example, if the verification record is configured such that data record modification statement 614 is a Merkle root, the state proof may be a Merkle proof, which the first user 140 can use to verify that the Merkle root (in data record modification statement 614) was generated by operator 110 at least in part using the indicated state of the first user data. If data record modification statement 614 is a database hash, the state proof may include a ZKProof.
[0126] Optionally, operator 110 / monitoring entity 160 may also communicate to the first user a proof that the identified verification record relates to one or more specifically executed instructions (specific instructions identified by the user in a first state query, such as if the user checks the state of their data after executing a specific instruction, or specific instructions that result in the current state of the user's data). This proof can take any suitable form. For example, if the verification record is configured such that the instruction record includes a Merkle root, the proof could be a Merkle proof, or if the instruction record includes hashes of two or more executed instructions, the proof could be a ZK proof. However, if the verification record is configured to include hashes of at least a portion of the executed instructions associated with it, the first user can directly prove that any specific instruction associated with it forms part of the identified verification record.
[0127] In step S1130, the first user 140 may look up relevant verification records in the first DLT 120 or the second DLT 130 and retrieve any relevant information therefrom (e.g., data record modification statement 614 and / or at least part of instruction record 616).
[0128] In step S1140, the first user 140 can verify the status of its data using the status proof and the retrieval portion of the relevant verification record. Therefore, encrypted security information accessible on the first DLT 120 and / or the second DLT 130 can be used to prove or refute statements from the operator 110 and / or monitoring entity 160 to the first user 140 regarding the status of their data.
[0129] The status indication received by the user can take any suitable form, depending on the nature of the user data stored in the electronic data record 115. For example, if the user data involves finance or currency, the status could indicate the current balance of the user's account, which would be changed each time the result of an executed instruction associated with the first user is stored in the electronic data storage 115. In a further example, if the user data includes records / results of processes / communications / operations triggered by instructions on layer 1DLT, the status could include records / results that have been received and stored.
[0130] Optionally, the user can read the layer 1DLT and / or query operator 110 / monitoring entity 160 to identify instructions appearing on the layer 1DLT associated with them (e.g., instructions originating from them, or instructions that identify them in any way, such as instructions as recipients of financial transactions). They can also query operator 110 / monitoring entity 160 to determine which instructions have been executed and the verification record generated based on the result of each instruction's execution (e.g., they can ask operator 110 / monitoring entity 160 whether any of instructions A, B, C, etc., have been executed, and in return, they can receive an indication that instruction A has been executed and included in verification record Y, optionally with an inclusion proof such as a Merkel proof or a ZK proof, as described above). The user can then know which instructions are considered to have been executed and when they were executed (and verify whether they are included in the verification record of the indication), and can then verifiably check the state of their included data as a result of instruction execution (e.g., by querying the state of their data at the time of verification record Y and then verifying the returned indication state, as described above).
[0131] Therefore, users can issue instructions to any of the multiple layer 1DLTs in a manner that results in the secure, consistent, and verifiable execution of these instructions. Thus, users can use any two or more different layer 1DLTs to control data in a secure, reliable, consistent, and trustworthy manner.
[0132] Those skilled in the art will readily understand that various changes or modifications can be made to the foregoing aspects of this disclosure without departing from the scope of this disclosure.
[0133] In the above explanation, operator 110 stores ordered verification groups, each verification group comprising one or more copies of executed instructions. However, in an alternative approach, operator 110 may simply store each executed instruction, associated with a verification record generated in part based on the result of the instruction's execution. For example, the relative order of each verification record can be maintained via a verification record ID, thus recording the relative order of instruction execution between verification records (or the relative order of instruction execution within a verification record can be recorded via data record modification statement 614 and / or instruction record 616).
[0134] The instruction record 616 in the verification record 600 is optional. For example, some verification records may relate to the initial state of one or more portions of the electronic data record 115, such as the initial balance of a user account in a Layer 2 record. In this case, the instruction record 616 can be omitted and the data record modification statement 614 can indicate the initial state of one or more portions of the electronic data record 115.
[0135] The first user 140 and / or the second user 150 may optionally include a smart contract or some other form of triggerable computer program / process. For example, the aforementioned user processing may be executed by a smart contract, and optionally, further processing may be performed based on the result. For example, the smart contract may be triggered by the presence of a specific instruction on the first DLT 120. The smart contract may use reference... Figure 11 The described process verifies the execution of the instruction, and optionally, if the verification passes, performs further operations. In a particular, non-limiting example, data (e.g., tokens) can be migrated from a Layer 2 account to a Layer 1 account on a specific Layer 1 DLT in this manner. For example, an instruction to transfer tokens from a Layer 2 account to a migrating Layer 2 account can be published to one of the Layer 1 DLTs. A smart contract can be triggered by a reference to the migrating Layer 2 account in the instruction. Executing this instruction results in a result stored on Layer 2 electronic data record 115, causing the migrating account to add the token to its balance. The smart contract can verify the execution of the instruction (e.g., using the reference above). Figure 11The smart contract describes a user verification process, and if verification is successful, tokens are added to the Layer 1 DLT (e.g., at a predetermined Layer 1 token:Layer 2 token ratio). Optionally, the smart contract can then issue additional instructions to one of the Layer 1 DLTs to delete the Layer 2 tokens held in the migration account, or can lock or delete the Layer 2 tokens in the migration account in any other suitable manner. A similar process can be performed in reverse to migrate Layer 1 tokens to the Layer 2 account.
[0136] Throughout this disclosure, the term "hash value" is frequently used. When generating a hash value based on data, alternatively, any suitable process can be used to generate any other suitable type of value that uniquely indicates the data. For example, when generating a hash value for at least a portion of an executed instruction, alternatively, any suitable process can be used to generate a value that uniquely indicates at least a portion of the executed instruction.
[0137] In some aspects of this disclosure, the use of Merkle trees and Merkle roots is disclosed, for example, with respect to layer 2 data record 115 and data modification statement 164; and / or executed instructions and instruction record 616. This is merely one non-limiting example structure / method that can be used, and as previously stated, other structures / methods are also possible. As a further example of a class of data structures that store or indicate the relative ordering of information in a data structure, a Verkle tree and a Verkle root can be used for layer 2 data record 115 and data modification statement 164; and / or executed instructions and instruction record 616. A Verkle tree is similar to a Merkle tree but allows for the combination of more than two items at each level. Any other type of data structure that stores or indicates the relative ordering can optionally be used for layer 2 data record 115 and data modification statement 164; and / or executed instructions and instruction record 616. In the example above, system 100 includes a single operator 110 and a single monitoring entity 160. However, in an alternative embodiment, system 100 may include two or more operator entities 110 and / or two or more monitoring entities 160, each performing the functions described above. For example, if there are two or more operator entities 110, they can be configured to share the processing load, such as generating alternating verification records. In a further example, if there are two or more monitoring entities 160, they can each independently perform the aforementioned monitoring functions.
[0138] All aspects of this disclosure described above can be implemented by software, hardware, or a combination of software and hardware. For example, the functions of operator 110, user, and / or monitoring entity 160 can each be implemented by software comprising computer-readable code, which performs the aforementioned functions when run on one or more processors (such as one or more microprocessors or programmable logic) of any electronic device. The software can be stored on any suitable computer-readable medium, such as non-transitory computer-readable media, such as read-only memory, random access memory, CD-ROM, DVD, Blu-ray, magnetic tape, hard disk drive, solid-state drive, and optical drive. The computer-readable medium can be distributed across a network-coupled computer system, allowing computer-readable instructions to be stored and executed in a distributed manner.
Claims
1. A computer-implemented method for executing instructions issued through any one of two or more different distributed ledgers, the method comprising: Monitor multiple distributed ledgers to obtain distributed ledger transactions containing instructions to be executed; Identify a plurality of first distributed ledger transactions, wherein each of the plurality of first distributed ledger transactions appears in any of the plurality of distributed ledgers, and each of the plurality of first distributed ledger transactions includes an instruction to be executed; Verify at least a portion of the multiple first instructions in the identified plurality of first distributed ledger transactions; For each of the plurality of first instructions that passes verification, Execute the instructions; and The result of the executed instruction is stored in the electronic data record; After executing the verified instruction among the plurality of first instructions, a first verification record indicating each result stored in the electronic data record is stored in at least one of the plurality of distributed ledgers.
2. The method according to claim 1, wherein, The first verification record indicates the execution order of the verified instructions among the plurality of first instructions.
3. The method according to claim 1 or 2, further comprising: After executing the verified instruction among the plurality of first instructions, a first instruction record is generated based on the executed instructions among the plurality of first instructions. The first verification record also includes the first instruction record.
4. The method according to claim 3, wherein, The first instruction record indicates the execution order of the verified instructions among the plurality of first instructions.
5. The method according to any one of claims 1 to 4, wherein, The first verification record includes a sequence identifier indicating the relative order of verification records stored in at least one of the plurality of distributed ledgers; and / or, The first instruction record includes a Merkle root generated using at least a portion of the executed instructions from the plurality of first instructions.
6. The method according to any one of the preceding claims further comprises: Determine the execution order of the plurality of verified first instructions; as well as The plurality of first instructions that have passed verification are executed in the determined order.
7. The method according to any one of the preceding claims, wherein, At least one of the plurality of first distributed ledger transactions appears in a first distributed ledger among the plurality of distributed ledgers and includes instructions for executing a process associated with a first user; and, Wherein, at least one other first distributed ledger transaction of the plurality of first distributed ledger transactions appears in a second distributed ledger of the plurality of distributed ledgers, and includes instructions for executing additional processes associated with the first user.
8. The method according to any one of the preceding claims further comprises: Identify multiple second distributed ledger transactions, wherein each of the multiple second distributed ledger transactions appears in any of the multiple distributed ledgers, and each of the multiple second distributed ledger transactions includes an instruction to be executed; Verify at least a portion of the plurality of second instructions; and For each of the plurality of second instructions that passes verification: Execute the instruction; and The result of the executed instruction is stored in the electronic data record.
9. The method according to claim 8, further comprising: After executing the verified instruction among the plurality of second instructions, a second verification record is stored in at least one of the plurality of distributed ledgers, the second verification record indicating the result stored in the electronic data record as the result of each executed instruction among the plurality of second instructions.
10. The method according to claim 8 or 9, wherein, At least one of the plurality of first distributed ledger transactions appears in a first distributed ledger among the plurality of distributed ledgers and includes instructions for executing a process associated with a first user; as well as, Wherein, at least one of the plurality of second distributed ledger transactions appears in the second distributed ledger of the plurality of distributed ledgers, and includes instructions for executing additional processes associated with the first user.
11. The method according to any one of the preceding claims, wherein, Each of the plurality of first instructions includes an identifier of the user associated with that instruction, and the result of each executed instruction is stored in the electronic data storage in association with the user associated with that executed instruction. The method further includes: Receive a first status query regarding the status of electronic data stored in the electronic data storage associated with the first user; In response to the first status query, a status notification is communicated, the status notification including: An indication of the status of the electronic data associated with the first user; and A status certificate used to verify the status of the indicated electronic data associated with the first user.
12. A computer program, when executed on at least one processor of an electronic device, performs the method of any one of the preceding claims.
13. An electronic device for performing the method of any one of claims 1 to 11.
14. A computer-implemented method for monitoring the execution of instructions issued through any of two or more different distributed ledgers, the method comprising: Monitor multiple distributed ledgers to obtain distributed ledger transactions containing instructions to be executed; Identify a plurality of first distributed ledger transactions, wherein each of the plurality of first distributed ledger transactions appears in any of the plurality of distributed ledgers, and each of the plurality of first distributed ledger transactions includes an instruction to be executed; Identify a first verification record stored in at least one of the plurality of distributed ledgers, wherein the first verification information is used to verify the execution of an instruction among the plurality of first instructions; as well as The execution of the instruction is verified using the first verification information.
15. A computer-implemented method for a first user to verify the status of data associated with and stored in an electronic data record, the method comprising: Output a status query regarding the status of the data associated with the first user in the electronic data record, wherein the status query includes the identifier of the first user; Receive status notification, the status notification including: An indication of the state of the data associated with the first user; and A status certificate used to verify the status of the indicated electronic data associated with the first user; Identify the verification record of one or more distributed ledgers among a plurality of distributed ledgers, the one or more distributed ledgers being used to verify the indication of the state of data associated with the first user; The indication of the state of the data associated with the first user is verified using the state proof and the identified verification record.
Citation Information
Patent Citations
Blockchain communications and ordering
EP3493141A1
