Data processing method, device, electronic device and storage medium
Through blockchain technology, during the virtual resource exchange process of the business manager, the blockchain node device determines and transfers the amount of virtual resources and then destroys it, solving the problem of the non-disclosure of the transaction process and achieving transparency and security of the transaction.
Patent Information
- Application Number
- CN202010371136.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-29
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2040-04-29
AI Technical Summary
In the existing technology, business managers need to go through exchanges to exchange virtual resources into legal resources, which makes the transaction process less open and affects the security and transparency of the transaction.
Through blockchain technology, the first blockchain node device determines the amount of virtual resources generated by the second blockchain node device during the service provision process, and transfers the corresponding digital resources to the management account through the user account and then destroys them, ensuring that the transaction process is open and transparent on the blockchain.
It has achieved openness and transparency in the transaction process of virtual and digital resources, improved the credibility and accuracy of transactions, avoided adverse factors caused by transactions, and saved manpower and material resources.
Smart Images

Figure CN111553672B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a data processing method, device, electronic device and storage medium. Background Art
[0002] As one of the most important network application technologies in the Internet era, blockchain technology's most important application is the direct circulation of value on the Internet. Through the tokenized data of physical or virtual assets, business managers can put assets on the chain, and blockchain node devices can directly trade and transfer assets through blockchain technology.
[0003] In the traditional asset trading model, business managers need to go to an exchange to convert virtual resources into legal resources. The existence of the exchange makes the transaction process less transparent. Therefore, the openness and security of the transaction process between business managers and blockchain node devices are issues that need to be urgently addressed. Summary of the Invention
[0004] The embodiments of the present invention provide a data processing method, device, electronic device and storage medium to improve the credibility and accuracy of digital resources.
[0005] An embodiment of the present invention provides a data processing method, which includes:
[0006] The first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device;
[0007] The first blockchain node device transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0008] After receiving the resource transfer success notification message sent by the second blockchain node device, the first blockchain node device destroys the virtual resources indicated by the virtual resource amount.
[0009] An embodiment of the present invention provides a data processing device that has the function of implementing the data processing method. The function can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes:
[0010] A determination module, configured for a first blockchain node device to determine an amount of virtual resources generated by a second blockchain node device in the process of providing services to the first blockchain node device;
[0011] A transfer module, configured for the first blockchain node device to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0012] A destruction module is used for the first blockchain node device to destroy the virtual resources indicated by the virtual resource amount after receiving the resource transfer success notification message sent by the second blockchain node device.
[0013] An embodiment of the present invention provides an electronic device, which includes a processor, an input device, an output device and a memory, wherein the processor, input device, output device and memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the operations involved in the above-mentioned data processing method.
[0014] An embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions for use by a terminal device, which includes a program for executing the above-mentioned data processing method.
[0015] By implementing the embodiments of the present invention, the transaction process of virtual resources and digital resources between the first blockchain node device and the second blockchain node device is carried out on the blockchain, making the transaction process open and transparent, and ensuring the credibility and accuracy of the virtual resources and digital resources in the transaction process. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is a schematic diagram of the structure of a blockchain provided by an embodiment of the present invention;
[0018] Figure 2 This is a schematic diagram of the architecture of a data processing system provided by an embodiment of the present invention;
[0019] Figure 3 This is a flow chart of a data processing method provided by an embodiment of the present invention;
[0020] Figure 4 is a flow chart of another data processing method provided by an embodiment of the present invention;
[0021] Figure 5is a structural diagram of a data processing device provided by an embodiment of the present invention;
[0022] Figure 6 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0024] In today's era of rapid internet development, blockchain technology, as one of the most important network application technologies in the internet age, is the most important application of blockchain, enabling the direct circulation of value on the internet. Through the tokenization of physical or virtual assets, business managers can upload assets to the blockchain, and blockchain nodes can directly conduct asset transactions and transfers through blockchain technology. Tokens are a digital carrier of value and proof of rights.
[0025] In the traditional asset trading model, business managers need to go to an exchange to convert virtual resources into legal resources. The existence of the exchange makes the transaction process less transparent. Therefore, the openness and security of the transaction process between business managers and blockchain node devices are issues that need to be urgently addressed.
[0026] Based on this, the embodiment of the present invention introduces blockchain technology into the business system where the business management party exchanges virtual resources for digital resources, and proposes a data processing method. The data processing method is specifically:
[0027] The first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device;
[0028] The first blockchain node device transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0029] After receiving the resource transfer success notification message sent by the second blockchain node device, the first blockchain node device destroys the virtual resources indicated by the virtual resource amount.
[0030] Blockchain is a distributed ledger that uses cryptography to ensure that data cannot be tampered with or forged by sequentially linked data blocks in chronological order. Multiple independent distributed nodes (i.e., primary blockchain node devices) maintain identical records. Blockchain technology achieves decentralization and has become the cornerstone of trusted digital asset storage, transfer, and transactions.
[0031] by Figure 1 Taking the blockchain structure diagram shown in the figure as an example, whenever new data needs to be added to the blockchain, it is aggregated into a block and added to the end of the existing blockchain. A consensus algorithm ensures that the newly added blocks are identical on every node. Each block records several transactions and also includes the hash value of the previous block. All blocks, in this way, store the hash value of the previous block and are linked sequentially to form the blockchain. The header of the next block in the blockchain stores the hash value of the previous block. Whenever the transaction data in the previous block changes, the hash value of the current block also changes. This makes transaction data uploaded to the blockchain network difficult to tamper with. Resource exchange transactions on the blockchain ensure transparency and enhance the reliability of transaction data.
[0032] In order to better understand the data processing method and related devices disclosed in the embodiments of the present invention, the blockchain system applicable to the embodiments of the present invention is first described below.
[0033] See Figure 2 , Figure 2 This is a schematic diagram of the architecture of a blockchain network disclosed in an embodiment of the present invention. Figure 2 As shown, the blockchain network includes at least a first blockchain node device 210, a second blockchain node device 220, and a third blockchain node device 230. The first blockchain node device 210 is any blockchain node device in the blockchain network. The second blockchain node device 220 can be a node device in the blockchain network, or it can be any device not in the blockchain network, which is not limited in the present invention. The third blockchain node device is any blockchain node device in the blockchain network other than the first blockchain node device 210 and the second blockchain node device 220.
[0034] The first blockchain node device 210 is a blockchain node device elected by all blockchain node devices in the blockchain network according to a consensus algorithm. Consensus algorithms include, but are not limited to, Proof of Work (PoW) algorithms, Proof of Stake (PoS) algorithms, Delegated Proof of Stake (DPoS) algorithms, and Practical Byzantine Fault Tolerance (PBFT) algorithms. The second blockchain node device 220 and the third blockchain node device 230 are other blockchain node devices in the blockchain network excluding the first blockchain node device 210. The first blockchain node device 210 can be periodically elected through a consensus algorithm, and the first blockchain node devices elected in different periods can be the same or different. It should be noted that the blockchain network shown in the embodiment of the present invention is composed of three blockchain node devices: the first blockchain node device 210, the second blockchain node device 220, and the third blockchain node device 230. This is for illustrative purposes only and does not constitute a limitation of the embodiments of the present invention. For example, in another example, the blockchain network may be composed of five blockchain node devices: one first blockchain node device 210, two second blockchain node devices 220, and three third blockchain node devices 230.
[0035] In one implementation, taking the case where the business manager runs in the second blockchain node device 220 as an example, the second blockchain node device 220 provides a service to the first blockchain node device 210. Assuming the value of the service is RMB 1 million, with a preset exchange ratio of 1:1, the second blockchain node device 220 may provide 1 million tokens to the first blockchain node device 210. The first blockchain node device 210 determines that the amount of virtual resources generated by the second blockchain node device 220 in providing services to the first blockchain node device 210 is 1 million. The first blockchain node device 210 transfers digital resources corresponding to the amount of virtual resources to the management account of the second blockchain node device 220 through the user account of the first blockchain node device 210. After receiving the resource transfer success notification message sent by the second blockchain node device 220, the first blockchain node device 210 destroys the virtual resources indicated by the amount of virtual resources.
[0036] In one implementation, the second blockchain node device 220 sends the amount of virtual resources obtained by providing the service to the first blockchain node device 210 closest to the second blockchain node device 220. The first blockchain node device 210 transfers the digital resources corresponding to the amount of virtual resources to the management account of the second blockchain node device 220 through the user account of the first blockchain node device 210. After receiving the resource transfer success notification message sent by the second blockchain node device 220, the first blockchain node device 210 destroys the virtual resources indicated by the virtual resource amount.
[0037] In one implementation, the second blockchain node device 220 sends the virtual resource amount obtained by providing the service to the first blockchain node device 210 having the best communication quality with the second blockchain node device 220. The first blockchain node device 210 transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device 220 through the user account of the first blockchain node device 210. After receiving the resource transfer success notification message sent by the second blockchain node device 220, the first blockchain node device 210 destroys the virtual resources indicated by the virtual resource amount.
[0038] It is understandable that the blockchain system described in the embodiment of the present invention is intended to more clearly illustrate the technical solution of the embodiment of the present invention and does not constitute a limitation on the technical solution provided by the embodiment of the present invention. Those skilled in the art will appreciate that with the evolution of system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present invention is equally applicable to similar technical problems.
[0039] based on Figure 2 For a schematic diagram of the blockchain system architecture, see Figure 3 , Figure 3 1 is a flow chart of a data processing method disclosed in an embodiment of the present invention, which includes but is not limited to the following steps S310 to S360:
[0040] Step S310: Send a virtual resource destruction request.
[0041] In one implementation, a first blockchain node device sends a virtual resource destruction request to a second blockchain node device. The virtual resource described in this embodiment of the present invention may be a token. A token is a digital value carrier and proof of stake. By integrating tokens with blockchains, authenticity and asset uniqueness can be verified through encryption algorithms and distributed ledgers, and circulation can be achieved through consensus algorithms.
[0042] Step S320: Receive a virtual resource destruction response message sent from the second blockchain node device.
[0043] Step S330: The first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device.
[0044] In one implementation, the virtual resource amount determined by the first blockchain node device can be determined by the first blockchain node device itself, or can be reported to the first blockchain node device by the second blockchain node device. The present invention does not limit the specific source of the virtual resource amount, as long as the source is reasonable.
[0045] In one implementation, after providing services to other node devices, the second blockchain node device obtains a virtual resource amount of 1 million tokens. The second blockchain node device reports the virtual resource amount of 1 million tokens obtained from providing services to the first blockchain node device. After receiving the virtual resource amount of 1 million tokens reported from the second blockchain node device, the first blockchain node device determines that the virtual resource amount generated by the second blockchain node device in the process of providing services is 1 million tokens.
[0046] In one implementation, the second blockchain node device directly provides services to the first blockchain node device, and the first blockchain node device directly obtains the virtual resources generated by the second blockchain node device during the service process. Methods for obtaining the virtual resources may include, but are not limited to, methods such as keyword recognition algorithms and image recognition algorithms. For example, the second blockchain node device directly provides services to the first blockchain node device, and service results are generated during the service process. The first blockchain node device identifies the virtual resources based on the keyword recognition algorithm.
[0047] Step S340: Transferring digital resources corresponding to the virtual resource amount.
[0048] In a specific implementation, the first blockchain node device transfers digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device. The digital resources can be legal resources, RMB, etc.
[0049] In one implementation, the correspondence between the amount of virtual resources and the digital resources can be a linear relationship. For example, the exchange ratio between the amount of virtual resources and the digital resources is 1:1. For example, if the amount of virtual resources is 1 million tokens, the first blockchain node device transfers the digital resources corresponding to the amount of virtual resources to the management account of the second blockchain node device through the user account of the first blockchain node device, which is RMB 1 million. It should be noted that the exchange ratio between the amount of virtual resources and the digital resources can be notified to the first blockchain node device by the second blockchain node device, or it can be obtained by the first blockchain node device according to a preset exchange ratio, and the present invention does not limit this.
[0050] In one implementation, before the first blockchain node device transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device, it also includes: the first blockchain node device obtains the identity information of the second blockchain node device, and the first blockchain node device verifies the identity of the second blockchain node device based on the identity information. If the verification passes, it triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0051] In one implementation, the identity information of the second blockchain node device includes the credit value of the second blockchain node device. The first blockchain node device obtains the credit value of the second blockchain node device, and the first blockchain node device compares the credit value with a preset value. If the credit value is greater than or equal to the preset value, the first blockchain node device determines that the identity information verification of the second blockchain node device is passed, and then triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0052] Among them, the expression forms of the credit value and the preset value include but are not limited to percentages, positive integers, etc. It should be noted that there is a one-to-one correspondence between the expression forms of the credit value and the preset value, that is, when the expression form of the preset value is a percentage, the expression form of the credit value is also in the form of a percentage. For example, when the preset value is 80%, if the first blockchain node device obtains a credit value of 90% of the second blockchain node device, the first blockchain node device compares the credit value 90% with the preset value 80%, and the first blockchain node device determines that the credit value 90% is greater than the preset value 80%, then the first blockchain node device determines that the identity information of the second blockchain node device has been verified, and then triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device. If the first blockchain node device obtains a credit value of 70% of the second blockchain node device, the first blockchain node device compares the credit value 70% with the preset value 80%, and the first blockchain node device determines that the credit value 70% is less than the preset value 80%, then the first blockchain node device determines that the identity information verification of the second blockchain node device has failed, and the first blockchain node device does not execute the operation steps of transferring the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0053] In one implementation, a first blockchain node device obtains a digital certificate of a second blockchain node device through a certificate authority (CA), and the first blockchain node device determines whether the digital certificate exists in a first preset database. If the first blockchain node device determines that the digital certificate exists in the first preset database, the first blockchain node device determines that the identity information of the second blockchain node device has been verified, and then triggers the first blockchain node device to transfer digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0054] Among them, the way for the first blockchain node device to determine whether a digital certificate exists in the first preset database may be an image recognition algorithm and a keyword recognition algorithm. For example, the first blockchain node device obtains the digital certificate of the second blockchain node device through a CA organization. Assuming that the second blockchain node device is Chongqing University of Posts and Telecommunications, the first blockchain node device obtains the official seal and keywords in the digital certificate of Chongqing University of Posts and Telecommunications through an image recognition algorithm and a keyword recognition algorithm. Assuming that the keyword is "Chongqing University of Posts and Telecommunications", the first blockchain node device determines that "Chongqing University of Posts and Telecommunications" and the official seal exist in the first preset database. The first blockchain node device determines that the identity information verification of Chongqing University of Posts and Telecommunications is passed, and then triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0055] In one implementation, after the first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, the method further includes: the first blockchain node device sends the virtual resource amount to each third blockchain node device, so that each third blockchain node device reaches a blockchain consensus on the virtual resource amount; the third blockchain node device verifies the existence of the virtual resource amount to determine whether the first blockchain node device can perform an operation to destroy the virtual resource; the first blockchain node device receives the verification results sent by each third blockchain node device; when the verification result shows that the number of successful verifications is greater than a preset number threshold, the first blockchain node device determines that the blockchain consensus is passed, and triggers the execution of the step of the first blockchain node device destroying the virtual resources indicated by the virtual resource amount. The preset number threshold can be expressed as a percentage or a positive integer.
[0056] For example, assuming that the preset number threshold is 7 and the number of third blockchain node devices is 10, if the first blockchain node device receives a verification result indicating that the number of third blockchain node devices that have successfully verified is 8, the first blockchain node device compares the number of successful verifications 8 with the preset number threshold 7. If the number of successful verifications 8 of the third blockchain node devices is greater than the preset number threshold 7, the first blockchain node device determines that the blockchain consensus has passed, and triggers the execution of the step of the first blockchain node device destroying the virtual resources indicated by the virtual resource quantity. If the first blockchain node device receives a verification result indicating that the number of successful verifications of the third blockchain node devices is 6, the first blockchain node device compares the number of successful verifications 6 with the preset number threshold 7. If the number of successful verifications 6 of the third blockchain node devices is less than the preset number threshold 7, the first blockchain node device determines that the blockchain consensus has not passed, and the step of the first blockchain node device destroying the virtual resources indicated by the virtual resource quantity is not executed.
[0057] Step S350: Receive a virtual resource transfer success notification message.
[0058] Step S360: Destroy the virtual resource indicated by the virtual resource quantity.
[0059] In specific implementation, after the first blockchain node device receives the resource transfer success notification message sent by the second blockchain node device, the first blockchain node device destroys the virtual resources indicated by the virtual resource quantity.
[0060] By adopting the embodiment of the present invention, the exchange process between the virtual resources obtained by the second blockchain node device providing services and the digital resources is applied in the blockchain network, which solves the transaction process in the prior art that requires going to an exchange for exchange, avoids the unfavorable factors caused by time, geography and human factors, and not only saves manpower and material resources, but also makes the exchange transaction process open and transparent, and the obtained digital resources will not be tampered with, thereby improving the credibility and accuracy of the digital resources.
[0061] See Figure 4 , Figure 4 4 is a flow chart of another data processing method disclosed in an embodiment of the present invention, which includes but is not limited to the following steps S410 to S470:
[0062] Step S410: Receive virtual resource quantity.
[0063] In a specific implementation, the first blockchain node device receives a virtual resource amount sent from the second blockchain node device, wherein the virtual resource amount is the virtual resource amount obtained by the second blockchain node device providing services to the third blockchain node device.
[0064] In one implementation, suppose the second blockchain node device is a carrier and the third blockchain node device is a client. After the carrier provides services to each client, each client submits 1 million tokens to the carrier. This means the second blockchain node device receives a virtual resource of 1 million tokens. The second blockchain node device then sends this virtual resource of 1 million tokens to the first blockchain node device.
[0065] Step S420: Send a virtual resource destruction request.
[0066] In one implementation, a first blockchain node device sends a virtual resource destruction request to a second blockchain node device. The virtual resource described in this embodiment of the present invention may be a token. A token is a digital value carrier and proof of stake. By integrating tokens with blockchains, authenticity and asset uniqueness can be verified through encryption algorithms and distributed ledgers, and circulation can be achieved through consensus algorithms.
[0067] Step S430: Receive a virtual resource response message.
[0068] In one implementation, a first blockchain node device receives a virtual resource destruction response message sent from a second blockchain node device, wherein the response message may include identity information of the second blockchain node device.
[0069] In one implementation, the first blockchain node device obtains the identity information in the virtual resource destruction response message, and the first blockchain node device verifies the identity of the second blockchain node device based on the identity information. If the verification passes, the first blockchain node device is triggered to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0070] In one implementation, the identity information of the second blockchain node device includes the credit value of the second blockchain node device. The first blockchain node device obtains the credit value of the second blockchain node device, and the first blockchain node device compares the credit value with a preset value. If the credit value is greater than or equal to the preset value, the first blockchain node device determines that the identity information verification of the second blockchain node device is passed, and then triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0071] Among them, the expression forms of the credit value and the preset value include but are not limited to percentages, positive integers, etc. It should be noted that there is a one-to-one correspondence between the expression forms of the credit value and the preset value, that is, when the expression form of the preset value is a percentage, the expression form of the credit value is also a percentage. For example, when the preset value is 80, if the first blockchain node device obtains the credit value of the second blockchain node device as 88, the first blockchain node device compares the credit value 88 with the preset value 80, and the first blockchain node device determines that the credit value 88 is greater than the preset value 80, then the first blockchain node device determines that the identity information verification of the second blockchain node device has passed, and then triggers the first blockchain node device to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device. If the first blockchain node device obtains a credit value of 75 for the second blockchain node device, the first blockchain node device compares the credit value 75 with a preset value 80, and the first blockchain node device determines that the credit value 75 is less than the preset value 80, then the first blockchain node device determines that the identity information verification of the second blockchain node device has failed, and the first blockchain node device does not execute the operation steps of transferring the digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0072] In one implementation, a first blockchain node device obtains a digital certificate of a second blockchain node device through a certificate authority (CA), and the first blockchain node device determines whether the digital certificate exists in a first preset database. If the first blockchain node device determines that the digital certificate exists in the first preset database, the first blockchain node device determines that the identity information of the second blockchain node device has been verified, and then triggers the first blockchain node device to transfer digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0073] In one implementation, after the first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, the method further includes: the first blockchain node device sends the virtual resource amount to each third blockchain node device, so that each third blockchain node device reaches a blockchain consensus on the virtual resource amount; the third blockchain node device verifies the existence of the virtual resource amount to determine whether the first blockchain node device can perform an operation to destroy the virtual resource; the first blockchain node device receives the verification results sent by each third blockchain node device; when the verification result shows that the number of successful verifications is greater than a preset number threshold, the first blockchain node device determines that the blockchain consensus is passed, and triggers the execution of the step of the first blockchain node device destroying the virtual resources indicated by the virtual resource amount. The preset number threshold can be expressed as a percentage or a positive integer.
[0074] Step S440: Determine to transfer virtual resources.
[0075] In one implementation, after the first blockchain node device successfully verifies the identity of the second blockchain node device and the blockchain consensus is passed, the first blockchain node device transfers the digital resources corresponding to the virtual resource quantity to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0076] Step S450: Transferring digital resources corresponding to the virtual resource amount.
[0077] Step S460: Notification message of successful resource transfer.
[0078] Step S470: Destroy the virtual resources indicated by the virtual resource amount.
[0079] It should be noted that, for details of steps S450 to S470 in the embodiment of the present invention, reference may be made to the execution process of steps S340 to S360 in the above embodiment, and will not be repeated in detail in the embodiment of the present invention.
[0080] By adopting the embodiment of the present invention, the exchange process between the virtual resources obtained by the second blockchain node device providing services to the third blockchain node device and the digital resources is applied in the blockchain network, which solves the transaction process in the prior art that requires going to an exchange for exchange, avoids the unfavorable factors caused by time, geography and human factors, and not only saves manpower and material resources, but also makes the exchange transaction process open and transparent, and the obtained digital resources will not be tampered with, thereby improving the credibility and accuracy of the digital resources.
[0081] See Figure 5 , Figure 5 is a structural diagram of a data processing device provided by an embodiment of the present invention, the data processing device is used to execute Figures 3 and 4 In the corresponding method embodiment, the steps performed by the first blockchain node device may include:
[0082] A determination module 510 is configured for a first blockchain node device to determine an amount of virtual resources generated by a second blockchain node device in the process of providing services to the first blockchain node device;
[0083] A transfer module 520 is configured to transfer, by the first blockchain node device, the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0084] The destruction module 530 is used for the first blockchain node device to destroy the virtual resources indicated by the virtual resource amount after receiving the resource transfer success notification message sent by the second blockchain node device.
[0085] In one implementation, the data processing device provided by the embodiment of the present invention further includes: an acquisition module 540 and a verification module 550 .
[0086] An acquisition module 540 is configured to obtain identity information of the second blockchain node device before the transfer module 520 transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0087] A verification module 550 is configured to verify the identity of the second blockchain node device based on the identity information;
[0088] If the verification passes, the transfer module 520 is triggered to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0089] In one implementation, the identity information includes a credit value of the second blockchain node device;
[0090] The verification module 550 verifies the identity of the second blockchain node device according to the identity information, including:
[0091] The first blockchain node device compares the credit value with a preset value;
[0092] If the credit value is greater than or equal to the preset value, the first blockchain node device determines that the verification is passed.
[0093] In one implementation, the verification module 550 verifies the identity of the second blockchain node device according to the identity information, including:
[0094] The first blockchain node device obtains the digital certificate of the second blockchain node device through a certificate authority;
[0095] The first blockchain node device determines whether the digital certificate exists in the first preset database;
[0096] If the first blockchain node device determines that the digital certificate exists in the first preset database, it is determined that the verification is successful.
[0097] In one implementation, the data processing device provided by the embodiment of the present invention further includes: a sending module 560 .
[0098] A sending module 560 is configured to, after the determining module 510 determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, send the virtual resource amount to each third blockchain node device, so that each of the third blockchain node devices reaches a blockchain consensus on the virtual resource amount;
[0099] When the blockchain consensus is passed, the step of triggering the execution of the destruction module 530 to destroy the virtual resources indicated by the virtual resource quantity is triggered.
[0100] In one implementation, the data processing device provided by the embodiment of the present invention further includes: a receiving module 570 .
[0101] A receiving module 570 is configured to receive a verification result sent by each third blockchain node device after the sending module 560 sends the virtual resource amount to each third blockchain node device;
[0102] When the verification result shows that the number of successful verifications is greater than a preset number threshold, the determination module 510 determines that the blockchain consensus is passed.
[0103] In one implementation, before the determination module 510 determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, it also includes:
[0104] The sending module 560 sends a virtual resource destruction request to the second blockchain node device;
[0105] If the receiving module 570 receives a virtual resource destruction response message sent by the second blockchain node device, the determination module 510 is triggered to determine the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device.
[0106] See Figure 6 , Figure 6This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, which is used to perform Figures 3 and 4 The steps performed by the first blockchain node device in the corresponding method embodiment are as follows: the electronic device includes: one or more processors 610; one or more input devices 620, one or more output devices 630, and a memory 640. The processors 610, input devices 620, output devices 630, and memory 640 are connected via a bus 650. The memory 620 is used to store a computer program, which includes program instructions. The processor 610, input device 620, and output device 630 are used to execute the program instructions stored in the memory 640 to perform the following operations:
[0107] The processor 610 determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device;
[0108] The processor 610 transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device;
[0109] After the input device 620 receives the resource transfer success notification message sent by the second blockchain node device, the processor 610 destroys the virtual resources indicated by the virtual resource amount.
[0110] In one implementation, before the processor 610 transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device, the processor 610 further includes:
[0111] The first blockchain node device obtains the identity information of the second blockchain node device;
[0112] The first blockchain node device verifies the identity of the second blockchain node device according to the identity information;
[0113] If the verification passes, the first blockchain node device is triggered to transfer the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device.
[0114] In one implementation, the identity information includes a credit value of the second blockchain node device;
[0115] The processor 610 verifies the identity of the second blockchain node device according to the identity information, including:
[0116] The first blockchain node device compares the credit value with a preset value;
[0117] If the credit value is greater than or equal to the preset value, the first blockchain node device determines that the verification is passed.
[0118] In one implementation, the processor 610 verifies the identity of the second blockchain node device according to the identity information, including:
[0119] The first blockchain node device obtains the digital certificate of the second blockchain node device through a certificate authority;
[0120] The first blockchain node device determines whether the digital certificate exists in the first preset database;
[0121] If the first blockchain node device determines that the digital certificate exists in the first preset database, it is determined that the verification is successful.
[0122] In one implementation, after the processor 610 determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, the processor 610 further includes:
[0123] The first blockchain node device sends the virtual resource amount to each third blockchain node device, so that each third blockchain node device performs blockchain consensus on the virtual resource amount;
[0124] When the blockchain consensus is passed, the step of triggering the first blockchain node device to destroy the virtual resources indicated by the virtual resource quantity is executed.
[0125] In one implementation, after the first blockchain node device sends the virtual resource amount to each third blockchain node device, the method further includes:
[0126] The input device 620 receives the verification results sent by each of the third blockchain node devices;
[0127] When the verification result shows that the number of successful verifications is greater than a preset number threshold, the processor 610 determines that the blockchain consensus is passed.
[0128] In one implementation, before the processor 610 determines the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device, the processor 610 further includes:
[0129] The output device 630 sends a virtual resource destruction request to the second blockchain node device;
[0130] If the input device 620 receives a virtual resource destruction response message sent by the second blockchain node device, the processor 610 is triggered to determine the amount of virtual resources generated by the second blockchain node device in the process of providing services to the first blockchain node device.
[0131] A computer-readable storage medium is further provided in an embodiment of the present invention. The computer-readable storage medium stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the steps performed in the above embodiment can be executed.
[0132] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0133] The above disclosure is only part of the embodiments of the present invention, which certainly cannot be used to limit the scope of the rights of the present invention. Ordinary technicians in this field can understand that implementing all or part of the processes of the above embodiments and making equivalent changes in accordance with the claims of the present invention still fall within the scope of the invention.
Claims
1. A data processing method, characterized in that: The method comprises: The first blockchain node device determines the amount of virtual resources generated in the process of providing services by the second blockchain node device; wherein the amount of virtual resources refers to: in the process of the second blockchain node device providing services to the first blockchain node device, the amount of virtual resources is identified by the first blockchain node device from the service results generated in the process of the second blockchain node device providing services to the first blockchain node device; or, the amount of virtual resources refers to: the amount of virtual resources generated by the second blockchain node device after providing services to other node devices reported to the first blockchain node device; the first blockchain node device is periodically elected according to a formula algorithm, and the first blockchain node devices elected in different periods are the same or different; The first blockchain node device sends a virtual resource destruction request to the second blockchain node device; The first blockchain node device receives a virtual resource destruction response message sent by the second blockchain node device, where the virtual resource destruction response message includes identity information of the second blockchain node device; The first blockchain node device obtains the identity information in the virtual resource destruction response message, and verifies the identity of the second blockchain node device according to the identity information; If the verification passes, the first blockchain node device transfers the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device through the user account of the first blockchain node device; the exchange ratio between the virtual resource amount and the digital resource is: sent by the second blockchain node device to the first blockchain node device, or obtained by the first blockchain node device according to a preset exchange ratio; After receiving the resource transfer success notification message sent by the second blockchain node device, the first blockchain node device destroys the virtual resources indicated by the virtual resource amount.
2. The method according to claim 1, characterized in that The identity information includes the credit value of the second blockchain node device; The first blockchain node device verifying the identity of the second blockchain node device according to the credit value includes: The first blockchain node device compares the credit value with a preset value; If the credit value is greater than or equal to the preset value, the first blockchain node device determines that the verification is passed.
3. The method according to claim 1, characterized in that The verifying the identity of the second blockchain node device according to the identity information includes: The first blockchain node device obtains the digital certificate of the second blockchain node device through a certificate authority; The first blockchain node device determines whether the digital certificate exists in a first preset database; If the first blockchain node device determines that the digital certificate exists in the first preset database, it is determined that the verification is successful.
4. The method according to claim 1, wherein After the first blockchain node device determines the amount of virtual resources generated by the second blockchain node device in the process of providing services, the method further includes: The first blockchain node device sends the virtual resource amount to each third blockchain node device, so that each third blockchain node device performs blockchain consensus on the virtual resource amount; When the blockchain consensus is passed, the step of triggering the first blockchain node device to destroy the virtual resources indicated by the virtual resource quantity is executed.
5. The method according to claim 4, characterized in that After the first blockchain node device sends the virtual resource amount to each third blockchain node device, the method further includes: The first blockchain node device receives the verification results sent by each of the third blockchain node devices; When the verification result shows that the number of successful verifications is greater than a preset number threshold, the first blockchain node device determines that the blockchain consensus is passed.
6. A data processing device, characterized in that: include: A determination module is configured to determine, by a first blockchain node device, the amount of virtual resources generated during the process of providing services by a second blockchain node device; wherein the amount of virtual resources refers to: the amount of virtual resources identified by the first blockchain node device from the service results generated during the process of the second blockchain node device providing services to the first blockchain node device; or, the amount of virtual resources refers to: the amount of virtual resources generated after the second blockchain node device provides services to other node devices and reported to the first blockchain node device; the first blockchain node device is periodically elected according to a formula algorithm, and the first blockchain node devices elected in different periods may be the same or different; The determining module is further configured to send a virtual resource destruction request from the first blockchain node device to the second blockchain node device; The determining module is further configured to receive, by the first blockchain node device, a virtual resource destruction response message sent by the second blockchain node device, wherein the virtual resource destruction response message includes identity information of the second blockchain node device; The determining module is further configured to cause the first blockchain node device to obtain identity information in the virtual resource destruction response message, and to verify the identity of the second blockchain node device based on the identity information; a transfer module configured to transfer, if the verification passes, the digital resources corresponding to the virtual resource amount to the management account of the second blockchain node device via the user account of the first blockchain node device; the exchange ratio between the virtual resource amount and the digital resource is: sent by the second blockchain node device to the first blockchain node device, or obtained by the first blockchain node device according to a preset exchange ratio; A destruction module is used for the first blockchain node device to destroy the virtual resources indicated by the virtual resource amount after receiving the resource transfer success notification message sent by the second blockchain node device.
7. An electronic device, characterized in that: The system comprises a memory and a processor, wherein the memory stores a set of program codes, and the processor calls the program codes stored in the memory to perform any one of the operations according to claims 1 to 5.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
A method and apparatus for awarding a work publisher based on a block chain
CN109255600A
Asset exchange method and system based on block chain, terminal and storage medium
CN109767212A
Construction enterprise supplier payment management system and method based on blockchain
CN111062703A