Resource processing method and device, computer equipment and storage medium

By receiving and aggregating the signature information of blockchain resource processing requests, generating aggregation processing requests and processing them after verification by the blockchain node, the problem of waste of traditional blockchain resources is solved and resource consumption is saved.

CN118555071APending Publication Date: 2024-08-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310196045.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional blockchain resource processing methods lead to waste of blockchain resources and consume more resources.

Method used

By receiving multiple resource processing requests and their signature information, aggregating signature information, generating aggregate processing requests, and processing them after the blockchain node is verified, it simplifies the verification process and saves resource consumption.

Benefits of technology

The verification process of multiple resource processing requests is simplified by aggregating signature information, significantly saving resource consumption during the verification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555071A
    Figure CN118555071A
Patent Text Reader

Abstract

The invention relates to a resource processing method and device, computer equipment and a storage medium. The resource processing method comprises the following steps: receiving a plurality of resource processing requests and respective signature information of the plurality of resource processing requests; the signature information of the resource processing request is obtained by encrypting the resource processing request by using an object private key of an object initiating the resource processing request; aggregating the respective signature information of the plurality of resource processing requests to obtain aggregated signature information; generating an aggregation processing request based on the aggregation signature information and the plurality of resource processing requests; sending the aggregation processing request to a block chain node; the aggregation processing request is used for triggering the block chain node to verify the aggregation signature information, and processing the plurality of resource processing requests after the verification is passed. By adopting the method, block chain resources can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a resource processing method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, blockchain technology has emerged. Blockchain is a chain of blocks. Each block stores certain information, and they are connected into a chain in the order of their generation. The data of blockchain is difficult to tamper with and decentralized, which ensures the security of data, making blockchain an important application in decentralized finance and distributed storage.

[0003] In traditional technology, blockchain is stored through blockchain nodes in the blockchain system. Each blockchain node can receive resource processing requests and corresponding signatures sent by external devices (i.e., computer devices outside the blockchain system), verify the signatures, and store data in the blockchain based on the resource processing requests.

[0004] However, the traditional method of processing resource processing requests wastes blockchain resources, resulting in high consumption of blockchain resources. Summary of the invention

[0005] Based on this, it is necessary to provide a resource processing method, device, computer equipment, computer-readable storage medium and computer program product that can save blockchain resources in response to the above technical problems.

[0006] On the one hand, the present application provides a resource processing method. The method includes: receiving multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request; aggregating the signature information of each of the multiple resource processing requests to obtain aggregate signature information; generating an aggregate processing request based on the aggregate signature information and the multiple resource processing requests; sending the aggregate processing request to a blockchain node, the aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and process the multiple resource processing requests after the verification is passed.

[0007] On the other hand, the present application also provides a resource processing device. The device includes: an information receiving module, which is used to receive multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request; an information aggregation module, which is used to aggregate the signature information of each of the multiple resource processing requests to obtain aggregate signature information; a request generation module, which is used to generate an aggregate processing request based on the aggregate signature information and the multiple resource processing requests; a request sending module, which is used to send the aggregate processing request to a blockchain node, and the aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and process the multiple resource processing requests after the verification is passed.

[0008] In some embodiments, the request generation module is also used to encrypt the multiple resource processing requests using a local private key to obtain relay signature information; and generate an aggregate processing request based on the aggregate signature information, the relay signature information and the multiple resource processing requests.

[0009] In some embodiments, the request generation module is also used to: package and process the multiple resource processing requests to obtain a request packaging result; encrypt the request packaging result using a local private key to obtain relay signature information; and generate an aggregate processing request based on the aggregate signature information, the relay signature information and the request packaging result.

[0010] In some embodiments, the request generation module is further used to perform hash calculation on the request packaging result to obtain a hash calculation result; and encrypt the hash calculation result using a local private key to obtain relay signature information.

[0011] On the other hand, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the resource processing method when executing the computer program.

[0012] On the other hand, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps in the above resource processing method when executed by a processor.

[0013] On the other hand, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps in the resource processing method are implemented.

[0014] The resource processing method, apparatus, computer equipment, storage medium and computer program product described above receive multiple resource processing requests and signature information of each of the multiple resource processing requests. The signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request. The signature information of each of the multiple resource processing requests is aggregated to obtain aggregate signature information. An aggregate processing request is generated based on the aggregate signature information and multiple resource processing requests. The aggregate processing request is sent to a blockchain node. The aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and the multiple resource processing requests are processed after the verification is passed. Thus, the verification process of multiple resource processing requests is simplified by aggregating the signature information, saving resource consumption during the verification process.

[0015] On the other hand, the present application also provides a resource transfer processing method, which is executed by a blockchain node, and the method includes: receiving an aggregate processing request sent by a relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, and the aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests, and the signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request; verifying the aggregate signature information to obtain an aggregate signature verification result; if the aggregate signature verification result is a passed verification, processing the multiple resource processing requests.

[0016] On the other hand, the present application also provides a resource processing device. The device includes: a request receiving module, which is used to receive an aggregate processing request sent by a relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, the aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests, and the signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request; an information verification module, which is used to verify the aggregate signature information and obtain an aggregate signature verification result; a request processing module, which is used to process the multiple resource processing requests when the aggregate signature verification result is verified.

[0017] In some embodiments, the aggregate processing request is generated based on the multiple resource processing requests, the aggregate signature information and the relay signature information, and the relay signature information is the information obtained by encrypting the multiple resource processing requests using the private key of the relay node; the information verification module is also used to verify the relay signature information to obtain a relay signature verification result; when the relay signature information verification result is a passed verification, the aggregate signature information is verified to obtain an aggregate signature verification result.

[0018] In some embodiments, the aggregate processing request is generated based on the request packaging result, the aggregate signature information and the relay signature information. The request packaging result is the result of packaging the multiple resource processing requests. The relay signature information is the information obtained by encrypting the request packaging result using the private key of the relay node. The information verification module is also used to decrypt the relay signature information using the public key of the relay node to obtain a relay signature decryption result. Based on the request packaging result and the relay signature decryption result, the relay signature verification result is determined.

[0019] In some embodiments, the blockchain node has a relay contract and an aggregate signature contract; the relay signature information is verified using the relay contract; the information verification module is also used to call the aggregate signature contract through the relay contract to verify the aggregate signature information using the aggregate signature contract to obtain an aggregate signature verification result; and the aggregate signature verification result returned by the aggregate signature contract is received through the relay contract.

[0020] In some embodiments, the blockchain node also has a wallet smart contract; the request processing module is also used to: for each of the resource processing requests, use the relay contract to call the wallet smart contract corresponding to the resource processing request, so as to use the wallet smart contract corresponding to the resource processing request to verify the aggregate signature contract address and obtain an address verification result; the aggregate signature contract address refers to the address of the aggregate signature contract; if the address verification result is passed, execute the resource processing request.

[0021] In some embodiments, the information verification module is also used to obtain the object public keys corresponding to the multiple resource processing requests respectively; the object public keys corresponding to the resource processing requests refer to the object public keys of the object that initiates the resource processing requests; using the object public keys corresponding to the multiple resource processing requests respectively and the multiple resource processing requests, the aggregate signature information is verified to obtain an aggregate signature verification result.

[0022] In some embodiments, the object public key corresponding to the resource processing request is the coordinate representation value of a point in a preset elliptic curve; the information verification module is also used to determine the hash values ​​corresponding to the multiple resource processing requests respectively; for each of the resource processing requests, the target point is obtained by searching the preset elliptic curve for a point with the hash value of the resource processing request as the horizontal coordinate, and the coordinate representation value corresponding to the resource processing request is obtained based on the horizontal coordinate and vertical coordinate of the target point; the aggregate signature information is verified using the coordinate representation values ​​corresponding to the multiple resource processing requests and the corresponding object public keys respectively to obtain an aggregate signature verification result.

[0023] On the other hand, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the resource processing method when executing the computer program.

[0024] On the other hand, the present application further provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps in the above resource processing method when executed by a processor.

[0025] On the other hand, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps in the resource processing method are implemented.

[0026] In the resource processing method, device, computer equipment, storage medium and computer program product, a blockchain node receives an aggregate processing request sent by a relay node. The aggregate processing request is generated based on multiple resource processing requests and aggregate signature information. The aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests. The signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiated the resource processing request. The aggregate signature information is verified to obtain an aggregate signature verification result. When the aggregate signature verification result is a verification pass, multiple resource processing requests are processed. Thus, the verification process of multiple resource processing requests is simplified through the aggregate signature information, saving resource consumption during the verification process. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1A A diagram of an application environment of a resource processing method in some embodiments;

[0028] Figure 1B It is a schematic diagram of the structure of the blockchain system in some embodiments;

[0029] Figure 1C A schematic diagram of the structure of blocks in some embodiments;

[0030] Figure 2 A schematic diagram of a process flow of a resource processing method in some embodiments;

[0031] Figure 3 is a timing diagram of a resource processing method in some embodiments;

[0032] Figure 4 A schematic diagram of a process flow of a resource processing method in some embodiments;

[0033] Figure 5 A schematic diagram of a process flow of a resource processing method in some embodiments;

[0034] Figure 6 A diagram of an application environment of a resource processing method in some embodiments;

[0035] Figure 7 is a structural block diagram of a resource processing device in some embodiments;

[0036] Figure 8 is a structural block diagram of a resource processing device in some embodiments;

[0037] Fig. 9 is an internal structure diagram of a computer device in some embodiments;

[0038] Fig.10 1 is a diagram of the internal structure of a computer device in some embodiments. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The resource processing method provided in the embodiment of the present application can be applied to Figure 1A In the application environment shown. The application environment includes a terminal 102, a relay node 104 and a blockchain system 106. Among them, the terminal 102 communicates with the blockchain system 106 through the relay node 104. The data storage system can store the data that the relay node 104 needs to process. The data storage system can be integrated on the relay node 104, or it can be placed on the cloud or other servers. The blockchain system 106 includes multiple blockchain nodes. The relay node 104 and the blockchain node can be any form of computing device, such as a server, a terminal, or a server cluster.

[0041] like Figure 1BAs shown, an optional structural diagram of the blockchain system 106 is shown. The blockchain system 106 is formed by multiple blockchain nodes (any form of computing devices in the access network, such as servers and terminals), and a peer-to-peer (P2P) network is formed between blockchain nodes. The P2P protocol is an application layer protocol running on the Transmission Control Protocol (TCP) protocol. In a distributed system, any machine such as a server or terminal can join and become a node. The node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer. The functions involved in the blockchain nodes in the blockchain system include:

[0042] 1) Routing is a basic function of blockchain nodes, which is used to support communication between blockchain nodes.

[0043] In addition to the routing function, blockchain nodes can also have the following functions:

[0044] 2) Applications, which are deployed in the blockchain to implement specific businesses according to actual business needs, record data related to the implementation of functions to form record data, carry digital signatures in the record data to indicate the source of the task data, and send the record data to other blockchain nodes in the blockchain system for other blockchain nodes to add the record data to the temporary block when they successfully verify the source and integrity of the record data.

[0045] For example, the services implemented by the application include:

[0046] 2.1) Wallet, used to provide the function of trading resources, including initiating transactions (i.e., sending the transaction record of the current transaction to other blockchain nodes in the blockchain system. After successful verification by other blockchain nodes, as a response to acknowledge the validity of the transaction, the transaction record data is stored in the temporary block of the blockchain; of course, the wallet also supports querying the remaining resources in the resource address;

[0047] 2.2) Shared ledger, which is used to provide functions such as storage, query and modification of account data, and send the record data of the operation on the account data to other blockchain nodes in the blockchain system. After other blockchain nodes verify the validity, they will store the record data in a temporary block as a response to acknowledge the validity of the account data, and can also send confirmation to the blockchain node that initiated the operation.

[0048] 2.3) Smart contracts, computerized protocols, can execute the terms of a contract, and are implemented by deploying code on a shared ledger for execution when certain conditions are met. The code is used to complete automated transactions according to actual business needs, such as querying the logistics status of the goods purchased by the buyer, and transferring the buyer's resources to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for transactions, but can also execute contracts for processing received information. For example, in the resource transfer processing method provided in this application, the smart contract may include a relay contract and an aggregate signature contract. The relay contract is used to verify the signature of the relay node. The relay node can call the aggregate signature contract to verify the aggregate signature information. The aggregate signature information is verified by calling the aggregate signature contract through the relay node, which simplifies the verification process of multiple resource processing requests and saves resource consumption during the verification process.

[0049] 3) Blockchain, including a series of blocks that are connected to each other in the order of their generation. Once a new block is added to the blockchain, it will not be removed. The block records the record data submitted by the blockchain nodes in the blockchain system.

[0050] like Figure 1C As shown, a block structure is shown, each block includes the hash value of the transaction record stored in this block (the hash value of this block) and the hash value of the previous block, and each block is connected by the hash value to form a blockchain. For example, the multiple resource processing requests are packaged and processed to obtain the request packaging result. The relay node can send the request packaging result to the blockchain node. The blockchain node can perform hash calculation on the request packaging result and store the hash calculation result in the block without storing the hash value of each resource processing request, thereby reducing the storage resources of the blockchain and saving the storage resources of the blockchain. In addition, the block can also include information such as the timestamp when the block is generated. The blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains relevant information for verifying the validity of its information (anti-counterfeiting) and generating the next block.

[0051] Specifically, the relay node 104 receives multiple resource processing requests and signature information of each of the multiple resource processing requests. The multiple resource processing requests may be sent by the same terminal, such as terminal 102, or may be sent by at least two different terminals. The relay node 104 aggregates the signature information of each of the multiple resource processing requests to obtain aggregate signature information. The relay node 104 generates an aggregate processing request based on the aggregate signature information and the multiple resource processing requests, and sends the aggregate processing request to any blockchain node in the blockchain system 106. The blockchain node receives the aggregate processing request sent by the relay node, verifies the aggregate signature information, and obtains the aggregate signature verification result. When the aggregate signature verification result is a verification pass, the multiple resource processing requests are processed. Among them, the signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request.

[0052] The terminal 102 may be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The relay node 104 and each blockchain node in the blockchain system 106 may be a terminal, or the relay node 104 and each blockchain node in the blockchain system 106 may be implemented by an independent server or a server cluster consisting of multiple servers.

[0053] In some embodiments, Figure 2 As shown, a resource processing method is provided, which can be executed by a terminal or a server, or can be executed by a terminal and a server together. The method is applied to the relay node 104 in FIG. 1 as an example for description, and includes the following steps:

[0054] Step 202, receiving multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request.

[0055] Among them, resources refer to resources that can be circulated in electronic accounts, such as resources that can be circulated on the Internet through accounts. Resources can be real resources or virtual resources. Real resources include but are not limited to red envelopes, gift certificates or coupons. Virtual resources include but are not limited to digital assets. Digital assets include but are not limited to digital collections. Digital collections include but are not limited to electronic pets or props that can be traded in games. Electronic accounts include but are not limited to bank accounts or Internet payment accounts. Electronic accounts can be, for example, public accounts, which refer to corporate bank settlement accounts. Of course, electronic accounts can also be other types of accounts other than public accounts. Public accounts can also be called public transaction accounts or public payment accounts. Public payment accounts can be, for example, public payment merchants.

[0056] Digital collections are specific digitized works, artworks or commodities that are uniquely identified using blockchain technology, such as digital paintings, pictures, music, videos, 3D models, etc. Each digital collection maps a unique sequence on a specific blockchain, which cannot be tampered with, divided, or replaced with each other. Each digital collection has a unique digital certificate, which is a digital certificate that represents the uniqueness of the digital collection. The unique digital certificate is a non-repetitive digital certificate assigned to the digital collection stored on the blockchain based on blockchain technology. The unique digital certificate generated for the digital collection based on blockchain technology makes the issued digital collection unique.

[0057] A resource processing request is a request to process a resource, including but not limited to at least one of deleting resources belonging to an object, adding new resources to an object, and transferring resources belonging to an object to an account of another object. Multiple resource processing requests refer to at least two resource processing requests. An object represents a natural person or a group. The signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request. The multiple resource processing requests can be triggered by the same terminal or by at least two different terminals.

[0058] Specifically, the terminal displays the operation interface of the target application, and in response to the resource processing operation triggered by the operation interface, sends a resource processing request corresponding to the resource processing operation to the background server corresponding to the target application, and the background server encrypts the resource processing request using the private key corresponding to the resource processing request to obtain the signature information of the resource processing request. Among them, the private key corresponding to the resource processing request refers to the object private key of the object that initiates the resource processing request, that is, the object private key of the object that triggers the resource processing operation.

[0059] Among them, the target application can be any application that can trigger resource processing operations. The target application can be an independent application or a sub-application. The sub-application is an application that can be implemented in the environment provided by the parent application. The sub-application can be, for example, a mini-program, which refers to an application that can be used without downloading and installing. The parent application is an application that carries the sub-application and provides an environment for the implementation of the sub-application. The parent application is a native application. A native application is an application that can run directly on the operating system. The parent application can be a social application, a dedicated application that specifically supports sub-applications, a file management application, a music application, a video application, an email application, or a game application, etc. Social applications include instant messaging applications, short video applications, or live broadcast applications, etc.

[0060] In some embodiments, the object private key can be sent by the terminal to the background server. The terminal responds to the resource processing operation triggered by the operation interface, obtains the object private key input by the object, and sends the resource processing request and the object private key corresponding to the resource processing operation to the background server corresponding to the target application. When the background server receives the resource processing request and the object private key, it uses the object private key to encrypt the resource processing request to obtain the signature information of the resource processing request.

[0061] In some embodiments, the object private key may also be pre-stored in the background server. For example, the background server pre-stores the object private keys of multiple objects. There is a corresponding relationship between the object private key and the object identifier. In response to the resource processing operation triggered by the operation interface, the terminal sends a resource processing request and an object identifier corresponding to the resource processing operation to the background server corresponding to the target application. The background server queries the object private key corresponding to the object identifier, obtains the object private key corresponding to the resource processing request, and uses the object private key corresponding to the resource processing request to encrypt the resource processing request to obtain the signature information of the resource processing request.

[0062] In some embodiments, the background server performs a hash calculation on the resource processing request to obtain a hash value of the resource processing request, encrypts the hash value of the resource processing request using an object private key corresponding to the resource processing request, and obtains signature information of the resource processing request.

[0063] Take the target application as a blockchain applet as an example. Figure 3As shown in the figure, "Blockchain Mini Program-Background" refers to the background server corresponding to the target application, "Relay Service Provider" represents the relay node, and "Relay Contract", "Aggregate Signature Contract", "Wallet Smart Contract" and "Business Logic Contract (Digital Asset Contract)" are the four contracts in the blockchain node. At least one of the four contracts can exist in each blockchain node in the blockchain system. Among them, the relay contract is a contract used to verify the relay signature information, and the aggregate signature contract is a contract used to verify the aggregate signature information. Figure 3 The four contracts in the figure belong to the same blockchain node. The terminal can respond to the resource processing operation through the operation interface provided by the front end of the blockchain applet, and send a resource processing request to the background of the blockchain applet, that is, the background server. The background of the blockchain applet generates the signature information of the resource processing request and sends the signature information and the resource processing request to the relay node.

[0064] Step 204: Aggregate the signature information of the multiple resource processing requests to obtain aggregate signature information.

[0065] Specifically, aggregation is used to aggregate multiple signature information into an aggregate signature information, where multiple refers to at least two. The signature information of the resource processing request is data that can be calculated. Aggregation can be achieved through addition operations. The relay node can add the signature information of each of the multiple resource processing requests and use the result of the addition as the aggregate signature information. For example, there are 3 resource processing requests, and the signature information of each of the 3 resource processing requests is S1, S2, and S3, respectively. Then the aggregate signature information S = S1+S2+S3.

[0066] In some embodiments, aggregation can also be achieved by splicing, and the relay node can splice the signature information of the multiple resource processing requests and use the splicing result as the aggregated signature information. In this application, aggregation can be achieved by any method that can merge multiple signature information into one information, and this application does not limit the aggregation method.

[0067] Step 206: Generate an aggregate processing request based on the aggregate signature information and multiple resource processing requests.

[0068] The aggregate processing request may carry the aggregate signature information and the multiple resource processing requests. Alternatively, the aggregate processing request may carry the aggregate signature information and the request packaging result. The request packaging result is the result obtained by packaging the multiple resource processing requests.

[0069] Specifically, the relay node may combine the aggregate signature information and the multiple resource processing requests to obtain an aggregate processing request. The relay node may package the multiple resource processing requests to obtain a request packaging result, and the relay node may combine the aggregate signature information and the request packaging result to obtain an aggregate processing request.

[0070] In some embodiments, the relay node may encrypt the multiple resource processing requests using the local private key of the relay node to obtain relay signature information. The relay node may generate an aggregate processing request based on the aggregate signature information, the relay signature information, and the multiple resource processing requests. The local private key of the relay node refers to a private key belonging to the relay node.

[0071] Step 208, sending the aggregate processing request to the blockchain node; the aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and process multiple resource processing requests after the verification is passed.

[0072] The processing of the multiple resource processing requests may include executing each resource processing request in the multiple resource processing requests, and each resource processing request may be executed in parallel or in sequence.

[0073] Specifically, the relay node sends the aggregate processing request to the blockchain node, and the blockchain node receives the aggregate processing request sent by the relay node, verifies the aggregate signature information, and obtains the aggregate signature verification result. If the aggregate signature verification result is verified, the blockchain node processes the multiple resource processing requests.

[0074] In some embodiments, the relay node encrypts the multiple resource processing requests using the private key of the relay node to obtain relay signature information. The relay node generates an aggregate processing request based on the multiple resource processing requests, the aggregate signature information, and the relay signature information. The blockchain node receives the aggregate processing request sent by the relay node, verifies the relay signature information carried in the aggregate processing request, and obtains a relay signature verification result. If the relay signature information verification result is a passed verification, the blockchain node verifies the aggregate signature information carried in the aggregate processing request to obtain an aggregate signature verification result. If the aggregate signature verification result is a passed verification, the blockchain node processes the multiple resource processing requests.

[0075] In the above resource processing method, multiple resource processing requests and their respective signature information are received. The signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request. The signature information of the multiple resource processing requests is aggregated to obtain the aggregate signature information. The aggregate processing request is generated based on the aggregate signature information and the multiple resource processing requests. The aggregate processing request is sent to the blockchain node. The aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and the multiple resource processing requests are processed after the verification is passed. Therefore, by aggregating the signature information, the verification process of multiple resource processing requests is simplified, and resource consumption in the verification process is saved.

[0076] In some embodiments, generating an aggregate processing request based on aggregate signature information and multiple resource processing requests includes: encrypting multiple resource processing requests using a local private key to obtain relay signature information; generating an aggregate processing request based on the aggregate signature information, relay signature information and multiple resource processing requests.

[0077] The aggregate processing request may also carry relay signature information. The local private key of the relay node refers to the private key belonging to the relay node.

[0078] Specifically, the relay node may combine the multiple resource processing requests with the aggregate signature information to obtain target combination information, or the relay node may package the multiple resource processing requests to obtain a request package result, and combine the request package result with the aggregate signature information to obtain the target combination information. The relay node may encrypt the target combination information using the local private key of the relay node to obtain the relay signature information.

[0079] In some embodiments, the relay node may perform a hash calculation on the target combination information, and encrypt the result of the hash calculation using the local private key of the relay node to obtain relay signature information.

[0080] In some embodiments, the relay node may package multiple resource processing requests to obtain a request package result, encrypt the request package result using a local private key, and obtain relay signature information.

[0081] In some embodiments, the relay node may combine the aggregate signature information, the relay signature information, and multiple resource processing requests to obtain an aggregate processing request. Alternatively, the relay node may combine the aggregate signature information, the relay signature information, and the request packaging result to obtain an aggregate processing request.

[0082] In this embodiment, a local private key is used to encrypt multiple resource processing requests to obtain relay signature information, and an aggregate processing request is generated based on the aggregate signature information, relay signature information, and multiple resource processing requests. The legitimacy of the relay node can be verified through the relay signature information, thereby improving security.

[0083] In some embodiments, multiple resource processing requests are encrypted using a local private key to obtain relay signature information, including: packaging multiple resource processing requests to obtain a request packaging result; encrypting the request packaging result using a local private key to obtain relay signature information; based on the aggregate signature information, relay signature information and multiple resource processing requests, generating an aggregate processing request includes: generating an aggregate processing request based on the aggregate signature information, relay signature information and request packaging result.

[0084] Specifically, the relay node can package multiple resource processing requests to obtain a request package result, and encrypt the request package result using a local private key to obtain relay signature information. The relay node can combine the aggregate signature information, relay signature information and request package result to obtain an aggregate processing request.

[0085] In this embodiment, multiple resource processing requests are packaged and processed to obtain a request packaging result, which is encrypted using a local private key to obtain relay signature information, and an aggregate processing request is generated based on the aggregate signature information, the relay signature information and the request packaging result, thereby reducing the data volume of the aggregate processing request, thereby reducing the data volume of the request sent to the blockchain system, and saving blockchain resources.

[0086] In some embodiments, encrypting the request packaging result using a local private key to obtain relay signature information includes: performing a hash calculation on the request packaging result to obtain a hash calculation result; and encrypting the hash calculation result using a local private key to obtain relay signature information.

[0087] Specifically, the relay node may first perform a hash calculation on the request packaging result to obtain a hash calculation result, and then the relay node may use a local private key to encrypt the hash calculation result and use the encrypted result as the relay signature information.

[0088] In this embodiment, a hash calculation is performed on the request packaging result to obtain a hash calculation result, and the hash calculation result is encrypted using a local private key to obtain relay signature information, thereby improving the security of the information.

[0089] In some embodiments, Figure 4As shown, a resource processing method is provided, which can be executed by a terminal or a server, or by both a terminal and a server. The method is applied to the blockchain node in FIG1 as an example for explanation, and includes the following steps:

[0090] Step 402, receiving the aggregate processing request sent by the relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, the aggregate signature information is obtained by aggregating the signature information of the multiple resource processing requests, and the signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request.

[0091] Specifically, the relay node can send an aggregate processing request to any blockchain node in the blockchain system. When the blockchain node receives the aggregate processing request, it can verify the aggregate signature information. If the aggregate signature information is verified, each resource processing request in the multiple resource processing requests is processed separately. The aggregate processing request can be understood as a transaction request sent to the blockchain system.

[0092] Step 404: Verify the aggregate signature information to obtain an aggregate signature verification result.

[0093] Specifically, the blockchain node extracts the aggregate signature information from the aggregate processing request, verifies the aggregate signature information, and obtains the aggregate signature verification result. The aggregate signature verification result is verification passed or verification failed.

[0094] In some embodiments, when the aggregate processing request carries relay signature information, the blockchain node first verifies the relay signature information. If the relay signature information verification passes, the aggregate signature information is verified to obtain the aggregate signature verification result.

[0095] In some embodiments, there is a relay contract in the blockchain node, which is a contract used to verify the relay signature information. The blockchain node can call the relay contract to verify the relay signature information. The blockchain node also has an aggregate signature contract, which is a contract used to verify the aggregate signature information. The blockchain node can call the aggregate signature contract through the relay contract, use the aggregate signature contract to verify the aggregate signature information, and obtain the aggregate signature verification result.

[0096] Step 406: When the aggregate signature verification result is verified to be passed, multiple resource processing requests are processed.

[0097] The processing of the multiple resource processing requests may include executing each resource processing request in the multiple resource processing requests, and each resource processing request may be executed in parallel or in sequence.

[0098] Specifically, the blockchain node also has a wallet smart contract. When the aggregate signature verification result is verified, for each resource processing request, the blockchain node uses the relay contract to call the wallet smart contract corresponding to the resource processing request, and uses the wallet smart contract corresponding to the resource processing request to verify the aggregate signature contract address, obtain the address verification result, and execute the resource processing request when the address verification result is verified. Among them, the wallet smart contract corresponding to the resource processing request refers to the wallet smart contract corresponding to the object that initiates the resource processing request.

[0099] In the above resource processing method, the blockchain node receives the aggregate processing request sent by the relay node. The aggregate processing request is generated based on multiple resource processing requests and aggregate signature information. The aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests. The signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request. The aggregate signature information is verified to obtain the aggregate signature verification result. When the aggregate signature verification result is verification passed, the multiple resource processing requests are processed. Therefore, the verification process of multiple resource processing requests is simplified through the aggregate signature information, saving resource consumption during the verification process.

[0100] In some embodiments, an aggregate processing request is generated based on multiple resource processing requests, aggregate signature information, and relay signature information. The relay signature information is information obtained by encrypting multiple resource processing requests using a private key of a relay node. The aggregate signature information is verified to obtain an aggregate signature verification result, including: verifying the relay signature information to obtain a relay signature verification result. When the relay signature information verification result is a passed verification, the aggregate signature information is verified to obtain an aggregate signature verification result.

[0101] The relay signature verification result is either passed or failed. The aggregate signature verification result is either passed or failed.

[0102] Specifically, if the aggregate processing request is generated based on the multiple resource processing requests, the aggregate signature information and the relay signature information, that is, when the aggregate processing request carries the relay signature information, the blockchain node can first use the public key of the relay node to decrypt the relay signature information to obtain the relay signature decryption result, and compare the relay signature decryption result with the corresponding decryption reference information. If the comparison is consistent, it is determined that the relay signature information verification has passed, otherwise, it is determined that the relay signature information verification has failed. If the relay signature information verification passes, the aggregate signature information is verified to obtain the aggregate signature verification result. Among them, the decryption reference information refers to the information encrypted by the local private key of the relay node in order to obtain the relay signature information. For example, if the relay signature information is the information obtained by the relay node using the local private key to encrypt the request packaging result, the decryption reference information is the request packaging result.

[0103] In this embodiment, when the relay signature information verification result is verification passed, the aggregate signature information is verified, thereby improving security.

[0104] In some embodiments, an aggregate processing request is generated based on a request packaging result, aggregate signature information, and relay signature information. The request packaging result is the result of packaging multiple resource processing requests. The relay signature information is the information obtained by encrypting the request packaging result using the private key of the relay node. The relay signature information is verified to obtain the relay signature verification result, including: decrypting the relay signature information using the public key of the relay node to obtain the relay signature decryption result; and determining the relay signature verification result based on the request packaging result and the relay signature decryption result.

[0105] Specifically, the private key of the relay node is the local private key of the relay node. If the relay node uses the local private key to encrypt the request packaging result and uses the encrypted result as the relay signature information, the blockchain node uses the public key of the relay node to decrypt the relay signature information to obtain the relay signature decryption result, and compares the relay signature decryption result with the request packaging result. If the comparison is consistent, the relay signature verification result is determined to be verified passed, otherwise, the relay signature verification result is determined to be verified failed.

[0106] In some embodiments, if the relay node performs a hash calculation on the request packaging result to obtain a hash calculation result, encrypts the hash calculation result using a local private key, and uses the encrypted result as the relay signature information, the blockchain node decrypts the relay signature information using the public key of the relay node to obtain the relay signature decryption result, and performs a hash calculation on the request packaging result to obtain decryption reference information, compares the decryption reference information with the relay signature decryption result, and if the comparison is consistent, determines that the relay signature verification result is verified to be passed, otherwise, determines that the relay signature verification result is verified to be failed.

[0107] In this embodiment, the relay signature information is decrypted using the public key of the relay node to obtain a relay signature decryption result, and the relay signature verification result is determined based on the request packaging result and the relay signature decryption result, thereby improving security.

[0108] In some embodiments, a blockchain node has a relay contract and an aggregate signature contract; the relay signature information is verified using the relay contract; verifying the aggregate signature information to obtain the aggregate signature verification result includes: calling the aggregate signature contract through the relay contract to verify the aggregate signature information using the aggregate signature contract to obtain the aggregate signature verification result; receiving the aggregate signature verification result returned by the aggregate signature contract through the relay contract.

[0109] Among them, the relay contract is a contract used to verify the relay signature information. The relay contract can also parse the request packaging results to obtain the multiple resource processing requests. The aggregate signature contract is a contract used to verify the aggregate signature information. The aggregate signature information can also be referred to as the aggregate signature.

[0110] Specifically, Figure 3 , the blockchain node can call the relay contract to verify the relay signature information. When the relay signature information is verified, the aggregate signature contract is called through the relay contract, and the aggregate signature information is verified using the aggregate signature contract to obtain the aggregate signature verification result. The aggregate signature contract returns the aggregate signature verification result to the relay contract.

[0111] In some embodiments, when it is determined that the verification result of the aggregate signature received by the relay contract is verified to be passed, the blockchain node executes each resource processing request in the multiple resource processing requests. The blockchain node can execute each resource processing request in parallel or in sequence.

[0112] In this embodiment, since there is a relay contract in the blockchain node, the relay contract can be used to verify the relay signature information, and the verification of the aggregate signature information is completed by using the call between the relay contract and the aggregate signature contract, thereby improving the verification efficiency.

[0113] In some embodiments, the blockchain node also has a wallet smart contract; processing multiple resource processing requests includes: for each resource processing request, using the relay contract to call the wallet smart contract corresponding to the resource processing request, so as to verify the aggregate signature contract address using the wallet smart contract corresponding to the resource processing request to obtain an address verification result; the aggregate signature contract address refers to the address of the aggregate signature contract; when the address verification result is verified, execute the resource processing request.

[0114] The wallet smart contract corresponding to the resource processing request refers to the wallet smart contract of the object that initiated the resource processing request. The relay contract can use the object address of the object that initiated the resource processing request.

[0115] Specifically, the relay contract in the blockchain node can parse the request packaging result to obtain the multiple resource processing requests. For each resource processing request, the relay contract can call the wallet smart contract corresponding to the resource processing request based on the object address of the object that initiated the resource processing request. The object address refers to the address of the object's account in the blockchain. When the wallet smart contract determines that the aggregate signature contract address is an address it trusts, the address verification result is determined to be verified passed, otherwise, the address verification result is determined to be verified failed.

[0116] In some embodiments, Figure 3 As shown, the blockchain node also includes a business logic contract, which is used to execute resource processing requests. For each resource processing request, the relay contract in the blockchain node sends the resource processing request and the aggregate signature contract address to the wallet smart contract corresponding to the resource processing request. The wallet smart contract corresponding to the resource processing request verifies the aggregate signature contract address and obtains the address verification result. When the address verification result is verified, the wallet smart contract corresponding to the resource processing request calls the business logic contract to execute the resource processing request. The business logic contract returns the execution result of the resource processing request to the wallet smart contract corresponding to the resource processing request. The wallet smart contract corresponding to the resource processing request returns the execution result to the relay contract. After obtaining the execution results of each of the multiple resource processing requests, the relay contract in the blockchain uses the execution results of each of the multiple resource processing requests as the execution result of the aggregate processing request, and returns the execution result of the aggregate processing request to the relay node. After the relay node receives the execution result of the aggregate processing request, it returns the execution result of each resource processing request in the execution result of the aggregate processing request to the background server of the target application. The background server parses the execution result of the resource processing request and updates the operation interface of the target application displayed on the corresponding terminal based on the parsed result.

[0117] In this embodiment, for each resource processing request, the relay contract is used to call the wallet smart contract corresponding to the resource processing request, and the wallet smart contract corresponding to the resource processing request is used to verify the aggregate signature contract address to obtain the address verification result. When the address verification result is passed, the resource processing request is executed. Since the wallet smart contract only verifies the aggregate signature contract address, the verification efficiency is improved.

[0118] In some embodiments, the aggregate signature information is verified to obtain the aggregate signature verification result, including: obtaining the object public keys corresponding to multiple resource processing requests respectively; the object public key corresponding to the resource processing request refers to the object public key of the object that initiates the resource processing request; using the object public keys corresponding to the multiple resource processing requests and the multiple resource processing requests respectively, the aggregate signature information is verified to obtain the aggregate signature verification result.

[0119] Among them, the object public key corresponding to the resource processing request refers to the object public key of the object that initiated the resource processing request. The object public key corresponding to the resource processing request is generated based on the coordinate representation value of the generation point of the preset elliptic curve and the object private key corresponding to the resource processing request. The object private key corresponding to the resource processing request refers to the object private key of the object that initiated the resource processing request. The object public key corresponding to the resource processing request may be pre-stored in the blockchain node. The generation point of the preset elliptic curve is the base point of the preset elliptic curve. The preset elliptic curve can be any elliptic curve, for example, it can be y2=x 3 +ax+b. The coordinate representation value is used to represent the coordinate, which can be the coordinate itself or the data obtained by converting the coordinate.

[0120] Specifically, the object public key corresponding to the resource processing request can be generated by the background server of the target application and uploaded to the blockchain node. The background server of the target application can perform a product operation on the object private key corresponding to the resource processing request and the coordinate representation value of the generated point, and use the result of the operation as the object public key corresponding to the resource processing request. The result of multiplying the object private key corresponding to the resource processing request and the coordinate representation value of the generated point is the coordinate representation value of a point in the preset elliptic curve, that is, the object public key corresponding to the resource processing request is the coordinate representation value of a point in the preset elliptic curve.

[0121] In this embodiment, the aggregate signature information is verified using the object public keys and the multiple resource processing requests respectively corresponding to the multiple resource processing requests to obtain the aggregate signature verification result, thereby improving the accuracy of the verification.

[0122] In some embodiments, the object public key corresponding to the resource processing request is the coordinate representation value of a point in a preset elliptic curve; the object public key corresponding to the resource processing request is the coordinate of a point on the preset elliptic curve; using the object public keys corresponding to multiple resource processing requests and multiple resource processing requests respectively, the aggregate signature information is verified to obtain the aggregate signature verification result, including: determining the hash values ​​corresponding to the multiple resource processing requests respectively; for each resource processing request, searching for a point with the hash value of the resource processing request as the horizontal coordinate on the preset elliptic curve to obtain the target point, and obtaining the coordinate representation value corresponding to the resource processing request based on the horizontal and vertical coordinates of the target point; using the coordinate representation values ​​corresponding to multiple resource processing requests and the corresponding object public keys respectively, the aggregate signature information is verified to obtain the aggregate signature verification result.

[0123] Among them, the hash value of the resource processing request is obtained by hashing the resource processing request, which can be generated by the blockchain node or generated by the relay node and sent to the blockchain node.

[0124] Specifically, in some embodiments, the blockchain node may determine a preset curve pairing function, the input of which is the coordinate representation value of two points on the same curve or different curves, and the output is a numerical value. For each resource processing request, the blockchain node may search for a point with the hash value of the resource processing request as the horizontal coordinate on the preset elliptic curve to obtain the target point, and obtain the coordinate representation value corresponding to the resource processing request based on the horizontal coordinate and the vertical coordinate of the target point. The blockchain node may input the coordinate representation value corresponding to the resource processing request and the object public key corresponding to the resource processing request into the preset curve pairing function, and determine the numerical value output by the preset curve pairing function as the pairing value corresponding to the resource processing request. The blockchain node may perform a product operation on the pairing values ​​corresponding to each of the multiple resource processing requests to obtain a first numerical value. The aggregate signature information is the coordinate representation value of a point on the preset elliptic curve, and the blockchain node may input the coordinate representation value of the generated point of the preset elliptic curve and the aggregate signature information into the preset curve pairing function, and determine the numerical value output by the preset curve pairing function as the second numerical value. The blockchain node can compare the first value with the second value. If the first value is the same as the second value, the aggregate signature verification result is determined to be passed. Otherwise, the aggregate signature verification result is determined to be failed.

[0125] For example, assuming that the preset curve pairing function is e and the number of resource processing requests is 100, the first value A1 can be expressed as: A1 = e(P1, H(m1)) × e(P2, H(m2)) ... e(P 100 ,H(m 100 )), where P i Represents the public key of the object corresponding to the i-th resource processing request, mi represents the i-th resource processing request, H(m i ) represents the coordinate representation value corresponding to the i-th resource processing request. The second value A2 can be expressed as A2 = e(G, ST), where G represents the coordinate representation value of the generation point and ST represents the aggregate signature information. If e(G, ST) = e(P1, H(m1)) × e(P2, H(m2)) ... e(P 100 ,H(m 100 ))If this equation holds true, the aggregate signature verification result is determined to be passed, otherwise, the aggregate signature verification result is determined to be failed.

[0126] In this embodiment, the coordinate representation values ​​and the object public keys respectively corresponding to the multiple resource processing requests are used to verify the aggregate signature information to obtain the aggregate signature verification result, thereby improving the accuracy of the verification.

[0127] In some embodiments, Figure 5 As shown, a resource processing method is provided, comprising the following steps:

[0128] Step 502: The relay node receives multiple resource processing requests and signature information of each of the multiple resource processing requests.

[0129] The signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request.

[0130] In step 504, the relay node aggregates the signature information of the multiple resource processing requests to obtain aggregate signature information, packages the multiple resource processing requests to obtain a request packaging result, and encrypts the request packaging result using a local private key to obtain relay signature information.

[0131] Step 506: The relay node generates an aggregate processing request based on the aggregate signature information, the relay signature information, and the request packaging result.

[0132] Step 508: The relay node sends the aggregate processing request to the blockchain node.

[0133] like Figure 6 In the process, the relay service sends the aggregate processing request to the blockchain node.

[0134] In step 510, the blockchain node receives the aggregate processing request sent by the relay node, and the relay contract in the blockchain node verifies the relay signature information carried in the aggregate processing request to obtain a relay signature verification result.

[0135] Step 512, when the relay signature information verification result is verified to be passed, the aggregate signature contract in the blockchain node verifies the aggregate signature information to obtain the aggregate signature verification result.

[0136] Step 514, when the aggregate signature verification result is verified, for each resource processing request, the blockchain node uses the relay contract to call the wallet smart contract corresponding to the resource processing request, and uses the wallet smart contract corresponding to the resource processing request to verify the aggregate signature contract address to obtain the address verification result.

[0137] Step 516, when the address verification result is verified, the blockchain node executes the resource processing request.

[0138] Among them, the object private key, object public key and aggregate signature information in this application can be generated based on multi-signature technology. When the address verification result is verified, the relay contract can also use the preset signature algorithm to verify the signature information of the resource processing request. After the verification is passed, the business logic contract is called to execute the resource processing request. Alternatively, the business logic contract can use the preset signature algorithm to verify the signature information of the resource processing request, and execute the resource processing request after the verification is passed. Among them, the preset signature algorithm can be a signature algorithm for zero-knowledge proof.

[0139] In this embodiment, the resource processing method provided by the present application aggregates the signature information corresponding to multiple resource processing requests off-chain, i.e., performs signature aggregation, and aggregates multiple signatures into one signature, thereby reducing the data stored in the blockchain system and saving the storage resources of the blockchain system. Since the aggregated signature is only verified once on the chain, the wallet contract of the object trusts the aggregated signature verification result of the aggregated signature contract on the chain, thereby reducing the number of signature verifications and further saving the transaction cost of the blockchain. The transaction cost is a unit used to measure the computational workload required to perform a specific operation on the blockchain. In addition, the relay node batches the resource processing requests of the object to form a transaction and submits it to the chain for execution. The object assets are flexibly managed in multiple dimensions through the smart contract account, and the object off-chain resource processing requests are batch packaged through the relay node, thereby achieving the effect of blockchain expansion.

[0140] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0141] Based on the same inventive concept, the embodiment of the present application also provides a resource processing device for implementing the resource processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource processing device embodiments provided below can refer to the limitations on the resource processing method above, and will not be repeated here.

[0142] In some embodiments, Figure 7 As shown, a resource processing device is provided, including: an information receiving module 702, an information aggregation module 704, a request generating module 706 and a request sending module 708, wherein:

[0143] The information receiving module 702 is used to receive multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request.

[0144] The information aggregation module 704 is used to aggregate the signature information of each of the multiple resource processing requests to obtain aggregate signature information.

[0145] The request generation module 706 is used to generate an aggregate processing request based on the aggregate signature information and multiple resource processing requests.

[0146] The request sending module 708 is used to send the aggregate processing request to the blockchain node. The aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information and process multiple resource processing requests after the verification is passed.

[0147] In some embodiments, the request generation module 706 is also used to encrypt multiple resource processing requests using a local private key to obtain relay signature information; and generate an aggregate processing request based on the aggregate signature information, relay signature information and multiple resource processing requests.

[0148] In some embodiments, the request generation module 706 is also used to: package multiple resource processing requests to obtain a request packaging result; encrypt the request packaging result using a local private key to obtain relay signature information; and generate an aggregate processing request based on the aggregate signature information, relay signature information and request packaging result.

[0149] In some embodiments, the request generation module 706 is further used to perform hash calculation on the request packaging result to obtain the hash calculation result; and encrypt the hash calculation result using the local private key to obtain relay signature information.

[0150] In some embodiments, Figure 8 As shown, a resource processing device is provided, including: a request receiving module 802, an information verification module 804 and a request processing module 806, wherein:

[0151] The request receiving module 802 is used to receive the aggregate processing request sent by the relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, and the aggregate signature information is obtained by aggregating the signature information of the multiple resource processing requests. The signature information of the resource processing request is the information obtained by encrypting the resource processing request using the object private key of the object that initiates the resource processing request.

[0152] The information verification module 804 is used to verify the aggregate signature information and obtain an aggregate signature verification result.

[0153] The request processing module 806 is used to process multiple resource processing requests when the aggregate signature verification result is verification passed.

[0154] In some embodiments, an aggregate processing request is generated based on multiple resource processing requests, aggregate signature information, and relay signature information. The relay signature information is information obtained by encrypting multiple resource processing requests using a private key of a relay node. The information verification module 804 is also used to verify the relay signature information to obtain a relay signature verification result. When the relay signature information verification result is a passed verification, the aggregate signature information is verified to obtain an aggregate signature verification result.

[0155] In some embodiments, an aggregate processing request is generated based on a request packaging result, aggregate signature information, and relay signature information. The request packaging result is the result of packaging multiple resource processing requests. The relay signature information is the information obtained by encrypting the request packaging result using the private key of the relay node. The information verification module 804 is also used to decrypt the relay signature information using the public key of the relay node to obtain a relay signature decryption result. The relay signature verification result is determined based on the request packaging result and the relay signature decryption result.

[0156] In some embodiments, there are relay contracts and aggregate signature contracts in the blockchain node; the relay signature information is verified using the relay contract; the information verification module 804 is also used to call the aggregate signature contract through the relay contract to verify the aggregate signature information using the aggregate signature contract to obtain the aggregate signature verification result; and the aggregate signature verification result returned by the aggregate signature contract is received through the relay contract.

[0157] In some embodiments, the blockchain node also has a wallet smart contract; the request processing module 806 is also used to: for each resource processing request, use the relay contract to call the wallet smart contract corresponding to the resource processing request, so as to use the wallet smart contract corresponding to the resource processing request to verify the aggregate signature contract address and obtain the address verification result; the aggregate signature contract address refers to the address of the aggregate signature contract; when the address verification result is verified, execute the resource processing request.

[0158] In some embodiments, the information verification module 804 is also used to obtain the object public keys corresponding to multiple resource processing requests respectively; the object public key corresponding to the resource processing request refers to the object public key of the object that initiates the resource processing request; using the object public keys corresponding to the multiple resource processing requests and the multiple resource processing requests, the aggregate signature information is verified to obtain the aggregate signature verification result.

[0159] In some embodiments, the object public key corresponding to the resource processing request is the coordinate representation value of a point in a preset elliptic curve; the information verification module 804 is also used to determine the hash values ​​corresponding to multiple resource processing requests respectively; for each resource processing request, the target point is obtained by searching the preset elliptic curve for a point with the hash value of the resource processing request as the horizontal coordinate, and the coordinate representation value corresponding to the resource processing request is obtained based on the horizontal coordinate and vertical coordinate of the target point; the aggregate signature information is verified using the coordinate representation values ​​corresponding to the multiple resource processing requests and the corresponding object public keys respectively to obtain the aggregate signature verification result.

[0160] Each module in the resource processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0161] In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data involved in the resource processing method. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource processing method is implemented.

[0162] In some embodiments, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource processing method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0163] Those skilled in the art will understand that Fig. 9 and Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0164] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned resource processing method when executing the computer program.

[0165] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned resource processing method are implemented.

[0166] In some embodiments, a computer program product is provided, including a computer program, which implements the steps in the above resource processing method when executed by a processor.

[0167] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0168] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0169] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0170] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A resource processing method, characterized in that: The method comprises: Receive multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request; Aggregating signature information of each of the multiple resource processing requests to obtain aggregate signature information; generating an aggregate processing request based on the aggregate signature information and the multiple resource processing requests; The aggregate processing request is sent to a blockchain node; the aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information, and process the multiple resource processing requests after the verification is passed.

2. The method according to claim 1, characterized in that: The generating an aggregate processing request based on the aggregate signature information and the multiple resource processing requests includes: Encrypting the multiple resource processing requests using a local private key to obtain relay signature information; An aggregate processing request is generated based on the aggregate signature information, the relay signature information, and the multiple resource processing requests.

3. The method according to claim 2, characterized in that The using of the local private key to encrypt the multiple resource processing requests to obtain relay signature information includes: Packaging the multiple resource processing requests to obtain a request packaging result; Encrypt the request packaging result using the local private key to obtain relay signature information; The generating the aggregate processing request based on the aggregate signature information, the relay signature information and the multiple resource processing requests includes: An aggregate processing request is generated based on the aggregate signature information, the relay signature information, and the request packaging result.

4. The method according to claim 3, characterized in that: The request packaging result is encrypted using the local private key to obtain the relay signature information including: Performing hash calculation on the request packaging result to obtain a hash calculation result; The hash calculation result is encrypted using a local private key to obtain relay signature information.

5. A resource transfer processing method, characterized in that: Executed by a blockchain node, the method includes: receiving an aggregate processing request sent by a relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, the aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests, and the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request; Verifying the aggregate signature information to obtain an aggregate signature verification result; When the aggregate signature verification result is verification passed, the multiple resource processing requests are processed.

6. The method according to claim 5, characterized in that The aggregate processing request is generated based on the multiple resource processing requests, the aggregate signature information and the relay signature information, wherein the relay signature information is information obtained by encrypting the multiple resource processing requests using the private key of the relay node; The verifying the aggregate signature information to obtain an aggregate signature verification result includes: Verifying the relay signature information to obtain a relay signature verification result; When the relay signature information verification result is verified as passed, the aggregate signature information is verified to obtain an aggregate signature verification result.

7. The method according to claim 6, characterized in that The aggregate processing request is generated based on the request packaging result, the aggregate signature information and the relay signature information, wherein the request packaging result is a result obtained by packaging the multiple resource processing requests, and the relay signature information is information obtained by encrypting the request packaging result using the private key of the relay node; The verifying the relay signature information to obtain the relay signature verification result includes: Decrypting the relay signature information using the public key of the relay node to obtain a relay signature decryption result; Based on the request packaging result and the relay signature decryption result, a relay signature verification result is determined.

8. The method according to claim 6, characterized in that The blockchain node has a relay contract and an aggregate signature contract; the relay signature information is verified using the relay contract; The verifying the aggregate signature information to obtain an aggregate signature verification result includes: Calling the aggregate signature contract through the relay contract to verify the aggregate signature information using the aggregate signature contract to obtain an aggregate signature verification result; The aggregate signature verification result returned by the aggregate signature contract is received through the relay contract.

9. The method according to claim 8, characterized in that The blockchain node also has a wallet smart contract; The processing of the multiple resource processing requests comprises: For each resource processing request, the wallet smart contract corresponding to the resource processing request is called by the relay contract, so as to verify the aggregate signature contract address by using the wallet smart contract corresponding to the resource processing request to obtain an address verification result; the aggregate signature contract address refers to the address of the aggregate signature contract; When the address verification result is verification passed, the resource processing request is executed.

10. The method according to claim 5, characterized in that The verifying the aggregate signature information to obtain an aggregate signature verification result includes: Obtaining object public keys corresponding to the multiple resource processing requests respectively; the object public key corresponding to the resource processing request refers to the object public key of the object initiating the resource processing request; The aggregate signature information is verified using the object public keys respectively corresponding to the multiple resource processing requests and the multiple resource processing requests to obtain an aggregate signature verification result.

11. The method according to claim 10, characterized in that The object public key corresponding to the resource processing request is the coordinate representation value of a point in the preset elliptic curve; The verifying the aggregate signature information by using the object public keys respectively corresponding to the multiple resource processing requests and the multiple resource processing requests to obtain the aggregate signature verification result includes: Determine hash values ​​corresponding to the multiple resource processing requests respectively; For each resource processing request, find a point with a hash value of the resource processing request as a horizontal coordinate on a preset elliptic curve to obtain a target point, and obtain a coordinate representation value corresponding to the resource processing request based on the horizontal coordinate and the vertical coordinate of the target point; The aggregate signature information is verified using the coordinate representation values ​​and the object public keys respectively corresponding to the multiple resource processing requests to obtain an aggregate signature verification result.

12. A resource processing device, characterized in that: The device comprises: An information receiving module, used to receive multiple resource processing requests and signature information of each of the multiple resource processing requests; the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request; An information aggregation module, used to aggregate the signature information of each of the multiple resource processing requests to obtain aggregate signature information; A request generation module, configured to generate an aggregate processing request based on the aggregate signature information and the multiple resource processing requests; A request sending module is used to send the aggregate processing request to the blockchain node, and the aggregate processing request is used to trigger the blockchain node to verify the aggregate signature information and process the multiple resource processing requests after the verification is passed.

13. A resource processing device, characterized in that: The device comprises: a request receiving module, configured to receive an aggregate processing request sent by a relay node; the aggregate processing request is generated based on multiple resource processing requests and aggregate signature information, the aggregate signature information is obtained by aggregating the signature information of each of the multiple resource processing requests, and the signature information of the resource processing request is information obtained by encrypting the resource processing request using the object private key of the object initiating the resource processing request; An information verification module, used to verify the aggregate signature information and obtain an aggregate signature verification result; The request processing module is used to process the multiple resource processing requests when the aggregate signature verification result is verification passed.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.