Cross-blockchain transaction processing method, related device, storage medium and product
The method of generating formal signatures through multiple relay signatures and signature aggregation nodes solves the problems of high resource consumption and difficulty in ensuring security in cross-blockchain transaction processing, and achieves efficient and safe cross-blockchain transaction processing.
Patent Information
- Application Number
- PCT/CN2023/121057
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-06
- Filing Date
- 2023-09-25
- Publication Date
- 2024-09-06
AI Technical Summary
In existing blockchain technology, when executing cross-blockchain transactions by relaying blockchains, it consumes a lot of resources and it is difficult to ensure security.
Using multiple relays to sign separately, the signature aggregation node generates a formal signature and sends it to the target blockchain network for verification, which reduces the dependence on the relay blockchain, reduces resource consumption, and ensures Improves the security of cross-blockchain transactions.
While ensuring the security of cross-blockchain transaction processing, it significantly reduces resource consumption, improves processing efficiency, and avoids the overhead of maintaining relay blockchains.
Smart Images

Figure CN2023121057_06092024_PF_FP
Abstract
Description
Cross-blockchain transaction processing methods, related devices, storage media and products
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 6, 2023, with application number 2023100199546 and application name “Cross-blockchain transaction processing method, related equipment, storage medium and product”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of blockchain technology, and in particular to cross-blockchain transaction processing technology. Background Art
[0003] In existing blockchain technology, each blockchain network maintains a single blockchain. A blockchain network has multiple business nodes. After reaching consensus on a block generated by one of these nodes, the nodes record that block on that network's blockchain. Different blockchain networks maintain different blockchains. When one blockchain network requires information from another blockchain network, or requests an operation from another, a cross-blockchain transaction occurs.
[0004] In related technologies, cross-blockchain transactions are executed through a relay blockchain. The relay blockchain is maintained by relay nodes and is trustworthy. When a blockchain network needs to execute a cross-blockchain transaction, it sends a cross-blockchain transaction request to the relay node. After the relay node verifies the cross-blockchain transaction request, it generates a block record and stores it in the relay blockchain. Because the relay blockchain is trustworthy, another blockchain network can execute the cross-blockchain transaction request based on the block recorded in the relay blockchain. However, maintaining the relay blockchain and recording the block to the relay blockchain requires significant overhead and consumes a lot of resources. Therefore, a cross-blockchain transaction processing technology that consumes less resources while ensuring security is desired.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a cross-blockchain transaction processing method, related devices, storage media, and products that can reduce resource consumption while ensuring the security of cross-blockchain transaction processing.
[0007] According to one aspect of the present application, a cross-blockchain transaction processing method is provided, which is applied to a relay system between a source blockchain network and a target blockchain network, wherein the relay system includes a first interface node, a first number of relays, and a signature aggregation node, where the first number is an integer greater than 1. The cross-blockchain transaction processing method includes:
[0008] Obtaining, through the first interface node, a cross-chain transaction processing request from the source blockchain network, and distributing the cross-chain transaction processing request to a first number of the relayers;
[0009] Performing a first verification and signing of the cross-chain transaction processing request through the relayer to generate a sub-signature;
[0010] After receiving the second number of sub-signatures, the signature aggregation node generates a first signature of the relay system, and sends the cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
[0011] According to one aspect of the present application, a relay system is provided, which is applied between a source blockchain network and a target blockchain network. The relay system includes a first interface node, a first number of relays, and a signature aggregation node, where the first number is an integer greater than 1, wherein:
[0012] The first interface node is configured to obtain a cross-chain transaction processing request from the source blockchain network and distribute the cross-chain transaction processing request to a first number of the relayers;
[0013] The relayer is configured to perform a first verification and sign the cross-chain transaction processing request to generate a sub-signature;
[0014] The signature aggregation node is configured to generate a first signature of the relay system after receiving the second number of sub-signatures, and send the cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
[0015] According to one aspect of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the cross-blockchain transaction processing method as described above is implemented.
[0016] According to one aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the cross-blockchain transaction processing method as described above is implemented.
[0017] According to one aspect of the present application, a computer program product is provided, comprising a computer program, wherein the computer program is read and executed by a processor of a computer device, so that the computer device performs the cross-blockchain transaction processing method as described above.
[0018] In the embodiment of the present application, the relay blockchain recording method consumes more resources, so the relay blockchain is cancelled and replaced by a method in which multiple repeaters sign separately. The repeater verifies the cross-chain transaction processing request and generates a sub-signature. After receiving the second number of sub-signatures, the signature aggregation node generates the official signature of the relay system and sends it to the target blockchain network for verification and processing. The second number is less than the total number of repeaters in the relay system (the first number). Since the official signature of the relay system is generated for it only after receiving the sub-signatures of the second number of repeaters, when the target blockchain network receives the official signature, it means that enough repeaters have been successfully verified and the cross-chain transaction processing request is credible, thereby ensuring the security of cross-chain transaction processing. At the same time, since the resources consumed by multiple repeater signatures are far less than the resources consumed by maintaining a relay blockchain and recording on the relay blockchain, resource consumption is reduced. The second number is less than the first number, which means that the signature aggregation node does not have to wait for all the first number of repeaters to sign before issuing the official signature of the relay system, taking into account processing efficiency while ensuring security. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1 is a system architecture diagram of a system for applying a cross-blockchain transaction processing method provided in an embodiment of the present application;
[0020] FIG2a is a schematic diagram of a cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain virtual resource exchange scenario;
[0021] FIG2 b is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain virtual resource exchange scenario;
[0022] FIG2c is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain virtual resource exchange scenario;
[0023] FIG2 d is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain virtual resource exchange scenario;
[0024] FIG2e is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain virtual resource exchange scenario;
[0025] FIG3a is a schematic diagram of a cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain function call scenario;
[0026] FIG3 b is a schematic diagram of a cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain function call scenario;
[0027] FIG3c is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain function call scenario;
[0028] FIG3 d is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a cross-chain function call scenario;
[0029] FIG4a is a schematic diagram of a cross-blockchain transaction processing method provided by an embodiment of the present application applied in a multi-chain resource aggregation statistics scenario;
[0030] FIG4 b is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a multi-chain resource aggregation statistics scenario;
[0031] FIG4c is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a multi-chain resource aggregation statistics scenario;
[0032] FIG4 d is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a multi-chain resource aggregation statistics scenario;
[0033] FIG4e is a schematic diagram of the cross-blockchain transaction processing method provided by an embodiment of the present application applied in a multi-chain resource aggregation statistics scenario;
[0034] FIG5 is a flow chart of a cross-blockchain transaction processing method according to an embodiment of the present application;
[0035] FIG6 is a schematic diagram of a comprehensive application scenario of a cross-blockchain transaction processing method provided in an embodiment of the present application;
[0036] FIG7 is a structural diagram of a cross-blockchain transaction processing method for executing an embodiment of the present application;
[0037] FIG8 is a flow chart of the first half of step S610 in FIG5 ;
[0038] FIG9 is a schematic diagram of the data structure of the cross-chain transaction processing request block in step S612 in FIG8 ;
[0039] FIG10a is a specific flowchart of the cross-chain transaction processing request block recorded in the source blockchain in step S612 of FIG8 ;
[0040] FIG10 b is a specific flowchart of the cross-chain transaction processing request block recorded in the source blockchain in step S612 of FIG8 ;
[0041] FIG11 is a flow chart of the second half of step S610 in FIG5 ;
[0042] FIG12 is a schematic diagram showing the relationship between the first private key, the private key fragment, and the first public key in FIG11 ;
[0043] FIG13 is a flow chart of step S620 of FIG5 ;
[0044] FIG14 is a schematic diagram of a data structure of a cross-chain transaction request block with a sub-signature generated in FIG13 ;
[0045] FIG15 is a schematic diagram of a data structure of a cross-chain transaction request block with the first signature generated in step S630 of FIG5 ;
[0046] FIG16a is a specific flowchart of the target blockchain network performing a second verification on the first signature and processing the cross-chain transaction request in step S630 in FIG5 ;
[0047] FIG16 b is a specific flowchart of the target blockchain network performing a second verification on the first signature and processing the cross-chain transaction request in step S630 in FIG5 ;
[0048] FIG17 is a schematic diagram of a process in which an embodiment of the present application is applied to a cross-chain virtual resource exchange scenario;
[0049] FIG18 is a diagram showing changes in the balances of various virtual resource accounts in a cross-chain virtual resource exchange scenario according to an embodiment of the present application;
[0050] FIG19 is a schematic diagram of a process in which an embodiment of the present application is applied to a cross-chain function call scenario;
[0051] FIG20 is a diagram showing changes in the balance of a first virtual resource account of a first object in a cross-chain function call scenario according to an embodiment of the present application;
[0052] FIG21 is a schematic diagram of a process in which an embodiment of the present application is applied to a multi-chain resource aggregation statistics scenario;
[0053] FIG22 is a schematic diagram of an aggregation statistics process in a multi-chain resource aggregation statistics scenario according to an embodiment of the present application;
[0054] FIG23 is a diagram showing the structure of a terminal for implementing the cross-blockchain transaction processing method shown in FIG5 according to an embodiment of the present application;
[0055] FIG24 is a server structure diagram for implementing the cross-blockchain transaction processing method shown in FIG5 according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0057] Before further explaining the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations:
[0058] Blockchain: Blockchain is a new application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a string of linked data blocks generated using cryptographic methods. Each block contains information about a batch of transactions, used to verify the validity of the information (to prevent counterfeiting) and link it to the previous block.
[0059] Threshold Signature Scheme (TSS): A key branch of digital signatures, it is a cryptographic technique based on secure multi-party computation (MPC) and a key research area in MPC key management. A characteristic of threshold signatures is that each signature is generated by a single private key. However, this private key is not fully accessible to any single person. Instead, it is fragmented and held by multiple people. The MPC protocol ensures that these fragments do not need to be pieced together to produce a valid signature. Threshold signatures can be aggregated off-chain, requiring only a single on-chain signature submission.
[0060] Oracle: A mechanism for writing external information into the blockchain, often referred to as an oracle. An oracle is a trusted entity that uses signatures to introduce information about the state of the external world, allowing deterministic smart contracts to react to the uncertain external world. Oracles are characterized by immutability, stable service, and auditability, and they employ economic incentives to ensure their operation.
[0061] System architecture and scenario description of the application examples
[0062] Referring to Figure 1, the system architecture applied by the cross-blockchain transaction processing method of an embodiment of the present application includes a first terminal, a source blockchain network, a relay system, a target blockchain network and a second terminal.
[0063] The first terminal is the one that initiates a cross-chain transaction request. This terminal can take the form of a desktop computer, laptop, mobile phone, personal digital assistant (PDA), vehicle-mounted terminal, dedicated terminal, server, or other device. A cross-chain transaction request is a request from a source blockchain to a target blockchain. Cross-chain transaction requests can involve resource exchange or transfer, function call, or resource aggregation. Cross-chain transaction requests arise because different blockchain networks maintain different blockchains. Therefore, when one blockchain network requires information from another blockchain network, or requests that another blockchain network perform a certain operation, a cross-chain transaction request is necessary.
[0064] The source blockchain network is a collection of business nodes that record blocks on the source blockchain. After reaching consensus on a block generated by one of these business nodes, they record that block on the source blockchain maintained by the source blockchain network. After the source blockchain network receives a cross-chain transaction request, it sends it to the relay system.
[0065] The relay system, located between the source and target blockchain networks, is a unit that resolves the trust issue of cross-blockchain transactions and is also the core processing unit of the cross-blockchain transaction processing method of the embodiments of this application. Cross-blockchain transactions primarily resolve the trust issue between the source and target blockchain networks, enabling the source blockchain network to obtain information from the target blockchain network or perform operations through the target blockchain network. How to resolve this trust issue will be elaborated in the detailed description of the cross-blockchain transaction processing method of the embodiments of this application below. Because the relay system is trustworthy, cross-chain transaction processing requests can be sent to the target blockchain network through the relay system's processing.
[0066] The target blockchain network is a collection of business nodes that record blocks on the target blockchain. After reaching consensus on a block generated by one of these business nodes, the nodes record that block on the target blockchain maintained by the target blockchain network. Upon receiving a cross-chain transaction request forwarded by the relay system and verifying that it originated from the relay system, the target blockchain network can respond to the cross-chain transaction request and complete the associated transaction.
[0067] The second terminal is a terminal in the target blockchain network. When a service node in the target blockchain network executes a cross-chain transaction request, if the second terminal is involved, the second terminal is notified. The second terminal is similar to the first terminal and will not be described in detail here.
[0068] The embodiments of the present application can be applied in a variety of scenarios, such as the cross-chain virtual resource exchange scenario shown in Figures 2a to e, the cross-chain function call scenario shown in Figures 3a to d, and the multi-chain resource aggregation statistics scenario shown in Figures 4a to e.
[0069] (1) Scenario of cross-chain virtual resource exchange
[0070] Blockchain is a distributed database that can be used to record transactions of virtual resources. Different blockchains can record different virtual resources. Users can exchange virtual resources on one blockchain for virtual resources on another.
[0071] As shown in Figure 2a, object A has a first virtual resource account on the source blockchain network, with an initial balance of 100 first virtual resources. Object B also has a first virtual resource account on the source blockchain network, with an initial balance of 40 first virtual resources. Simultaneously, object A has a second virtual resource account on the target blockchain network, with an initial balance of 70 second virtual resources. Object B also has a second virtual resource account on the target blockchain network, with an initial balance of 50 second virtual resources. The exchange rate between the two virtual resources is 10 to 1, meaning that 20 first virtual resources equal 2 second virtual resources.
[0072] When object A requests to exchange its first virtual resource for object B's second virtual resource, the source blockchain network where object A resides first sends a cross-chain transaction request to the relay system, requesting an exchange of 20 first virtual resources with object B. The relay system processes the cross-chain transaction request, signs and verifies it, and then pushes it to the target blockchain network, requesting an exchange of 20 first virtual resources with object B. In response, the target blockchain network adds two second virtual resources to object A's second virtual resource account based on the current exchange rate. This adds 72 second virtual resources to object A's second virtual resource account. Simultaneously, it subtracts two second virtual resources from object B's second virtual resource account, leaving it with 48 second virtual resources. The target blockchain network then returns the exchange message to the relay system, which then passes it back to the source blockchain network. The source blockchain network deducts 20 first virtual resources from Object A's first virtual resource account and deducts the 2 first virtual resources consumed by the source blockchain network, the relay system, and the target blockchain network during the exchange, bringing the balance in Object A's first virtual resource account to 78 first virtual resources. The source blockchain network also adds 20 first virtual resources to Object B's first virtual resource account, bringing the balance in Object B's first virtual resource account to 60 first virtual resources.
[0073] It is obvious from the above scenario that when cross-chain virtual resource exchange is performed, it cannot be completed on a single blockchain network, and the cross-blockchain transaction processing method of the embodiment of the present application must be used.
[0074] Figures 2b to e show the interface interaction process of this scenario.
[0075] As shown in Figure 2b, subject A can view the balance of subject A's first virtual resource account on the virtual resource management interface of the first terminal, such as "Balance: 100 first virtual resources" shown in the figure. Subject A can also view multiple selectable function options, such as "Option 1" to "Option 3." The function options may also include a "Resource Exchange" function option.
[0076] As shown in Figure 2c, after Subject A selects the "Resource Exchange" option in Figure 2b, the interface of the first terminal displays multiple input boxes, including "Enter target virtual resource type," "Enter exchange object," and "Enter conversion amount." "Enter target virtual resource type" is used to enter the target virtual resource type for this cross-chain virtual resource exchange. For example, "Second virtual resource" can be entered, which will result in a virtual resource exchange between the first and second virtual resources. "Enter exchange object" is used to enter the target object for this cross-chain virtual resource exchange. For example, "Object B" can be entered, which will result in a cross-chain virtual resource exchange between Subject A and Object B. "Enter conversion amount" is used to enter the amount to be exchanged. For example, "20" can be entered, which will result in Subject A's 20 first virtual resources being exchanged for the second virtual resource. After completing the entries in each input box, Subject A can select the "Confirm Selection" button at the bottom of the interface to confirm the current interface.
[0077] As shown in Figure 2d, after Subject A selects "Confirm Selection" in Figure 2c, the interface of the first terminal will display the predicted exchange resource consumption and the estimated account balance after the exchange. Exchange resource consumption refers to the resources consumed by the source blockchain network, relay system, and target blockchain network to complete the exchange. For example, based on the real-time exchange rate, the current exchange rate is estimated to be 10:1, meaning that 20 first virtual resources will be exchanged for 2 second virtual resources. The estimated exchange resource consumption for this exchange is 2 first virtual resources. Based on this information, the current account balance is estimated and displayed, for example, 100 (initial value) - 20 (already exchanged for second virtual resources) - 2 (exchange resource consumption) = 78 (balance). After the above information is displayed, the interface may display a message "Please confirm whether to continue." Subject A can select the "Yes" button at the bottom of the interface to confirm the operation.
[0078] As shown in Figure 2e, after Subject A selects "Yes" in Figure 2d, the first terminal's interface displays the results of the cross-chain virtual resource exchange. If successful, "Exchange Successful!" will be displayed. Additionally, the current page displays the balance of Subject A's account. The initial value of Subject A's first virtual resource account is 100 first virtual resources, with a balance of 78 first virtual resources; the initial value of Subject A's second virtual resource account is 70 second virtual resources, with a balance of 72 second virtual resources.
[0079] (2) Cross-chain function call scenarios
[0080] Cross-chain function calls refer to the process of an object executing its business contract, which calls various functions. Some functions exist on the blockchain where the business contract resides and can be accessed directly on the blockchain, while some functions exist on other blockchains maintained by other blockchain networks, requiring cross-chain function calls. The trust issues caused by cross-chain function calls can be resolved through the cross-blockchain transaction processing method of the embodiments of this application.
[0081] As shown in Figure 3a, object A on the source blockchain network performs a signature calculation during the execution of its business contract, requiring the use of digest function X. However, digest function X resides on the target blockchain network, not the source blockchain. Therefore, a cross-chain function call is required. Object A's source blockchain network first sends a cross-chain transaction request to the relay system, requesting the invocation of function Y on the target blockchain. Upon receiving the cross-chain transaction request, the relay system processes it, verifies and signs it, and then pushes the cross-chain transaction request to the target blockchain network, requesting the invocation of function Y on the target blockchain. The target blockchain network then returns digest function X to the source blockchain network via the relay system.
[0082] Figures 3b to 3d are schematic diagrams of the interface in this scenario.
[0083] As shown in FIG3b , the interface of the first terminal of subject A displays the message “The X digest function maintained by the target blockchain is required for your signature calculation. Do you want to obtain it across the chain?” Subject A selects “Yes” on the interface.
[0084] After Subject A selects "Yes" on the screen shown in Figure 3b, the screen shown in Figure 3c appears, indicating that the estimated redemption resource consumption from calling the X summary function on the target blockchain is 2 first virtual resources, and the balance in Subject A's first virtual resource account will increase to 98 first virtual resources. The screen in Figure 3c also prompts Subject A to continue. If so, Subject A selects "Yes."
[0085] After Subject A selects "Yes" in Figure 3c, the interface of the first terminal displays the result of the cross-chain function call. If successful, "Call Successful!" will be displayed. Additionally, the balance of Subject A's first virtual resource account may be displayed, such as "Balance: 98 First Virtual Resources."
[0086] (3) Scenarios for multi-chain resource aggregation statistics
[0087] An object may have virtual resources of corresponding virtual resource types on different blockchains (e.g., an object may have a first virtual resource on a blockchain that records the first virtual resource, and a second virtual resource on a blockchain that records the second virtual resource). Multi-chain resource aggregation statistics refers to aggregating the resources of an object on different blockchains and counting the total number of resources. Since this statistics requires collaboration between different blockchain networks, which may lead to distrust issues, the cross-blockchain transaction processing method of the embodiments of the present application can be used.
[0088] As shown in Figure 4a, Subject A has a first virtual resource account on the source blockchain network, initially holding 100 first virtual resources, and a second virtual resource account on the target blockchain network, initially holding 2 second virtual resources. The exchange rate between the two virtual resources is 10:1, meaning 20 first virtual resources equal 2 second virtual resources. When Subject A initiates multi-chain resource aggregation and statistics on the source blockchain network, the source blockchain network first sends a cross-chain transaction request to the relay system, requesting cross-chain resource aggregation and statistics. Upon receiving the cross-chain transaction request, the relay system processes it, verifies and signs it, and then pushes it to the target blockchain network, requesting resource aggregation and statistics with Subject A's second virtual resource account. The target blockchain network then returns an aggregation message to the source blockchain network via the relay system, informing Subject A of the balance in its second virtual resource account. The source blockchain network converts the balance of 2 second virtual resources in Object A's second virtual resource account on the target blockchain network into 20 first virtual resources at an exchange rate of 10:1. This is then aggregated with the initial value of 100 first virtual resources in Object A's first virtual resource account on the source blockchain network, resulting in 120 first virtual resources. After deducting the 2 first virtual resources consumed during the exchange, the aggregated result is 118 first virtual resources.
[0089] 4b to 4e show schematic diagrams of interfaces in this scenario.
[0090] As shown in Figure 4b, subject A can view the balance of its first virtual resource account on the interface of the first terminal, such as "Balance: 100 first virtual resources." The interface also displays multiple selectable options, such as "Option 1" to "Option 4," including the "Resource Aggregation" option.
[0091] After Subject A selects the "Resource Aggregation" option in Figure 4b, the interface of the first terminal displays an "Enter Target Virtual Resource Type" input box, as shown in Figure 4c, for entering the target virtual resource type for multi-chain resource aggregation statistics. For example, you could enter "Second Virtual Resource," and resource aggregation would be performed between Subject A's first and second virtual resource accounts.
[0092] After Subject A selects "Confirm Selection" in Figure 4c, the interface of the first terminal will display the estimated exchange resources required for multi-chain resource aggregation statistics, as shown in Figure 4d. A message "Please confirm whether to continue" may also be displayed at the bottom of the interface. Subject A can select the "Yes" button below to confirm the operation.
[0093] After object A selects "Yes" in Figure 4d, as shown in Figure 4e, the interface of the first terminal will display the results of the resource aggregation statistics of object A, for example, "The total resources of the first virtual resource account and the second virtual resource account are equivalent to 118 first virtual resources, deducting 2 first virtual resources consumed in exchange."
[0094] General description of the embodiments of this application
[0095] According to one embodiment of the present application, a cross-blockchain transaction processing method is provided. Cross-blockchain transaction processing refers to transaction processing that requires the interaction of multiple blockchain networks, such as the cross-chain virtual resource exchange in Figures 2a to e, the cross-chain function call in Figures 3a to d, and the multi-chain resource aggregation statistics in Figures 4a to e. The cross-blockchain transaction processing method is executed by a relay system between a source blockchain network and a target blockchain network. The relay system includes a first interface node, a first number of relays, and a signature aggregation node, where the first number is an integer greater than 1.
[0096] As shown in FIG5 , a cross-blockchain transaction processing method according to one embodiment of the present application may include:
[0097] Step S610: Obtain a cross-chain transaction processing request from a source blockchain network through a first interface node, and distribute the cross-chain transaction processing request to a first number of relayers;
[0098] Step S620: Perform a first verification and signature on the cross-chain transaction processing request through the relay to generate a sub-signature;
[0099] Step S630: After receiving the second number of sub-signatures, the signature aggregation node generates a first signature of the relay system, and sends a cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
[0100] Steps S610 to S630 are described in detail below.
[0101] In step S610, the first interface node is a module set up in the relay system for discovering cross-chain transaction processing requests. It can be an independent device, such as a separate computer or server, or it can be part of an independent device, such as a virtual machine partitioned from a server.
[0102] As shown in Figure 5, step S610 can be divided into the interactive process of the source blockchain network initiating a cross-chain transaction processing request (step A6101), the first interface node initiating a cross-chain transaction processing request (step A6102), and the first interface node distributing the cross-chain transaction processing request to a first number of repeaters (step A6103). A cross-chain transaction processing request is a request for performing cross-chain transactions (such as cross-chain virtual resource exchange, cross-chain function call, multi-chain resource aggregation statistics, etc.). Since the biggest obstacle in cross-chain transactions is the lack of trust between different blockchain networks, and the method of recording accounts to the relay blockchain in the related art can solve the trust problem, it introduces a large overhead due to the need to maintain a relay blockchain. In the embodiment of the present application, the relay blockchain is discarded and replaced by multiple repeaters. The first interface node sends the same cross-chain transaction processing request to multiple repeaters. Multiple repeaters verify the cross-chain transaction processing request separately. Since many relayers have been verified and are neutral, the problem of distrust can be eliminated for the target blockchain network, and the relay blockchain that increases overhead can be omitted.
[0103] In step S620, the relay is the component in the relay system that performs the first verification on the cross-chain transaction request. This first verification verifies that the cross-chain transaction request is genuinely issued by the source blockchain network and is not fraudulent. It can be an independent device, such as a separate computer or server, or a part of an independent device, such as a virtual machine partitioned from a server. The subsignature is the relay's proof that the cross-chain transaction request is authentic and valid. The first number can be the total number of relays configured in the relay system. The number of relays performing the first verification can be the first number or a smaller number, without specific limitations.
[0104] In step S630, the signature aggregation node is a module in the relay system that aggregates the sub-signatures made by the relay. It can be an independent device, such as a separate computer or server, or a part of an independent device, such as a virtual machine partitioned from a server.
[0105] As shown in Figure 5, step S630 can be divided into the following interactive process: the repeater sends the sub-signature and cross-chain transaction processing request to the signature aggregation node (step A6301); after receiving the second number of sub-signatures, the signature aggregation node generates the first signature of the relay system (step A6302); the signature aggregation node sends the cross-chain transaction processing request and the first signature to the target blockchain network (step A6303); the target blockchain network receives the cross-chain transaction processing request and the first signature, and verifies and processes them (step A6304).
[0106] The second number is smaller than the first number. This means that the signature aggregation node can issue the official signature of the relay system without waiting for all the first number of repeaters to complete the signature, which takes into account processing efficiency while ensuring security. But the second number is also a considerable number. When the target blockchain network receives the cross-chain transaction processing request and the first signature, it means that enough repeaters (at least the second number of repeaters) have been successfully verified, and the repeaters are neutral, so the cross-chain transaction processing request is credible, thereby ensuring the security of the cross-chain transaction processing. After the target blockchain network receives the cross-chain transaction processing request and the first signature, it only needs to verify that the first signature is authentically made by the relay system, without verifying whether the cross-chain transaction processing request is authentic. This is equivalent to a sufficient number of repeaters in the relay system providing a guarantee for the credibility of the cross-chain transaction processing request.
[0107] As shown in Figure 6, the cross-blockchain transaction processing method provided by the embodiment of the present application satisfies cross-chain transaction processing requests from the source blockchain network to the target blockchain network through a relay system with multiple relays. The cross-chain transaction may involve digital resources (such as the cross-chain virtual resource exchange scenario and the multi-chain resource aggregation and statistics scenario mentioned above), message notifications (for example, the processing results of one blockchain network need to be notified to another blockchain network, or recorded on the blockchain maintained by another blockchain network), requests (such as the cross-chain function call scenario mentioned above), etc.
[0108] Figure 7 is a block diagram of a cross-blockchain transaction processing method for implementing an embodiment of the present application. This structure is divided into a source blockchain network, a relay system, and a target blockchain network. The modules included in the relay system have been described in conjunction with Figure 5. The modules included in the source and target blockchain networks will be described in detail below in the sections related to the source and target blockchain networks.
[0109] The above is an overall description of steps S610-630. The following will describe in detail the specific implementation of each step S610-630.
[0110] Detailed description of step S610
[0111] In step S610, a cross-chain transaction processing request from a source blockchain network is obtained through a first interface node, and the cross-chain transaction processing request is distributed to a first number of relayers.
[0112] The following first describes the first half of step S610, that is, the specific implementation process of obtaining the cross-chain transaction processing request from the source blockchain network through the first interface node.
[0113] As shown in FIG8 , in one embodiment, the first half of step S610 may include:
[0114] Step S611: Check the source blockchain of the source blockchain network;
[0115] Step S612: If a cross-chain transaction processing request block is found on the source blockchain, the cross-chain transaction processing request is extracted from the cross-chain transaction processing request block, where the cross-chain transaction processing request block has the second identifier of the relay system and the cross-chain transaction processing request.
[0116] After the source blockchain network generates a cross-chain transaction request, it is uploaded to the source blockchain, meaning it is recorded on the chain. A cross-chain transaction request block is the on-chain block containing the cross-chain transaction request. In addition to the cross-chain transaction request, the block body of this block, as shown in Figure 9, also includes a second identifier. This second identifier is a unique identifier assigned to the relay system to which the cross-chain transaction request is addressed. Some blocks recorded on the source blockchain are intended for public viewing, others for future review by the source blockchain network, and only some are intended for viewing by the relay system for verification. Furthermore, even blocks intended for viewing by the relay system require differentiation due to the different relay systems. Therefore, in the above embodiment, a second identifier is assigned to the relay system to which the cross-chain transaction request is addressed. When the source blockchain network records the cross-chain transaction request block on the source blockchain, the second identifier is recorded along with the cross-chain transaction request. In step S611, the first interface node checks each new block recorded on the source blockchain. If the block is found to have the second identifier of the relay system, then in step S612, it is considered that a cross-chain transaction processing request block with the second identifier has been found, and the cross-chain transaction processing request recorded together with the second identifier is extracted from the cross-chain transaction processing request block.
[0117] In the above embodiment, as long as the second identifier is found in a new block, a cross-chain transaction request block is considered to have been found on the source blockchain. In another embodiment, the source blockchain network can record a specific cross-chain transaction request identifier, along with the second identifier and the cross-chain transaction request, in the cross-chain transaction request block. In this case, the second identifier simply indicates the identity of the relay system to which the cross-chain transaction request is directed, and the cross-chain transaction request identifier is used to indicate that the block is a cross-chain transaction request block. In step S611, the first interface node checks each new block recorded in the source blockchain. If the block is found to contain the cross-chain transaction request identifier and the second identifier, the cross-chain transaction request in the block is considered to be a cross-chain transaction request that the relay system needs to process, and the request is removed from the block in step S612.
[0118] Through the embodiment of the above steps S611-612, the first interface node uses the second identifier to accurately determine whether the block newly recorded in the source blockchain contains a cross-chain transaction processing request for verification by itself, thereby achieving rapid differentiation of cross-chain transaction processing requests for verification by different relay systems in the presence of multiple relay systems, thereby improving the scalability of the relay system of the embodiment of the present application.
[0119] In another embodiment, the source blockchain network can also send the cross-chain transaction request directly to the relay system without recording it on the source blockchain. However, recording it on the source blockchain facilitates the formation of evidence after the fact, allowing for auditing the fairness of the relay node's verification. The presence of the original cross-chain transaction request on the source blockchain facilitates public oversight, reduces the possibility of fraud in the relay system, and improves security.
[0120] The following describes in detail the process of forming and uploading a cross-chain transaction request block. Before describing this process, it's important to understand the structure of the source blockchain network. As shown in Figure 7, the source blockchain network includes a first terminal, an oracle, a first service node, and a second interface node.
[0121] The first terminal is the terminal that receives the cross-chain transaction processing request sent by the counterpart. The first terminal can be embodied in various forms such as a desktop computer, laptop computer, mobile phone, personal digital assistant (PDA), vehicle-mounted terminal, dedicated terminal, server, etc.
[0122] Oracles are devices that obtain off-chain information required for cross-chain transactions. Some of the information required for cross-chain transactions can be obtained from information already recorded on the blockchain, while other information cannot be obtained from existing blockchain records and can be obtained through an oracle. In the embodiments of this application, an oracle is primarily used to estimate the resources consumed by processing cross-chain transaction requests and the exchange rates for converting different types of virtual resources. This information cannot be obtained from information recorded on the source blockchain before the cross-chain transaction is executed. The oracle can be a dedicated terminal, a server, a portion of a server (such as a virtual machine), or a cluster of multiple servers.
[0123] The first business node is the node in the source blockchain network that records blocks on the source blockchain and executes various contracts (business contracts and cross-chain contracts) on the source blockchain network. It can be implemented in various forms, such as desktop computers, laptops, mobile phones, personal digital assistants (PDAs), in-vehicle terminals, dedicated terminals, and servers.
[0124] The second interface node is the interface between the source blockchain network and the relay system. It records the cross-chain transaction request block verified by the relay system onto the source blockchain, allowing the relay system to discover and retrieve the cross-chain transaction request. It can be implemented in various forms, such as desktop computers, laptops, mobile phones, personal digital assistants (PDAs), in-vehicle terminals, dedicated terminals, and servers.
[0125] As shown in Figure 10a, the cross-chain transaction request block is recorded to the source blockchain in the following way:
[0126] Step S6101: Receive a cross-chain transaction processing request through the first terminal;
[0127] Step S6102: Estimate the resources consumed by processing the cross-chain transaction request through the oracle, and write the estimated resource value into the cross-chain transaction request;
[0128] Step S6103: Generate a cross-chain transaction processing request block according to the cross-chain transaction processing request through the first business node, and record the cross-chain transaction processing request block on the source blockchain through the second interface node.
[0129] The detailed process of steps S6101-6103 is described below.
[0130] As shown in Figure 10a, step S6101 is actually divided into the process of the first terminal receiving the object's cross-chain transaction processing request (step A61011) and sending the cross-chain transaction processing request to the oracle (step A61012). In the cross-chain virtual resource exchange scenario, the object's cross-chain transaction processing request is generated after object A selects "Confirm Selection" in Figure 2c. In the cross-chain function call scenario, the object's cross-chain transaction processing request is generated after object A selects "Yes" in Figure 3b. In the multi-chain resource aggregation and statistics scenario, the object's cross-chain transaction processing request is generated after object A selects "Confirm Selection" in Figure 4c.
[0131] As shown in Figure 10a, step S6102 is actually divided into the process of the oracle estimating the resources consumed by processing the cross-chain transaction request and writing the obtained exchange consumption resources into the cross-chain transaction request (step A61021), and the oracle sending the written cross-chain transaction request to the first terminal (step A61022). In the example of cross-chain virtual resource exchange shown in Figure 2d, the estimated resources consumed by processing the cross-chain transaction request are 2 first virtual resources. In the example of cross-chain function call shown in Figure 3c, the estimated resources consumed by processing the cross-chain transaction request are 2 first virtual resources. In the example of multi-chain resource aggregation statistics shown in Figure 4d, the estimated resources consumed by processing the cross-chain transaction request are 2 first virtual resources.
[0132] In one embodiment, an oracle may estimate the resources consumed to process a cross-chain transaction request by:
[0133] Decomposing the cross-chain transaction processing into one or more first action elements on the source blockchain network side, one or more second action elements on the relay system side, and one or more third action elements on the target blockchain network side according to a predetermined decomposition rule;
[0134] Obtain a first correspondence table between a first action element and consumed resources published by the source blockchain network, a second correspondence table between a second action element and consumed resources published by the relay system, and a third correspondence table between a third action element and consumed resources published by the target blockchain network;
[0135] Searching a first correspondence table based on one or more first action elements to determine resources consumed by the one or more first action elements; searching a second correspondence table based on one or more second action elements to determine resources consumed by the one or more second action elements; searching a third correspondence table based on one or more third action elements to determine resources consumed by the one or more third action elements;
[0136] The resources consumed by one or more first action elements, the resources consumed by one or more second action elements, and the resources consumed by one or more third action elements are added together to obtain the estimated resources consumed for processing the cross-chain transaction request.
[0137] Cross-chain transaction processing requires the source blockchain network to perform several actions, the relay system to perform several actions, and the target blockchain network to perform several actions. Each of these actions consumes resources. The predefined decomposition rules specify, for each cross-chain transaction, the decomposition of one or more first action elements on the source blockchain network, one or more second action elements on the relay system, and one or more third action elements on the target blockchain network. An action element is the smallest unit of action. Since actions can be composed of multiple action elements, by listing the resource consumption of all possible action elements, the resource consumption of any action can be determined. Therefore, according to the predefined decomposition rules, cross-chain transaction processing can be decomposed into one or more first action elements, one or more second action elements, and one or more third action elements.
[0138] Because the resources consumed by each action element may change over time, the source blockchain network can periodically publish an updated first correspondence table between the first action element and consumed resources, the relay system can periodically publish an updated second correspondence table between the second action element and consumed resources, and the target blockchain network can periodically publish an updated third correspondence table between the third action element and consumed resources. There are various ways for an oracle to obtain the first, second, and third correspondence tables.
[0139] In one acquisition method, once the first, second, or third correspondence tables are updated, the source blockchain network broadcasts the updated first correspondence table to each oracle, the relay system broadcasts the updated second correspondence table to each oracle, and the target blockchain network broadcasts the updated third correspondence table to each oracle. In this way, each oracle obtains the updated first, second, and third correspondence tables.
[0140] In another acquisition method, the source blockchain network publishes the updated first correspondence table on its website, the relay system publishes the updated second correspondence table on its website, and the target blockchain network publishes the updated third correspondence table on its website. When the oracle receives the cross-chain transaction request, it crawls the updated first, second, and third correspondence tables from the source blockchain network's website, the relay system's website, and the target blockchain network's website.
[0141] After obtaining the first, second, and third correspondence tables, the oracle can search the first correspondence table based on the decomposed one or more first action elements to determine the resources consumed by the one or more first action elements; search the second correspondence table based on the decomposed one or more second action elements to determine the resources consumed by the one or more second action elements; and search the third correspondence table based on the decomposed one or more third action elements to determine the resources consumed by the one or more third action elements. After the resources consumed by the first, second, and third action elements are determined, these resources are added together to obtain the estimated resources consumed by processing the cross-chain transaction request.
[0142] The oracle estimates the resources consumed by processing a cross-chain transaction request by breaking down the cross-chain transaction into action elements, then finding the resources consumed by each action element and summing these resources. While the resources consumed by an action are not fixed, the resources consumed by an action element, as the smallest unit of action decomposition, are fixed. By looking up a table that maps action elements to consumed resources, the resources consumed by processing a cross-chain transaction request can be quickly and efficiently estimated, achieving both high efficiency and accuracy.
[0143] In one embodiment, to ensure the stable processing of cross-chain transactions, the oracle can also, after determining the resources consumed by the first, second, and third action elements, add a certain percentage (e.g., 30%) to the sum of the resources consumed by the first, second, and third action elements as the estimated resources consumed for processing the cross-chain transaction request. By reserving a certain fee space for the estimated resource value, it is ensured that during the cross-chain transaction, the resource consumption will not increase suddenly due to accidental operations, resulting in insufficient estimated resources and causing the cross-chain transaction to be interrupted.
[0144] After the estimated resource value is written into the cross-chain transaction processing request, as shown in Figure 9, it serves as a field in the cross-chain transaction processing request.
[0145] As shown in Figure 10a, step S6103 is actually divided into the first terminal sending the written cross-chain transaction processing request to the first business node (step A61031), the first business node generating a cross-chain transaction processing request block based on the cross-chain transaction processing request (step A61032), the first business node sending the cross-chain transaction processing request block to the second interface node (step A61033), and the second interface node recording the cross-chain transaction processing request block on the source blockchain (step A61034). When the first business node generates a cross-chain transaction processing request block based on the cross-chain transaction processing request, as shown in Figure 9, the second identifier and the cross-chain transaction processing request are recorded together in the cross-chain transaction processing request block.
[0146] The advantage of the embodiment of steps S6101-6103 described above is that, through the coordinated relationship between the first terminal, the oracle, the first service node, and the second interface node, a cross-chain transaction request block is generated and uploaded to the chain, improving the efficiency of uploading the cross-chain transaction request block. Furthermore, by introducing the oracle, the subject's awareness of the resource consumption of cross-chain transactions is improved. Existing cross-chain solutions lack transparency, resulting in a lack of awareness of resource consumption in cross-chain transactions, leading to asset losses. This embodiment overcomes this problem by introducing an oracle.
[0147] In one embodiment, a first service node has a first service contract and a first cross-chain contract. A service contract is a contract established between an entity and a blockchain network to execute various blockchain-related services for the entity. A cross-chain contract is a contract used to process cross-chain transactions, specifying the procedures that must be followed when a blockchain network conducts cross-chain transactions with another blockchain network.
[0148] As shown in FIG10b , in one embodiment, step A61032 specifically includes:
[0149] Step A610321: Call the first cross-chain contract through the first business contract;
[0150] Step A610322: Generate a cross-chain transaction processing request block based on the cross-chain transaction processing request through the first cross-chain contract.
[0151] When executing normal, non-cross-chain transactions on the source blockchain network, the first business contract is executed. When a cross-chain transaction is to be executed, in step A610321, the first cross-chain contract is called by the first business contract. For example, the first business contract signs object A, using digest algorithm X. Obtaining digest algorithm X is a cross-chain transaction, and the first business contract must call the first cross-chain contract. The rest of the signing process, since it does not involve cross-chain transactions, is performed by the first business contract.
[0152] In step A610322, the first cross-chain contract generates a cross-chain transaction request block based on the cross-chain transaction request. In the following step A61033, the first cross-chain contract sends the cross-chain transaction request block to the second interface node so that the second interface node can upload it to the chain.
[0153] The advantage of the embodiment of steps A610321-610322 is that the efficiency of generating cross-chain transaction processing request blocks is improved through the coordination relationship between the first business contract and the first cross-chain contract.
[0154] Next, the second half of step S610, i.e., the first interface node distributes the cross-chain transaction processing request to the first number of relayers, will be described in detail. As shown in FIG11 , in one embodiment, the second half of step S610 may specifically include:
[0155] Step S613: Generate a first private key;
[0156] Step S614: Generate a first number of private key fragments and a first public key based on the first private key;
[0157] Step S615: Send the cross-chain transaction processing request and the first number of private key fragments to the first number of relayers;
[0158] Step S616: Publish the first public key.
[0159] The first private key is the private key used for signatures in the relay system. The first public key is the public key corresponding to the first private key and is used to decrypt the first signature generated using the first private key. Instead of using the first private key to directly sign a cross-chain transaction request, this embodiment of the application divides the first private key into several private key fragments. Each relayer uses a private key fragment to generate a sub-signature. The sub-signatures generated by multiple relays are then aggregated to generate the first signature of the entire relay system for the cross-chain transaction request. This first signature is the same as the result of directly signing the cross-chain transaction request using the first private key.
[0160] In step S613, the first private key may be generated by generating a random number.
[0161] In step S614, the first public key can be generated by using the existing public-private key pairing method. The first number of private key fragments generated based on the first private key does not mean simply dividing the first private key, but rather using a method such as a unary multi-function method to covertly generate private key fragments. The first private key cannot be obtained by simply superimposing the first number of private key fragments. The first private key can only be obtained through an intrinsic operation such as a unary multi-function method. The advantage of this setting is that it prevents a third party from obtaining the first number of private key fragments and then simply superimposing them to obtain the first private key, thereby improving the security of the first private key. At the same time, this intrinsic operation method makes it possible to restore the first private key by only obtaining the second number of private key fragments instead of the first number of private key fragments. The principle is as follows:
[0162] Construct a univariate (n-1) function Y=a n-1 x n-1 +a n-2 x n-2 ...+a1x+a0, where n is a second number that is a positive integer greater than or equal to 2, and a0 is the first private key. When generating the first number of private key fragments based on the first private key, x can be set to be equal to x1, x2, ...xm For example, let x be equal to 1, 2, ... m (m is the first number, and m is greater than n), substitute Y = a n-1 x n-1 +a n-2 x n-2 ...+a1x+a0, the resulting Y are y1, y2...y m , as the first number of private key fragments generated based on the first private key a0. That is, Y = a n-1 x n-1 +a n-2 x n-2 The curve of ...+a1x+a0 passes through (x1,y1), (x2,y2), ...(x m ,y m ). But in fact, to find a n-1 、a n-2 ...the n unknown coefficients of a0 only require n points, not m. Therefore, only the second number of n private key fragments is needed to recover the first private key a0. Once the second number of relayer subsignatures using the private key fragments are collected, the second number of private key fragments can be derived from them, and the first private key a0 can be recovered from them. The first private key a0 can then be used to sign the cross-chain transaction request, obtaining the first signature. This entire process does not require the collection of the first number of subsignatures.
[0163] In step S616, the first public key can be published in a variety of ways. In one approach, the first public key can be published on the relay system's website. This way, when the target blockchain network needs to verify the first signature, it can obtain the first public key from the relay system's website. In another approach, after generating the first public key, it can be broadcast to all blockchain networks. This way, the target blockchain network can obtain the first public key.
[0164] The advantage of the embodiment of steps S613-616 is that a first number of private key fragments are generated based on the first private key and sent to a first number of relays for generating subsignatures. Compared to a method where only one node directly generates the first signature based on the first private key, this method increases the number of verification nodes and improves security. Furthermore, publishing the first public key allows the target blockchain network to easily obtain the first public key, improving verification efficiency.
[0165] Detailed description of step S620
[0166] In step S620, the cross-chain transaction processing request is first verified and signed by the relay to generate a sub-signature.
[0167] In one embodiment, step S620 may specifically include: performing a first verification on the cross-chain transaction processing request through the repeater, and signing the cross-chain transaction processing request using the private key fragments held by the repeater to generate a sub-signature, wherein the number of private key fragments is a first number, the first number of private key fragments are respectively held by a first number of repeaters, and the first number of private key fragments correspond to a unique first public key.
[0168] As shown in FIG12 , a first number of private key fragments are generated based on the first private key, where the first number is M. Each private key fragment is a portion of the first private key, and the first private key uniquely corresponds to the first public key. Therefore, the M private key fragments generated by the first private key each have a unique first public key.
[0169] As mentioned above, the first interface node distributes private key fragments to a first number of relays. Each relay receives a private key fragment. Each relay performs a first verification on the cross-chain transaction request to confirm its authenticity. It then signs the cross-chain transaction request using the private key fragment it holds, generating a sub-signature. Each relay sends its sub-signature to the signature aggregation node.
[0170] As shown in Figure 13, in one embodiment, step S620 includes: step S6201, performing a first verification on the cross-chain transaction request; step S6202, performing a third verification on the cross-chain transaction request; and step S6203, generating a subsignature using the private key fragment. Steps S6201-6203 are performed by the relay. The first verification verifies that the cross-chain transaction request is genuinely issued by the first business node of the source blockchain network. This first verification can only verify that the cross-chain transaction request is issued by the source blockchain network, but it is powerless if the source blockchain network is cheating. The third verification further verifies that the cross-chain transaction is real. If the cross-chain transaction is not real but is fabricated by the source blockchain network through cheating, the third verification will fail. The third verification is optional.
[0171] The first verification process of step S6201 is described in detail below.
[0172] In one embodiment, a cross-chain transaction request includes a first identifier of a first business node in the source blockchain network and a second signature of the first business node, as shown in Figure 9. The first identifier is used to obtain the second public key of the first business node. The second signature is a signature issued by the first business node, representing that the cross-chain transaction request was actually issued by the first business node. The second signature is generated using the second private key of the first business node. In one embodiment, when generating the second signature, a digest of the cross-chain transaction request can be first generated using a predetermined digest algorithm, and then the digest can be encrypted using the second private key to obtain the second signature.
[0173] As shown in FIG13 , the first verification in step S6201 may specifically include:
[0174] Step S62011: Obtain a second public key corresponding to the first identifier;
[0175] Step S62012: Use the second public key to perform a first verification on the second signature.
[0176] In step S62011, the second public key corresponding to the first identifier can be obtained in a variety of ways. In one way, the first business node publishes its second public key corresponding to the first identifier on the website of the source blockchain network. In this way, when the repeater needs to perform the first verification, it can obtain the second public key corresponding to the first identifier on the website of the source blockchain network based on the first identifier. In another way, after the first business node generates its second public key, it broadcasts the second public key to each repeater. In this way, the repeater stores the first identifier of the first business node and the second public key locally in correspondence. In step S62011, the second public key corresponding to the first identifier can be obtained locally based on the first identifier.
[0177] In step S62012, when performing the first verification on the second signature using the second public key, the second signature can be decrypted using the second public key to obtain the digest of the cross-chain transaction request. The repeater then uses the same digest algorithm to generate a digest of the cross-chain transaction request. If the generated digest is consistent with the decrypted digest, the first verification is successful.
[0178] The advantage of steps S62011-62012 is that by obtaining the second public key of the first business node through the first identifier and then performing the first verification using the second public key, it is possible to fully verify whether the second signature is authentically made by the first business node. If it is authentically made by the first business node, it at least proves that it is not a fake request issued by a counterfeit business node, thus improving the security of cross-chain transactions.
[0179] The third verification process of step S6202 of FIG. 13 is described in detail below.
[0180] As shown in Figure 9, in one embodiment, the cross-chain transaction processing request also includes a cross-chain transaction type. The cross-chain transaction type is the type of cross-chain transaction, such as cross-chain virtual resource exchange, cross-chain function call, multi-chain resource aggregation statistics, etc.
[0181] As shown in FIG13 , the third verification in step S6202 may specifically include:
[0182] Step S62021: Obtain the verification rules corresponding to the cross-chain transaction type;
[0183] Step S62022: Perform a third verification on the cross-chain transaction processing request according to the verification rules.
[0184] Both step S62021 and step S62022 are executed in the repeater.
[0185] The third verification is used to further verify that the cross-chain transaction is real. Depending on the type of cross-chain transaction, the verification rules are also different. For example, if the cross-chain transaction type is a cross-chain virtual resource exchange, the verification rule may be to send a verification request to both terminals (the first terminal and the second terminal) that are performing the virtual resource exchange, and the first terminal and the second terminal will respond to whether the virtual resource exchange has been requested. The identifier of the first terminal and the identifier of the second terminal can be carried in the cross-chain transaction processing request. If the cross-chain transaction type is a cross-chain function call, the verification rule is to send a context request to the first business node, requesting the first business node to send the context for the cross-chain function call, and the relay will determine whether the cross-chain function call is required from the context. If the cross-chain transaction type is multi-chain resource aggregation statistics, the verification rule may be to send a verification request to the first terminal, and the first terminal will respond to whether the multi-chain resource aggregation statistics have been requested. The identifier of the first terminal can be carried in the cross-chain transaction processing request.
[0186] The validation rules corresponding to various cross-chain transaction types can be pre-stored locally on the relay. Thus, in step S62021, the relay can retrieve the validation rules corresponding to the cross-chain transaction type locally. In step S62022, the relay can perform a third validation on the cross-chain transaction processing request based on the retrieved validation rules.
[0187] The advantage of steps S62021-62022 is that different verification rules are set for different cross-chain transaction types, and a third verification is performed according to the verification rules, which improves the flexibility and effectiveness of verifying the existence of the cross-chain transaction.
[0188] In step S6203, when the relay generates a sub-signature, it can generate a digest of the cross-chain transaction request using a predetermined digest algorithm, and then encrypt the digest using the relay's private key fragment to obtain the sub-signature. The relay then sends the cross-chain transaction request and sub-signature to the signature aggregation node, as shown in Figure 14.
[0189] Detailed description of step S630
[0190] In step S630, after receiving the second number of sub-signatures, the signature aggregation node generates a first signature of the relay system, and sends a cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than the first number.
[0191] The process of generating the first signature of the relay system after receiving the second number of sub-signatures has been combined with the above function Y=a n-1 x n-1 +a n-2 x n-2 ...+a1x+a0 has been described in detail, so I will not repeat it here.
[0192] As mentioned above, the second number must be at least greater than or equal to the above function Y=a n-1 x n-1 +a n-2 x n-2 ...+a1x+a0 in n. In one embodiment, the second number can be selected based on different cross-chain transaction types, provided that it is greater than or equal to n. For cross-chain transaction types with higher security requirements, n should be as large as possible. For cross-chain transaction types with lower security requirements, n can be slightly smaller.
[0193] In this embodiment, the cross-chain transaction processing request also includes a cross-chain transaction type, as shown in Figure 9. The second number can be determined by: obtaining the cross-chain transaction type in the cross-chain transaction processing request; and according to the cross-chain transaction type, searching a comparison table between the cross-chain transaction type and the second number to determine the second number.
[0194] Cross-chain transaction types may include the aforementioned cross-chain virtual resource exchange, cross-chain function call, multi-chain resource aggregation statistics, etc. A comparison table of cross-chain transaction types and second numbers is prepared in advance based on the security requirements of each cross-chain transaction type, for example:
[0195] Table 1
[0196] As shown in Table 1, for cross-chain virtual resource exchange, since it involves the exchange of different types of virtual resources between different objects, the security requirements are relatively high, so a higher second number of 10 can be set. For cross-chain function calls, since they do not involve asset changes, the security requirements are relatively low, so a slightly lower second number of 8 can be set. For multi-chain resource aggregation statistics, since there is no asset change, only statistics are collected, and the statistics are for the assets of the same object, there is no risk of asset leakage of other objects, so the security requirements are even lower, so a lower second number of 7 can be set.
[0197] After the above comparison table is prepared, the second number can be determined by searching the above comparison table based on the cross-chain transaction type.
[0198] In the above embodiment, for cross-chain transaction types with higher security requirements, a relatively large second number is set to improve the security of the cross-chain transaction. For cross-chain transaction types with lower security requirements, a relatively small second number is set to improve execution efficiency, thereby achieving a balance between security and execution efficiency.
[0199] After generating the first signature, the signature aggregation node sends the cross-chain transaction processing request and the first signature to the target blockchain network, as shown in Figure 15.
[0200] In one embodiment, the target blockchain network's second verification of the first signature in step S630 may specifically include: the target blockchain network performing the second verification of the first signature using the first public key. The method for obtaining the first public key corresponds to the aforementioned method for publishing the first public key. If the first public key is publicly available on the relay system's website, the first public key can be obtained from the relay system's website. If, after generating the first public key, the first interface node broadcasts the first public key to all blockchain networks, the target blockchain network can receive the broadcasted first public key and store it in association with the relay system's identifier. After receiving the first signature from the relay system, the target blockchain network retrieves the first public key locally based on the relay system's identifier.
[0201] When the target blockchain network uses the first public key to perform a second verification on the first signature, it can first decrypt the first signature using the first public key to obtain a digest of the cross-chain transaction request. It then uses the same predetermined digest algorithm to generate a digest of the cross-chain transaction request. The generated digest is compared with the decrypted digest. If they match, the second verification succeeds.
[0202] Note that the second verification only verifies whether the cross-chain transaction request is a cross-chain transaction request officially signed by the relay system. If the verification succeeds, the relay system is trustworthy, and the relay system has performed the first and third verifications, then the cross-chain transaction is secure.
[0203] To further explain the specific processing in the target blockchain network, we first need to introduce the structure of the target blockchain network. As shown in Figure 7, in one embodiment, the target blockchain network includes a first verification node, a second service node, and a second terminal.
[0204] The first verification node verifies the first signature of the relay system, proving that the cross-chain transaction request forwarded by the relay system is indeed verified by the trusted relay system. It can be implemented in various forms, such as desktop computers, laptops, mobile phones, personal digital assistants (PDAs), vehicle-mounted terminals, dedicated terminals, and servers.
[0205] The secondary business node is the node in the target blockchain network that records blocks on the target blockchain. It is also the node in the target blockchain network that processes transactions required for cross-chain transaction processing requests. It can also be embodied in various forms such as desktop computers, laptops, mobile phones, personal digital assistants (PDAs), vehicle-mounted terminals, dedicated terminals, servers, etc.
[0206] The second terminal is the terminal involved in processing cross-chain transactions on the target blockchain network. For example, in the aforementioned cross-chain virtual resource exchange scenario, if object A wishes to exchange a second virtual resource with object B on the target blockchain network via the source blockchain network, object B's terminal is the second terminal. The second terminal can be implemented in various forms, such as desktop computers, laptops, mobile phones, personal digital assistants (PDAs), vehicle-mounted terminals, dedicated terminals, and servers.
[0207] As shown in FIG16a , the process of the target blockchain network performing the second verification on the first signature and processing the cross-chain transaction request in step S630 may specifically include:
[0208] Step S631: The first signature is subjected to a second verification by the first verification node (step A6311 in FIG. 16 a). Upon successful verification, the first verification node sends a cross-chain transaction processing request to the second business node (step A6312).
[0209] Step S632: Process the cross-chain transaction request through the second business node (step A6321 in Figure 16a), and notify the source blockchain network of the actual resource consumption value of processing the cross-chain transaction request through the relay system (step A6322).
[0210] The process of performing the second verification of the first signature in step S631 has been described above and will not be repeated here. The process of processing the cross-chain transaction request in step S632 will vary depending on the content of the cross-chain transaction. Later, examples of the process of processing cross-chain transaction requests in the cross-chain virtual resource exchange scenario, the cross-chain function call scenario, and the multi-chain resource aggregation and statistics scenario will be described.
[0211] The actual resource consumption value is the resource value (actual resource consumption value) consumed by the source blockchain network, relay system, and target blockchain network during the actual execution of the cross-chain transaction request. The actual resource consumption value of the source blockchain network is the value added by the source blockchain network to the cross-chain transaction request during the processing of the cross-chain transaction request. The actual resource consumption value of the relay system is the value added by the relay system to the cross-chain transaction request during the processing of the cross-chain transaction request. The processing of the cross-chain transaction request by the target blockchain network also generates the actual resource consumption value of the target blockchain network. The second service node adds the actual resource consumption value of the target blockchain network to the actual resource consumption value of the source blockchain network in the cross-chain transaction request and the actual resource consumption value of the relay system to obtain the actual resource consumption value for processing the cross-chain transaction request. The second service node compares this actual resource consumption value with the estimated resource value in the cross-chain transaction request shown in Figure 9. This estimated resource value is locked from the first party's resource account on the source blockchain to guarantee the execution of the cross-chain transaction. If the actual resource consumption value exceeds the locked estimated resource value, the cross-chain transaction processing request will be discarded and cannot be executed. However, if the estimated resource value exceeds the actual resource consumption value, as described later, the remaining amount can be returned to the first party's resource account on the source blockchain. Therefore, ensuring that the estimated resource value exceeds the actual resource consumption value is of great significance. The embodiments of the present application effectively ensure this through the oracle in the source blockchain network.
[0212] In the embodiment of steps S631-632, through the division of labor and cooperation between the first verification node and the second business node, the first signature is effectively verified, the cross-chain transaction processing request is processed and the actual resource consumption value is notified, thereby improving the processing efficiency of the target blockchain network in processing cross-chain transaction processing requests.
[0213] In some embodiments, the second business node has a second cross-chain contract and a second business contract.
[0214] A second business contract is a contract established in advance between each object on the target blockchain network and the target blockchain network to execute various business operations for the object. A second cross-chain contract is a contract used by the target blockchain network to handle cross-chain transactions. It specifies the procedures that must be followed when the target blockchain network conducts cross-chain transactions with other blockchain networks.
[0215] As shown in FIG. 16 b , in one embodiment, step A6321 specifically includes:
[0216] Step A63211: Process the cross-chain transaction processing request through the second cross-chain contract to obtain a cross-chain transaction processing result (step S632111 in Figure 16b), generate a cross-chain transaction result block based on the cross-chain transaction processing result (step S632112), and record the cross-chain transaction result block to the target blockchain of the target blockchain network (step S632113). The cross-chain transaction processing result includes the second terminal associated with the cross-chain transaction processing result.
[0217] Step A63212: Obtain the cross-chain transaction processing result in the cross-chain transaction result block on the target blockchain through the second business contract (step S632121), and notify the second terminal of the cross-chain transaction processing result (step S632122).
[0218] In step S632111, different cross-chain transaction processing requests result in different cross-chain transaction processing results. This will be described in detail later in conjunction with cross-chain virtual resource exchange scenarios, cross-chain function call scenarios, and multi-chain resource aggregation and statistics scenarios. For the scenario shown in Figure 2a, where object A exchanges 20 first virtual resources for object B's second virtual resource, as a result of executing the cross-chain transaction processing request, the second virtual resource accounts of objects A and B on the target blockchain network will be increased or decreased. Since 20 first virtual resources are equivalent to 2 second virtual resources, executing the cross-chain transaction processing request will deduct 2 second virtual resources from object B's second virtual resource account and add 2 second virtual resources to object A's second virtual resource account.
[0219] In step S632112, the second cross-chain contract uses the cross-chain transaction processing result as part of the block body to generate a cross-chain transaction result block. A cross-chain transaction result block is a block that represents the cross-chain transaction processing result. In the example of Figure 2a, the second cross-chain contract records the deduction of two second virtual resources from the second virtual resource account of object B and the addition of two second virtual resources to the second virtual resource account of object A in the cross-chain transaction result block. The second cross-chain contract may also record the second terminal in the cross-chain transaction result block. In addition, to indicate that the cross-chain transaction result block is a cross-chain transaction result block, a specific tag corresponding to the cross-chain transaction result block may also be recorded in the cross-chain transaction result block.
[0220] Then, in step S632113, the second cross-chain contract records the cross-chain transaction result block to the target blockchain of the target blockchain network. In step S632121, the second business contract discovers the new block recorded in the target blockchain. Once the new block is determined to be a cross-chain transaction result block (for example, by the specific tag corresponding to the cross-chain transaction result block mentioned above), the cross-chain transaction processing result is extracted from the cross-chain transaction result block. If the cross-chain transaction processing result involves the second terminal (for example, in the above example, the second cross-chain contract will deduct 2 second virtual resources from the second virtual resource account of object B), the second business contract notifies the second terminal of the cross-chain transaction processing result in step S632122.
[0221] In the embodiment of the above steps A63211-63212, through the mutual cooperation of the second cross-chain contract and the second business contract, the processing of the cross-chain transaction processing request in the target blockchain network end, the corresponding blockchain record, and the notification of the relevant terminal are carried out in an orderly manner, thereby improving the efficiency of the target blockchain network end in processing cross-chain transactions.
[0222] Cross-chain transaction execution process in the cross-chain virtual resource exchange scenario
[0223] In this scenario, a cross-chain transaction request is an exchange request between a first virtual resource of a first object on a source blockchain network and a second virtual resource of a second object on a target blockchain network. For example, Figure 18 shows an exchange request between the first virtual resource of object A on the source blockchain network and the second virtual resource of object B on the target blockchain network.
[0224] The source blockchain network has a first virtual resource account for a first object and a first virtual resource account for a second object, and the target blockchain network has a second virtual resource account for the first object and a second virtual resource account for the second object. Taking Figure 18 as an example, the source blockchain network has: a first virtual resource account for object A, with an initial value of 100 first virtual resources; a first virtual resource account for object B, with an initial value of 40 first virtual resources. The target blockchain network has: a second virtual resource account for object A, with an initial value of 70 second virtual resources; and a second virtual resource account for object B, with an initial value of 50 second virtual resources.
[0225] The cross-chain transaction request contains the first virtual resource value to be exchanged and the corresponding converted second virtual resource value written by the oracle. For example, in Figure 18 , the first virtual resource value to be exchanged is 20 first virtual resources. The exchange ratio between the first virtual resource and the second virtual resource is 10:1. The converted second virtual resource value is 2 second virtual resources.
[0226] In one embodiment, a first terminal sends a cross-chain transaction request to an oracle, which includes a first virtual resource value to be exchanged. The oracle maintains the latest exchange rates between various virtual resources. Based on the exchange rate between the first and second virtual resources, the oracle converts the first virtual resource value to a converted second virtual resource value and returns the converted second virtual resource value to the first terminal within the cross-chain transaction request. The oracle can periodically crawl the exchange rates between various virtual resources from publicly available exchange rates on virtual resource trading websites.
[0227] The advantage of this embodiment, which uses an oracle to predict the conversion of the second virtual resource value, is that it reduces uncertainty in the virtual resource exchange process. In cross-chain virtual resource exchange scenarios, conversion between virtual resource values is involved. Existing cross-chain solutions have a low understanding of the conversion values of different virtual resources, which often leads to uncertainty in the virtual resource exchange process. This embodiment reduces uncertainty in the virtual resource exchange process by introducing an oracle, which regularly crawls the exchange rates between various virtual resources from the exchange rates publicly available on virtual resource trading websites, providing clear guidance for cross-chain virtual resource exchange.
[0228] As shown in Figure 17, in the cross-chain virtual resource exchange scenario, the above-mentioned step A61032 can specifically include: locking the estimated resource value and the sum of the first virtual resource value to be exchanged from the first virtual resource account of the first object through the first business node (step B610321); generating a cross-chain transaction processing request block according to the cross-chain transaction processing request through the first business node (step B610322).
[0229] Locking means freezing a portion of the resources in a resource account, dedicating them to a specific purpose and prohibiting free use until unlocked. For example, if 20 first virtual resources are locked from an account holding 100 first virtual resources, only 80 of the remaining 100 first virtual resources are free to use. After unlocking the 20 first virtual resources, the remaining 80 can be returned to the resource account for free use. Locking the sum of the estimated resource value and the first virtual resource value to be exchanged in the first virtual resource account of the first subject means that the first virtual resource value to be exchanged is the subject of the first subject's exchange. If the resource value no longer exists in the first virtual resource account before the exchange process is complete, the exchange cannot be completed. Therefore, it must be locked and cannot be freely used until the exchange process is complete. Furthermore, the estimated resource value represents the estimated resource consumption incurred on the source blockchain network, relay system, and target blockchain network to complete the cross-chain virtual resource exchange. If this resource value is not locked, and if it is used before the exchange process is complete, the actual resource consumption will not be met, resulting in an exchange interruption. As shown in Figure 18, the estimated resource value is 5 first virtual resources, the first virtual resource value to be exchanged is 20 first virtual resources, and their total resource value is 25 first virtual resources. 25 first virtual resources are locked in the first virtual resource account of object A, and 75 first virtual resources are unlocked.
[0230] As shown in FIG. 17 , accordingly, step S632 may specifically include:
[0231] Through the second business node, the converted second virtual resource value is added to the second virtual resource account of the first object (step B6321), the converted second virtual resource value is reduced in the second virtual resource account of the second object (step B6322), the actual resource consumption value is calculated (step B6323), and the actual resource consumption value is notified to the source blockchain network through the relay system (step B6324), so that the source blockchain network deducts the first virtual resource value to be exchanged and the actual resource consumption value from the locked and resource value, and returns the remaining part of the and resource value to the first virtual resource account of the first object (step B6325), and adds the first virtual resource value to be exchanged in the first virtual resource account of the second object (step B6326).
[0232] As shown in Figure 18, since object A is exchanging 20 first virtual resources for object B's second virtual resources, 20 first virtual resources are equivalent to 2 second virtual resources. Therefore, in step B6321, 2 second virtual resources need to be added to object A's second virtual resource account, and the balance of object A's second virtual resource account after the increase is 72 second virtual resources. Correspondingly, in step B6322, 2 second virtual resources need to be reduced from object B's second virtual resource account, and the balance of object B's second virtual resource account after the reduction is 48 second virtual resources. Then, in step B6323, the second business node calculates the actual resource consumption value of 0.3 second virtual resources (3 first virtual resources) and notifies the source blockchain network in step B6324. In step B6325, the source blockchain network deducts the value of the first virtual resource to be exchanged (20 first virtual resources) and the actual resource consumption value (3 first virtual resources) from the 25 first virtual resources locked in object A's first virtual resource account. The remaining 2 first virtual resources are returned to object A's first virtual resource account and added to the 75 unlocked first virtual resources, resulting in a balance of 77 first virtual resources in object A's first virtual resource account. In step B6326, 20 first virtual resources are added to object B's first virtual resource account. The balance in object B's first virtual resource account is 60 first virtual resources.
[0233] The advantage of this embodiment is that the sum of the estimated resource value and the first virtual resource value to be exchanged is locked in advance from the first virtual resource account of the first object. After the target blockchain network returns the actual resource consumption value, the first virtual resource value to be exchanged and the actual resource consumption value are deducted from the locked sum of the resource value, and the remaining part is returned to the first virtual resource account of the first object. In this way, the normal execution of the virtual resource exchange is guaranteed, and the unconsumed estimated resource value can be returned to the first virtual resource account of the first object in a timely manner, thereby improving resource security.
[0234] Cross-chain transaction execution process in the cross-chain function call scenario
[0235] In this scenario, the cross-chain transaction processing request is a cross-chain function call request when the first object business is executed on the source blockchain network. For example, when signing the first object, the digest algorithm X on the target blockchain is used, resulting in a call request for the digest algorithm X on the target blockchain.
[0236] The source blockchain network has a first virtual resource account for the first object. Taking Figure 20 as an example, the source blockchain network has a first virtual resource account for object A, with an initial value of 100 first virtual resources.
[0237] In one embodiment, as shown in FIG19 , the above-mentioned step A61032 specifically includes: locking the estimated resource value from the first virtual resource account of the first object (step C610321); and generating a cross-chain transaction processing request block according to the cross-chain transaction processing request (step C610322).
[0238] The estimated resource value is locked from the first virtual resource account of the first object because, if it is not locked, and the resource value is consumed before the cross-chain function call is completed, the actual resource consumption generated by the cross-chain function call cannot be met, causing the cross-chain function call to be interrupted. As shown in Figure 20, the estimated resource value is 5 first virtual resources. 5 first virtual resources are locked in the first virtual resource account of object A, and 95 first virtual resources are not locked.
[0239] Correspondingly, step S632 can specifically include: the second business node obtains the cross-chain function from the target blockchain (step C6321), calculates the actual resource consumption value (step C6322), and notifies the source blockchain network of the cross-chain function and the actual resource consumption value through the relay system (step C6323), so that the first business node of the source blockchain network deducts the actual resource consumption value from the locked estimated resource value, and returns the remaining part of the estimated resource value to the first virtual resource account of the first object (step C6324).
[0240] As shown in Figure 20, the second service node calculates the actual resource consumption value of 0.3 second virtual resources (3 first virtual resources) and notifies the first service node. The first service node deducts the actual resource consumption value of 3 first virtual resources from the 5 locked first virtual resources in object A's first virtual resource account. The remaining 2 first virtual resources are returned to object A's first virtual resource account and added to the 95 unlocked first virtual resources, resulting in a balance of 97 first virtual resources in object A's first virtual resource account.
[0241] The advantage of this embodiment is that the estimated resource value is locked in advance from the first virtual resource account of the first object. After the target blockchain network returns the actual resource consumption value, the actual resource consumption value is deducted from the locked estimated resource value, and the remaining part is returned to the first virtual resource account of the first object. In this way, the normal execution of the cross-chain function call is guaranteed, and the unconsumed estimated resource value can be returned to the first virtual resource account of the first object in a timely manner, thereby improving resource security.
[0242] Cross-chain transaction execution process in a multi-chain resource aggregation statistics scenario
[0243] In this scenario, the cross-chain transaction processing request is a resource statistics request from the first object on the source blockchain network for the source blockchain network and the target blockchain network, for example, a statistical request from object A for the sum of resources of the first virtual resource account on the source blockchain network and the second virtual resource account on the target blockchain network.
[0244] The source blockchain network has a first virtual resource account for the first object, and the target blockchain network has a second virtual resource account for the first object. Taking Figure 22 as an example, the source blockchain network has a first virtual resource account for object A, with an initial value of 100 first virtual resources. The target blockchain network has a second virtual resource account for object A, with an initial value of 2 second virtual resources.
[0245] As shown in Figure 21, in one embodiment, the above-mentioned step S61032 may specifically include: locking the estimated resource value from the first virtual resource account of the first object through the first business node (step D610321), and generating a cross-chain transaction processing request block according to the cross-chain transaction processing request (step D610322).
[0246] As shown in Figure 22, the estimated resource value is 5 first virtual resources. In the first virtual resource account of object A, 5 first virtual resources are locked, and 95 first virtual resources are not locked.
[0247] Correspondingly, as shown in Figure 21, step S632 may specifically include: obtaining the second virtual resource account balance of the first object through the second business node (step D6321), calculating the actual resource consumption value (step D6322), and notifying the source blockchain network of the second virtual resource account balance and the actual resource consumption value through the relay system (step D6323), so that the source blockchain network deducts the actual resource consumption value from the locked estimated resource value, and returns the remaining part of the estimated resource value to the first virtual resource account of the first object (step D6324); according to the exchange rate between the first virtual resource and the second virtual resource obtained from the oracle, the second virtual resource account balance is converted into the converted first virtual resource, and added to the first virtual resource account balance of the first object to obtain the resource statistics result (step D6325).
[0248] As shown in Figure 22, in step D6321, the second business node obtains the balance of the second virtual resource account of object A as 2 second virtual resources. In step D6322, the actual resource consumption value is calculated to be 0.3 second virtual resources (3 first virtual resources). In step D6323, the source blockchain network is notified of the balance of 2 second virtual resources and the actual resource consumption value of 3 first virtual resources in the second virtual resource account of object A. In step D6324, the source blockchain network deducts the actual resource consumption value of 3 first virtual resources from the 5 first virtual resources locked in the first virtual resource account of object A, and the remaining 2 first virtual resources are returned to the first virtual resource account of object A. Added to the 95 unlocked first virtual resources, the balance of the first virtual resource account of object A is 97 first virtual resources. At the same time, the exchange rate between the first virtual resource and the second virtual resource obtained from the oracle is 10:1. The balance of 2 second virtual resources in the second virtual resource account of object A is converted into 20 first virtual resources, which are added to the balance of 97 first virtual resources in the first virtual resource account of object A to obtain an aggregated statistical result of 117 first virtual resources.
[0249] The advantage of this embodiment is that the estimated resource value is locked in advance from the first virtual resource account of the first object. After the target blockchain network returns the actual resource consumption value, the actual resource consumption value is deducted from the locked estimated resource value, and the remaining part is returned to the first virtual resource account of the first object. In this way, the normal execution of multi-chain resource aggregation statistics is guaranteed, and the unconsumed estimated resource value can be returned to the first virtual resource account of the first object in a timely manner, thereby improving resource security.
[0250] Description of the apparatus and device of the embodiments of the present application
[0251] It is to be understood that, although the steps in the above-mentioned flowcharts are shown in sequence according to the arrow representations, these steps are not necessarily performed in sequence according to the order represented by the arrows. Unless otherwise specified in the present embodiment, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the steps or stages in other steps.
[0252] It is understandable that when the above embodiments of this application are applied to specific products or technologies, the processing of relevant data such as user information requires the user's permission or consent, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
[0253] The embodiment of the present application further provides a relay system, which is applied between a source blockchain network and a target blockchain network. The relay system includes a first interface node, a first number of relays, and a signature aggregation node, where the first number is an integer greater than 1, wherein:
[0254] A first interface node is configured to obtain a cross-chain transaction processing request from a source blockchain network and distribute the cross-chain transaction processing request to a first number of relayers;
[0255] The relayer is used to perform the first verification and signature of the cross-chain transaction processing request and generate a sub-signature;
[0256] The signature aggregation node is configured to generate a first signature of the relay system after receiving the second number of sub-signatures, and send a cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
[0257] Optionally, the relay is specifically configured to: perform a first verification on the cross-chain transaction processing request, and sign the cross-chain transaction processing request using the private key fragments held by the relay to generate a sub-signature, wherein the number of the private key fragments is a first number, the first number of private key fragments are respectively held by a first number of relays, and the first number of private key fragments correspond to a unique first public key;
[0258] The target blockchain network is specifically used to: perform a second verification on the first signature using the first public key.
[0259] Optionally, the first interface node is specifically configured to:
[0260] Generate a first private key;
[0261] generating a first number of private key fragments and a first public key based on the first private key;
[0262] Sending a cross-chain transaction request and a first number of private key fragments to a first number of relayers;
[0263] Publish the first public key.
[0264] Optionally, the cross-chain transaction processing request includes a first identifier of a first business node in the source blockchain network and a second signature of the first business node, where the second signature is generated using a second private key of the first business node;
[0265] Repeaters are also specifically used for:
[0266] Obtaining a second public key corresponding to the first identifier;
[0267] The second signature is first verified using the second public key.
[0268] Optionally, the cross-chain transaction processing request also includes a cross-chain transaction type;
[0269] The first number of repeaters is further specifically configured to: after performing the first verification on the cross-chain transaction processing request, perform a third verification on the cross-chain transaction processing request, where the third verification includes:
[0270] Get the validation rules corresponding to the cross-chain transaction type;
[0271] According to the verification rules, the cross-chain transaction processing request is subject to third verification.
[0272] Optionally, the first interface node is further specifically configured to:
[0273] Check the source blockchain of the source blockchain network;
[0274] If a cross-chain transaction processing request block is found on the source blockchain, the cross-chain transaction processing request is extracted from the cross-chain transaction processing request block, where the cross-chain transaction processing request block has the second identifier of the relay system and the cross-chain transaction processing request.
[0275] Optionally, the source blockchain network includes a first terminal, an oracle, a first service node, and a second interface node, wherein:
[0276] A first terminal, configured to receive a cross-chain transaction processing request;
[0277] The oracle estimates the resources consumed by processing cross-chain transaction requests and writes the estimated resource value into the cross-chain transaction request;
[0278] The first business node is configured to generate a cross-chain transaction processing request block according to the cross-chain transaction processing request, and record the cross-chain transaction processing request block on the source blockchain through the second interface node.
[0279] Optionally, the first business node has a first business contract and a first cross-chain contract;
[0280] The first service node is specifically used for:
[0281] Call the first cross-chain contract through the first business contract;
[0282] Through the first cross-chain contract, a cross-chain transaction processing request block is generated according to the cross-chain transaction processing request.
[0283] Optionally, the target blockchain network includes a first verification node and a second service node, wherein:
[0284] The first verification node is configured to perform a second verification on the first signature and, upon successful verification, notify the second service node of a cross-chain transaction processing request;
[0285] The second business node is used to process the cross-chain transaction processing request and notify the source blockchain network of the actual resource consumption value of processing the cross-chain transaction processing request through the relay system.
[0286] Optionally, the second business node has a second cross-chain contract and a second business contract, wherein:
[0287] The second cross-chain contract is used to process the cross-chain transaction processing request, obtain the cross-chain transaction processing result, generate a cross-chain transaction processing result block based on the cross-chain transaction processing result, and record the cross-chain transaction result block to the target blockchain of the target blockchain network. The cross-chain transaction processing result includes the second terminal associated with the cross-chain transaction processing result;
[0288] The second business contract is used to obtain the cross-chain transaction processing result in the cross-chain transaction result block on the target blockchain, and notify the second terminal of the cross-chain transaction processing result.
[0289] Optionally, the cross-chain transaction processing request is an exchange request for a first virtual resource of a first object on a source blockchain network and a second virtual resource of a second object on a target blockchain network, the source blockchain network has a first virtual resource account for the first object and a first virtual resource account for the second object, the target blockchain network has a second virtual resource account for the first object and a second virtual resource account for the second object, and the cross-chain transaction processing request includes a first virtual resource value to be exchanged and a converted second virtual resource value corresponding to the first virtual resource value to be exchanged written by the oracle;
[0290] The first business node is further specifically configured to: lock the sum of the estimated resource value and the first virtual resource value to be exchanged from the first virtual resource account of the first object, and generate a cross-chain transaction processing request block according to the cross-chain transaction processing request;
[0291] The second business node is also specifically used to: increase the converted second virtual resource value in the second virtual resource account of the first object, decrease the converted second virtual resource value in the second virtual resource account of the second object, calculate the actual resource consumption value, and notify the source blockchain network of the actual resource consumption value through the relay system, so that the source blockchain network deducts the first virtual resource value to be exchanged and the actual resource consumption value from the locked and resource value, returns the remaining part of the and resource value to the first virtual resource account of the first object, and increases the first virtual resource value to be exchanged in the first virtual resource account of the second object.
[0292] Optionally, the cross-chain transaction processing request is a cross-chain function call request when a first object business is executed on the source blockchain network, and the source blockchain network has a first virtual resource account of the first object;
[0293] The first business node is further specifically configured to: lock the estimated resource value from the first virtual resource account of the first object, and generate a cross-chain transaction processing request block according to the cross-chain transaction processing request;
[0294] The second business node is further specifically used to: obtain the cross-chain function requested by the cross-chain function call request from the target blockchain, calculate the actual resource consumption value, and notify the source blockchain network of the cross-chain function and the actual resource consumption value through the relay system, so that the source blockchain network deducts the actual resource consumption value from the locked estimated resource value and returns the remaining part of the estimated resource value to the first virtual resource account of the first object.
[0295] Optionally, the cross-chain transaction processing request is a resource statistics request by a first object on the source blockchain network to the source blockchain network and the target blockchain network, the source blockchain network has a first virtual resource account of the first object, and the target blockchain network has a second virtual resource account of the first object;
[0296] The first business node is further specifically configured to: lock the estimated resource value from the first virtual resource account of the first object, and generate a cross-chain transaction processing request block according to the cross-chain transaction processing request;
[0297] The second business node is also specifically used to: obtain the balance of the second virtual resource account of the first object, calculate the actual resource consumption value, and notify the source blockchain network of the second virtual resource account balance and the actual resource consumption value through the relay system, so that the source blockchain network deducts the actual resource consumption value from the locked estimated resource value, and returns the remaining part of the estimated resource value to the first virtual resource account of the first object; according to the exchange rate between the first virtual resource and the second virtual resource obtained from the oracle, the balance of the second virtual resource account is converted into the converted first virtual resource, and added to the balance of the first virtual resource account of the first object to obtain the resource statistics result.
[0298] Optionally, the cross-chain transaction processing request also includes the cross-chain transaction type, and the signature aggregation node is further specifically used to:
[0299] Get the cross-chain transaction type in the cross-chain transaction processing request;
[0300] According to the cross-chain transaction type, a comparison table between the cross-chain transaction type and the second number is searched to determine the second number.
[0301] 23 , which is a block diagram of a portion of a terminal for implementing the cross-blockchain transaction processing method according to an embodiment of the present application, includes components such as a radio frequency (RF) circuit 2410, a memory 2415, an input unit 2430, a display unit 2440, a sensor 2450, an audio circuit 2460, a wireless fidelity (WiFi) module 2470, a processor 2480, and a power supply 2490. Those skilled in the art will appreciate that the terminal structure shown in FIG23 does not limit the scope of a mobile phone or computer, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0302] The RF circuit 2410 may be used for receiving and sending signals during information transmission or calls. In particular, after receiving downlink information from the base station, it is sent to the processor 2480 for processing. In addition, the designed uplink data is sent to the base station.
[0303] The memory 2415 may be used to store software programs and modules. The processor 2480 executes various functional applications and data processing of the terminal by running the software programs and modules stored in the memory 2415 .
[0304] The input unit 2430 may be configured to receive input digital or character information and generate key signal input related to the terminal's settings and function control. Specifically, the input unit 2430 may include a touch panel 2431 and other input devices 2432 .
[0305] The display unit 2440 may be configured to display input information or provided information and various menus of the terminal. The display unit 2440 may include a display panel 2441.
[0306] The audio circuit 2460 , the speaker 2461 , and the microphone 2462 may provide an audio interface.
[0307] In this embodiment, the processor 2480 included in the terminal can execute the cross-blockchain transaction processing method of the previous embodiment.
[0308] The terminals of the embodiments of the present application include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0309] Figure 24 is a block diagram of a portion of a server 2500 implementing the cross-blockchain transaction processing method according to an embodiment of the present application. Server 2500 may vary significantly depending on configuration or performance, and may include one or more central processing units (CPUs) 2522 (e.g., one or more processors), memory 2532, and one or more storage media 2530 (e.g., one or more mass storage devices) storing application programs 2542 or data 2544. Memory 2532 and storage media 2530 may be either ephemeral or persistent storage. Programs stored in storage media 2530 may include one or more modules (not shown), each of which may include a series of instructions for operating on server 2500. Furthermore, CPU 2522 may be configured to communicate with storage media 2530, executing the series of instructions stored in storage media 2530 on server 2500.
[0310] The server 2500 may also include one or more power supplies 2526, one or more wired or wireless network interfaces 2550, one or more input and output interfaces 2558, and / or one or more operating systems 2541, such as Windows Server 2003. TM , Mac OS XT M , Unix TM , Linux TM , FreeBSD TM etc.
[0311] The central processor 2522 in the server 2500 can be used to execute the cross-blockchain transaction processing method of the embodiment of the present application.
[0312] An embodiment of the present application further provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the cross-blockchain transaction processing method of each of the aforementioned embodiments.
[0313] The present application also provides a computer program product, which includes a computer program. A processor of a computer device reads and executes the computer program, causing the computer device to implement the above-mentioned cross-blockchain transaction processing method.
[0314] The above is a specific description of the implementation methods of the present application, but the present application is not limited to the above implementation methods. Technical personnel familiar with the art can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A cross-blockchain transaction processing method, applied to a relay system between a source blockchain network and a target blockchain network, the relay system comprising a first interface node, a first number of relays and a signature aggregation node, the first number being an integer greater than 1, the cross-blockchain transaction processing method comprising: Obtaining, through the first interface node, a cross-chain transaction processing request from the source blockchain network, and distributing the cross-chain transaction processing request to a first number of the repeaters; Through the repeater, the cross-chain transaction processing request is first verified and signed to generate a sub-signature; After receiving the second number of sub-signatures, the signature aggregation node generates a first signature of the relay system, and sends the cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
2. According to the cross-blockchain transaction processing method of claim 1, the first verification and signing of the cross-chain transaction processing request by the repeater to generate a sub-signature includes: Performing a first verification on the cross-chain transaction processing request through the repeater, and signing the cross-chain transaction processing request using the private key fragments held by the repeater to generate a sub-signature, wherein the number of the private key fragments is the first number, the first number of the private key fragments are respectively held by the first number of the repeaters, and the first number of the private key fragments correspond to a unique first public key; The target blockchain network performs a second verification on the first signature, including: The target blockchain network performs a second verification on the first signature using the first public key.
3. The cross-blockchain transaction processing method according to claim 2, wherein distributing the cross-chain transaction processing request to a first number of the repeaters comprises: Generate a first private key; generating a first number of the private key fragments and the first public key based on the first private key; Sending the cross-chain transaction processing request and the first number of the private key fragments to the first number of the relayers; The first public key is published.
4. The cross-blockchain transaction processing method according to claim 1, wherein the cross-chain transaction processing request includes a first identifier of a first service node in the source blockchain network and a second signature of the first service node, and the second signature is generated using a second private key of the first service node; The first verification of the cross-chain transaction processing request includes: Obtaining a second public key corresponding to the first identifier; The second signature is first verified using the second public key.
5. According to the cross-blockchain transaction processing method of claim 4, the cross-chain transaction processing request also includes a cross-chain transaction type; After the first verification of the cross-chain transaction processing request, the cross-blockchain transaction processing method further includes: Performing a third verification on the cross-chain transaction processing request; The third verification includes: Obtain the verification rules corresponding to the cross-chain transaction type; According to the verification rules, the third verification is performed on the cross-chain transaction processing request.
6. The cross-blockchain transaction processing method according to claim 1, wherein obtaining a cross-chain transaction processing request from the source blockchain network comprises: Checking a source blockchain of the source blockchain network; If a cross-chain transaction processing request block is found on the source blockchain, the cross-chain transaction processing request is extracted from the cross-chain transaction processing request block, where the cross-chain transaction processing request block has the second identifier of the relay system and the cross-chain transaction processing request.
7. According to the cross-blockchain transaction processing method of claim 6, the source blockchain network includes a first terminal, an oracle, a first service node and a second interface node, and the cross-chain transaction processing request block is recorded to the source blockchain in the following manner: Receiving the cross-chain transaction processing request through the first terminal; By using the oracle, the resources consumed for processing the cross-chain transaction request are estimated, and the estimated resource value is written into the cross-chain transaction request; The cross-chain transaction processing request block is generated according to the cross-chain transaction processing request through the first business node, and the cross-chain transaction processing request block is recorded on the source blockchain through the second interface node.
8. The cross-blockchain transaction processing method according to claim 7, wherein the first business node has a first business contract and a first cross-chain contract; Generating the cross-chain transaction processing request block according to the cross-chain transaction processing request includes: Calling the first cross-chain contract through the first business contract; The cross-chain transaction processing request block is generated according to the cross-chain transaction processing request through the first cross-chain contract.
9. The cross-blockchain transaction processing method according to claim 7, wherein the target blockchain network includes a first verification node and a second service node, and the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, including: Performing a second verification on the first signature through the first verification node, and after successful verification, notifying the second service node of the cross-chain transaction processing request; The cross-chain transaction processing request is processed through the second business node, and the actual resource consumption value of processing the cross-chain transaction processing request is notified to the source blockchain network through the relay system.
10. The cross-blockchain transaction processing method according to claim 9, wherein the second service node has a second cross-chain contract and a second service contract; Processing the cross-chain transaction processing request through the second business node includes: Processing the cross-chain transaction processing request through the second cross-chain contract to obtain a cross-chain transaction processing result, generating a cross-chain transaction result block based on the cross-chain transaction processing result, and recording the cross-chain transaction result block to the target blockchain of the target blockchain network, wherein the cross-chain transaction processing result includes the second terminal associated with the cross-chain transaction processing result; The cross-chain transaction processing result in the cross-chain transaction result block on the target blockchain is obtained through the second business contract, and the cross-chain transaction processing result is notified to the second terminal.
11. The cross-chain transaction processing method according to claim 9, wherein the cross-chain transaction processing request is an exchange request for a first virtual resource of a first object on the source blockchain network and a second virtual resource of a second object on the target blockchain network, the source blockchain network has a first virtual resource account of the first object and a first virtual resource account of the second object, the target blockchain network has a second virtual resource account of the first object and a second virtual resource account of the second object, and the cross-chain transaction processing request has a first virtual resource value to be exchanged and a converted second virtual resource value corresponding to the first virtual resource value to be exchanged written by the oracle; The generating, by the first business node, the cross-chain transaction processing request block according to the cross-chain transaction processing request includes: Locking the estimated resource value and the sum of the first virtual resource value to be exchanged from the first virtual resource account of the first object through the first business node, and generating the cross-chain transaction request block according to the cross-chain transaction request; The processing of the cross-chain transaction processing request through the second business node, and notifying the source blockchain network of the actual resource consumption value of processing the cross-chain transaction processing request through the relay system, includes: Through the second business node, the converted second virtual resource value is added to the second virtual resource account of the first object, the converted second virtual resource value is reduced in the second virtual resource account of the second object, the actual resource consumption value is calculated, and the actual resource consumption value is notified to the source blockchain network through the relay system, so that the source blockchain network deducts the first virtual resource value to be exchanged and the actual resource consumption value from the locked sum resource value, returns the remaining part of the sum resource value to the first virtual resource account of the first object, and increases the first virtual resource value to be exchanged in the first virtual resource account of the second object.
12. The cross-blockchain transaction processing method according to claim 9, wherein the cross-chain transaction processing request is a cross-chain function call request when a first object business is executed on the source blockchain network, and the source blockchain network has a first virtual resource account of the first object; The generating, by the first business node, the cross-chain transaction processing request block according to the cross-chain transaction processing request includes: Locking the estimated resource value from the first virtual resource account of the first object through the first business node, and generating the cross-chain transaction request block according to the cross-chain transaction request; The processing of the cross-chain transaction processing request through the second business node, and notifying the source blockchain network of the actual resource consumption value of processing the cross-chain transaction processing request through the relay system, includes: Through the second business node, the cross-chain function requested by the cross-chain function call request is obtained from the target blockchain, the actual resource consumption value is calculated, and the cross-chain function and the actual resource consumption value are notified to the source blockchain network through the relay system, so that the source blockchain network deducts the actual resource consumption value from the locked estimated resource value and returns the remaining part of the estimated resource value to the first virtual resource account of the first object.
13. The cross-blockchain transaction processing method according to claim 9, wherein the cross-chain transaction processing request is a resource statistics request of the first object on the source blockchain network to the source blockchain network and the target blockchain network, the source blockchain network has a first virtual resource account of the first object, and the target blockchain network has a second virtual resource account of the first object; The generating, by the first business node, the cross-chain transaction processing request block according to the cross-chain transaction processing request includes: Locking the estimated resource value from the first virtual resource account of the first object through the first business node, and generating the cross-chain transaction request block according to the cross-chain transaction request; The processing of the cross-chain transaction processing request through the second business node, and notifying the source blockchain network of the actual resource consumption value of processing the cross-chain transaction processing request through the relay system, includes: Through the second business node, the second virtual resource account balance of the first object is obtained, the actual resource consumption value is calculated, and the second virtual resource account balance and the actual resource consumption value are notified to the source blockchain network through the relay system, so that the source blockchain network deducts the actual resource consumption value from the locked estimated resource value, and returns the remaining part of the estimated resource value to the first virtual resource account of the first object. According to the exchange rate between the first virtual resource and the second virtual resource obtained from the oracle, the second virtual resource account balance is converted into the converted first virtual resource, and added to the first virtual resource account balance of the first object to obtain the resource statistics result.
14. The cross-blockchain transaction processing method according to claim 1, wherein the cross-chain transaction processing request further includes a cross-chain transaction type, and the second number is determined by: Obtaining the cross-chain transaction type in the cross-chain transaction processing request; According to the cross-chain transaction type, a comparison table between the cross-chain transaction type and the second number is searched to determine the second number.
15. A relay system, applied between a source blockchain network and a target blockchain network, the relay system comprising a first interface node, a first number of relays and a signature aggregation node, the first number being an integer greater than 1, wherein: The first interface node is used to obtain a cross-chain transaction processing request from the source blockchain network, and distribute the cross-chain transaction processing request to a first number of the repeaters; The repeater is used to perform a first verification and sign the cross-chain transaction processing request to generate a sub-signature; The signature aggregation node is used to generate a first signature of the relay system after receiving the second number of sub-signatures, and send the cross-chain transaction processing request and the first signature to the target blockchain network, so that the target blockchain network performs a second verification on the first signature and processes the cross-chain transaction processing request, wherein the second number is an integer greater than 1 and less than or equal to the first number.
16. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the cross-blockchain transaction processing method according to any one of claims 1 to 14.
17. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the cross-blockchain transaction processing method according to any one of claims 1 to 14.
18. A computer program product, comprising a computer program, wherein the computer program is read and executed by a processor of a computer device, so that the computer device executes the cross-blockchain transaction processing method according to any one of claims 1 to 14.
