Nothing Special   »   [go: up one dir, main page]

CN111553672A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111553672A
CN111553672A CN202010371136.9A CN202010371136A CN111553672A CN 111553672 A CN111553672 A CN 111553672A CN 202010371136 A CN202010371136 A CN 202010371136A CN 111553672 A CN111553672 A CN 111553672A
Authority
CN
China
Prior art keywords
block
point device
link point
block chain
virtual resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010371136.9A
Other languages
Chinese (zh)
Inventor
李茂材
周开班
王宗友
刘攀
张劲松
朱耿良
孔利
时一防
黄焕坤
廖志勇
刘区城
杨常青
蓝虎
崔嘉辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010371136.9A priority Critical patent/CN111553672A/en
Publication of CN111553672A publication Critical patent/CN111553672A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a data processing method and device, electronic equipment and a storage medium. The data processing method specifically comprises the following steps: the method comprises the steps that a first block link point device determines the virtual resource amount generated by a second block link point device in the process of providing service for the first block link point device; the first block chain link point device transfers digital resources corresponding to the virtual resource amount to a management account of the second block chain link point device through a user account of the first block chain link point device; and after receiving the resource transfer success notification message sent by the second block chain node device, the first block chain node device destroys the virtual resources indicated by the virtual resource amount. By implementing the embodiment of the invention, the transaction process of the virtual resource and the digital resource between the first block chain link point device and the second block chain link point device is carried out on the block chain, so that the transaction process is transparent, and the public credibility and the accuracy of the virtual resource and the digital resource in the transaction process are ensured.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
The block chain technology is one of the most important network application technologies in the internet era, the most important application of the block chain is that value directly circulates on the internet, a service management party links the assets through token-based data of physical or virtual assets, and block chain node equipment can directly conduct asset transaction and transfer through the block chain technology.
In a traditional asset transaction mode, a business management party exchanges virtual currency into legal currency and needs to go to an exchange, and the existence of the exchange causes that a transaction process is not disclosed enough, so that the openness and the safety of the transaction process between the business management party and a block link node device are problems to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a storage medium, and aims to improve the public confidence and accuracy of digital resources.
The embodiment of the invention provides a data processing method, which comprises the following steps:
the method comprises the steps that a first block link point device determines the virtual resource amount generated by a second block link point device in the process of providing service for the first block link point device;
the first block chain node point device transfers the digital resource corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device;
and after receiving the resource transfer success notification message sent by the second block node device, the first block node device destroys the virtual resources indicated by the virtual resource amount.
The embodiment of the invention provides a data processing device which has the function of realizing the data processing method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes:
the determining module is used for the first block link point equipment to determine the virtual resource amount generated by the second block link point equipment in the process of providing service for the first block link point equipment;
a transfer module, configured to transfer, by the first block link point device, the digital resource corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device;
and the destruction module is used for performing destruction operation on the virtual resource indicated by the virtual resource amount after the first block chain node device receives the resource transfer success notification message sent by the second block chain node device.
The embodiment of the invention provides an electronic device, which comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected with each other, the memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions for executing the operation related to the data processing method.
An embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions for a terminal device, which includes a program for executing the data processing method.
By implementing the embodiment of the invention, the transaction process of the virtual resource and the digital resource between the first block chain link point device and the second block chain link point device is carried out on the block chain, so that the transaction process is transparent, and the public credibility and the accuracy of the virtual resource and the digital resource in the transaction process are ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a block chain according to an embodiment of the present invention;
FIG. 2 is a block diagram of a data processing system according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the current era of rapid development of internet technology, the blockchain technology is one of the most important network application technologies in the internet era, the most important application of the blockchain is that value is directly circulated on the internet, through token-based data of physical or virtual assets, a service manager links the assets up, and blockchain link point equipment can directly perform asset transaction and transfer through the blockchain technology. Token is a digital value carrier and a certificate of interest.
In a traditional asset transaction mode, a business management party exchanges virtual currency into legal currency and needs to go to an exchange, and the existence of the exchange causes that a transaction process is not disclosed enough, so that the openness and the safety of the transaction process between the business management party and a block link node device are problems to be solved at present.
Based on this, the embodiment of the invention introduces the block chain technology into a business system which is applied to a business management party to convert virtual currency into digital currency, and provides a data processing method. The data processing method specifically comprises the following steps:
the method comprises the steps that a first block link point device determines the virtual resource amount generated by a second block link point device in the process of providing service for the first block link point device;
the first block chain node point device transfers the digital resource corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device;
and after receiving the resource transfer success notification message sent by the second block node device, the first block node device destroys the virtual resources indicated by the virtual resource amount.
The Block Chain (Block Chain) is a Chain data structure which combines data blocks in a sequential connection mode according to a time sequence and is a distributed book which is cryptographically used for ensuring that the data cannot be tampered and forged. Multiple independent distributed nodes (i.e., first block link point devices) maintain the same record. The blockchain technology realizes decentralization and becomes a foundation for credible digital asset storage, transfer and transaction.
Taking the block chain structure diagram shown in fig. 1 as an example, when new data needs to be written into the block chain, the data is collected into a block (block) and added to the end of the existing block chain, and the newly added block of each node is ensured to be identical through a consensus algorithm. A plurality of transaction records are recorded in each block, and the transaction records also comprise the hash (hash) value of the previous block, and all blocks store the hash value of the previous block in the way and are connected in sequence to form a block chain. The hash value of the previous block is stored in the block head of the next block in the block chain, and when the transaction data in the previous block changes, the hash value of the current block changes, so that the transaction data uploaded to the block chain network is difficult to tamper. The transaction of currency conversion on the blockchain realizes the public transparency of the transaction process and improves the reliability of transaction data.
In order to better understand a data processing method and related devices disclosed in the embodiments of the present invention, a block chain system to which the embodiments of the present invention are applicable is first described below.
Referring to fig. 2, fig. 2 is a block chain network architecture according to an embodiment of the present invention. As shown in fig. 2, the blockchain network includes at least a first blockchain link point device 210, a second blockchain link point device 220, and a third blockchain node device 230. Wherein the first blockchain node device 210 is any blockchain node device in the blockchain network. The second block link point device 220 may be a node device in a block chain network, and the second block link point device 220 may also be any device that does not belong to the block chain network, which is not limited herein. The third block chain node device is any block chain node device in the block chain network except the first block link point device 210 and the second block link point device 220.
The first block link point device 210 is a block link point device selected by all block link point devices in the block chain network according to a consensus algorithm, where the consensus algorithm includes, but is not limited to, a workload Proof (Proof of Work, PoW) algorithm, a Proof of rights of interest (PoS) algorithm, a granted Proof of rights of interest (DPoS) algorithm, a Practical Byzantine Fault Tolerance (PBFT) algorithm, and the like. The second and third blockchain node devices 220, 230 are other blockchain node devices in the blockchain network that exclude the first blockchain node device 210. The first block link point device 210 may be obtained by periodic election through a consensus algorithm, and the first block link point devices obtained by periodic election in different periods may be the same or different. It should be noted that the block chain network shown in the embodiment of the present invention is composed of three block chain node devices, namely, a first block chain node device 210, a second block chain node device 220, and a third block chain node device 230, which are only used for illustration and do not constitute a limitation to the embodiment of the present invention. For example, in another example, a blockchain network may consist of five blockchain node devices, one first blockchain node device 210, two second blockchain node devices 220, and three third blockchain node devices 230.
In one implementation, taking the service manager running in the second block-link point device 220 as an example, the second block-link point device 220 provides the service to the first block-link point device 210, assuming that the service has a value of 100 ten thousand renminbi, where the preset exchange ratio is 1:1, the second block-link point device 220 may provide 100 ten thousand tokens to the first block-link point device 210, and the first block-link point device 210 determines that the amount of virtual resources generated by the second block-link point device 220 in the process of providing the service to the first block-link point device 210 is 100 ten thousand. The first block link point device 210 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block link point device 220 through the user account of the first block link point device 210, and after the first block link point device 210 receives the resource transfer success notification message sent by the second block link point device 220, the first block link point device 210 destroys the virtual resource indicated by the virtual resource amount.
In one implementation, the second block-link point device 220 sends the virtual currency amount obtained through the service to the first block-link point device 210 closest to the second block-link point device 220, the first block-link point device 210 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block-link point device 220 through the user account of the first block-link point device 210, and the first block-link point device 210 destroys the virtual resource indicated by the virtual resource amount after receiving the resource transfer success notification message sent by the second block-link point device 220.
In one implementation, the second block-link point device 220 sends the virtual currency amount obtained by the service to the first block-link point device 210 with the best communication quality with the second block-link point device 220, the first block-link point device 210 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block-link point device 220 through the user account of the first block-link point device 210, and the first block-link point device 210 destroys the virtual resource indicated by the virtual resource amount after receiving the resource transfer success notification message sent by the second block-link point device 220.
It should be understood that the block chain system described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not constitute a limitation to the technical solution provided in the embodiment of the present invention, and as a person having ordinary skill in the art knows that along with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
Referring to fig. 3 based on the block chain system structure diagram shown in fig. 2, fig. 3 is a flow diagram of a data processing method disclosed in the embodiment of the present invention, the method includes but is not limited to the following steps S310 to S360:
step S310: and sending a virtual resource destroying request.
In an implementation manner, a first block chain node device sends a virtual resource destruction request to a second block chain node device, where the virtual resource described in the embodiment of the present invention may be token. Wherein, Token is a digital value carrier and is a right certificate. The token is combined and applied to the block chain, so that the authenticity and the uniqueness of the assets can be determined through an encryption algorithm and a distributed account book, and circulation is performed through a consensus algorithm.
Step S320: and receiving a virtual resource destruction response message sent by the second block chain node device.
Step S330: a first block-link point device determines an amount of virtual resources generated by a second block-link point device in servicing the first block-link point device.
In one implementation, the virtual resource amount determined by the first block link point device may be determined by the first block link point device itself, or may be reported to the first block link point device by the second block link point device. The invention does not limit the concrete source of the virtual resource amount, as long as the source is reasonable.
In one implementation manner, after the second block link point device serves other node devices, the virtual resource amount of 100w tokens is obtained, the second block link point device reports the virtual resource amount of the 100w tokens obtained through the serving to the first block link point device, and after the first block link point device receives the virtual resource amount of 100w tokens reported from the second block link point device, the first block link point device determines that the virtual resource amount generated in the process of providing the service by the second block link point device is 100w tokens.
In one implementation, the second block link point device directly performs a service to the first block link point device, and the first block link point device may directly obtain the amount of virtual resources generated by the second block link point device from the service process. For example, the second block link point device directly services the first block link point device, a service result is generated in the service process, and the first block link point device identifies the virtual resource according to the keyword identification algorithm.
Step S340: and transferring the digital resources corresponding to the virtual resource amount.
During specific implementation, the first block link point device transfers the digital resources corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device. The digital resource can be legal currency, RMB, etc.
In one implementation, the correspondence between the amount of virtual resources and the digital resources may be a linear relationship. For example, the redemption ratio between the amount of virtual resources and the digital resources is 1: 1. For example, if the virtual resource amount is 100w tokens, the first block link point device transfers the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device, where the digital resource is 100w rmb. It should be noted that the exchange ratio between the virtual resource amount and the digital resource may be notified to the first block link point device by the second block link point device, or may be obtained by the first block link point device according to a preset exchange ratio, which is not limited in the present invention.
In one implementation, before the first block link point device transfers the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device, the method further includes: the method comprises the steps that a first block chain node point device obtains identity information of a second block chain node point device, the first block chain node point device verifies the identity of the second block chain node point device according to the identity information, and if the verification is passed, the first block chain node point device is triggered to transfer digital resources corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device.
In one implementation manner, the identity information of the second block link point device includes a credit value of the second block link point device, the first block link point device acquires the credit value of the second block link point device, the first block link point device compares the credit value with a preset numerical value, and if the credit value is greater than or equal to the preset numerical value, the first block link point device determines that the identity information of the second block link point device passes verification, and triggers the first block link point device to transfer the digital resource corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device.
The expression form of the credit value and the preset value includes, but is not limited to, percentage, positive integer, etc. It should be noted that there is a one-to-one correspondence between the credit value and the expression form of the preset value, that is, when the expression form of the preset value is a percentage, the expression form of the credit value is the percentage form. For example, when the preset value is 80%, if the first block link point device obtains a credit value of 90% of the second block link point device, the first block link point device compares the credit value of 90% with the preset value of 80%, and the first block link point device determines that the credit value of 90% is greater than the preset value of 80%, the first block link point device determines that the identity information of the second block link point device passes the verification, and then the first block link point device is triggered to transfer the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device. If the credit value of the second block link point device obtained by the first block link point device is 70%, the first block link point device compares the credit value of 70% with a preset value of 80%, and the first block link point device judges that the credit value of 70% is less than the preset value of 80%, the first block link point device determines that the identity information check of the second block link point device is not passed, and the first block link point device does not execute the operation step of transferring the digital resources corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device.
In one implementation, a first block link point device obtains a digital certificate of a second block link point device through a Certificate Authority (CA), the first block link point device determines whether the digital certificate exists in a first preset database, and if the first block link point device determines that the digital certificate exists in the first preset database, the first block link point device determines that the identity information of the second block link point device passes verification, and then triggers the first block link point device to transfer digital resources corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device.
For example, the first block link point device obtains the digital certificate of the second block link point device through a CA mechanism, when the second block link point device is the Chongqing post and telecommunications university, the first block link point device obtains a official seal and a keyword in the digital certificate of the Chongqing post and telecommunications university through the image recognition algorithm and the keyword recognition algorithm, and when the keyword is the Chongqing post and telecommunications university, the first block link point device determines that the Chongqing post and telecommunications university and the official seal exist in the first preset database, and then the first block link point device determines that the identity information of the Chongqing post and telecommunications university passes the verification, and then the first block link point device is triggered to transfer the virtual resource amount corresponding to the management account of the second block link point device through the user account of the first block link point device The digital resource of (1).
In one implementation, after the first block-link point device determines an amount of virtual resources generated by the second block-link point device in the process of providing service to the first block-link point device, the method further includes: the first block chain node device sends the virtual resource amount to each third block chain node device, so that each third block chain node device performs block chain consensus on the virtual resource amount, the third block chain node devices check the existence form of the virtual resource amount to determine whether the first block chain node device can perform the operation of destroying the virtual resource, the first block chain node device receives the check result sent by each third block chain node device, and when the check result is that the number successfully checked is larger than a preset number threshold value, the first block chain node device determines that the block chain consensus passes through, and then the step of executing the operation of destroying the virtual resource indicated by the virtual resource amount by the first block chain node device is triggered. The expression form of the preset number threshold may be a percentage or a positive integer.
For example, assuming that the preset number threshold is 7, the number of the third block link node devices is 10, if the number of the third block link node devices whose verification results are received by the first block link point device is 8, the first block link point device compares the number 8 of successful verifications with the preset number threshold 7, and if the number 8 of the third block link node devices whose verification results are successful is greater than the preset number threshold 7, the first block link point device determines that the block chains pass the common identification, and then the step of executing the destruction operation of the first block link point device on the virtual resources indicated by the virtual resource amount is triggered. If the number of the third block chain node devices successfully verified is 6 as a result of the first block chain node device receiving verification, the first block chain node device compares the successfully verified number 6 with a preset number threshold 7, and the number of the third block chain node devices successfully verified 6 is smaller than the preset number threshold 7, the first block chain node device determines that the block chain consensus fails, and the step of destroying the virtual resource indicated by the virtual resource amount by the first block chain node device is not executed.
Step S350: and receiving a notification message of successful virtual resource transfer.
Step S360: and destroying the virtual resources indicated by the virtual resource amount.
In specific implementation, after the first block node device receives the resource transfer success notification message sent by the second block node device, the first block node device destroys the virtual resource indicated by the virtual resource amount.
By adopting the embodiment of the invention, the conversion process between the virtual resources and the digital resources, which is obtained by the service of the second block chain node equipment, is applied to the block chain network, so that the problem that the exchange is required to be carried out in the prior art is solved, adverse factors caused by time, region and human factors are avoided, manpower and material resources are saved, the conversion transaction process is also transparent, the obtained digital resources cannot be tampered, and the credibility and the accuracy of the digital resources are improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of another data processing method disclosed in the embodiment of the present invention, which includes, but is not limited to, the following steps S410 to S470:
step S410: an amount of virtual resources is received.
In particular, the first bs peer device receives the amount of virtual resources sent from the second bs peer device. The virtual resource amount is a virtual resource amount obtained by the second block link node device serving the third block link node device.
In one implementation, if the second block link node device is an operator, the third block link node device is a client. After the operator serves each client, each client submits to 100w tokens to the operator, that is, the second block link point device obtains the virtual resource amount of 100w tokens. At this time, the second block link point device sends the virtual resource amount of the 100w tokens to the first block link point device.
Step S420: and sending a virtual resource quantity destroying request.
In an implementation manner, a first block chain node device sends a virtual resource destruction request to a second block chain node device, where the virtual resource described in the embodiment of the present invention may be token. Wherein, Token is a digital value carrier and is a right certificate. The token is combined and applied to the block chain, so that the authenticity and the uniqueness of the assets can be determined through an encryption algorithm and a distributed account book, and circulation is performed through a consensus algorithm.
Step S430: a virtual resource response message is received.
In one implementation, a first block-node device receives a virtual resource destruction response message sent from a second block-node device. Wherein the response message may include identity information of the second block-node device.
In one implementation manner, the first block link point device acquires the identity information in the virtual resource destruction response message, verifies the identity of the second block link point device according to the identity information, and if the verification passes, triggers the first block link point device to transfer the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device.
In one implementation manner, the identity information of the second block link point device includes a credit value of the second block link point device, the first block link point device acquires the credit value of the second block link point device, the first block link point device compares the credit value with a preset numerical value, and if the credit value is greater than or equal to the preset numerical value, the first block link point device determines that the identity information of the second block link point device passes verification, and triggers the first block link point device to transfer the digital resource corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device.
The expression form of the credit value and the preset value includes, but is not limited to, percentage, positive integer, etc. It should be noted that there is a one-to-one correspondence between the credit value and the expression form of the preset value, that is, when the expression form of the preset value is a percentage, the expression form of the credit value is the percentage form. For example, when the preset value is 80, if the first block link point device obtains the credit of the second block link point device as 88, the first block link point device compares the credit 88 with the preset value 80, and the first block link point device determines that the credit 88 is greater than the preset value 80, the first block link point device determines that the identity information of the second block link point device passes the verification, and then the first block link point device is triggered to transfer the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device. If the credit value of the second block link point device obtained by the first block link point device is 75, the first block link point device compares the credit value 75 with a preset value 80, and the first block link point device determines that the credit value 75 is smaller than the preset value 80, the first block link point device determines that the identity information verification of the second block link point device is not passed, and the first block link point device does not execute the operation step of transferring the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device.
In one implementation, a first block link point device obtains a digital certificate of a second block link point device through a Certificate Authority (CA), the first block link point device determines whether the digital certificate exists in a first preset database, and if the first block link point device determines that the digital certificate exists in the first preset database, the first block link point device determines that the identity information of the second block link point device passes verification, and then triggers the first block link point device to transfer digital resources corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device.
In one implementation, after the first block-link point device determines an amount of virtual resources generated by the second block-link point device in the process of providing service to the first block-link point device, the method further includes: the first block chain node device sends the virtual resource amount to each third block chain node device, so that each third block chain node device performs block chain consensus on the virtual resource amount, the third block chain node devices check the existence form of the virtual resource amount to determine whether the first block chain node device can perform the operation of destroying the virtual resource, the first block chain node device receives the check result sent by each third block chain node device, and when the check result is that the number successfully checked is larger than a preset number threshold value, the first block chain node device determines that the block chain consensus passes through, and then the step of executing the operation of destroying the virtual resource indicated by the virtual resource amount by the first block chain node device is triggered. The expression form of the preset number threshold may be a percentage or a positive integer.
Step S440: determining to transfer the virtual resource.
In one implementation, after the first block link point device successfully verifies the identity of the second block link point device and the block chain common identification passes, the first block link point device transfers the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device.
Step S450: and transferring the digital resources corresponding to the virtual resource amount.
Step S460: a resource transfer success notification message.
Step S470: and destroying the virtual resources indicated by the virtual resource amount.
It should be noted that steps S450 to S470 in the embodiment of the present invention may specifically refer to the execution processes of steps S340 to S360 in the above embodiment, and are not described again in the embodiment of the present invention.
By adopting the embodiment of the invention, the exchange process between the virtual resource and the digital resource, which is obtained by the service of the second block chain node device to the third block chain node device, is applied to the block chain network, so that the transaction process of exchanging the transaction in the prior art which needs to be carried out by the exchange is solved, the adverse factors caused by time, region and people are avoided, the manpower and material resources are saved, the exchange transaction process is also transparent, the obtained digital resource cannot be tampered, and the credibility and the accuracy of the digital resource are improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention, the data processing apparatus is configured to perform the steps performed by the first block link point device in the method embodiments corresponding to fig. 3 to fig. 4, and the data processing apparatus may include:
a determining module 510, configured to determine, by a first block link point device, an amount of virtual resources generated by a second block link point device in a process of providing a service to the first block link point device;
a transferring module 520, configured to transfer, by the first block-link point device, the digital resource corresponding to the virtual resource amount to a management account of the second block-link point device through a user account of the first block-link point device;
a destroying module 530, configured to perform a destroying operation on the virtual resource indicated by the virtual resource amount after the first block node device receives the resource transfer success notification message sent by the second block node device.
In one implementation manner, the data processing apparatus provided in the embodiment of the present invention further includes: an acquisition module 540 and a verification module 550.
An obtaining module 540, configured to obtain identity information of the second block-node device before the transferring module 520 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block-node device through the user account of the first block-node device;
the verification module 550 is configured to verify the identity of the second block link point device according to the identity information;
if the verification is passed, the transfer module 520 is triggered to transfer the digital resource corresponding to the virtual resource amount to the management account of the second block link point device through the user account of the first block link point device.
In one implementation, the identity information includes a credit value for the second block-node device;
the verifying module 550, according to the identity information, verifies the identity of the second block link point device by:
the first block link point device compares the credit value with a preset value;
and if the credit value is greater than or equal to the preset value, the first block link point equipment determines that the verification is passed.
In one implementation, the verifying module 550, according to the identity information, verifies the identity of the second block link point device by:
the first block chain link point device acquires a digital certificate of the second block chain link point device through a certificate authority;
the first block chain link point device judges whether the digital certificate exists in a first preset database or not;
and if the first block chain link point device judges that the digital certificate exists in the first preset database, determining that the verification is passed.
In one implementation manner, the data processing apparatus provided in the embodiment of the present invention further includes: a sending module 560.
A sending module 560, configured to send, after the determining module 510 determines the virtual resource amount generated by the second block link point device in the process of providing service to the first block link point device, the virtual resource amount to each third block link node device, so that each third block link node device performs block link consensus on the virtual resource amount;
and after the block chains pass the consensus, triggering and executing the step of destroying the virtual resource indicated by the virtual resource amount by the destroying module 530.
In one implementation manner, the data processing apparatus provided in the embodiment of the present invention further includes: a receiving module 570.
A receiving module 570, configured to receive, after the sending module 560 sends the virtual resource amount to each third block chain node device, a check result sent by each third block chain node device;
when the verification result is that the number of successful verification is greater than the preset number threshold, the determining module 510 determines that the blockchain consensus passes.
In one implementation, the determining module 510 further determines, before the amount of virtual resources generated by the second block-node device in the process of providing service to the first block-node device, an amount of virtual resources generated by the second block-node device in the process of providing service to the first block-node device:
the sending module 560 sends a virtual resource destruction request to the second block link node device;
if the receiving module 570 receives the virtual resource destruction response message sent by the second block node device, the trigger determining module 510 determines the amount of virtual resources generated by the second block node device in the process of providing services to the first block node device.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, the electronic device is configured to perform the steps performed by the first block link point device in the method embodiments corresponding to fig. 3 to fig. 4, and the electronic device includes: one or more processors 610; one or more input devices 620, one or more output devices 630, and memory 640. The processor 610, input device 620, output device 630, and memory 640 are connected by a bus 650. The memory 620 is used to store a computer program comprising program instructions, and the processor 610, the input device 620, and the output device 630 are used to execute the program instructions stored in the memory 640 to perform the following operations:
processor 610 determines an amount of virtual resources generated by a second block-linked point device in servicing the first block-linked point device;
the processor 610 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block chain node device through the user account of the first block chain node device;
after the input device 620 receives the notification message of successful resource transfer sent by the second blockchain node device, the processor 610 performs a destroy operation on the virtual resource indicated by the virtual resource amount.
In one implementation, before the processor 610 transfers the digital resource corresponding to the virtual resource amount to the management account of the second block-node device through the user account of the first block-node device, the method further includes:
the first block chain node point equipment acquires the identity information of the second block chain node point equipment;
the first block chain node point equipment verifies the identity of the second block chain node point equipment according to the identity information;
and if the verification is passed, triggering the first block chain node point device to transfer the digital resources corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device.
In one implementation, the identity information includes a credit value for the second block-node device;
the processor 610 verifying the identity of the second block link point device according to the identity information includes:
the first block link point device compares the credit value with a preset value;
and if the credit value is greater than or equal to the preset value, the first block link point equipment determines that the verification is passed.
In one implementation, the processor 610 verifying the identity of the second block link point device according to the identity information includes:
the first block chain link point device acquires a digital certificate of the second block chain link point device through a certificate authority;
the first block chain link point device judges whether the digital certificate exists in a first preset database or not;
and if the first block chain link point device judges that the digital certificate exists in the first preset database, determining that the verification is passed.
In one implementation, after the processor 610 determines the amount of virtual resources generated by the second block-node device in servicing the first block-node device, it further includes:
the first block link node device sends the virtual resource amount to each third block link node device, so that each third block link node device performs block link consensus on the virtual resource amount;
and triggering and executing the step that the first block chain node equipment destroys the virtual resource indicated by the virtual resource amount after the block chain consensus passes.
In one implementation, after the first block link node device sends the virtual resource amount to each third block link node device, the method further includes:
the input device 620 receives the check result sent by each third blockchain node device;
when the checking result is that the number of successful checking is greater than a preset number threshold, the processor 610 determines that the blockchain consensus passes.
In one implementation, the processor 610, before determining the amount of virtual resources generated by the second block-node device in servicing the first block-node device, further comprises:
the output device 630 sends a virtual resource destruction request to the second block link node device;
if the input device 620 receives a virtual resource destruction response message sent by the second block-node device, the trigger processor 610 determines the amount of virtual resources generated by the second block-node device in the process of providing services to the first block-node device.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the steps performed in the foregoing embodiments may be performed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
the method comprises the steps that a first block link point device determines the virtual resource amount generated by a second block link point device in the process of providing service for the first block link point device;
the first block chain node point device transfers the digital resource corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device;
and after receiving the resource transfer success notification message sent by the second block node device, the first block node device destroys the virtual resources indicated by the virtual resource amount.
2. The method of claim 1, wherein prior to the first block-node device transferring the digital resource corresponding to the virtual resource amount to the management account of the second block-node device via the user account of the first block-node device, further comprising:
the first block link point device acquires identity information of the second block link point device;
the first block chain node point equipment verifies the identity of the second block chain node point equipment according to the identity information;
and if the verification is passed, triggering the first block chain node point device to transfer the digital resources corresponding to the virtual resource amount to a management account of the second block chain node point device through a user account of the first block chain node point device.
3. The method of claim 2, wherein the identity information comprises a credit value of the second block-node device;
the first block link point device verifying the identity of the second block link point device according to the credit value comprises:
the first block link point device compares the credit value with a preset value;
and if the credit value is greater than or equal to the preset value, the first block link point equipment determines that the verification is passed.
4. The method of claim 2, wherein the first block-node device verifying the identity of the second block-node device from the identity information comprises:
the first block link point device acquires a digital certificate of the second block link point device through a certificate authority;
the first block chain node equipment judges whether the digital certificate exists in a first preset database or not;
and if the first block chain link point device judges that the digital certificate exists in a first preset database, determining that the verification is passed.
5. The method of claim 1, wherein after the first block-node device determines an amount of virtual resources generated by the second block-node device in servicing the first block-node device, further comprising:
the first block link node device sends the virtual resource amount to each third block link node device, so that each third block link node device performs block link consensus on the virtual resource amount;
and triggering and executing the step that the first block chain node equipment destroys the virtual resource indicated by the virtual resource amount after the block chain consensus passes.
6. The method of claim 5, wherein after the first block-chain node device sends the amount of virtual resources to each third block-chain node device, further comprising:
the first block chain node device receives the check result sent by each third block chain node device;
and when the verification result is that the number of successful verification is larger than a preset number threshold, the first block chain link point device determines that the block chain consensus passes.
7. The method of claim 1, wherein prior to the first block-node device determining an amount of virtual resources generated by the second block-node device in servicing the first block-node device, further comprising:
the first block chain node point device sends a virtual resource destruction request to the second block chain node point device;
if the first block chain node point device receives a virtual resource destruction response message sent by the second block chain node point device, triggering the first block chain node point device to determine the virtual resource amount generated by the second block chain node point device in the process of providing service for the first block chain node point device.
8. A data processing apparatus, comprising:
the determining module is used for the first block link point equipment to determine the virtual resource amount generated by the second block link point equipment in the process of providing service for the first block link point equipment;
a transfer module, configured to transfer, by the first block link point device, the digital resource corresponding to the virtual resource amount to a management account of the second block link point device through a user account of the first block link point device;
and the destruction module is used for performing destruction operation on the virtual resource indicated by the virtual resource amount after the first block chain node device receives the resource transfer success notification message sent by the second block chain node device.
9. An electronic device, comprising 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 execute any one of operations 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
CN202010371136.9A 2020-04-29 2020-04-29 Data processing method and device, electronic equipment and storage medium Pending CN111553672A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010371136.9A CN111553672A (en) 2020-04-29 2020-04-29 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010371136.9A CN111553672A (en) 2020-04-29 2020-04-29 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111553672A true CN111553672A (en) 2020-08-18

Family

ID=72007862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010371136.9A Pending CN111553672A (en) 2020-04-29 2020-04-29 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111553672A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458582A (en) * 2019-01-29 2019-11-15 深圳市智税链科技有限公司 Method for processing business, device, medium and electronic equipment based on block catenary system
CN112101919A (en) * 2020-09-16 2020-12-18 财付通支付科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113191754A (en) * 2021-04-26 2021-07-30 飞呗科技有限公司 Game equipment transaction method, device, equipment and system based on block chain

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458582A (en) * 2019-01-29 2019-11-15 深圳市智税链科技有限公司 Method for processing business, device, medium and electronic equipment based on block catenary system
CN110458582B (en) * 2019-01-29 2023-12-12 深圳市智税链科技有限公司 Business processing method, device, medium and electronic equipment based on block chain system
US11895104B2 (en) 2019-01-29 2024-02-06 Tencent Technology (Shenzhen) Company Limited Service processing method and apparatus based on blockchain system, medium and electronic device
CN112101919A (en) * 2020-09-16 2020-12-18 财付通支付科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112101919B (en) * 2020-09-16 2024-04-12 财付通支付科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113191754A (en) * 2021-04-26 2021-07-30 飞呗科技有限公司 Game equipment transaction method, device, equipment and system based on block chain

Similar Documents

Publication Publication Date Title
CN111464518B (en) Method and device for sending and verifying cross-link communication data
CN111383021B (en) Node management method, device, equipment and medium based on block chain network
CN111523890B (en) Block chain-based data processing method, device, storage medium and equipment
CN111553672A (en) Data processing method and device, electronic equipment and storage medium
CN111949531B (en) Block chain network testing method, device, medium and electronic equipment
CN111224782B (en) Data verification method based on digital signature, intelligent device and storage medium
CN111899019A (en) Method and system for cross validation and sharing of blacklist and multiple parties
CN111343179B (en) Real-time consensus method and device for authenticity of data on link
CN111339141B (en) Data transmission method, block chain node equipment and medium
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN112953978A (en) Multi-signature authentication method, device, equipment and medium
CN111679978B (en) Program testing method, program testing device, electronic equipment and storage medium
CN111835514A (en) Method and system for realizing safe interaction of front-end and back-end separated data
CN111597537B (en) Block chain network-based certificate issuing method, related equipment and medium
CN111367923A (en) Data processing method, data processing device, node equipment and storage medium
CN115701078A (en) Cross-chain transaction processing method and device, electronic equipment and storage medium
CN113822675A (en) Block chain based message processing method, device, equipment and storage medium
CN112200680B (en) Block link point management method, device, computer and readable storage medium
CN114090683A (en) Intelligent contract management method, equipment and storage medium based on alliance administration
CN112069529B (en) Block chain-based volume management method and device, computer and storage medium
CN112291321A (en) Service processing method, device and system
CN112256799A (en) Data processing method and device based on block chain, server and storage medium
CN111666132B (en) Distributed transaction implementation method, device, computer system and readable storage medium
CN111814204B (en) Block chain-based data consensus method, related equipment and storage medium
CN113360575A (en) Method, device, equipment and storage medium for supervising transaction data in alliance chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination