A data processing method, a blockchain node device, and a storage medium

By receiving transaction data on the blockchain node device and performing identity verification, if the verification is successful, on-chain services are provided, which solves the problem of users paying fees to use DAPP on-chain services, and realizes on-chain services that use DAPP for free.

CN111260475BActive Publication Date: 2025-07-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010100861.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-18
Publication Date
2025-07-08
Estimated Expiration
2040-02-18

AI Technical Summary

Technical Problem

In blockchain networks, users need to pay a fee to use on-chain services of decentralized applications (DAPPs), and there is a lack of free use.

Method used

区块链节点设备接收交易数据及其身份信息,进行校验,若校验成功,则通过分散式应用程序提供链上服务,实现免费使用。

Benefits of technology

It realizes that blockchain node devices can provide on-chain services to specific users for free, improving the popularity of user experience and services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111260475B_ABST
    Figure CN111260475B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention disclose a data processing method, a blockchain node device, and a storage medium. Among them, the data processing method is applied to a blockchain node device, and the blockchain node device is a blockchain node device in a blockchain network. The blockchain node device runs a decentralized application program. The data processing method includes: receiving transaction data and identity information about the transaction data; verifying the identity information to obtain a verification result; if the verification result indicates successful verification, providing on-chain services for the transaction data through the decentralized application program. By adopting the embodiments of the present invention, on-chain services can be provided for transaction data submitted by specific users by freely using the decentralized application program.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a data processing method, a blockchain node device, and a storage medium. Background Art

[0002] A decentralized application (DAPP) refers to an application that is distributed on different blockchain node devices in a blockchain and depends on the underlying blockchain platform and consensus mechanism to jointly complete tasks. In a blockchain network, users can use the on-chain services of DAPPs running on blockchain node devices by paying a fee. That is, before using the on-chain services of DAPPs running on blockchain node devices, users need to pay a certain fee to the developers of the DAPPs.

[0003] In a blockchain network, how to be able to use the on-chain services of DAPPs for free has become a current research hotspot. Summary of the Invention

[0004] Embodiments of the present invention provide a data processing method, a blockchain node device, and a storage medium, which can provide on-chain services for transaction data submitted by a decentralized application to specific users for free.

[0005] In a first aspect, embodiments of the present invention provide a data processing method, which is applied to a blockchain node device. The blockchain node device is a blockchain node device in a blockchain network, and the blockchain node device runs a decentralized application. The method includes:

[0006] Receiving transaction data and identity information about the transaction data;

[0007] Verifying the identity information to obtain a verification result;

[0008] If the verification result indicates successful verification, providing on-chain services for the transaction data through the decentralized application.

[0009] In a second aspect, embodiments of the present invention provide a blockchain node device, which includes a processor and a memory. The processor is connected to the memory. Among them, the memory is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the method described in the first aspect.

[0010] In a third aspect, embodiments of the present invention provide a data processing device, which includes:

[0011] A receiving unit, configured to receive transaction data and identity information about the transaction data;

[0012] A verification unit for verifying the identity information to obtain a verification result;

[0013] A service unit for providing on-chain services for the transaction data through the decentralized application if the verification result indicates successful verification.

[0014] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions used by a first node device, which includes programs for executing the aspects involved in the above first aspect.

[0015] By implementing the present invention, the blockchain node device receives transaction data and identity information about the transaction data, verifies the identity information to obtain a verification result, and if the verification result indicates successful verification, provides on-chain services for the transaction data through the decentralized application, and can provide on-chain services for transaction data submitted by specific users by using the decentralized application for free. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the following will describe the drawings required to be used in the embodiments of the present invention or the background art.

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

[0018] Figure 2 It is a schematic flowchart of a data processing method provided by an embodiment of the present invention;

[0019] Figure 3 It is a schematic flowchart of another data processing method provided by an embodiment of the present invention;

[0020] Figure 4 It is a schematic diagram of the structure of a blockchain node device provided by an embodiment of the present invention;

[0021] Figure 5 It is a schematic diagram of the structure of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0023] Currently, in a blockchain network, users can use the on-chain services of DAPPs running on blockchain node devices by paying a fee. That is to say, before using the on-chain services of DAPPs running on blockchain node devices, users need to pay a certain fee to the developers of the DAPPs. On this basis, how to use the on-chain services of DAPPs for free through payment by others has become a current research hotspot.

[0024] Please refer to Figure 1 , Figure 1 which is a schematic diagram of the architecture of a data processing system disclosed in an embodiment of the present invention. As Figure 1 shown, the data processing system includes at least one blockchain node device, and the above at least one blockchain node device constitutes a blockchain network. Among them, any blockchain node device in the blockchain network can run a smart contract to provide on-chain services for the obtained transaction data. In a specific implementation process, after the blockchain node device receives the transaction data and the identity information about the transaction data, it can verify the identity information to obtain a verification result. If the verification result indicates that the verification is successful, it provides on-chain services for the transaction data through the decentralized application; if the verification result indicates that the verification fails, it refuses to provide on-chain services for the transaction data through the decentralized application, for example, deleting the transaction data and the identity information.

[0025] Optionally, the data processing system may further include a user device, and the user device can interact with the blockchain node device to update a preset database in the blockchain node device. Optionally, the user device can also interact with the blockchain node device to send virtual resources to the blockchain node device. Among them, the user device can be the paying party, that is, the party that pays the fee for the user to the blockchain node device.

[0026] Exemplarily, the transaction data may include a block query request and a height, and then the on-chain service may be to query the block according to the height. Another exemplarily, the transaction data may include transaction flow information, and then the on-chain service may be to chain the transaction flow information. It should be noted that the above are only examples and do not constitute a limitation on the embodiments of the present invention. For example, the transaction data may include a hash, and then the on-chain service may be to obtain the plaintext according to the hash, and so on.

[0027] Blockchain is a new application mode of computer technologies such as distributed data storage, consensus mechanism, and encryption algorithm. In essence, it is a decentralized database; a blockchain can be composed of multiple concatenated transaction records (also known as blocks) connected and protected by cryptography. The distributed ledger concatenated by the blockchain can enable multiple parties to effectively record transactions and can permanently verify this transaction (non-tamperable).

[0028] Among them, the consensus mechanism refers to a mathematical algorithm for establishing trust and obtaining rights and interests among different nodes in a blockchain network. The consensus mechanism is a mathematical algorithm commonly recognized by each node in the blockchain network. The consensus algorithms in the consensus mechanism include, but are not limited to, the Proof of Work (PoW) algorithm, the Proof of Stake (PoS) algorithm, the Delegated Proof of Stake (DPoS) algorithm, the Practical Byzantine Fault Tolerance (PBFT) algorithm, etc.

[0029] In the data processing process of this application, any blockchain node device in the blockchain network stores a smart contract, and they can provide on-chain services for transaction data by running the smart contract. Among them, a smart contract is a computer protocol designed to spread, verify, or execute a contract in an information-based manner, allowing for trusted transactions without a third party. These transactions are traceable and irreversible. A smart contract is a set of commitments defined in digital form, including the protocol on which the contract parties can execute these commitments, and is a piece of code written on the blockchain. The smart contract in the embodiment of the present invention can be understood as a DAPP.

[0030] Based on the above description, an embodiment of this application proposes a data processing method as Figure 2 shown, and this data processing method may include the following steps S201 - S203:

[0031] S201: The blockchain node device receives transaction data and identity information about the transaction data.

[0032] Among them, the identity information about the transaction data can be used to indicate the identity of the sender who sent the transaction data, and the identity information may include account information or device identification, etc.

[0033] For example, if the DAPP running in the blockchain node device only provides free on-chain services to VIP users, then after the user logs in through the account information of the instant messaging application on the terminal, the user can send transaction data and the account information to the blockchain node device through the terminal. The blockchain node device can determine whether the user is a VIP user based on the account information. If the user is a VIP user, the blockchain node device provides on-chain services for the transaction data through the DAPP.

[0034] For another example, if the DAPP running on the blockchain node device only provides free on-chain services to the employees of enterprise A, then after the user logs in through the employee's account information on the terminal, the user can send transaction data and the account information to the blockchain node device through the terminal. The blockchain node device can determine whether the user is an employee of enterprise A based on the account information. If the user is an employee of enterprise A, the blockchain node device provides on-chain services for the transaction data through the DAPP.

[0035] For another example, if the DAPP running on the blockchain node device only provides free on-chain services for the transaction data sent by the device corresponding to the target device identifier, then the device sends the transaction data and the device identifier of the device to the blockchain node device. The blockchain node device can determine whether the device is the device corresponding to the target device identifier based on the device identifier. If the device is the device corresponding to the target device identifier, the blockchain node device provides on-chain services for the transaction data through the DAPP.

[0036] In one implementation, the transaction data received by the blockchain node device can be input by the user or sent by the user to the blockchain node device through the terminal, which is not specifically limited by the embodiments of this application.

[0037] S202: The blockchain node device verifies the identity information to obtain a verification result.

[0038] In one implementation, the blockchain node device can compare the account information with at least one piece of account information in the preset database. If the account information exists in the preset database, a first verification result is generated, and the first verification result indicates successful verification. If the account information does not exist in the preset database, a second verification result is generated, and the second verification result indicates failed verification.

[0039] In one implementation, before the blockchain node device compares the account information with at least one piece of account information in the preset database, it can also receive database update information sent by the user device. The database update information includes target account information, and then updates at least one piece of account information in the preset database according to the target account information to obtain an updated database. Further, the blockchain node device can compare the account information with at least one piece of account information in the updated database.

[0040] For example, after user A becomes a VIP user, the user device can send the account information of the user to the blockchain node device so that the blockchain node device can add the account information to the preset database.

[0041] For another example, when user B leaves enterprise A, the user device can send the account information of user B to the blockchain node device so that the blockchain node device can delete the account information of user B from the preset database.

[0042] In one implementation, the database update information may further include a digital signature of the target account information, which is obtained by the user device signing the target account information using the private key of the user device. After receiving the database update information sent by the user device, the blockchain node device may further verify the digital signature using the public key of the user device. If the verification passes, it triggers the execution of updating at least one account information in the preset database according to the target account information to obtain an updated database.

[0043] S203: If the verification result indicates successful verification, the blockchain node device provides on-chain services for the transaction data through the decentralized application.

[0044] In the embodiments of the present application, the blockchain node device receives transaction data and identity information about the transaction data, verifies the identity information to obtain a verification result. If the verification result indicates successful verification, the blockchain node device provides on-chain services for the transaction data through the decentralized application, and can use the DAPP for free to provide on-chain services for the transaction data submitted by specific users.

[0045] Please refer to Figure 3 , Figure 3 which is another data processing method proposed based on the embodiments shown in Figure 2 This data processing method may include but is not limited to: S301 - S305.

[0046] S301: The blockchain node device receives transaction data and identity information about the transaction data.

[0047] For the specific description of step S301 in the embodiments of the present invention, please refer to the description of step S201 in the above embodiments, and the embodiments of the present invention will not be elaborated here.

[0048] S302: The blockchain node device verifies the identity information to obtain a verification result.

[0049] For the specific description of step S302 in the embodiments of the present invention, please refer to the description of step S202 in the above embodiments, and the embodiments of the present invention will not be elaborated here.

[0050] S303: The blockchain node device obtains virtual resources about the transaction data.

[0051] The virtual resources regarding the transaction data obtained by the blockchain node device can be those submitted by the user to the blockchain node device, or those submitted by the user device to the blockchain node device.

[0052] For example, the user device sends digital resources to the blockchain node device, so that the blockchain node device sends the virtual resources corresponding to the digital resources to the user device according to a preset exchange ratio. The user device can send the virtual resources to each user (such as VIP users or employees, etc.). When the user sends transaction data to the blockchain node device, the virtual resources regarding the transaction data can be sent to the blockchain node device.

[0053] Another example is that the user device sends digital resources to the blockchain node device, so that the blockchain node device sends the virtual resources corresponding to the digital resources to the user device according to a preset exchange ratio. After the user sends transaction data to the blockchain node device, the blockchain node device can request the virtual resources regarding the transaction data from the user device, and then the user device can send the virtual resources regarding the transaction data to the blockchain node device.

[0054] S304: The blockchain node device analyzes the transaction data to determine the first amount of virtual resources required to provide on-chain services for the transaction data.

[0055] The blockchain node device can analyze the transaction data, determine the business requirements regarding the transaction data, then determine the on-chain services that need to be provided for the transaction data based on the business requirements, and determine the first amount of virtual resources required for the on-chain services based on the determined on-chain services.

[0056] In one implementation, before the blockchain node device provides on-chain services for the transaction data through a DAPP, it can obtain the virtual resources regarding the transaction data, analyze the transaction data to determine the first amount of virtual resources required to provide on-chain services for the transaction data.

[0057] In one implementation, before the blockchain node device obtains the virtual resources regarding the transaction data, it can receive the device identifier of the user device. Based on this, the way for the blockchain node device to obtain the virtual resources regarding the transaction data can be: the blockchain node device sends a first virtual resource acquisition request to the user device corresponding to the device identifier, and receives the virtual resources sent by the user device in response to the first virtual resource acquisition request.

[0058] In one implementation, before the blockchain node device obtains virtual resources regarding the transaction data, it may also receive a second virtual resource acquisition request sent by a user device. The second virtual resource acquisition request carries a second virtual resource quantity. If it is detected that the user device transfers the digital resources corresponding to the second virtual resource quantity from the management account of the user device to the associated account of the blockchain node device, the blockchain node device sends virtual resources with the quantity of the second virtual resource quantity to the user device.

[0059] S305: If the verification result indicates successful verification and the virtual resource quantity of the virtual resources is greater than or equal to the first virtual resource quantity, the blockchain node device provides on-chain services for the transaction data through the decentralized application.

[0060] In the embodiments of the present application, the blockchain node device receives transaction data and identity information regarding the transaction data, verifies the identity information to obtain a verification result. If the verification result indicates successful verification and the obtained virtual resource quantity of the virtual resources is greater than or equal to the first virtual resource quantity, the blockchain node device provides on-chain services for the transaction data through the decentralized application, and can provide on-chain services for the transaction data submitted by a specific user to the DAPP for free through the way of payment on behalf.

[0061] Please refer to Figure 4 , Figure 4 FIG. is a schematic structural diagram of a blockchain node device provided by an embodiment of the present invention. The node device 40 includes a processor 401, a memory 402, and a communication interface 403. The processor 401, the memory 402, and the communication interface 403 are connected through one or more communication buses.

[0062] The processor 401 is configured to support the blockchain node device to execute Figure 2 or Figure 3 the corresponding functions of the blockchain node device in the embodiments shown in FIGS. The processor 401 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof.

[0063] The memory 402 is used to store program codes and the like. The memory 402 may include volatile memory, such as random access memory (RAM); the memory 402 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 402 may further include a combination of the above types of memories.

[0064] The communication interface 403 is used to receive and send data. For example, the communication interface 403 is used to receive transaction data and identity information about the transaction data.

[0065] In an embodiment of the present invention, the blockchain node device 40 may include multiple communication interfaces. Among them, the communication interface for sending data and the communication interface for receiving data may not be the same communication interface.

[0066] The processor 401 may call the program code stored in the memory 402 to perform the following operations:

[0067] Receive transaction data and identity information about the transaction data through the communication interface 403;

[0068] Verify the identity information to obtain a verification result;

[0069] If the verification result indicates successful verification, provide on-chain services for the transaction data through the decentralized application.

[0070] In one implementation, the identity information includes account information;

[0071] When the processor 401 verifies the identity information to obtain a verification result, it may specifically perform the following operations:

[0072] Compare the account information with at least one piece of account information in the preset database;

[0073] If the account information exists in the preset database, generate a first verification result, and the first verification result indicates successful verification;

[0074] If the account information does not exist in the preset database, generate a second verification result, and the second verification result indicates verification failure.

[0075] In one implementation, before the processor 401 compares the account information with at least one piece of account information in the preset database, the following operations may also be performed:

[0076] Receive database update information sent by the user device through the communication interface 403, where the database update information includes target account information;

[0077] Update at least one piece of account information in the preset database according to the target account information to obtain an updated database;

[0078] When the processor 401 compares the account information with at least one piece of account information in the preset database, the following operations may specifically be performed:

[0079] Compare the account information with at least one piece of account information in the updated database.

[0080] In one implementation, the database update information further includes a digital signature of the target account information;

[0081] After the processor 401 receives the database update information sent by the user device through the communication interface 403, the following operations may also be performed:

[0082] Verify the digital signature using the public key of the user device;

[0083] If the verification passes, trigger the execution of updating at least one piece of account information in the preset database according to the target account information to obtain an updated database.

[0084] In one implementation, before the processor 401 provides on-chain services for the transaction data through the decentralized application, the following operations may also be performed:

[0085] Obtain virtual resources regarding the transaction data;

[0086] Analyze the transaction data to determine the first amount of virtual resources required to provide on-chain services for the transaction data;

[0087] If the amount of virtual resources is greater than or equal to the first amount of virtual resources, trigger the execution of providing on-chain services for the transaction data through the decentralized application.

[0088] In one implementation, before the processor 401 obtains virtual resources regarding the transaction data, the following operations may also be performed:

[0089] Receive the device identifier of the user device through the communication interface 403;

[0090] When the processor 401 acquires virtual resources regarding the transaction data, it can specifically perform the following operations:

[0091] Send a first virtual resource acquisition request to the user device corresponding to the device identifier through the communication interface 403;

[0092] Receive the virtual resources sent by the user device in response to the first virtual resource acquisition request through the communication interface 403.

[0093] In one implementation, before the processor 401 acquires virtual resources regarding the transaction data, it can also perform the following operations:

[0094] Receive a second virtual resource acquisition request sent by the user device through the communication interface 403, where the second virtual resource acquisition request carries a second virtual resource quantity;

[0095] If it is detected that the user device transfers the digital resources corresponding to the second virtual resource quantity from the management account of the user device to the associated account of the blockchain node device, then send virtual resources with a quantity equal to the second virtual resource quantity to the user device.

[0096] Please refer to Figure 5 , Figure 5 is a schematic structural diagram of a data processing device provided by an embodiment of the present invention. The data processing device can be arranged in a blockchain node device. The data processing device 50 can include:

[0097] A receiving unit 501, configured to receive transaction data and identity information regarding the transaction data;

[0098] A verification unit 502, configured to verify the identity information to obtain a verification result;

[0099] A service unit 503, configured to provide on-chain services for the transaction data through the decentralized application if the verification result indicates successful verification.

[0100] In one implementation, the identity information includes account information;

[0101] The verification unit 502 verifies the identity information to obtain a verification result, including:

[0102] Compare the account information with at least one piece of account information in a preset database;

[0103] If the account information exists in the preset database, generate a first verification result, where the first verification result indicates successful verification;

[0104] If the account information does not exist in the preset database, a second verification result is generated, and the second verification result indicates that the verification fails.

[0105] In one implementation, before the receiving unit 501 compares the account information with at least one piece of account information in the preset database, it may also receive database update information sent by the user device, and the database update information includes target account information;

[0106] The device may further include an update unit 504;

[0107] The update unit 504 is configured to update at least one piece of account information in the preset database according to the target account information to obtain an updated database;

[0108] The verification unit 502 compares the account information with at least one piece of account information in the preset database, including:

[0109] Comparing the account information with at least one piece of account information in the updated database.

[0110] In one implementation, the database update information further includes a digital signature of the target account information;

[0111] The verification unit 502 is further configured to, after the receiving unit 501 receives the database update information sent by the user device, verify the digital signature using the public key of the user device. If the verification passes, trigger the update unit 504 to update at least one piece of account information in the preset database according to the target account information to obtain an updated database.

[0112] In one implementation, the device may further include a determination unit 505;

[0113] The determination unit 505 is configured to, before the service unit 503 provides on-chain services for the transaction data through the decentralized application, obtain virtual resources for the transaction data, analyze the transaction data to determine a first virtual resource amount required to provide on-chain services for the transaction data. If the virtual resource amount of the virtual resources is greater than or equal to the first virtual resource amount, trigger the update unit 504 to provide on-chain services for the transaction data through the decentralized application.

[0114] In one implementation, the receiving unit 501 is further configured to receive the device identifier of the user device before the determination unit 505 obtains the virtual resources for the transaction data;

[0115] The determination unit 505 obtains the virtual resources for the transaction data, including:

[0116] Send a first virtual resource acquisition request to the user equipment corresponding to the device identifier;

[0117] Receive the virtual resources sent by the user equipment in response to the first virtual resource acquisition request.

[0118] In one implementation, the receiving unit 501 is further configured to receive a second virtual resource acquisition request sent by the user equipment before the determining unit 505 acquires the virtual resources regarding the transaction data, where the second virtual resource acquisition request carries a second virtual resource quantity;

[0119] The apparatus may further include a sending unit 506;

[0120] The sending unit 506 is configured to, if it is detected that the user equipment transfers the digital resources corresponding to the second virtual resource quantity from the management account of the user equipment to the associated account of the blockchain node device, send virtual resources with a quantity of the second virtual resource quantity to the user equipment.

[0121] For the specific implementation of each unit included in the above data processing apparatus proposed in the embodiments of the present invention, reference may be made to the description of the relevant content in the foregoing embodiments, which will not be elaborated here. Moreover, Figure 5 Each module in the shown data processing apparatus may be separately or all combined into one or several other modules to form, or a certain one (or some) of the modules may be further split into multiple smaller modules with functional division to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above modules are divided based on logical functions. In practical applications, the function of one module may also be implemented by multiple modules, or the functions of multiple modules may be implemented by one module. In other embodiments of the present application, other modules may also be included. In practical applications, these functions may also be assisted by other modules and may be implemented by the cooperation of multiple modules. The present application does not make any limitations.

[0122] The embodiments of the present invention further provide a computer-readable storage medium, which can be used to store Figure 2 or Figure 3 The computer software instructions used by the blockchain node device in the shown embodiments, which include programs designed for the blockchain node device for executing the above embodiments.

[0123] The above computer-readable storage medium includes but is not limited to flash memory, hard disk, and solid-state drive.

[0124] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims described above.

Claims

1. A data processing method, characterized in that, The method is applied to a blockchain node device, which is a blockchain node device in a blockchain network. The blockchain node device runs a decentralized application program. The method includes: Receiving transaction data sent by a user through a terminal, and identity information about the transaction data; Verifying the identity information to obtain a verification result; If the verification result indicates successful verification, obtaining virtual resources about the transaction data. The virtual resources are from a user device, which is the device of the payer and is different from the terminal; Analyzing the transaction data to determine a first amount of virtual resources required to provide on-chain services for the transaction data; If the amount of virtual resources is greater than or equal to the first amount of virtual resources, triggering the execution of providing on-chain services for the transaction data through the decentralized application program.

2. The method according to claim 1, characterized in that, The identity information includes account information; The verifying the identity information to obtain a verification result includes: Comparing the account information with at least one piece of account information in a preset database; If the account information exists in the preset database, generating a first verification result indicating successful verification; If the account information does not exist in the preset database, generating a second verification result indicating failed verification.

3. The method according to claim 2, wherein Before comparing the account information with at least one piece of account information in the preset database, it further includes: Receiving database update information sent by the user device, where the database update information includes target account information; Updating at least one piece of account information in the preset database according to the target account information to obtain an updated database; The comparing the account information with at least one piece of account information in the preset database includes: Comparing the account information with at least one piece of account information in the updated database.

4. The method according to claim 3, wherein The database update information further includes a digital signature of the target account information; After receiving the database update information sent by the user device, it further includes: Verifying the digital signature using the public key of the user device; If the signature verification passes, triggering the execution of updating at least one piece of account information in the preset database according to the target account information to obtain an updated database.

5. The method according to claim 1, characterized in that, Before obtaining the virtual resources about the transaction data, it further includes: Receiving the device identifier of the user device; The obtaining the virtual resources about the transaction data includes: Sending a first virtual resource acquisition request to the user device corresponding to the device identifier; Receiving the virtual resources sent by the user device in response to the first virtual resource acquisition request.

6. The method according to claim 1, characterized in that Before obtaining the virtual resources about the transaction data, it further includes: Receiving a second virtual resource acquisition request sent by the user device, where the second virtual resource acquisition request carries a second amount of virtual resources. If it is detected that the user device transfers the digital resources corresponding to the second virtual resource amount from the management account of the user device to the associated account of the blockchain node device, virtual resources with the amount of the second virtual resource amount are sent to the user device.

7. A blockchain node device, characterized in that, It includes a processor and a memory, and the processor is connected to the memory. Among them, the memory is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the method according to any one of claims 1-6.

8. A data processing device, characterized in that, The device includes: A receiving unit, configured to receive transaction data sent by a user through a terminal and identity information about the transaction data; A verification unit, configured to verify the identity information to obtain a verification result; A service unit, configured to provide on-chain services for the transaction data through a decentralized application if the verification result indicates successful verification; A determination unit, configured to obtain virtual resources about the transaction data, analyze the transaction data to determine a first virtual resource amount required to provide on-chain services for the transaction data before the service unit provides on-chain services for the transaction data through the decentralized application; if the virtual resource amount of the virtual resources is greater than or equal to the first virtual resource amount, trigger the service unit to provide on-chain services for the transaction data through the decentralized application; wherein, the virtual resources are from a user device, the user device is the device of the payer on behalf, and the user device is different from the terminal.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Virtual pet commodity trading method, device, device and storage medium

    CN109272380A

  • Blockchain-based identity confirmation system and method

    CN109391612A

  • Method, device, equipment and medium for realizing permission processing based on blockchain

    CN109714348A