Disclosure of Invention
The embodiment of the invention provides a block chain accounting method, a block chain accounting device, block chain accounting equipment and a block chain accounting storage medium, so as to reduce power resources consumed by accounting nodes.
In a first aspect, an embodiment of the present invention provides a block chain accounting method, including:
an accounting node in a blockchain network receives a transaction record broadcasted by a participating node in the blockchain network;
the accounting node records the transaction records broadcast by the participating nodes in a preset time period;
when the accounting node records and finishes the transaction record in the preset time period, generating accounting right request information, wherein the accounting right request information comprises accounting reward information applied by the accounting node;
the accounting node generates a block according to the transaction record and the accounting right request information;
the accounting node calculates the hash value of the transaction record and the accounting right request information;
and the accounting node broadcasts the hash value and the block to the blockchain network so as to ensure that other accounting nodes in the blockchain network verify the block according to the hash value.
In a second aspect, an embodiment of the present invention provides a block chain accounting method, including:
an accounting node in the block chain network receives blocks generated by other accounting nodes and hash values corresponding to the blocks, which are sent by other accounting nodes, wherein the blocks comprise transaction records recorded by the other accounting nodes within a preset time period and request information of accounting rights of the blocks by the other accounting nodes;
the accounting node accounts the transaction records in the block;
if the accounting node checks the transaction records in the block, the accounting node detects whether the timestamp included in the block is within a preset time range after the preset time period;
if the timestamp included in the block is within a preset time range after the preset time period, the accounting node detects whether the hash value corresponding to the block meets a preset condition;
and if the hash value corresponding to the block meets a preset condition, the accounting node determines that the block is a valid block.
In a third aspect, an embodiment of the present invention provides a block chain accounting device, including:
a receiving module, configured to receive a transaction record broadcasted by a participating node in the blockchain network;
the recording module is used for recording the transaction records broadcasted by the participating nodes within a preset time period;
the first generation module is used for generating accounting right request information when the recording module records and finishes the transaction record in the preset time period, wherein the accounting right request information comprises accounting reward information applied by the accounting node;
the second generation module is used for generating a block according to the transaction record and the accounting right request information;
the calculation module is used for calculating the hash value of the transaction record and the accounting right request information;
a sending module, configured to broadcast the hash value and the chunk to the blockchain network, so that other accounting nodes in the blockchain network verify the chunk according to the hash value.
In a fourth aspect, an embodiment of the present invention provides a block chain accounting device, including:
the receiving module is used for receiving blocks generated by other accounting nodes and hash values corresponding to the blocks, wherein the blocks comprise transaction records recorded by the other accounting nodes within a preset time period and request information of accounting rights of the blocks by the other accounting nodes;
the account checking module is used for checking the transaction records in the block;
the first detection module is used for detecting whether the timestamp included in the block is within a preset time range after the preset time period when the reconciliation module is used for reconciling the transaction records in the block;
a second detection module, configured to detect whether a hash value corresponding to the block meets a preset condition when the timestamp included in the block is within a preset time range after the preset time period;
and the determining module is used for determining that the block is a valid block when the hash value corresponding to the block meets a preset condition.
In a fifth aspect, an embodiment of the present invention provides a block link point, including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method of the first aspect.
The block chain accounting method, device, equipment and storage medium provided by the embodiments of the present invention receive, by an accounting node in a block chain network, a transaction record broadcasted by a participating node in the block chain network, the accounting node generates accounting right request information when recording the transaction record in a preset time period, the accounting right request information includes accounting reward information applied by the accounting node, the accounting node generates a block according to the transaction record and the accounting right request information and calculates a hash value of the block, the accounting node broadcasts the hash value and the block into the block chain network, so that other accounting nodes verify the block according to the hash value, when the hash value satisfies a preset condition, other accounting nodes regard the block as a valid block, so that the right of each block is determined by randomness among the accounting nodes instead of determining the accounting right of the accounting block by investment of power resources, the power resource consumption of the accounting node is reduced.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The block chain accounting method provided by the invention can be applied to the communication system shown in fig. 1. As shown in fig. 1, the communication system includes: accounting node 11, accounting node 12, participating node 13, participating node 14 and accounting node 15; the accounting node 11, the accounting node 12, the participating node 13, the participating node 14, and the accounting node 15 are all nodes in a blockchain network, and the blockchain network may specifically be a peer-to-peer network, which is only illustrated here for illustrative purposes and is not limited to a specific structure of the blockchain network, and in other embodiments, the blockchain network may further include other nodes.
The invention provides a block chain accounting method, which aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present invention and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a block chain accounting method according to an embodiment of the present invention. The embodiment of the invention provides a block chain accounting method aiming at the technical problems in the prior art, and the method comprises the following specific steps:
step 201, an accounting node in the blockchain network receives a transaction record broadcasted by a participating node in the blockchain network.
In this embodiment, each tile in the blockchain network is generated according to a fixed time period, for example, a new tile is generated every W minutes. Participating nodes in the blockchain network, such as participating node 13 and participating node 14 shown in fig. 1, broadcast transaction records in the blockchain network according to service requirements, and accounting nodes in the blockchain network, such as accounting node 11, accounting node 12 and accounting node 15 shown in fig. 1, respectively receive the transaction records broadcast in the blockchain network.
Step 202, the accounting node records the transaction record broadcasted by the participating node in a preset time period.
Optionally, the accounting node 11, the accounting node 12 and the accounting node 15 respectively record the transaction records broadcasted by the participating nodes within a preset time period. The preset time period is marked as Tn-1Time to TnThe time of day. Optionally, Tn-1Time to TnThe duration of the time may be W minutes. At TnAt that time, accounting node 11, accounting node 12 and accounting node 15 begin to keep track of all transactions in that W minuteThe contention for accounting rights is recorded.
Step 203, when the accounting node completes the recording of the transaction record in the preset time period, generating accounting right request information, wherein the accounting right request information comprises accounting reward information applied by the accounting node.
Taking the accounting node 11 as an example, when the accounting node 11 finishes the recording Tn-1Time to TnAnd generating the accounting right request information during the transaction record of the moment, wherein the accounting right request information comprises the identification information of the block for which the accounting node 11 applies accounting and the accounting reward information applied by the accounting node 11. For example, the accounting node 11 robs the accounting right of the P-th block in the blockchain network, and applies for obtaining 8 gold coins for the system mining reward, and the accounting right request information includes identification information of the P-th block and the system mining reward applied for obtaining.
And step 204, the accounting node generates a block according to the transaction record and the accounting right request information.
The accounting node 11 requests information according to the accounting right and the accounting node 11 is at the Tn-1Time to TnThe transaction record received within the time generates a block, optionally including the billing right request information and billing node 11 at the time Tn-1Time to TnTransaction records received at the moment.
Step 205, the accounting node calculates the hash value of the transaction record and the accounting right request information.
The accounting node 11 sends the accounting right request information and the accounting node 11 to the Tn-1Time to TnThe transaction records received in time are combined together, and the accounting right request information and the accounting node 11 in the T are calculatedn-1Time to TnHash values of transaction records received at the time. That is, the accounting node 11 calculates the hash value of the chunk generated by the accounting node 11.
Step 206, the accounting node broadcasts the hash value and the block to the blockchain network, so that other accounting nodes in the blockchain network verify the block according to the hash value.
The accounting node 11 broadcasts the hash value corresponding to the block and the block into the blockchain network, and when other accounting nodes in the blockchain network, such as the accounting node 12 and the accounting node 15, receive the block broadcast by the accounting node 11, the accounting node 12 and the accounting node 15 may verify the block broadcast by the accounting node 11 according to the hash value broadcast by the accounting node 11. Similarly, when accounting node 12 broadcasts the block generated by accounting node 12 and the hash value corresponding to the block into the blockchain network, accounting node 11 and accounting node 15 verify the block broadcast by accounting node 12. Alternatively, when the accounting node 15 broadcasts the block generated by the accounting node 15 and the hash value corresponding to the block into the blockchain network, the accounting node 11 and the accounting node 12 verify the block broadcast by the accounting node 15.
In the embodiment of the invention, the accounting node in the block chain network receives the transaction record broadcasted by the participating node in the block chain network, the accounting node generates the accounting right request information when the accounting node finishes the transaction record in the preset time period, the billing right request information comprises billing reward information applied by the billing node, the billing node generates a block according to the transaction record and the billing right request information and calculates the hash value of the block, the accounting node broadcasts the hash value and the block to a blockchain network so as to ensure that other accounting nodes verify the block according to the hash value, other accounting nodes consider the block as a valid block, so that accounting rights of each block are determined by randomness among the accounting nodes, the accounting right of the block is determined instead of the investment of the power resources, so that the power resources consumed by the accounting node are reduced.
Fig. 3 is a flowchart of a block chain accounting method according to another embodiment of the present invention. On the basis of the above embodiment, after the accounting node calculates the hash value of the transaction record and the accounting right request information, the method further includes the following steps:
step 301, the accounting node sends the hash value to a timestamp server, so that the timestamp server assigns a timestamp to the hash value.
In this embodiment, when the accounting node 11 calculates the hash value of the block generated by the accounting node 11, the accounting node 11 queries a locally stored blockchain account book, the IP address information of the timestamp server is stored in the blockchain account book, the accounting node 11 sends the hash value to the timestamp server according to the IP address information of the timestamp server, optionally, the accounting node 11 sends the hash value to the timestamp server after signing the hash value by using its own private key, and after receiving the hash value, the timestamp server allocates a timestamp to the hash value, and sends the timestamp to the accounting node 11 after signing the hash value by using the private key of the timestamp server.
Step 302, the accounting node receives the timestamp corresponding to the hash value sent by the timestamp server.
The accounting node 11 receives the timestamp corresponding to the hash value sent by the timestamp server, and specifically, the accounting node 11 receives the hash value signed by the timestamp server with a private key and time-stamped by the timestamp server.
Correspondingly, the accounting node broadcasts the hash value and the block to the blockchain network, so that other accounting nodes in the blockchain network verify the block, including: and the accounting node broadcasts the hash value, the timestamp corresponding to the hash value and the block to the blockchain network so as to enable other accounting nodes in the blockchain network to verify the block.
For example, accounting node 11 broadcasts the hash value time-stamped by the timestamp server signed with a private key by the timestamp server into the blockchain network along with the chunk generated by accounting node 11, so that other accounting nodes in the blockchain network, such as accounting node 12 and accounting node 15, verify the chunk broadcast by accounting node 11 according to the hash value and the timestamp.
In the embodiment of the invention, the accounting node in the block chain network receives the transaction record broadcasted by the participating node in the block chain network, the accounting node generates the accounting right request information when the accounting node finishes the transaction record in the preset time period, the billing right request information comprises billing reward information applied by the billing node, the billing node generates a block according to the transaction record and the billing right request information and calculates the hash value of the block, the accounting node broadcasts the hash value and the block to a blockchain network so as to ensure that other accounting nodes verify the block according to the hash value, other accounting nodes consider the block as a valid block, so that accounting rights of each block are determined by randomness among the accounting nodes, the accounting right of the block is determined instead of the investment of the power resources, so that the power resources consumed by the accounting node are reduced.
Fig. 4 is a flowchart of a block chain accounting method according to another embodiment of the present invention. On the basis of the foregoing embodiment, the block chain accounting method provided in this embodiment specifically includes the following steps:
step 401, an accounting node in the blockchain network receives blocks generated by other accounting nodes and sent by other accounting nodes and hash values corresponding to the blocks, where the blocks include transaction records recorded by the other accounting nodes within a preset time period and request information of accounting rights of the blocks by the other accounting nodes.
For example, the accounting node 12 and the accounting node 15 in the blockchain network receive the block broadcasted by the accounting node 11 in the blockchain network and the hash value corresponding to the block, the block is generated by the accounting node 11, and the block includes the T recorded by the accounting node 11n-1Time to TnThe transaction record in the time and the request information of the accounting right of the accounting node 11 to the block.
Step 402, the accounting node accounts for the transaction records in the block.
The accounting node 12 and the accounting node 15 respectively account for the transaction records in the block generated by the accounting node 11, detect whether there is a omission in the transaction records in the block, and if the accounting node 12 or the accounting node 15 detects that there is a omission in the transaction records in the block, the accounting node 12 or the accounting node 15 sends a broadcast message in the blockchain network, where the broadcast message is used to indicate that there is a omission in the transaction records in the block. Optionally, if at least one of the accounting node 12 and the accounting node 15 sends a broadcast message in the blockchain network to indicate that there is a miss in the transaction record in the block, the transaction record in the block is checked out, and the block is not recorded in the blockchain ledger.
Optionally, in other embodiments, the accounting node for accounting the transaction records in the block generated by the accounting node 11 is not limited to the accounting node 12 and the accounting node 15, and there may be a plurality of accounting nodes for accounting the transaction records in the block generated by the accounting node 11, and assuming that a certain threshold percentage, for example, 50% of the accounting nodes in the plurality of accounting nodes all send broadcast messages in the blockchain network to indicate that there is a miss in the transaction record in the block, the accounting node does not account the transaction record in the block, and the block is not recorded in the blockchain ledger.
Step 403, if the accounting node checks the transaction record in the block, the accounting node detects whether the timestamp included in the block is within a preset time range after the preset time period.
In this embodiment, assuming that the accounting node 12 and the accounting node 15 check the transaction records in the block generated by the accounting node 11, the accounting node 12 or the accounting node 15 may further detect whether the timestamp included in the block is within a preset time period, for example, Tn-1Time to TnWithin a preset time range after the time period corresponding to the moment, the preset time range is, for example, from TnTime to Tn+1The range of time instants. If the time stamp included in the block is from TnTime to Tn+1If the time is out of the range, the block is an invalid block, and the block is not recorded in the block chain account book.
In addition, if the accounting node 11 broadcasts the hash value signed by the timestamp server with the private key and time-stamped by the timestamp server together with the block generated by the accounting node 11 into the blockchain network, when the accounting node 12 and the accounting node 15 receive the broadcast message of the accounting node 11, the accounting node 12 and the accounting node 15 may also query and acquire the public key of the timestamp server from the locally stored blockchain account book, verify the signature of the timestamp server according to the public key of the timestamp server, and if the verification is passed, the accounting node 12 and the accounting node 15 determine that the timestamp is authentic and valid.
Step 404, if the timestamp included in the block is within a preset time range after the preset time period, the accounting node detects whether the hash value corresponding to the block meets a preset condition.
When the accounting node 12 and the accounting node 15 determine that the timestamp server stamps the hash value is true, the accounting node 12 and the accounting node 15 further detect whether the hash value meets a preset condition.
Step 405, if the hash value corresponding to the block meets a preset condition, the accounting node determines that the block is a valid block.
If the hash value corresponding to the block generated by the accounting node 11 meets the preset condition, the accounting node 12 and the accounting node 15 determine that the block generated by the accounting node 11 is a valid block, the block is approved by the whole blockchain network, and the block can be written into the blockchain ledger.
Optionally, the checking node detects whether the hash value corresponding to the block meets a preset condition, including: the accounting node detects whether the hash value corresponding to the block is the minimum value in the hash values corresponding to the blocks sent by the other accounting nodes; if the hash value corresponding to the block meets a preset condition, the accounting node determines that the block is a valid block, including: and if the hash value corresponding to the block is the minimum value in the hash values corresponding to the blocks respectively sent by a plurality of other accounting nodes, the accounting node determines that the block is a valid block.
In this embodiment, the accounting node 12 and the accounting node 15 are not limited to receive the hash value signed by the timestamp server and time-stamped by the timestamp server and sent by the accounting node 11, and the chunk generated by the accounting node 11, and the accounting node 12 and the accounting node 15 may also receive the hash value signed by the timestamp server and time-stamped by the timestamp server and the chunk generated by the other accounting node, sent by the other accounting node and signed by the timestamp server and the private key. When the hash value corresponding to the block sent by the accounting node 11 is minimum, the accounting node 12 and the accounting node 15 determine that the block generated by the accounting node 11 is a valid block.
Or, the checking node detects whether the hash value corresponding to the block meets a preset condition, including: the accounting node detects whether the hash value corresponding to the block is the maximum value in the hash values corresponding to the blocks sent by the other accounting nodes; if the hash value corresponding to the block meets a preset condition, the accounting node determines that the block is a valid block, including: and if the hash value corresponding to the block is the maximum value in the hash values corresponding to the blocks respectively sent by a plurality of other accounting nodes, the accounting node determines that the block is a valid block.
For example, in this embodiment, the accounting node 12 and the accounting node 15 are not limited to receive the hash value signed by the timestamp server and time-stamped by the timestamp server and the chunk generated by the accounting node 11, which are sent by the accounting node 11 and signed by the timestamp server through a private key, and the accounting node 12 and the accounting node 15 may also receive the hash value signed by the timestamp server and time-stamped by the timestamp server and the chunk generated by the other accounting node, which are sent by the other accounting node and time-stamped by the timestamp server and signed by the private key. When the hash value corresponding to the block sent by the accounting node 11 is the maximum, the accounting node 12 and the accounting node 15 determine that the block generated by the accounting node 11 is a valid block.
In other embodiments, the preset condition that the hash value corresponding to the block sent by the accounting node 11 satisfies is not limited to maximum or minimum.
Optionally, the block sent by the accounting node 11 is approved by the whole blockchain network, and the block sent by the accounting node 11 includes the accounting reward information applied by the accounting node 11, so that when the block sent by the accounting node 11 is effectively recorded in the blockchain account book, the accounting node 11 successfully obtains the mining reward of the blockchain network. All accounting nodes then resume contending for accounting rights for the next block.
In addition, in this embodiment, in order to avoid the accounting node applying for a large number of accounts to rob the Hash value, all nodes in the blockchain network may register in a real-name system.
In the embodiment of the invention, the accounting node carries the hash value corresponding to the block and the timestamp corresponding to the hash value when sending the block, other accounting nodes in the block chain network need to verify the hash value and the timestamp corresponding to the hash value when verifying the block, and the block sent by the accounting node is an effective block only if the hash value meets the preset condition and the timestamp corresponding to the hash value is true, so that the block forged by the accounting node is difficult to pass the verification of other accounting nodes, the accounting node is prevented from passing the forged block to improve the probability of successful accounting right competition, and the fairness of different accounting nodes in accounting right competition is ensured.
Fig. 5 is a schematic structural diagram of a block chain accounting device according to an embodiment of the present invention. The block chain accounting device may be specifically an accounting node in the above embodiments. The block chain accounting apparatus provided in the embodiment of the present invention may execute the processing procedure provided in the embodiment of the block chain accounting method, and as shown in fig. 5, the block chain accounting apparatus 50 includes: a receiving module 51, a recording module 52, a first generating module 53, a second generating module 54, a calculating module 55 and a transmitting module 56; the receiving module 51 is configured to receive a transaction record broadcasted by a participating node in the blockchain network; the recording module 52 is configured to record a transaction record broadcasted by the participating node within a preset time period; the first generating module 53 is configured to generate billing right request information when the recording module records and completes the transaction record in the preset time period, where the billing right request information includes billing reward information applied by the billing node; the second generating module 54 is configured to generate a block according to the transaction record and the billing right request information; the calculation module 55 is configured to calculate a hash value of the transaction record and the billing right request information; the sending module 56 is configured to broadcast the hash value and the chunk into the blockchain network, so that other accounting nodes in the blockchain network verify the chunk according to the hash value.
Optionally, the sending module 56 is further configured to: after the calculation module calculates the hash values of the transaction records and the accounting right request information, sending the hash values to a timestamp server so that the timestamp server assigns a timestamp to the hash values; the receiving module 51 is further configured to: receiving a timestamp corresponding to the hash value sent by the timestamp server; the sending module 56 broadcasts the hash value and the block to the blockchain network, so that when the other accounting nodes in the blockchain network verify the block, the sending module is specifically configured to: broadcasting the hash value, the timestamp corresponding to the hash value and the block to the blockchain network so that other accounting nodes in the blockchain network verify the block.
The block chain accounting device in the embodiment shown in fig. 5 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of a block chain accounting device according to an embodiment of the present invention. The block chain accounting device may be specifically an accounting node in the above embodiments. The block chain accounting apparatus provided in the embodiment of the present invention may execute the processing procedure provided in the embodiment of the block chain accounting method, and as shown in fig. 6, the block chain accounting apparatus 60 includes: a receiving module 61, a reconciliation module 62, a first detection module 63, a second detection module 64 and a determination module 65; the receiving module 61 is configured to receive a block generated by another accounting node and sent by the other accounting node and a hash value corresponding to the block, where the block includes a transaction record recorded by the other accounting node within a preset time period and request information of an accounting right of the block by the other accounting node; the reconciliation module 62 is used for reconciling the transaction records in the block; the first detection module 63 is configured to detect whether a timestamp included in the block is within a preset time range after the preset time period when the reconciliation module reconciles the transaction record in the block; the second detecting module 64 is configured to detect whether the hash value corresponding to the block meets a preset condition when the timestamp included in the block is within a preset time range after the preset time period; the determining module 65 is configured to determine that the block is a valid block when the hash value corresponding to the block satisfies a preset condition.
Optionally, the second detecting module 64 is specifically configured to: detecting whether the hash value corresponding to the block is the minimum value in the hash values corresponding to the blocks sent by the other accounting nodes respectively; the determining module 65 is specifically configured to: and when the hash value corresponding to the block is the minimum value of the hash values corresponding to the blocks respectively sent by a plurality of other accounting nodes, determining that the block is a valid block.
Optionally, the second detecting module 64 is specifically configured to: detecting whether the hash value corresponding to the block is the maximum value in the hash values corresponding to the blocks sent by the other accounting nodes respectively; the determining module 65 is specifically configured to: and when the hash value corresponding to the block is the maximum value of the hash values corresponding to the blocks respectively sent by a plurality of other accounting nodes, determining that the block is a valid block.
The block chain accounting device in the embodiment shown in fig. 6 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
Fig. 7 is a schematic structural diagram of a blockchain node according to an embodiment of the present invention. The block link point provided by the embodiment of the present invention may execute the processing procedure provided by the block chain accounting method embodiment, as shown in fig. 7, the block link point 70 includes a memory 71, a processor 72, a computer program, and a communication interface 73; wherein a computer program is stored in the memory 71 and configured to be executed by the processor 72 for performing the block chain accounting method as described in the above embodiments.
The block link points of the embodiment shown in fig. 7 can be used to implement the technical solution of the above method embodiment, and the implementation principle and technical effect are similar, and are not described herein again.
In addition, the present embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the block chain accounting method in the foregoing embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.