Data processing method, device and storage medium

By using blockchain technology in digital resource transactions and using hash values ​​and encryption algorithms to process transaction data, it solves the problem of difficulty in ensuring the security and credibility of digital resource transactions in existing technologies and achieves openness and transparency of transaction data. and efficient storage.

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

Patent Information

Application Number
CN202010004471.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-02
Publication Date
2024-08-23
Estimated Expiration
2040-08-23

AI Technical Summary

Technical Problem

Security and credibility in existing digital resource transactions are difficult to guarantee, especially in transaction models that rely on third-party platforms.

Method used

Adopting a blockchain-based data processing method, by receiving and uploading transaction data to the blockchain network, using hash values ​​and encryption algorithms to ensure the openness, transparency and security of the data, and realizing the storage and verification of transaction data.

Benefits of technology

It improves the security and credibility of digital resource transaction data, avoids the risks of centralized platform management, and achieves openness, transparency and non-tamperability of transaction data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111210217B
    Figure CN111210217B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device and storage medium for data processing. The terminal of the first user identification uploads the first transaction data indicating the transfer of digital assets from the wallet address of the first user to the wallet address of the second user to the blockchain network, and sends a target order to the first server, the target order including the first user identification, the second user identification, the first target object identification and the hash value of the first transaction data; the first server receives the target order, and when the first transaction data is found from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identification is sent to the terminal of the first user identification. Since the first transaction data is stored in the blockchain network, any node in the blockchain network can view and verify the first transaction data, so that the transaction is open and transparent, and the security and credibility of the transaction data are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a data processing method, device and storage medium. Background Art

[0002] With the continuous development of Internet technology, online transactions have been continuously improved, and more and more products are traded on the Internet. The transaction of digital resources is also one of them, such as the activation code of the application. At present, the transaction of digital resources is mainly carried out through various third-party platforms. For example, in the transaction of the activation code of the application, the developer trades the activation code of the application through a third-party platform, such as "Taobao". In this transaction mode where digital resources rely on third-party platforms, the transaction data is completely managed by the third-party platform, and the security and credibility are difficult to be guaranteed. It can be seen that how to improve the security and credibility of the transaction data of digital resources has become a problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present invention provide a method, device and storage medium for data sharing, which can provide a method for purchasing digital resources based on blockchain, so as to make transaction data public and transparent, thereby improving the security and credibility of transaction data.

[0004] In a first aspect, an embodiment of the present invention provides a data processing method, including:

[0005] Receive a target order sent by a terminal with a first user identifier, the target order including the first user identifier, the second user identifier, the first target object identifier, and a hash value of first transaction data, the first transaction data being used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, and the target order is uploaded to the blockchain network by the terminal with the first user identifier;

[0006] When the first transaction data is found from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identifier is sent to the terminal of the first user identifier.

[0007] As a possible implementation, the method further includes:

[0008] The terminal receiving the second user identifier uploads second transaction data to the blockchain network, where the second transaction data includes authorization information corresponding to the first target object identifier encrypted by the public key of the first server;

[0009] The encrypted authorization information corresponding to the first target object identifier is decrypted by using the private key of the first server, and the authorization information corresponding to the first target object identifier is stored.

[0010] As a possible implementation manner, the second transaction data further includes a hash value of the authorization information corresponding to the first target object identifier, and after decrypting the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server and before storing the authorization information corresponding to the first target object identifier, the method further includes:

[0011] Perform hash operation on the decrypted data to obtain a predicted hash value;

[0012] When the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the authorization information corresponding to the first target object identifier is stored.

[0013] As a possible implementation manner, after storing the authorization information corresponding to the first target object identifier and before receiving the target order sent by the terminal of the first user identifier, the method further includes:

[0014] The first target object identifier, the second user's public key, and the transaction digital asset are sent to a terminal of the first user identifier.

[0015] As a possible implementation, the method further includes:

[0016] When the recharge of the recharge digital asset by the terminal of the first user identification is successful, generating recharge transaction data, wherein the recharge transaction data indicates that the recharge digital asset is transferred from the wallet address of the first server to the wallet address of the first user identification;

[0017] The recharge transaction data is sent to the blockchain network.

[0018] As a possible implementation, the method further includes:

[0019] Receiving a withdrawal request for withdrawing digital assets sent by the terminal of the second user identification;

[0020] Uploading withdrawal transaction data to the blockchain network, the withdrawal transaction data indicating that the withdrawal digital asset is transferred from the wallet address of the second user identifier to the wallet address of the first server;

[0021] After the blockchain network stores the withdrawal transaction data, the withdrawal digital asset is transferred from the account of the first server to the account of the second user.

[0022] In a second aspect, an embodiment of the present invention provides a data processing method, including:

[0023] Uploading first transaction data to the blockchain network, wherein the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier;

[0024] Sending a target order to the first server, the target order including a first user identifier, a second user identifier, a first target object identifier, and a hash value of first transaction data, so that the first server sends authorization information corresponding to the first target object identifier when finding the first transaction data from the blockchain network according to the hash value of the first transaction data;

[0025] Receive authorization information corresponding to the first target object identifier.

[0026] As a possible implementation, the method further includes:

[0027] Receive the input account number and password;

[0028] When the account number is calculated according to the password, a login request is sent to the first server, the login request carries the account number of the first user, so that after receiving the login request and verifying that the account number of the first user is a node in the blockchain network, the first server sends a login response message to the terminal identified by the first user, and the login response message is used to prompt the first user that the login is successful;

[0029] Receive and output the login response information sent by the first server.

[0030] In a third aspect, an embodiment of the present application provides a data processing device, including:

[0031] A receiving unit, configured to receive a target order sent by a terminal of a first user identifier, wherein the target order includes the first user identifier, the second user identifier, the first target object identifier, and a hash value of first transaction data, wherein the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, and the target order is uploaded to the blockchain network by the terminal of the first user identifier;

[0032] A sending unit is used to send the authorization information corresponding to the first target object identifier to the terminal of the first user identifier when the first transaction data is found from the blockchain network according to the hash value of the first transaction data.

[0033] As a possible implementation manner, the device further includes:

[0034] The receiving unit is further configured to receive the second user identifier and the terminal uploading second transaction data to the blockchain network, wherein the second transaction data includes authorization information corresponding to the first target object identifier encrypted by the public key of the first server;

[0035] The storage unit is used to decrypt the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server, and store the authorization information corresponding to the first target object identifier.

[0036] As a possible implementation manner, the second transaction data further includes a hash value of the authorization information corresponding to the first target object identifier, and after decrypting the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server and before the storage unit stores the authorization information corresponding to the first target object identifier, the device further includes:

[0037] A processing unit, used to perform a hash operation on the decrypted data to obtain a predicted hash value;

[0038] When the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the storage unit stores the authorization information corresponding to the first target object identifier.

[0039] As a possible implementation manner, after the storage unit stores the authorization information corresponding to the first target object identifier and before the receiving unit receives the target order sent by the terminal of the first user identifier, the sending unit is further configured to:

[0040] The first target object identifier, the second user's public key, and the transaction digital asset are sent to a terminal of the first user identifier.

[0041] As a possible implementation:

[0042] The processing unit is further configured to generate recharge transaction data when the terminal of the first user identification successfully recharges the recharge digital asset, wherein the recharge transaction data indicates that the recharge digital asset is transferred from the wallet address of the first server to the wallet address of the first user identification;

[0043] The sending unit sends the recharge transaction data to the blockchain network.

[0044] As a possible implementation,

[0045] The receiving unit is further configured to receive a withdrawal request for withdrawing digital assets sent by a terminal of the second user identification;

[0046] The sending unit is further used to upload withdrawal transaction data to the blockchain network, wherein the withdrawal transaction data indicates that the withdrawal digital asset is transferred from the wallet address of the second user identifier to the wallet address of the first server;

[0047] The processing unit is also used to transfer the withdrawal digital assets from the account of the first server to the account of the second user after the blockchain network stores the withdrawal transaction data.

[0048] In a fourth aspect, an embodiment of the present application provides a data processing device, including:

[0049] An uploading unit, configured to upload first transaction data to a blockchain network, wherein the first transaction data is used to indicate that a transaction digital asset is transferred from a wallet address identified by a first user to a wallet address identified by a second user;

[0050] a sending unit, configured to send a target order to the first server, the target order including a first user identifier, a second user identifier, a first target object identifier, and a hash value of first transaction data, so that the first server sends authorization information corresponding to the first target object identifier when finding the first transaction data from the blockchain network according to the hash value of the first transaction data;

[0051] The first receiving unit is used to receive authorization information corresponding to the first target object identifier.

[0052] As a possible implementation manner, the device further includes:

[0053] A second receiving unit, used to receive an input account number and an input password;

[0054] In the case where the account is calculated according to the password, the sending unit is further used to send a login request to the first server, the login request carrying the account of the first user, so that after the first server receives the login request and verifies that the account of the first user is a node in the blockchain network, the first server sends a login response message to the terminal identified by the first user, and the login response message is used to prompt the first user that the login is successful;

[0055] The first receiving unit is further configured to receive and output the login response information sent by the first server.

[0056] In a fifth aspect, an embodiment of the present application provides a data processing device, which includes a processor and a memory, wherein the processor and the memory are coupled, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions and call the program code to implement the data processing method disclosed in the embodiment of the first aspect.

[0057] In the sixth aspect, an embodiment of the present application provides a data processing device, which includes a processor and a memory, and the processor and the memory are coupled, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions and call the program code to implement the data processing method disclosed in the embodiment of the second aspect.

[0058] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer device, the data processing method disclosed in the embodiment of the first aspect is implemented.

[0059] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a computer device, the data processing method disclosed in the embodiment of the second aspect is implemented.

[0060] In a ninth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer device, implements the data processing method disclosed in the embodiment of the first aspect.

[0061] In a tenth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer device, implements the data processing method disclosed in the embodiment of the second aspect.

[0062] In an embodiment of the present invention, the terminal of the first user identification uploads the first transaction data to the blockchain network, and the first transaction data is used to indicate the transfer of digital assets from the wallet address of the first user identification to the wallet address of the second user identification; then, the terminal of the first user identification sends a target order to the first server, and the target order includes the first user identification, the second user identification, the first target object identification, and the hash value of the first transaction data; the first server receives the target order sent by the terminal of the first user identification; when the first server finds the first transaction data from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identification is sent to the terminal of the first user identification. It can be known that the first transaction data is stored in the blockchain network, so any node in the blockchain network can view the first transaction data, making the transaction open and transparent, and improving the security and credibility of the transaction data. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 is a schematic diagram of a system architecture of a data processing method provided by an embodiment of the present invention;

[0065] Figure 2 It is a flowchart of a login method provided by an embodiment of the present invention;

[0066] Figure 3 A flow chart of a method for uploading an application provided by an embodiment of the present invention;

[0067] Figure 4 is a schematic diagram of a method for generating second transaction data provided by an embodiment of the present invention;

[0068] Figure 5 is a schematic diagram of another method for generating second transaction data provided by an embodiment of the present invention;

[0069] Figure 6 is a flow chart of a recharging method provided by an embodiment of the present invention;

[0070] Figure 7 is a flow chart of a purchasing method provided by an embodiment of the present invention;

[0071] Figure 8 This is a flow chart of a method for withdrawing cash provided by an embodiment of the present invention;

[0072] Fig. 9 is a schematic diagram of a data processing device 900 provided in an embodiment of the present invention;

[0073] Fig.10 is a schematic diagram of another data processing device 1000 provided in an embodiment of the present invention;

[0074] Fig.11 is a structural diagram of another data processing device 1100 provided in an embodiment of the present invention;

[0075] Fig.12 It is a structural diagram of another data processing device 1200 provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0076] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0077] See also Figure 1 , Figure 1 1 is a schematic diagram of a system architecture of a data processing method provided by an embodiment of the present invention. The schematic diagram of the system architecture includes a terminal 101 identified by a first user, a terminal 102 identified by a second user, a blockchain network 103, a first server 104, and a second server 105. The terminal 101 identified by the first user, the terminal 102 identified by the second user, and the first server 104 are nodes in the blockchain network 103.

[0078] The terminal 101 of the first user identification can be understood as the buyer's terminal; the terminal 102 of the second user identification can be understood as the seller's terminal; the first server 104 is used to store the authorization information corresponding to the target object identification uploaded by the seller. Among them, the target object can be various digital resources, such as applications, e-books, movies, etc.; the target object identification is used to uniquely identify a target object, for example, a unique serial number is set for the application during the transaction process, and the ISBN (International Standard Book Number) of the e-book can be used as a unique identifier during the transaction of e-books, etc.; the authorization information corresponding to the target object identification can be an activation code, an authorization code, a license, etc.; the second server 105 is a server of the payment platform, which is used to complete the transfer of digital assets under the chain, such as the server of WeChat, the server of the bank, etc.

[0079] In one implementation, the authorization information corresponding to the first target object identifier is uploaded to the first server 104 by the terminal 102 of the second user identifier, that is, the authorization information corresponding to the first target object identifier is owned by the second user. In the implementation of the terminal 101 of the first user identifier purchasing the authorization information corresponding to the first target object identifier from the terminal 102 of the second user identifier, specifically: the terminal 102 (seller) of the second user identifier can send the authorization information corresponding to the first target object identifier to the first server 104 through the blockchain network 103, and the first server 104 can store the authorization information corresponding to the first target object identifier after receiving the authorization information corresponding to the first target object identifier. After storing the authorization information corresponding to the first target object identifier, the first server 104 can also push relevant information of the authorization information corresponding to the first target object identifier to the terminals of each user identifier, including the terminal 101 of the first user identifier and the terminal 102 of the second user identifier, such as the first target object identifier, the introduction of the authorization information corresponding to the first target object identifier, the public key of the second user, etc. The terminal 101 of the first user identifier can output relevant information of the authorization information corresponding to the first target object identifier based on the client, so that when the first user views the relevant information of the authorization information corresponding to the first target object identifier, he can purchase the authorization information corresponding to the first target object identifier from the second user based on the client.

[0080] The terminal 101 (buyer) of the first user identification can recharge the wallet address of the first user identification before purchasing the authorization information corresponding to the first target object identification. Among them, the wallet address of the first user identification indicates the wallet address used by the first user to trade (pay, collect) digital assets in the blockchain network. In one implementation, the terminal 101 of the first user identification sends a recharge order to the second server 105 (the server of the payment platform). After the second server 105 transfers the recharged digital assets from the account of the first user to the account of the first server according to the recharge order, the second server 105 sends a message of successful recharge to the terminal 101 of the first user identification and the first server 104. After receiving the message of successful recharge, the first server 104 generates recharge transaction data and sends the recharge transaction data to the blockchain network 103. Among them, the recharge transaction data indicates that the recharged digital assets are transferred from the wallet address of the first server to the wallet address of the first user identification. The blockchain network 103 can verify and store the recharge transaction data. After the terminal 101 of the first user identification receives the recharge success message sent by the second server 105, the recharge transaction data can be viewed in the blockchain network 103.

[0081] After completing the recharge of the wallet address of the first user identifier, the terminal 101 of the first user identifier can purchase the authorization information corresponding to the first target object identifier. First, the terminal 101 of the first user identifier receives the purchase operation instruction for purchasing the authorization information corresponding to the first target object identifier, and then generates the first transaction data according to the purchase instruction, and uploads the first transaction data to the blockchain network 103. Among them, the first transaction data indicates that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier. Among them, the wallet address of the second user identifier indicates the wallet address used by the second user to trade (pay, collect) digital assets in the blockchain network. Secondly, the terminal 101 of the first user identifier sends a target order for purchasing the authorization information corresponding to the first target object identifier to the first server 104, and the target order includes the first user identifier, the second user identifier, the first target object identifier, and the hash value of the first transaction data. Among them, the first user identifier can refer to the public key of the first user, and the second user identifier can refer to the public key of the second user. When the first server 104 receives the target order, according to the hash value of the first transaction data carried by the target order, it searches the blockchain network 103 for whether the hash value of the first transaction data exists. When the first server 104 finds the hash value of the first transaction data from the blockchain network 103, it proves that the first transaction data has been stored in the blockchain network, indicating that the first user has paid the second user for the digital asset used to purchase the authorization information corresponding to the first target object identifier. At this time, the first server 104 sends the authorization information corresponding to the first target object identifier to the terminal 101 identified by the first user.

[0082] After the first transaction data is stored in the blockchain network 103, the terminal 102 of the second user identification can also view the first transaction data in the blockchain network 103, and then, the remaining digital assets of the wallet address of the second user identification can be viewed. Therefore, the terminal 102 of the second user identification can send a withdrawal request to the first server 104. After receiving the withdrawal request, the first server 104 generates withdrawal transaction data according to the withdrawal request, and the withdrawal transaction data indicates that the withdrawal digital assets are transferred from the wallet address of the second user identification to the wallet address of the first server. After that, the first server 104 uploads the withdrawal transaction data to the blockchain network 103. After the blockchain network 103 verifies and stores the withdrawal transaction data, the first server 104 generates a withdrawal order according to the withdrawal transaction data, and sends the withdrawal order to the second server 105. After receiving the withdrawal order, the second server transfers the withdrawal digital assets specified in the withdrawal order from the account of the first server to the account of the second user, and sends the withdrawal result to the first server 104 and the terminal 102 of the second user identification.

[0083] Optionally, the terminal 101 of the first user identity and the terminal 102 of the second user identity may be smart devices such as mobile phones, computers, smart watches, etc., which are not limited here.

[0084] Optionally, the client based on the application platform can be an APP, a mini-program, a web page or other program, which is not limited here.

[0085] Based on the above description, an embodiment of the present invention proposes a data processing method, which can be executed by the data processing system mentioned above. Among them, the terminal of the first user identification can be the terminal 101 of the first user identification, the terminal of the second user identification can be the terminal 102 of the second user identification, the blockchain network can be the blockchain network 103, the first server can be the first server 104, and the second server can be the second server 105. Among them, the terminal of the first user identification, the terminal of the second user identification, and the first server are all nodes in the blockchain network. The data processing method may include some or all of the following steps:

[0086] Blockchain user registration:

[0087] Before the user logs in and conducts the authorization information transaction corresponding to the first target object identifier, the terminal of the first user identifier, the terminal of the second user identifier, and the first server must first be registered. The embodiment of the present application takes the terminal registration of the first user identifier as an example for explanation.

[0088] After the terminal identified by the first user installs the client, based on the client receiving the registration request of the first user, the terminal identified by the first user uses an asymmetric encryption algorithm, such as ECC (elliptic curve encryption algorithm), to create a key pair for the first user. The key pair includes the public key of the first user and the private key of the first user. The private key of the first user is used for data signing, and the public key of the first user is used for data encryption. At this point, the registration of the first user is completed.

[0089] The terminal of the second user identification and the first server are registered in the above manner.

[0090] First user (buyer) login:

[0091] The terminal identified by the first user outputs the public key and the private key of the first user based on the client, so that the first user logs in by using the public key of the first user as the account and the private key of the first user as the password. Figure 2 A flowchart of a login method provided in an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method may include all or part of the following steps:

[0092] S201. A terminal identified by a first user receives an input account number and password.

[0093] The terminal identified by the first user can receive the account number and password input by the first user based on the client.

[0094] S202: The terminal of the first user identification calculates whether the input account number can be obtained according to the input password.

[0095] After receiving the input account and password, the terminal of the first user identification uses the asymmetric encryption algorithm generated by the private key of the first user to verify whether the input password can obtain the input account through the asymmetric encryption algorithm. If the input account is obtained according to the input password, execute steps S2021-S2024; if the input account is not obtained according to the input password, execute step S203.

[0096] S2021. The terminal with the first user identification sends a login request to the first server.

[0097] The login request carries the account number of the first user.

[0098] S2022. When the first server receives a login request sent by a terminal identified by the first user, it verifies whether the account of the first user is a node in the blockchain.

[0099] S2023. The first server sends a login response message to the terminal identified by the first user.

[0100] The login response information is used to prompt the first user whether the login is successful. When the first server verifies that the first user's account is a node in the blockchain, the first server sends a login response information indicating a successful login to the terminal identified by the first user; when the first server verifies that the first user's account is not a node in the blockchain, the first server sends a login response information indicating a failed login to the terminal identified by the first user.

[0101] S2024. The terminal with the first user identification receives the login response information sent by the first server.

[0102] Optionally, in step S2022, after receiving the login request sent by the terminal identified by the first user, the first server may also send login information of the login page to the terminal identified by the first user, such as the account of the first user, the identifiers of multiple target objects, the target objects recommended to the first user, etc. In step S2024, after receiving the login information sent by the first server, a login page is formed on the terminal identified by the first user, and then the login information of the login page is output to the first user.

[0103] Optionally, step S203 may not be necessary.

[0104] The seller uploads the authorization information corresponding to the target object ID:

[0105] The terminal of the second user identity logs in in the same manner as the terminal of the first user identity, thereby interacting with the first server. For example, the terminal of the second user identity uploads the authorization information corresponding to the first target object identity to the first server. Figure 3 A flowchart of a method for uploading authorization information corresponding to a target object identifier provided by an embodiment of the present invention. The method flow is described by taking an example in which a terminal with a second user identifier uploads authorization information corresponding to a first target object identifier. Figure 3 As shown, the method may include some or all of the following steps.

[0106] S301. A terminal with a second user identifier generates second transaction data, where the second transaction data includes authorization information corresponding to a first target object identifier encrypted by a public key of a first server.

[0107] Before executing S301, the terminal of the second user identifier requests the public key of the first server from the first server through the blockchain network to encrypt the authorization information corresponding to the first target object identifier using the public key of the first server.

[0108] When the terminal of the second user identification receives the public key of the first server sent by the first server, the second transaction data is generated according to the authorization information corresponding to the first target object identification received by the terminal of the second user identification and the public key of the first server. The present application embodiment provides two implementation methods for generating the second transaction data.

[0109] Implementation method (I):

[0110] See also Figure 4 , Figure 4 Schematic diagram of a method for generating second transaction data provided by an embodiment of the present application. Figure 4 As shown, the specific process includes: first, the terminal of the second user identification receives the authorization information corresponding to the first target object identification input or generated, and performs a hash operation on the authorization information corresponding to the first target object identification to obtain a hash value of the authorization information corresponding to the first target object identification; secondly, the authorization information corresponding to the first target object identification and the hash value of the authorization information corresponding to the first target object identification are encrypted by the public key of the first server to obtain second transaction data; then, a hash operation is performed on the second transaction data to obtain a hash value of the second transaction data; finally, the second transaction data and the hash value of the second transaction data are signed by the private key of the second user.

[0111] Implementation method (two):

[0112] See also Figure 5 , Figure 5Schematic diagram of another method for generating second transaction data provided by an embodiment of the present application. Figure 5 As shown, first, the terminal of the second user identification receives the authorization information corresponding to the input or generated first target object identification, and encrypts the authorization information corresponding to the first target object identification by the public key of the first server to obtain the second transaction data; secondly, the second transaction data is hashed to obtain the hash value of the second transaction data; finally, the second transaction data and the hash value of the second transaction data are signed by the private key of the second user. The authorization information corresponding to the first target object identification can also be called the authorization information of the first target object, which refers to the authorization information for authorizing the use of the first target object, for example, the activation code of the application.

[0113] Optionally, the method for generating the second transaction data is not limited to the implementation method (1) and implementation method (2) given above. The second transaction data can also be in other forms that ensure that the authorization information corresponding to the first target object identifier is securely sent to the first server without being tampered with or leaked, which is not limited here.

[0114] S302. The terminal with the second user identification uploads the second transaction data to the blockchain network.

[0115] After receiving the second transaction data, the node in the blockchain network verifies and stores the second transaction data. In one implementation, a node in the blockchain network receives the second transaction data and the hash value of the second transaction data signed by the private key of the second user. First, the second transaction data and the hash value of the second transaction data signed by the private key of the second user are decrypted by the public key of the second user to verify that the second transaction data and the hash value of the second transaction data come from the terminal identified by the second user; secondly, a hash operation is performed on the received second transaction data to obtain a hash value, and the hash value is compared with the hash value of the received second transaction data to verify whether the hash value of the second transaction data and the hash value of the second transaction data have been tampered with. If they are the same, it proves that the received second transaction data and the hash value of the second transaction data have not been tampered with; finally, if the above verification is passed, the public key of the second user, the second transaction data, and the hash value of the second transaction data are temporarily stored in the transaction pool as an upload record. Other nodes in the blockchain also verify and temporarily store each received upload record in the above manner. At set intervals, the recording node in the blockchain network packages the public key of the second user from the terminal of the second user identifier, the second transaction data, and the hash value of the second transaction data as an upload record together with other temporarily stored records in the transaction pool and stores them in a new block.

[0116] In some embodiments, a specific implementation of encrypting the authorization information corresponding to the first target object identifier by the public key of the first server to obtain the second transaction data is as follows: encrypting the authorization information corresponding to the first target object identifier and the first target object by the public key of the first server to obtain the second transaction data. When the blockchain network stores the second transaction data, the first target object is also stored in the blockchain network. According to the property that the blockchain storage data is difficult to be tampered with, it can be used to obtain copyright evidence for the first target object. In one implementation: when the second user needs the copyright proof of the first target object, the upload record can be obtained from the blockchain network to prove the ownership of the first target object by the second user. When the second user finds that the second target object owned by the third user is similar to the first target object owned by the second user, evidence can be obtained from the blockchain network to obtain the upload record of the first target object recorded in the blockchain block: the public key of the second user, the second transaction data, the hash value of the second transaction data, the timestamp, etc. The public key of the second user included in the upload record proves that the upload record is uploaded by the second user, and the timestamp proves the upload time of the second user. If the timestamp of the upload record of the second user uploading the first target object is earlier than the timestamp of the upload record of the third user uploading the second target object, it can be proved that the first target object belongs to the second user, and the second target object that is identical or similar to the first target object is suspected of infringement.

[0117] S303: The first server receives second transaction data from the terminal identified by the second user.

[0118] S304: The first server decrypts the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server, and stores the authorization information corresponding to the first target object identifier.

[0119] The first server receives the second transaction data from the terminal of the second user identification, and after verifying that the second transaction data comes from the terminal of the second user identification and has not been tampered with, stores the authorization information corresponding to the first target object identification obtained by decryption. Specifically, after the first server receives the second transaction data signed by the private key of the second user and the hash value of the second transaction data, it verifies whether the second transaction data and the hash value of the second transaction data come from the terminal of the second user identification and whether it has been tampered with in the way that the nodes in the above-mentioned blockchain verify the received data. If the verification is passed:

[0120] In the form of the second transaction data targeted by implementation method (I), first, the first server performs a hash operation on the decrypted data to obtain a predicted hash value; second, when the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the authorization information corresponding to the first target object identifier is stored. Specifically: the first server decrypts the second transaction data through the private key of the first server to obtain the hash value of the authorization information corresponding to the first target object identifier and the authorization information corresponding to the first target object identifier, and then performs a hash operation on the authorization information corresponding to the first target object identifier to obtain the predicted hash value, and compares the predicted hash value with the hash value of the authorization information corresponding to the first target object identifier obtained by decryption to see if they are the same. If they are the same, it is proved again that the authorization information corresponding to the first target object identifier has not been tampered with during the upload process, and then the first server stores the authorization information corresponding to the first target object identifier obtained by decryption. Implementation method (I) After two comparisons and verifications of the hash values, the security of the authorization information corresponding to the first target object identifier during the upload process is improved; and through the public key encryption of the first server, it can only be decrypted through the private key of the first server, so as to prevent the authorization information corresponding to the first target object identifier from being stolen by other users during the upload process.

[0121] In the form of the second transaction data targeted by implementation method (II), the first server decrypts the second transaction data by using the private key of the first server to obtain the authorization information corresponding to the first target object identifier, and then the first server stores the decrypted authorization information corresponding to the first target object identifier. Implementation method (II) undergoes a hash verification to prevent the authorization information corresponding to the first target object identifier from being tampered with during the upload process to the first server; and the authorization information encrypted by the public key of the first server can only be decrypted by the private key of the first server, to prevent the authorization information corresponding to the first target object identifier from being stolen by other users during the upload process.

[0122] In one implementation, if the blockchain network fails to verify or the first server fails to verify the second transaction data, the second transaction data and the authorization information corresponding to the first target object identifier carried by the second transaction data cannot be stored.

[0123] Optionally, the authorization information corresponding to the first target object identifier may further include the first target object identifier, an introduction to the authorization information corresponding to the first target object identifier, and other information related to the authorization information corresponding to the first target object identifier.

[0124] In one implementation, after the first server stores the authorization information corresponding to the first target object identifier, the first server sends the first target object identifier, the second user's public key, the transaction digital asset and other information related to the authorization information corresponding to the first target object identifier to the terminal of the first user identifier. The terminal of the first user identifier receives and outputs the first target object identifier, the second user's public key, the transaction digital asset and the like sent by the first server, so that the first user can purchase the authorization information corresponding to the first target object identifier based on the terminal of the first user identifier.

[0125] Optionally, other terminals, including terminals with second user identifiers, may also receive the first target object identifier, the second user's public key, transaction digital assets, and other information related to the authorization information corresponding to the first target object identifier sent by the first server, so that users of other terminals can view and purchase the authorization information corresponding to the first target object identifier.

[0126] User recharge:

[0127] The following takes the first user as an example to illustrate the specific implementation of recharge. When the terminal of the first user ID receives and outputs the first target object ID, the public key of the second user, and the transaction digital asset, so that the first user can purchase the authorization information corresponding to the first target object ID. The terminal of the first user ID can also receive the input of the recharge operation, so that the wallet address of the first user ID has sufficient balance to pay the authorization information corresponding to the first target object ID. Please refer to Figure 6 , Figure 6 is a flow chart of a recharging method provided by an embodiment of the present invention, such as Figure 6 As shown, the method may include some or all of the following steps:

[0128] S601. When the recharge of the recharge digital asset at the terminal of the first user identification is successful, the first server generates recharge transaction data, and the recharge transaction data indicates that the recharge digital asset will be transferred from the wallet address of the first server to the wallet address of the first user identification.

[0129] The terminal of the first user identification performs off-chain recharge for the recharge digital asset, and then sends the recharge result to the first server if the recharge is successful. In one implementation: first, the terminal of the first user identification receives the recharge information input in the recharge interface, and sends the recharge information to the first server; secondly, the first server generates a recharge order according to the recharge information, and sends the recharge order to the terminal of the first user identification; finally, the terminal of the first user identification sends the recharge order to the server of the payment platform (second server) according to the input payment platform, and the server of the payment platform completes the payment according to the recharge order, that is, transfers the specified recharge digital asset from the account of the first user to the account of the first server. In the case of successful recharge, the server of the payment platform sends the recharge result to the first server and the terminal of the first user identification. At this time, the terminal of the first user identification successfully recharges the recharge digital asset.

[0130] After receiving the recharge result of the successful recharge, the first server generates recharge transaction data according to the recharge result, and the recharge transaction data indicates that the recharged digital assets will be transferred from the wallet address of the first server to the wallet address of the first user identifier.

[0131] S602. The first server sends the recharge transaction data to the blockchain network.

[0132] First, the first server performs a hash operation on the recharge transaction data to obtain a hash value of the recharge transaction data; secondly, the first server uses the private key of the first server to sign the recharge transaction data and the hash value of the recharge transaction data; finally, the recharge transaction data and the hash value of the recharge transaction data signed by the public key of the first server and the private key of the first server are uploaded to the blockchain network.

[0133] When a node in the blockchain network receives the recharge transaction data and the hash value of the recharge transaction data signed by the public key of the first server and the private key of the first server: first, the recharge transaction data and the hash value of the recharge transaction data signed by the private key of the first server are decrypted by the public key of the first server to prove that the recharge transaction data comes from the first server; second, the recharge transaction data is hashed to obtain a hash value, and the hash value is compared with the hash value of the recharge transaction data from the first server. If they are consistent, it is considered that the recharge transaction data has not been tampered with; finally, when the above verifications are all passed (it can be considered that the balance of the wallet address of the first server is infinite, so there is no need to verify whether the balance of the wallet address of the first server is sufficient), the public key of the first server, the recharge transaction data, and the hash value of the recharge transaction data from the first server are temporarily stored in the transaction pool as a recharge record. Other nodes in the blockchain network also verify and temporarily store each recharge record received in the above manner. At set intervals, the recording node in the blockchain network packages the public key of the first server, the recharge transaction data, and the hash value of the recharge transaction data from the first server as a recharge record together with other records temporarily stored in the transaction pool and stores them in a new block.

[0134] Purchase the app:

[0135] When the wallet address of the first user identifier has enough balance to purchase the authorization information corresponding to the first target object identifier, the terminal of the first user identifier can upload the first transaction data of the second user identifier's terminal purchasing the authorization information corresponding to the first target object identifier to the blockchain network. In one implementation, the terminal of the first user identifier receives a purchase operation for the authorization information corresponding to the first target object identifier, and generates first transaction data based on the purchase operation. The first transaction data may include the wallet address of the first user identifier, the wallet address of the second user identifier, the purchased digital asset, etc. Please refer to Figure 7 , Figure 7 This is a flow chart of a purchasing method provided by an embodiment of the present application. The method may include some or all of the following steps:

[0136] S701. The terminal of the first user identifier uploads first transaction data to the blockchain network, where the first transaction data is used to indicate the transfer of transaction digital assets from the wallet address of the first user identifier to the wallet address of the second user identifier.

[0137] First, the terminal identified by the first user performs a hash operation on the first transaction data to obtain a hash value of the first transaction data; secondly, the terminal identified by the first user signs the first transaction data and the hash value of the first transaction data through the private key of the first user; finally, the terminal identified by the first user uploads the first transaction data and the hash value of the first transaction data signed by the public key of the first user and the private key of the first user to the blockchain network.

[0138] After a node in the blockchain network receives the first transaction data and the hash value of the first transaction data signed by the public key of the first user and the private key of the first user: first, the first transaction data and the hash value of the first transaction data encrypted by the private key of the first user are decrypted by the public key of the first user to prove that the first transaction data comes from the first user; second, the received first transaction data is hashed to obtain a hash value, and the hash value of the received first transaction data is compared with the hash value. If they are the same, it proves that the first transaction data and the hash value of the first transaction data have not been tampered with; finally, the transaction record of the wallet address of the first user identification is verified to verify whether the first user has sufficient digital assets. If the above verification passes, the public key of the first user from the terminal of the first user identification, the first transaction data, and the hash value of the first transaction data are temporarily stored in the transaction pool as a transaction record. Other nodes in the blockchain network also verify each received transaction record in the above manner. At set intervals, the recording node in the blockchain network packages and stores the public key of the first user from the terminal of the first user identification, the first transaction data, and the hash value of the first transaction data as a transaction record together with other temporarily stored records in the transaction pool in a new block.

[0139] S702: The terminal with the first user ID sends a target order to the first server. The target order includes the first user ID, the second user ID, the first target object ID, and a hash value of the first transaction data.

[0140] After uploading the first user's public key, the first transaction data encrypted by the first user's private key, and the hash value of the first transaction data to the blockchain network, the terminal with the first user identification also sends a target order to the first server, wherein the first user identification indicates the identification of the first user, for example, it may be the public key of the first user; the second user identification indicates the identification of the second user, for example, it may be the public key of the second user; the first target object identification is used to uniquely identify the first target object, for example, to set a unique serial number for the application during the transaction; the hash value of the first transaction data is obtained by performing a hash operation on the first transaction data.

[0141] S703: The first server receives a target order sent by a terminal identified by the first user.

[0142] After receiving the target order, the first server parses the target order to obtain a hash value of the first transaction data.

[0143] S704. The first server searches for the first transaction data from the blockchain network according to the hash value of the first transaction data.

[0144] When the first server finds the first transaction data in the blockchain network, step S705 is executed; when the first server does not find the first transaction data in the blockchain network, the target order sent by the terminal of the first user identifier may be ignored, or a message indicating that the terminal of the first user identifier has not completed the payment may be sent to the terminal of the first user identifier. The first server may also perform other operations, which are not limited here.

[0145] S705. When the first server finds the first transaction data in the blockchain network, it sends the authorization information corresponding to the first target object identifier to the terminal of the first user identifier.

[0146] In the process of performing a hash operation on the first transaction data, an order number, a transaction number or a random character may be added to the original information (i.e., information used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier). Due to the uniqueness of the added order number, transaction number or random character, the hash value obtained by the hash operation of the first transaction data can be made unique. Therefore, the hash value of the first transaction data is unique in the blockchain network, and the hash value of the first transaction data can be used as an identifier of the first transaction data.

[0147] According to the hash value of the received first transaction data, the transaction record targeted by the target order is searched in the blockchain network, that is, whether the hash value of the first transaction data has been written into the blockchain. If the first server can find the hash value of the first transaction data from the blockchain, it proves that the first transaction data has been stored in the blockchain, and the terminal of the first user identifier has completed the payment for the target order, that is, the transaction digital asset has been transferred from the wallet address of the first user identifier to the wallet address of the second user identifier. At this time, the first server sends the authorization information corresponding to the first target object identifier to the terminal of the first user identifier. Among them, the authorization information corresponding to the first target object identifier can be in the form of an activation code, an authorization code, an extraction link, etc. that authorizes the use of the authorization information corresponding to the first target object identifier, which is not limited here.

[0148] S706: The terminal with the first user identifier receives authorization information corresponding to the first target object identifier sent by the first server.

[0149] After receiving the authorization information corresponding to the first target object identifier, the terminal with the first user identifier may authorize and use the first target object according to the authorization information corresponding to the first target object identifier.

[0150] Optionally, after receiving the target order from the terminal identified by the first user, the first server may also directly send the first target object to the terminal identified by the first user, which is not limited here.

[0151] It can be seen from the above purchasing method that the terminal identified by the first user uploads the transaction data to the blockchain network, so that other servers or terminals in the blockchain network can verify and store the transaction data, eliminating the need for a centralized platform to manage the transaction data generated during the transaction process, thereby achieving openness, transparency and non-tamperability of the transaction data.

[0152] User withdrawal:

[0153] After the terminal with the first user ID executes the authorization information corresponding to the purchase of the first target object ID, the digital assets in the wallet address of the first user ID are transferred to the wallet address of the second user ID. At this time, the terminal with the second user ID can receive the input withdrawal operation, that is, convert the digital assets in the wallet address of the second user into the digital assets in the account of the second user on the payment platform. Please refer to Figure 8 , Figure 8 is a flow chart of a method for withdrawing cash provided by an embodiment of the present invention, such as Figure 8 As shown, the method includes some or all of the following steps:

[0154] S801. A terminal with a second user ID sends a cash withdrawal request to a first server.

[0155] The terminal of the second user identification receives the withdrawal information input in the withdrawal interface, the withdrawal information includes the withdrawn digital assets, the account of the second user transferred, etc., and generates a withdrawal request according to the withdrawal information. Then, the terminal of the second user identification sends the withdrawal request to the first server.

[0156] S802: The first server receives a withdrawal request for withdrawing digital assets sent by a terminal identified by a second user.

[0157] The first server generates withdrawal transaction data according to the withdrawal request.

[0158] S803. The first server uploads the withdrawal transaction data to the blockchain network, where the withdrawal transaction data indicates that the digital assets will be transferred from the wallet address identified by the second user to the wallet address of the first server.

[0159] First, the first server performs a hash operation on the withdrawal transaction data to obtain a hash value of the withdrawal transaction data; secondly, the withdrawal transaction data and the hash value of the withdrawal transaction data are signed by the private key of the first server; finally, the public key of the first server and the withdrawal transaction data and the hash value of the withdrawal transaction data signed by the private key of the first server are uploaded to the blockchain network.

[0160] S804. The blockchain network stores the withdrawal transaction data.

[0161] When a node in the blockchain network receives the withdrawal transaction data and the hash value of the withdrawal transaction data signed by the public key of the first server and the private key of the first server: first, the withdrawal transaction data and the hash value of the withdrawal transaction data signed by the private key of the first server are decrypted by the public key of the first server to verify that the withdrawal transaction data comes from the first server; second, the received withdrawal transaction data is hashed to obtain a hash value, and the hash value is compared with the hash value of the withdrawal transaction data from the first server to see if it is consistent. If it is consistent, it is considered that the withdrawal transaction data has not been tampered with; finally, the transaction record of the wallet address of the second user identification is used to verify whether the digital asset of the wallet address of the second user identification is not less than the withdrawal digital asset. When the above verifications are all passed, the public key of the first server, the withdrawal transaction data, and the hash value of the withdrawal transaction data from the first server are temporarily stored in the transaction pool as a withdrawal record. Other nodes in the blockchain network also verify and temporarily store each withdrawal record received in the above manner. At set intervals, the recording node in the blockchain network packages the public key of the first server, the withdrawal transaction data, and the hash value of the withdrawal transaction data from the first server as a withdrawal record together with other records temporarily stored in the transaction pool and stores them in a new block.

[0162] S805. The first server searches for the withdrawal transaction data from the blockchain network.

[0163] The first server searches the blockchain network for information on whether the withdrawal transaction data has been stored in a block according to the hash value of the withdrawal transaction data.

[0164] S806. When the first server finds the withdrawal transaction data from the blockchain network, the withdrawal digital asset is transferred from the account of the first server to the account of the second user.

[0165] When the first server finds the hash value of the withdrawal transaction data in the transaction record of the blockchain network according to the hash value of the withdrawal transaction data, it proves that the withdrawal transaction data has been stored in a block. At this time, the first server transfers the withdrawal digital assets from the account of the first server to the account of the second user. In one implementation, the first server sends a withdrawal order to the second server. After the second server receives the withdrawal order, it transfers the withdrawal digital assets from the account of the first server to the account of the second user according to the withdrawal order. If the withdrawal is successful, the second server sends a successful withdrawal message to the first server and the second user.

[0166] Optionally, the terminal of the first user identifier can view the transaction record of the wallet address of the first user identifier through the blockchain network, thereby obtaining the remaining digital assets of the wallet address of the first user identifier.

[0167] Optionally, the terminal of the second user identifier can view the transaction record of the wallet address of the second user identifier through the blockchain network, thereby obtaining the remaining digital assets of the wallet address of the second user identifier.

[0168] Optionally, during the execution of the recharge and withdrawal operations, the digital assets of the wallet address and the digital assets of the payment platform account can be converted according to a certain ratio. For example, in the account corresponding to the payment platform, the digital assets worth "one yuan" can be converted into the digital assets worth "two yuan" corresponding to the wallet address, which is not limited here.

[0169] In an embodiment of the present invention, the terminal of the first user identification uploads the first transaction data to the blockchain network, and the first transaction data is used to indicate that the digital asset is transferred from the wallet address of the first user identification to the wallet address of the second user identification; then, the terminal of the first user identification sends a target order to the first server, and the target order includes the first user identification, the second user identification, the authorization information identifier corresponding to the first target object identification, and the hash value of the first transaction data; the first server receives the target order sent by the terminal of the first user identification; when the first server finds the first transaction data from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identification is sent to the terminal of the first user identification. It can be seen that the terminal of the first user identification uploads the first transaction data to the blockchain network, and based on the distributed storage structure of the blockchain, the reliability of data storage is improved. Each transaction data can be stored in storage units in different regions. Even if a node in the blockchain is damaged, it will not affect the transaction data stored in other nodes in the blockchain network, which greatly improves the reliability of the data; secondly, all nodes in the blockchain network can verify and store the first transaction data, eliminating the need for a centralized platform to manage transaction data, thereby realizing the openness, transparency and non-tamperability of transaction data, and improving the credibility of transaction data.

[0170] Based on the description of the above method embodiment, the embodiment of the present invention proposes a data processing device 900, which can be operated in the following manner: Figure 2 , Figure 3 , Figure 6 , Figure 7 or Figure 8 Corresponding to the first server, the data processing device 900 may be a computer program (including program code) running in the first server. Fig. 9 , the data processing device can run the following units:

[0171] A receiving unit 901 is used to receive a target order sent by a terminal with a first user identifier, wherein the target order includes the first user identifier, the second user identifier, an authorization information identifier corresponding to the first target object identifier, and a hash value of first transaction data, wherein the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, and the target order is uploaded to the blockchain network by the terminal with the first user identifier;

[0172] The sending unit 902 is used to send the authorization information corresponding to the authorization information identifier corresponding to the first target object identifier to the terminal of the first user identifier when the first transaction data is found from the blockchain network according to the hash value of the first transaction data.

[0173] In one embodiment, the device further comprises:

[0174] The receiving unit 901 is also used to receive the second user identifier of the terminal uploading second transaction data to the blockchain network, where the second transaction data includes the authorization information corresponding to the first target object identifier encrypted by the public key of the first server;

[0175] The storage unit 903 is configured to decrypt the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server, and store the authorization information corresponding to the first target object identifier.

[0176] In one implementation, the second transaction data further includes a hash value of the authorization information corresponding to the first target object identifier, and after decrypting the encrypted authorization information corresponding to the first target object identifier using the private key of the first server and before the storage unit 903 stores the authorization information corresponding to the first target object identifier, the device further includes:

[0177] The processing unit 904 is used to perform a hash operation on the decrypted data to obtain a predicted hash value;

[0178] When the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the storage unit 903 stores the authorization information corresponding to the first target object identifier.

[0179] In one implementation, after the storage unit 903 stores the authorization information corresponding to the first target object identifier and before the receiving unit 901 receives the target order sent by the terminal of the first user identifier, the sending unit 902 is further configured to:

[0180] The first target object identifier, the second user's public key, and the transaction digital asset are sent to a terminal of the first user identifier.

[0181] In one embodiment, the processing unit 904 is further configured to generate recharge transaction data when the recharge digital asset is successfully recharged at the terminal of the first user identification, wherein the recharge transaction data indicates that the recharge digital asset is transferred from the wallet address of the first server to the wallet address of the first user identification;

[0182] The sending unit 902 sends the recharge transaction data to the blockchain network.

[0183] In one implementation, the receiving unit 901 is further configured to receive a withdrawal request for withdrawing digital assets sent by a terminal of the second user identification;

[0184] The sending unit 902 is further configured to upload withdrawal transaction data to the blockchain network, wherein the withdrawal transaction data indicates that the withdrawal digital asset is transferred from the wallet address of the second user identifier to the wallet address of the first server;

[0185] The processing unit 904 is further configured to transfer the withdrawal digital asset from the account of the first server to the account of the second user after the blockchain network stores the withdrawal transaction data.

[0186] It should be understood that the specific functional implementation of each of the above functional units can refer to the above Figure 2 , Figure 3 , Figure 6 , Figure 7 or Figure 8 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0187] In an embodiment of the present invention, the first server receives a target order sent by a terminal of a first user identifier, the target order includes the first user identifier, the second user identifier, the authorization information identifier corresponding to the first target object identifier, and the hash value of the first transaction data, the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, and the target order is uploaded to the blockchain network by the terminal of the first user identifier; when the first server finds the first transaction data from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identifier is sent to the terminal of the first user identifier. It can be seen that the terminal of the first user identifier uploads the first transaction data to the blockchain network, based on the distributed storage structure of the blockchain, to improve the reliability of data storage, each transaction data can be stored in storage units in different regions, even if a node in the blockchain is damaged, it will not affect the transaction data stored in other nodes in the blockchain network, greatly improving the reliability of the data; secondly, all nodes in the blockchain network can verify and store the first transaction data, eliminating the need for a centralized platform to manage transaction data, thereby achieving openness, transparency and non-tamperability of transaction data, and improving the credibility of transaction data.

[0188] See also Fig.10 , Fig.10 Another data processing device 1000 proposed in an embodiment of the present invention can be operated on Figure 2 , Figure 3 , Figure 7 or Figure 8The corresponding terminal of the first user identification or the terminal of the second user identification, the data processing device may be a computer program (including program code) running on the terminal of the first user identification or the terminal of the second user identification. The data processing device 1000 may include:

[0189] An uploading unit 1001 is used to upload first transaction data to a blockchain network, where the first transaction data is used to indicate that a transaction digital asset is transferred from a wallet address of a first user identifier to a wallet address of a second user identifier;

[0190] The sending unit 1002 is used to send a target order to the first server, where the target order includes the first user identifier, the second user identifier, the authorization information identifier corresponding to the first target object identifier, and the hash value of the first transaction data, so that when the first server finds the first transaction data from the blockchain network according to the hash value of the first transaction data, it sends the authorization information corresponding to the authorization information identifier corresponding to the first target object identifier;

[0191] The first receiving unit 1003 is configured to receive the authorization information corresponding to the authorization information identifier corresponding to the first target object identifier.

[0192] In one implementation, the apparatus 1000 further includes:

[0193] The second receiving unit 1004 is used to receive an input account number and an input password;

[0194] In the case where the account is calculated according to the password, the sending unit 1002 is further used to send a login request to the first server, the login request carries the account of the first user, so that after the first server receives the login request and verifies that the account of the first user is a node in the blockchain network, the first server sends a login response message to the terminal identified by the first user, and the login response message is used to prompt the first user that the login is successful;

[0195] The first receiving unit 1003 is further configured to receive and output the login response information sent by the first server.

[0196] It should be understood that the specific functional implementation of each of the above functional units can refer to the above Figure 2 , Figure 3 , Figure 7 or Figure 8 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0197] In an embodiment of the present invention, the terminal of the first user identification uploads the first transaction data to the blockchain network, and the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identification to the wallet address of the second user identification; the terminal of the first user identification sends a target order to the first server, and the target order includes the first user identification, the second user identification, the authorization information identifier corresponding to the first target object identification, and the hash value of the first transaction data, so that the first server sends the authorization information corresponding to the first target object identification when finding the first transaction data from the blockchain network according to the hash value of the first transaction data; the terminal of the first user identification receives the authorization information corresponding to the first target object identification. It can be seen that the terminal of the first user identification uploads the first transaction data to the blockchain network, and based on the distributed storage structure of the blockchain, the reliability of data storage is improved. Each transaction data can be stored in storage units in different regions. Even if a node in the blockchain is damaged, it will not affect the transaction data stored in other nodes in the blockchain network, which greatly improves the reliability of the data; secondly, all nodes in the blockchain network can verify and store the first transaction data, eliminating the need for a centralized platform to manage transaction data, thereby realizing the openness, transparency and non-tamperability of transaction data, and improving the credibility of transaction data.

[0198] Fig.11 1 is a schematic diagram of the structure of another data processing device 1100 provided in an embodiment of the present invention. The data processing device 1100 may specifically be Figure 1 The terminal 101 with the first user identification or the terminal 102 with the second user identification may include: a processor 1101, a bus 1102, a user interface 1103, a network interface 1104 and a memory 1105. The communication bus 1102 is used to realize the connection and communication between these components. The user interface 1103 may optionally include a display screen and a keyboard. The network interface 1104 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). Fig.11 As shown, the memory 1105 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module and a device control application. When the device 1100 is running, the above-mentioned operating system, network communication module, user interface module and device control application can be stored.

[0199] In such Fig.11 In the data processing device 1100 shown, the network interface 1104 can provide a network communication function; and the processor 1101 can be used to call the device control application stored in the memory 1105 to achieve:

[0200] Uploading first transaction data to the blockchain network through the network interface 1104, wherein the first transaction data is used to indicate the transfer of the transaction digital asset from the wallet address of the first user identifier to the wallet address of the second user identifier;

[0201] Sending a target order to the first server, the target order including the first user identifier, the second user identifier, the authorization information identifier corresponding to the first target object identifier, and the hash value of the first transaction data, so that the first server sends the authorization information corresponding to the authorization information identifier corresponding to the first target object identifier when finding the first transaction data from the blockchain network according to the hash value of the first transaction data;

[0202] Receive authorization information corresponding to the authorization information identifier corresponding to the first target object identifier.

[0203] In one implementation of the embodiment of the present application, the following is implemented through the network interface 1104:

[0204] Receive the input account number and password;

[0205] When the account number is calculated according to the password, a login request is sent to the first server, the login request carries the account number of the first user, so that after receiving the login request and verifying that the account number of the first user is a node in the blockchain network, the first server sends a login response message to the terminal identified by the first user, and the login response message is used to prompt the first user that the login is successful;

[0206] Receive and output the login response information sent by the first server.

[0207] It should be noted that the above Fig.10 The uploading unit 1001, the sending unit 1002, the first receiving unit 1003, and the second receiving unit 1004 in the embodiment can be composed of Fig.11 The network interface 1104 is used to implement the above.

[0208] It should be understood that the data processing device 1100 described in the embodiment of the present invention can execute the above Figure 2 , Figure 3 , Figure 7 or Figure 8 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here either.

[0209] See also Fig.12 , Fig.12 1 is a schematic diagram of the structure of another data processing device 1200 provided in an embodiment of the present invention. The data processing device 1200 may specifically correspond to Figure 1The first server 104 in the embodiment may include: a processor 1201, a bus 1202, a network interface 1203 and a memory 1204. The communication bus 1202 is used to realize the connection and communication between these components. The network interface 1203 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). Fig.12 As shown, the memory 1204 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module and a device control application. When the device 1200 is running, the above-mentioned operating system, network communication module, user interface module and device control application can be placed in the computer-readable storage medium.

[0210] In such Fig.12 In the data processing device 1200 shown, the network interface 1203 can provide a network communication function; and the processor 1201 can be used to call the device control application stored in the memory 1204 to achieve:

[0211] Receive a target order sent by a terminal with a first user identifier through network interface 1203, wherein the target order includes the first user identifier, the second user identifier, an authorization information identifier corresponding to the first target object identifier, and a hash value of first transaction data, wherein the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, and the target order is uploaded to the blockchain network by the terminal with the first user identifier;

[0212] When the first transaction data is found from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the authorization information identifier corresponding to the first target object identifier is sent to the terminal of the first user identifier.

[0213] In one implementation of the embodiment of the present application, the network interface 1203 is also used for:

[0214] The terminal receiving the second user identifier uploads second transaction data to the blockchain network, where the second transaction data includes authorization information corresponding to the first target object identifier encrypted by the public key of the first server;

[0215] The encrypted authorization information corresponding to the first target object identifier is decrypted by using the private key of the first server, and the authorization information corresponding to the first target object identifier is stored.

[0216] In an implementation of the embodiment of the present application, the second transaction data also includes a hash value of the authorization information corresponding to the first target object identifier, and after decrypting the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server and before storing the authorization information corresponding to the first target object identifier, the processor 1201 implements:

[0217] Perform hash operation on the decrypted data to obtain a predicted hash value;

[0218] When the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the authorization information corresponding to the first target object identifier is stored.

[0219] In one implementation of the embodiment of the present application, after storing the authorization information corresponding to the first target object identifier and before receiving the target order sent by the terminal of the first user identifier, the following is implemented through the network interface 1203:

[0220] The first target object identifier, the second user's public key, and the transaction digital asset are sent to a terminal of the first user identifier.

[0221] In one implementation of the embodiment of the present application, the following is implemented through the network interface 1203:

[0222] When the recharge of the recharge digital asset by the terminal of the first user identification is successful, generating recharge transaction data, wherein the recharge transaction data indicates that the recharge digital asset is transferred from the wallet address of the first server to the wallet address of the first user identification;

[0223] The recharge transaction data is sent to the blockchain network.

[0224] In one implementation of the embodiment of the present application, the following is implemented through the network interface 1203:

[0225] Receiving a withdrawal request for withdrawing digital assets sent by the terminal of the second user identification;

[0226] Uploading withdrawal transaction data to the blockchain network, the withdrawal transaction data indicating that the withdrawal digital asset is transferred from the wallet address of the second user identifier to the wallet address of the first server;

[0227] After the blockchain network stores the withdrawal transaction data, the withdrawal digital asset is transferred from the account of the first server to the account of the second user.

[0228] It should be noted that the above Fig. 9 The receiving unit 901 and the sending unit 902 in Fig.12The network interface 1203 is implemented as above. Fig. 9 The storage unit 903 and the processing unit 904 in the embodiment can be composed of Fig.12 The processor 1201 is used to implement it.

[0229] It should be understood that the data processing device 1200 described in the embodiment of the present invention can execute the above Figure 2 , Figure 3 , Figure 6 , Figure 7 or Figure 8 The description of the data processing method in any corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.

[0230] In addition, it should be pointed out that: an embodiment of the present invention further provides a computer storage medium, and the computer storage medium stores a computer program executed by the data processing device 900 and the data processing device 1200 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the above-mentioned Figure 2 , Figure 3 , Figure 6 , Figure 7 or Figure 8 The method executed by the first server in the corresponding embodiment will not be described in detail here.

[0231] The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program executed by the data processing device 1000 and the data processing device 1100 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 2 , Figure 3 , Figure 7 or Figure 8 The method executed by the terminal with the first user identification or the terminal with the second user identification in the corresponding embodiment will not be described in detail here.

[0232] In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer storage medium embodiment of the present invention, please refer to the description of the method embodiment of the present invention.

[0233] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0234] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A data processing method, characterized in that: Applied to a first server, the method comprises: Receive a target order sent by a terminal with a first user identifier, the target order includes a first user identifier, a second user identifier, a first target object identifier, and a hash value of first transaction data, the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address of the first user identifier to the wallet address of the second user identifier, the first transaction data and the target order are uploaded to the blockchain network by the terminal with the first user identifier, so that the blockchain network verifies the first transaction data, and after the verification is passed, temporarily stores the public key of the first user from the terminal with the first user identifier, the first transaction data, and the hash value of the first transaction data in the transaction pool as a transaction record; wherein the blockchain network verifies the first transaction data including: decrypting the first transaction data and the hash value of the first transaction data encrypted by the private key of the first user by the public key of the first user, proving that the first transaction data comes from the first user, performing a hash operation on the received first transaction data to obtain a target hash value, comparing the hash value of the received first transaction data with the target hash value, and if they are the same, it proves that the first transaction data and the hash value of the first transaction data have not been tampered with, and verifying whether the first user has sufficient digital assets by the transaction record of the wallet address of the first user identifier; When the first transaction data is found from the blockchain network according to the hash value of the first transaction data, the authorization information corresponding to the first target object identifier is sent to the terminal of the first user identifier; The method further comprises: receiving second transaction data uploaded to the blockchain network by the terminal of the second user identifier, the second transaction data including the authorization information corresponding to the first target object identifier encrypted by the public key of the first server and a hash value of the authorization information corresponding to the first target object identifier; The encrypted authorization information corresponding to the first target object identifier is decrypted using the private key of the first server, and a hash operation is performed on the decrypted data to obtain a predicted hash value. When the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier, the authorization information corresponding to the first target object identifier is stored.

2. The method according to claim 1, characterized in that After storing the authorization information corresponding to the first target object identifier and before receiving the target order sent by the terminal of the first user identifier, the method further includes: The first target object identifier, the second user's public key, and the transaction digital asset are sent to a terminal of the first user identifier.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: When the recharge of the recharge digital asset by the terminal of the first user identification is successful, generating recharge transaction data, wherein the recharge transaction data indicates that the recharge digital asset is transferred from the wallet address of the first server to the wallet address of the first user identification; The recharge transaction data is sent to the blockchain network.

4. The method according to claim 1 or 2, characterized in that: The method further comprises: Receiving a withdrawal request for withdrawing digital assets sent by the terminal of the second user identification; Uploading withdrawal transaction data to the blockchain network, the withdrawal transaction data indicating that the withdrawal digital asset is transferred from the wallet address of the second user identifier to the wallet address of the first server; After the blockchain network stores the withdrawal transaction data, the withdrawal digital asset is transferred from the account of the first server to the account of the second user.

5. A data processing method, characterized in that: The method comprises: The first transaction data is uploaded to the blockchain network so that the blockchain network verifies the first transaction data. After the verification is passed, the public key of the first user, the first transaction data, and the hash value of the first transaction data are temporarily stored in the transaction pool as a transaction record. The first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address identified by the first user to the wallet address identified by the second user. The blockchain network verifies the first transaction data including: decrypting the first transaction data and the hash value of the first transaction data encrypted by the private key of the first user by the public key of the first user to prove that the first transaction data comes from the first user, performing a hash operation on the received first transaction data to obtain a target hash value, comparing the hash value of the received first transaction data with the target hash value, and if they are the same, it proves that the first transaction data and the hash value of the first transaction data have not been tampered with, and verifying whether the first user has sufficient digital assets by the transaction record of the wallet address identified by the first user; Sending a target order to the first server and the blockchain network, the target order including the first user identifier, the second user identifier, the first target object identifier, and the hash value of the first transaction data, so that the first server sends the authorization information corresponding to the first target object identifier when finding the first transaction data from the blockchain network according to the hash value of the first transaction data; Receiving authorization information corresponding to the first target object identifier; Among them, the authorization information corresponding to the first target object identifier is stored by the first server, including: receiving second transaction data uploaded to the blockchain network by the terminal of the second user identifier, the second transaction data including the authorization information corresponding to the first target object identifier encrypted by the public key of the first server and a hash value of the authorization information corresponding to the first target object identifier; decrypting the encrypted authorization information corresponding to the first target object identifier by the private key of the first server, performing a hash operation on the decrypted data to obtain a predicted hash value, and storing the authorization information corresponding to the first target object identifier when the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier.

6. The method according to claim 5, characterized in that The method further comprises: Receive the input account number and password; When the account number is calculated according to the password, a login request is sent to the first server, the login request carries the account number of the first user, so that when the first server receives the login request and verifies that the account number of the first user is a node in the blockchain network, the first server sends a login response message to the terminal identified by the first user, and the login response message is used to prompt the first user that the login is successful; Receive and output the login response information sent by the first server.

7. A data processing device, characterized in that: Applied to the first server, comprising: A receiving unit, configured to receive a target order sent by a terminal of a first user identifier, wherein the target order includes a first user identifier, a second user identifier, a first target object identifier, and a hash value of first transaction data, wherein the first transaction data is used to indicate that a transaction digital asset is transferred from a wallet address of the first user identifier to a wallet address of the second user identifier, wherein the first transaction data and the target order are uploaded to a blockchain network by the terminal of the first user identifier, so that the blockchain network verifies the first transaction data, and after the verification is passed, temporarily stores the public key of the first user from the terminal of the first user identifier, the first transaction data, and the hash value of the first transaction data in a transaction pool as a transaction record; wherein the blockchain network verifies the first transaction data including: decrypting the first transaction data and the hash value of the first transaction data encrypted by the private key of the first user by the public key of the first user, proving that the first transaction data comes from the first user, performing a hash operation on the received first transaction data to obtain a target hash value, comparing the hash value of the received first transaction data with the target hash value, and if they are the same, it is proved that the first transaction data and the hash value of the first transaction data have not been tampered with, and verifying whether the first user has sufficient digital assets by the transaction record of the wallet address of the first user identifier; a sending unit, configured to send the authorization information corresponding to the first target object identifier to the terminal of the first user identifier when the first transaction data is found from the blockchain network according to the hash value of the first transaction data; The receiving unit is further configured to receive second transaction data uploaded by a terminal of the second user identifier to the blockchain network, wherein the second transaction data includes the authorization information corresponding to the first target object identifier encrypted by the public key of the first server and a hash value of the authorization information corresponding to the first target object identifier; A processing unit is used to decrypt the encrypted authorization information corresponding to the first target object identifier by using the private key of the first server, perform a hash operation on the decrypted data to obtain a predicted hash value, and store the authorization information corresponding to the first target object identifier when the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier.

8. A data processing device, characterized in that: The device comprises: An uploading unit, used for uploading first transaction data to a blockchain network, so that the blockchain network verifies the first transaction data. After the verification is passed, the public key of the first user, the first transaction data, and the hash value of the first transaction data are temporarily stored in a transaction pool as a transaction record, wherein the first transaction data is used to indicate that the transaction digital asset is transferred from the wallet address identified by the first user to the wallet address identified by the second user; wherein the blockchain network verifies the first transaction data including: decrypting the first transaction data and the hash value of the first transaction data encrypted by the private key of the first user by the public key of the first user, proving that the first transaction data comes from the first user, performing a hash operation on the received first transaction data to obtain a target hash value, comparing the hash value of the received first transaction data with the target hash value, and if they are the same, it proves that the first transaction data and the hash value of the first transaction data have not been tampered with, and verifying whether the first user has sufficient digital assets by the transaction record of the wallet address identified by the first user; a sending unit, configured to send a target order to the first server and the blockchain network, wherein the target order includes a first user identifier, a second user identifier, a first target object identifier, and a hash value of first transaction data, so that the first server sends authorization information corresponding to the first target object identifier when finding the first transaction data from the blockchain network according to the hash value of the first transaction data; A first receiving unit, configured to receive authorization information corresponding to the first target object identifier; Among them, the authorization information corresponding to the first target object identifier is stored by the first server, including: receiving second transaction data uploaded to the blockchain network by the terminal of the second user identifier, the second transaction data including the authorization information corresponding to the first target object identifier encrypted by the public key of the first server and a hash value of the authorization information corresponding to the first target object identifier; decrypting the encrypted authorization information corresponding to the first target object identifier by the private key of the first server, performing a hash operation on the decrypted data to obtain a predicted hash value, and storing the authorization information corresponding to the first target object identifier when the predicted hash value is the same as the hash value of the authorization information corresponding to the first target object identifier.

9. A data processing device, characterized in that: The invention comprises a processor and a memory, wherein the processor and the memory are coupled, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions so that the data processing device implements the method according to any one of claims 1 to 4.

10. A data processing device, characterized in that: It comprises a processor and a memory, which are coupled, wherein the memory is used to store computer instructions, and the processor is used to execute the computer instructions, so that the data processing device implements the method according to any one of claims 5-6.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer device, the computer device implements the method according to any one of claims 1 to 4.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer device, the computer device implements the method according to any one of claims 5 to 6.