CN115964723A - Accounting right processing method based on block chain network and miner node - Google Patents

Accounting right processing method based on block chain network and miner node Download PDF

Info

Publication number
CN115964723A
CN115964723A CN202211062820.4A CN202211062820A CN115964723A CN 115964723 A CN115964723 A CN 115964723A CN 202211062820 A CN202211062820 A CN 202211062820A CN 115964723 A CN115964723 A CN 115964723A
Authority
CN
China
Prior art keywords
information
block
asset
asset information
registered
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
CN202211062820.4A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202211062820.4A priority Critical patent/CN115964723A/en
Publication of CN115964723A publication Critical patent/CN115964723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an accounting right processing method based on a block chain network and a miner node. The method comprises the following steps: acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered; under the condition that the asset registration request passes verification, determining whether historical asset information with the similarity to the asset information to be registered being larger than a preset threshold exists in a target block; and finally, broadcasting the first processing result information to the block chain network to obtain the accounting right of the new block under the condition that historical asset information with the similarity to the asset information to be registered larger than a preset threshold exists in the target block. The invention can realize digital asset registration while solving the attribution problem of block accounting right, effectively avoid the waste of computing power, improve the enthusiasm of miners for mining nodes and promote the technical development of a block chain network.

Description

Accounting right processing method based on block chain network and miner node
Technical Field
The invention relates to the technical field of communication, in particular to a block chain network-based accounting right processing method and a miner node.
Background
The metauniverse (Metaverse) is a virtual world which is linked and created by using a scientific and technological means and is mapped and interacted with the real world, and is provided with a digital living space of a novel social system. The meta universe is essentially a virtualization and digitization process of the real world, requiring a great deal of modification to content production, economic systems, user experience, and physical world content, among others.
If the right of the digital assets in the meta universe is determined in a centralized mode, the fairness and the reliability are difficult to guarantee, and therefore the right needs to be determined through a block chain network. However, miners 'nodes in the new blockchain network compete for accounting rights to obtain rewards mainly by calculating the hash value, and the process of calculating the hash value wastes a great deal of computing power of the miners' nodes. Related statistics show that energy loss and carbon emission caused by wasted computing power in the block chain network exceed benefits brought by ore excavation, so that the block chain network is more and more difficult to continue, and the foundation of the development of the metas and the block chain length period is influenced.
Disclosure of Invention
Therefore, the invention provides an accounting right processing method based on a block chain network and a miner node.
In order to achieve the above object, a first aspect of the present invention provides a method for processing accounting right based on a blockchain network, where the method includes:
acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered;
determining whether historical asset information with the similarity greater than a preset threshold with the asset information to be registered exists in a target block under the condition that the asset registration request passes verification;
under the condition that historical asset information with the similarity to the asset information to be registered being larger than a preset threshold exists in the target block, broadcasting first processing result information to the block chain network to obtain the accounting right of a new block; the first processing result information comprises the asset information to be registered and historical asset information, wherein the similarity between the asset information to be registered and the historical asset information is greater than a preset threshold.
Optionally, before determining whether historical asset information whose similarity with the asset information to be registered is greater than a preset threshold exists in the target block, the method includes:
randomly selecting a history block from history blocks of a blockchain network as the target block;
the step of determining whether historical asset information with similarity greater than a preset threshold exists in the target block comprises the following steps:
and comparing the asset information to be registered with historical asset information included in the target block according to a predetermined comparison algorithm, and determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in the target block.
Optionally, the method further comprises:
under the condition that historical asset information with the similarity degree with the asset information to be registered being greater than a preset threshold value does not exist in the target block, broadcasting second processing result information to the block chain network, wherein the second processing result information comprises the block number and the comparison result value of the target block.
Optionally, the method further comprises:
when the block numbers included in the second processing result information broadcast by all the miner nodes do not cover all the historical blocks in the block chain network, selecting one historical block from the historical blocks of which the block numbers included in all the second processing result information do not cover as the target block;
and returning to the step of determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in the target block.
Optionally, the method further comprises:
under the condition that the block numbers included in the second processing result information broadcast by all the miner nodes cover all the historical blocks in the block chain network, scoring the miner nodes which broadcast the second processing result information according to all the second processing result information and a predetermined evaluation algorithm;
broadcasting node scoring information to a blockchain network, wherein the node scoring information comprises node identification of a miner node with the highest score;
and determining the miner node which obtains the highest score for the most times to obtain the accounting right of the new block according to the node scoring information broadcast by all the miner nodes.
Optionally, the asset registration request further includes resource compensation, and after broadcasting the first processing result information into the blockchain network, the method further includes:
generating a first block, wherein the first block comprises the information of the resource compensation and the original account;
and under the condition that the accounting right of a new block is obtained according to the first processing result information, writing the first block as the new block into the block chain network.
Optionally, the asset registration request further includes resource compensation, and after broadcasting the second processing result information into the blockchain network, the method further includes:
generating a second block, wherein the second block comprises the information of transferring the resource compensation into the target account; the target account is the account of the miner node;
and under the condition that the accounting right of a new block is obtained according to the node scoring information broadcast by all the miner nodes, writing the second block serving as the new block into the block chain network.
A second aspect of the invention provides a miner node, comprising:
the acquisition module is used for acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered;
the determining module is used for determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in a target block or not under the condition that the asset registration request passes verification;
the broadcasting module is used for broadcasting first processing result information to the block chain network to obtain the accounting right of a new block under the condition that historical asset information with the similarity to the asset information to be registered larger than a preset threshold exists in the target block; the first processing result information comprises the asset information to be registered and historical asset information, and the similarity of the asset information to be registered and the historical asset information is larger than a preset threshold value.
A third aspect of the present invention provides an electronic device comprising:
one or more processors;
a memory having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the above-described methods;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
A fourth aspect of the invention provides a computer-readable medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method described above.
The invention has the following advantages:
the embodiment of the invention provides a block chain network-based accounting right processing method, which comprises the following steps: acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered; under the condition that the asset registration request passes verification, determining whether historical asset information with the similarity to the asset information to be registered being larger than a preset threshold exists in a target block; and finally, under the condition that historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in the target block, broadcasting the first processing result information to the block chain network to obtain the accounting right of the new block, so that the digital asset registration can be realized while the problem of attribution of the block accounting right is solved, the waste of computing power can be effectively avoided, the enthusiasm of mining nodes is improved, and the technical development of the block chain network is promoted.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for processing a billing right based on a blockchain network according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for processing a billing right based on a blockchain network according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for processing a billing right based on a blockchain network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a miner node according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
When the terms "comprises" and/or "comprising" … … are used in this disclosure, the presence of the stated features, integers, steps, operations, elements, and/or components are specified, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The embodiments of the invention may be described with reference to plan and/or cross-sectional views in idealized schematic representations of the invention. Accordingly, the example illustrations may be modified in accordance with manufacturing techniques and/or tolerances.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present invention and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In a first aspect, an embodiment of the present invention provides a method for processing an accounting right based on a blockchain network. The accounting right processing method is applied to the miner nodes.
Wherein the blockchain network is a blockchain network corresponding to the metas.
The metauniverse (Metaverse) is a virtual world which is linked and created by using a scientific and technological means and is mapped and interacted with the real world, and is provided with a digital living space of a novel social system. The meta universe is essentially a virtualization and digitization process for the real world, requiring a great deal of modification to content production, economic systems, user experience, and physical world content. However, the development of the meta universe is gradual, and is finally shaped by continuously fusing and evolving a plurality of tools and platforms under the support of shared infrastructure, standards and protocols. The method provides immersive experience based on an augmented reality technology, generates a mirror image of the real world based on a digital twin technology, builds an economic system based on a block chain technology, fuses the virtual world and the real world closely on the economic system, a social system and an identity system, and allows each user to perform content production and world editing.
If the right of the digital assets in the meta universe is confirmed in a centralized mode, the fairness and the reliability are difficult to guarantee, and therefore the right of the digital assets in the meta universe is often confirmed through a block chain. However, miners' nodes in the new blockchain network compete for the accounting right to obtain the reward mainly by calculating the hash value, and calculating the hash value wastes a great deal of computing power, and particularly the computing power waste caused by the computing power military competition is more serious. Relevant statistics show that energy loss and carbon emission corresponding to the wasted computational power exceed benefits brought by ore excavation, so that the positivity of the ore excavation of miners is poor, the development of a block chain network is more and more difficult, and the foundation of the development of the metas and the block chain length period is influenced.
In order to solve the above problems, embodiments of the present invention provide a block chain network-based accounting right processing method, where a block chain consensus mechanism of the accounting right processing method is used to solve the problem of power waste in a block chain network, and simultaneously, register digital assets in a meta universe is realized, thereby promoting technical development of the meta universe and the block chain network.
Fig. 1 is a flowchart of a method for processing a billing right based on a blockchain network according to an embodiment of the present invention. Referring to fig. 1, the method includes steps S11 to S13.
And S11, acquiring an asset registration request from the block chain network.
The block chain network at least comprises block chain link points such as participation nodes and miner nodes, wherein the block chain link points refer to computers in the block chain network and comprise mobile terminals, servers and the like. The miner node is a node for mining a block in the block chain network. A participating node is a node in the blockchain network that broadcasts an asset registration request.
The asset registration request is a request for requesting that digital assets be authenticated in a blockchain network. The asset registration request includes: one or more of block link point identification of the participating nodes, asset information to be registered, resource compensation, account information of the participating nodes.
Wherein the block link point identifier of a participating node is used to uniquely identify the participating node in the block link network. The asset information to be registered is information of a digital asset that the participating node wants to authenticate in the blockchain network, for example, image information, video information, virtual Reality (VR) configuration information, text information, and the like. The resource compensation is a resource compensation for registering the digital asset provided to the mineworker node, in other words, the mineworker node that registers (writes to the blockchain network to achieve the right determination) the asset information to be registered in the blockchain network can obtain the resource compensation. The account information of the participating node is information of an account attributed to the participating node and used to provide the resource compensation.
In one embodiment, after the miner node obtains the asset registration request from the blockchain network, the asset registration request needs to be verified, wherein the step of verifying the asset registration request includes: verifying whether the private key signature carried by the asset registration request is correct, determining that the asset registration request passes verification under the condition that the private key signature is correct, and executing the following step S12; in the event that the private key signature verification is incorrect, it is determined that the asset registration request verification failed.
In this embodiment, the private key signature carried by the asset registration request is a signature performed by the participating node using its own blockchain private key. Since the block chain private key is only stored by the node, the verification of the asset registration request in the embodiment can ensure that the source of the asset registration information is a safe source, reduce the risk of the miner node being attacked, and ensure the safety of the miner node.
And S12, determining whether historical asset information with the similarity greater than a preset threshold with the asset information to be registered exists in the target block.
Wherein the target block is a history block in the blockchain network. The historical asset information is digital asset information recorded in the target block, i.e., the historical asset information is digital asset information that has been authorized in the blockchain network.
The preset threshold is a preset similarity threshold, and the preset threshold may be set according to an actual application scenario, for example, may be set to 60%, and is not specifically limited in this embodiment.
It should be noted that, when the similarity between the asset information to be registered and one historical asset information is greater than the preset threshold, it indicates that the similarity between the asset information to be registered and the historical asset information is high, that is, the originality of the asset information to be registered is poor. In this case, the mineworker node cannot register the asset information to be registered for the corresponding participating node, i.e., cannot perform the right confirmation on the asset information to be registered.
And under the condition that the similarity between the asset information to be registered and one piece of historical asset information is not more than a preset threshold value, the similarity between the asset information to be registered and the historical asset information is low, namely the originality of the asset information to be registered is high. In this case, the miner node may register the asset information to be registered for the corresponding participant node, i.e., achieve the exact right of the asset information to be registered.
In one embodiment, before determining whether historical asset information with similarity to the asset information to be registered being greater than a preset threshold exists in the target block, the method further includes: a history block is randomly selected from the history blocks of the blockchain network as a target block.
It should be noted that, as time goes by, more and more historical blocks in the blockchain network are provided, more and more digital assets are registered in the blockchain network, and the calculation amount for comparing the asset information to be registered with the historical asset information is also increased. In order to ensure the fairness of the miners for ensuring the miners to obtain the accounting right, each of the miners participating in processing the asset registration request can randomly select one historical block from a plurality of historical blocks of the block chain network as a target block when initially starting to process the asset registration request, and further determine whether historical asset information with the similarity degree of the to-be-registered asset information being greater than a preset threshold exists in the target block.
In one embodiment, the step of the miner node determining whether historical asset information with similarity greater than a preset threshold with the asset information to be registered exists in the target block comprises the following steps: and the miner node compares the asset information to be registered with the historical asset information included in the target block according to a predetermined comparison algorithm, and determines whether the historical asset information with the similarity greater than a preset threshold value with the asset information to be registered exists in the target block.
The predetermined comparison algorithm is an artificial intelligence comparison algorithm predetermined by each mining node, and the comparison algorithm may be a comparison algorithm obtained by training in advance by using a neural network model, such as an artificial neural network model or a recurrent neural network model. The artificial intelligence comparison algorithm can be set according to actual application scenes, and is not described herein again.
In this embodiment, since the miners 'nodes participating in processing the asset registration request are generally a plurality of miners' nodes, each of the miners 'nodes compares the asset information to be registered with the historical asset information included in the target block according to a predetermined comparison algorithm, so as to ensure the consistency of the comparison process when each of the miners' nodes compares the asset information to be registered with the historical asset information.
In addition, in the related art, the similarity of the asset information to be registered and the historical asset information is generally determined by comparing the hash values of the two, and as long as the hash values of the two are different, the asset information to be registered and the historical asset information are considered to be different digital assets. However, for picture information, video information, VR configuration information, etc., if only one bit (minimum unit of metric information, bit) in the original information is modified, the hash value of the modified information may be very different from the hash value of the original information, and the modified information and the original information are easily recognized as different digital assets. But from the user's practical point of view, the difference between the modified information and the original information is almost negligible. Therefore, in the embodiment, the mineworker node determines whether historical asset information with the similarity to the asset information to be registered being greater than the preset threshold exists in the target block by adopting an artificial intelligence comparison algorithm, so that the original degree of the asset information to be registered can be effectively determined, and the accuracy and the authority of the similarity determination of the mineworker node are improved.
And S13, under the condition that historical asset information with the similarity to the asset information to be registered larger than a preset threshold exists in the target block, broadcasting first processing result information to the block chain network to obtain the accounting right of the new block.
The first processing result information is used for representing that the historical asset information with the similarity larger than a preset threshold exists in the asset information to be registered. The first processing result information comprises asset information to be registered and historical asset information with the similarity greater than a preset threshold with the asset information to be registered, and the first processing result information also carries block link point identification of a miner node broadcasting the first processing result information. The new block refers to a block to be newly generated in the blockchain network, i.e., a next block in the current blockchain network.
In one embodiment, in order to ensure the reliability of the first processing result information broadcast by the miner node, the step of broadcasting the first processing result information to the block chain network to obtain the accounting right of the new block includes: the miner node broadcasts first processing result information to the block chain network, and obtains the accounting right of the new block under the condition that the first processing result information is verified to pass by other miner nodes with more than a preset number
Wherein, the other miners ' nodes are the miners ' nodes except the miners ' node in the block chain network. The step of verifying the first processing result information by other miners' nodes includes:
and other miners determine whether the block link point identification carried by the first processing result information is correct. And determining that the first processing result information is not verified in the case that the block link point identification is incorrect. And under the condition that the block link point identification is correct, extracting the asset information to be registered and the historical asset information from the first processing result information, and determining whether the similarity between the asset information to be registered and the historical asset information is greater than a preset threshold value. And determining that the first processing result information is not verified under the condition that the similarity between the to-be-registered asset information and the historical asset information is not greater than a preset threshold value. And determining that the first processing result information passes the verification under the condition that the similarity between the asset information to be registered and the historical asset information is greater than a preset threshold value.
Under the condition that the first processing result information is verified to be passed, other miner nodes broadcast first processing result verification passing information to the block chain network; and broadcasting first processing result information of failing verification to the block chain network under the condition that the first processing result information of failing verification is failed. Each miner node can determine whether the first processing result information is valid through the first processing result verification passing information and the first processing result verification failing information in the block chain network, and under the condition that the first processing result information is verified by more than a preset number of other miner nodes, the first processing result information is determined to be valid, namely the miner node broadcasting the first processing result information obtains the accounting right of the new block. And under the condition that the other miner nodes less than or equal to the preset number verify the first processing result information, the first processing result information is determined to be invalid information, the miner nodes broadcasting the first processing result information cannot obtain the accounting right of the new block, and each miner node can continuously execute the step of determining whether historical asset information with the similarity degree with the asset information to be registered being greater than the preset threshold exists in the target block. The preset number may be half of the total number of the miner nodes in the block chain network, and may be set according to an actual application scenario, which is not specifically limited in this embodiment.
In one embodiment, the asset registration request broadcast by the participating node also includes a resource offset that is a resource offset for registering the digital asset provided to the mineworker node, in other words, a mineworker node that registers the asset information to be registered in the blockchain network can obtain the resource offset.
In this embodiment, after the miner node broadcasts the first processing result information to the block chain network, the following steps one and two are also included.
Step one, generating a first block, wherein the first block comprises information of resource compensation and transfer back to an original account.
The primary account refers to an account of the participating node, that is, an account corresponding to account information of the participating node in the asset registration request.
And step two, under the condition that the accounting right of the new block is obtained according to the first processing result information, the first block is used as the new block to be written into the block chain network.
The first processing result information is used for indicating that historical asset information with the similarity larger than a preset threshold exists in the asset information to be registered, and when the miner node acquires the accounting right of the new block according to the first processing result information, the original originality of the asset information to be registered is confirmed to be poor, and the asset information to be registered will not be registered in the block chain network. Thus, the mineworker node will not be able to obtain the resource compensation, which will need to be transferred back into the account of the participating node. At this time, the miner node writes the first block as a new block into the block chain network, so that the first block is enabled to take effect, and the information for transferring the resource compensation included in the first block back to the original account is enabled to take effect, thereby realizing transferring the resource compensation back to the account of the participating node.
The embodiment of the invention provides a block chain network-based accounting right processing method, which comprises the steps of firstly, acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered; then, under the condition that the asset registration request passes verification, determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in the target block; and finally, under the condition that historical asset information with similarity greater than a preset threshold value with the asset information to be registered exists in the target block, broadcasting the first processing result information to the block chain network to obtain the accounting right of the new block, so that the digital asset registration can be realized while the attribution problem of the accounting right is solved, the waste of computing power is effectively avoided, the enthusiasm of mining nodes is improved, and the technical development of the metasequoia and block chain network is promoted.
Fig. 2 is a flowchart of a block chain network-based billing right processing method according to an embodiment of the present invention, which is applied to a miner node. Referring to fig. 2, the method further includes: and step S14.
And S14, broadcasting second processing result information to the block chain network under the condition that the historical asset information with the similarity to the asset information to be registered larger than a preset threshold value does not exist in the target block.
And the second processing result information is used for representing a comparison record of the miner node on the asset information to be registered. The second processing result information includes a block number of the target block and a comparison result value. The comparison result value includes the similarity between the asset information to be registered and each historical asset information recorded in the target block.
In some embodiments, the second processing result information carries a timestamp, and the timestamp is used for identifying the publishing time of the second processing result information.
In some embodiments, in the case that there is no historical asset information with a similarity greater than the preset threshold with the asset information to be registered in the target block, the mineworker node may also temporarily not broadcast the second processing result information into the blockchain network, but select a block from which there is no comparison as the target block based on a blockchain ledger stored locally by the mineworker node, and return to the step of determining whether there is historical asset information with a similarity greater than the preset threshold with the asset information to be registered in the target block (step S12). If the mineworker node does not find the historical asset information with the similarity degree with the asset information to be registered being larger than the preset threshold value all the time, under the condition that the mineworker node wants to abandon the comparison, second processing result information can be issued, wherein the second processing result information comprises the block number and the comparison result value of the target block compared by the mineworker node.
In some embodiments, the miner node may learn which blocks have been compared from block numbers included in the second processing result information broadcast by all the miner nodes in the blockchain network, so as to select the blocks that have not been compared as target blocks for comparison, or perform allocation of accounting right, so as to improve the overall working efficiency of the blockchain network.
Fig. 3 is a flowchart of a block chain network-based billing right processing method according to an embodiment of the present invention, which is applied to a miner node. In one embodiment, in a case that all historical blocks in the block chain network are not covered by the block numbers included in the second processing result information broadcast by all the mineworker nodes, referring to fig. 3, the method further includes: and step S15.
Step S15, selecting one history block from the history blocks whose block numbers are not covered and included in all the second processing result information as a target block, and returning to the step of determining whether there is history asset information whose similarity with the asset information to be registered is greater than a preset threshold in the target block (step S12).
The history blocks which are not covered by the block numbers and included in all the second processing result information include history blocks which are not compared and completed by all the miner nodes, so that the miner nodes select one history block from the history blocks as a target block, the probability of finding the history asset information with the similarity degree with the asset information to be registered being larger than a preset threshold value is improved, the overall working efficiency of the block chain network can be improved, and the effect of completing the comparison work of the asset information to be registered and the history asset information as soon as possible is achieved.
In one embodiment, in a case where the block number included in the second processing result information broadcast by all the miner nodes covers all historical blocks in the block chain network, referring to fig. 3, the method further includes: step S16-step S18.
The block numbers included in the second processing result information broadcast by all the miner nodes cover all historical blocks in the block chain network, and it is indicated that the miner nodes in the block chain network have completed the comparison work of the asset information to be registered and the historical asset information, and have not found the historical asset information of which the similarity to the asset information to be registered is greater than the preset threshold, that is, there is no historical asset information of which the similarity to the asset information to be registered is greater than the preset threshold in the block chain network. In this case, it is necessary to determine attribution of the accounting right of the current block from all the second processing result information.
And S16, scoring the miner nodes broadcasting the second processing result information according to all the second processing result information and a predetermined evaluation algorithm.
The pre-agreed evaluation algorithm is an evaluation algorithm which is pre-agreed by each miner node and evaluates the comparison work of the to-be-registered asset information and the historical asset information of the miner node. The evaluation algorithm can be comprehensively set according to the timestamps carried by all the second processing result information issued by one miner node and the total number of the block numbers contained in all the second processing result information issued by the miner node. The evaluation algorithm may also be configured according to an actual application scenario, and is not specifically limited in this embodiment.
And S17, broadcasting node scoring information to the block chain network.
The node scoring information comprises node identification of the miner node with the highest score.
In some embodiments, to make the scoring segment public transparent, the node scoring information may include a scoring ranking of each of the miner nodes broadcasting the second processing result information.
It should be noted that each miner node in the block chain network may participate in scoring each miner node broadcasting the second processing result information, and distribute the node scoring information in the block chain network, so as to improve the scoring accuracy and fairness.
And S18, determining the miner nodes with the highest scoring times to obtain the accounting right of the new block according to the node scoring information broadcast by all the miner nodes.
The miners who obtain the highest score for the most times are the miners who select the miners through the consensus mechanism of the block chain network, so the miners who obtain the highest score for the most times obtain the accounting right of the new block, the fairness of the attribution of the accounting right can be guaranteed, the enthusiasm of all the miners in participating in digital asset registration is improved, and the technical development of the metauniverse and the block chain network is promoted.
In one embodiment, after the mineworker node broadcasts the second processing result information to the blockchain network, the method further includes:
step one, generating a second block.
The second block comprises the asset information to be registered and the information of resource compensation transfer-in target account, wherein the target account is the account of the miner node. The resource offset is the resource offset included in the asset registration request broadcast by the participating node.
And step two, under the condition that the accounting right of the new block is obtained according to the node scoring information broadcast by all the miner nodes, writing the second block serving as the new block into the block chain network.
It should be noted that, the miner node broadcasts the second processing result information to the blockchain network, which indicates that the miner node has not found the historical asset information whose similarity to the asset information to be registered is greater than the preset threshold, and therefore, the asset information to be registered may be registered in the blockchain network. Under the condition that the miner node acquires the accounting right of the new block according to the node scoring information broadcast by all the miner nodes, the miner node needs to register the asset information to be registered in the block chain network, and after the miner node writes the second block as the new block into the block chain network, the second block takes effect, so that the registration of the asset to be registered in the block chain network is realized, and the corresponding resource compensation is transferred into the account of the miner node. The embodiment can realize digital asset registration while solving the attribution problem of block accounting right, effectively avoid the waste of computing power, improve the enthusiasm of miners for mining nodes and promote the technical development of a block chain network.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
Fig. 4 is a schematic structural diagram of a miner node according to an embodiment of the present invention. As shown in fig. 4, the miner node includes: an acquisition module 41, a determination module 42 and a broadcast module 43.
The obtaining module 41 is configured to obtain an asset registration request from the blockchain network, where the asset registration request includes asset information to be registered.
And the determining module 42 is used for determining whether historical asset information with the similarity degree greater than a preset threshold exists in the target block when the asset registration request passes verification.
And a broadcasting module 43, configured to broadcast the first processing result information to the blockchain network to obtain the billing right of the new block in a case that there is historical asset information in the target block whose similarity to the asset information to be registered is greater than a preset threshold.
The first processing result information comprises asset information to be registered and historical asset information, wherein the similarity between the asset information to be registered and the historical asset information is greater than a preset threshold.
In one embodiment, the miner node further includes a selection module.
The selection module is used for randomly selecting one historical block from the historical blocks of the block chain network as a target block.
The determining module 42 is specifically configured to compare the asset information to be registered with the historical asset information included in the target block according to a predetermined comparison algorithm, and determine whether historical asset information whose similarity to the asset information to be registered is greater than a preset threshold exists in the target block.
In an embodiment, the broadcasting module 43 is further configured to broadcast second processing result information to the blockchain network when there is no historical asset information in the target block whose similarity to the asset information to be registered is greater than a preset threshold, where the second processing result information includes a block number of the target block and a comparison result value.
In an embodiment, the selecting module is further configured to select one history block from the history blocks whose block numbers are not covered by all the second processing result information included in the second processing result information broadcast by all the miners' nodes as the target block when all the history blocks in the block chain network are not covered by the block numbers included in the second processing result information.
In one embodiment, the miner node further includes a scoring module.
The scoring module is used for scoring the miner nodes broadcasting the second processing result information according to a predetermined evaluation algorithm according to all the second processing result information under the condition that all historical blocks in the block chain network are covered by the block numbers included in the second processing result information broadcast by all the miner nodes.
The broadcasting module 43 is further configured to broadcast node scoring information to the blockchain network, where the node scoring information includes a node identifier of the mineworker node with the highest score.
The scoring module is also used for determining that the miners who obtain the highest scoring times obtain the accounting right of the new block according to the node scoring information broadcast by all the miners.
In one embodiment, the miner node further includes a first generation module and a first writing module.
The first generating module is configured to generate a first block, where the first block includes information for transferring resource compensation back to an original account. And the first writing module is used for writing the first block as a new block into the block chain network under the condition of acquiring the accounting right of the new block according to the first processing result information.
In one embodiment, the miner node further includes a second generation module and a second writing module.
And the second generation module is used for generating a second block, wherein the second block comprises the asset information to be registered and the information of transferring the resource compensation into the target account, and the target account is the account of the miner node. And the second writing module is used for writing the second block as a new block into the block chain network under the condition of acquiring the accounting right of the new block according to the node scoring information broadcast by all the miner nodes.
It is to be understood that this invention is not limited to the particular arrangements and instrumentalities shown in the attached drawings. For convenience and brevity of description, detailed description of a known method is omitted here, and for the specific working processes of the system, the module and the unit described above, reference may be made to corresponding processes in the foregoing method embodiments, which are not described herein again.
The acquisition module of the miner node provided by the embodiment of the invention is used for acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered; the determining module is used for determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in the target block or not under the condition that the asset registration request passes verification; the broadcasting module is used for broadcasting the first processing result information to the block chain network under the condition that historical asset information with similarity greater than a preset threshold exists in the target block, so as to obtain the accounting right of the new block, the digital asset registration can be realized while the problem of attribution of the block accounting right is solved, the waste of computing power can be effectively avoided, the enthusiasm of mining nodes is improved, and the technical development of the block chain network is promoted.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention. Referring to fig. 5, an embodiment of the present invention provides an electronic device, which includes:
one or more processors 501;
a memory 502 having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the above-described method for processing billing rights for a blockchain network;
one or more I/O interfaces 503 coupled between the processor and the memory and configured to enable information interaction between the processor and the memory.
The processor 501 is a device with data processing capability, which includes but is not limited to a Central Processing Unit (CPU), etc.; the Memory 502 is a device having Data storage capability, which includes, but is not limited to, random Access Memory (RAM), more specifically, synchronous Dynamic Random-Access Memory (SDRAM), double Data Rate SDRAM, DDR, etc.), read-Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), FLASH Memory (FLASH); an I/O interface (read/write interface) 503 is connected between the processor 501 and the memory 502, and can realize information interaction between the processor 501 and the memory 502, which includes but is not limited to a data Bus (Bus) and the like.
In some embodiments, the processor 501, memory 502, and I/O interface 503 are connected to each other, and thus to other components of the computing device, by a bus.
The present embodiment further provides a computer readable medium, where a computer program is stored, and when the computer program is executed by a processor, the method for processing the billing right based on the blockchain network according to the present embodiment is implemented, and in order to avoid repeated descriptions, specific steps of the method for processing the billing right based on the blockchain network are not described herein again.
It will be understood by those of ordinary skill in the art that all or some of the steps of the above inventive method, systems, functional modules/units in the apparatus may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash Memory or other Memory technology, compact disk Read-Only Memory (CD-ROM), digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the embodiments and form different embodiments.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (10)

1. An accounting right processing method based on a block chain network is applied to a miner node, and the method comprises the following steps:
acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered;
under the condition that the asset registration request passes verification, determining whether historical asset information with the similarity to the asset information to be registered being larger than a preset threshold exists in a target block;
under the condition that historical asset information with the similarity to the asset information to be registered being larger than a preset threshold exists in the target block, broadcasting first processing result information to the block chain network to obtain the accounting right of a new block; the first processing result information comprises the asset information to be registered and historical asset information, wherein the similarity between the asset information to be registered and the historical asset information is greater than a preset threshold.
2. The method according to claim 1, wherein before determining whether historical asset information with similarity greater than a preset threshold with the asset information to be registered exists in the target block, the method comprises:
randomly selecting a history block from history blocks of a blockchain network as the target block;
the step of determining whether historical asset information with similarity greater than a preset threshold exists in the target block comprises the following steps:
and comparing the asset information to be registered with historical asset information contained in the target block according to a pre-agreed comparison algorithm, and determining whether historical asset information with the similarity of the asset information to be registered being greater than a preset threshold exists in the target block.
3. The method of claim 1, further comprising:
broadcasting second processing result information to the block chain network under the condition that historical asset information with the similarity with the asset information to be registered being larger than a preset threshold value does not exist in the target block, wherein the second processing result information comprises the block number and the comparison result value of the target block.
4. The method of claim 3, further comprising:
when the block numbers included in the second processing result information broadcast by all the miner nodes do not cover all the historical blocks in the block chain network, selecting one historical block from the historical blocks of which the block numbers included in all the second processing result information do not cover as the target block;
and returning to the step of determining whether historical asset information with the similarity greater than a preset threshold exists in the target block.
5. The method of claim 3, further comprising:
under the condition that the block numbers included in the second processing result information broadcast by all the miner nodes cover all the historical blocks in the block chain network, scoring the miner nodes which broadcast the second processing result information according to all the second processing result information and a predetermined evaluation algorithm;
broadcasting node scoring information to a blockchain network, wherein the node scoring information comprises node identification of a miner node with the highest score;
and determining the miners with the highest scoring times to obtain the accounting right of the new block according to the node scoring information broadcast by all the miners.
6. The method of claim 1, wherein the asset registration request further includes resource compensation, and wherein broadcasting the first process result information into the blockchain network further comprises:
generating a first block, wherein the first block comprises the information of the resource compensation and the original account;
and under the condition that the accounting right of a new block is obtained according to the first processing result information, writing the first block as the new block into the block chain network.
7. The method of claim 5, wherein the asset registration request further includes resource compensation, and wherein broadcasting the second processing result information into the blockchain network further comprises:
generating a second block, wherein the second block comprises the information of transferring the resource compensation into the target account; the target account is the account of the miner node;
and under the condition that the accounting right of a new block is obtained according to the node scoring information broadcast by all the miner nodes, the second block is taken as the new block and written into the block chain network.
8. A mineworker node, the mineworker node comprising:
the acquisition module is used for acquiring an asset registration request from a block chain network, wherein the asset registration request comprises asset information to be registered;
the determining module is used for determining whether historical asset information with the similarity to the asset information to be registered being greater than a preset threshold exists in a target block or not under the condition that the asset registration request passes verification;
the broadcasting module is used for broadcasting first processing result information to the block chain network to obtain the accounting right of a new block under the condition that historical asset information with the similarity to the asset information to be registered larger than a preset threshold exists in the target block; the first processing result information comprises the asset information to be registered and historical asset information, and the similarity of the asset information to be registered and the historical asset information is larger than a preset threshold value.
9. An electronic device, comprising:
one or more processors;
memory having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-7;
one or more I/O interfaces connected between the processor and the memory and configured to enable information interaction between the processor and the memory.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202211062820.4A 2022-09-01 2022-09-01 Accounting right processing method based on block chain network and miner node Pending CN115964723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211062820.4A CN115964723A (en) 2022-09-01 2022-09-01 Accounting right processing method based on block chain network and miner node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211062820.4A CN115964723A (en) 2022-09-01 2022-09-01 Accounting right processing method based on block chain network and miner node

Publications (1)

Publication Number Publication Date
CN115964723A true CN115964723A (en) 2023-04-14

Family

ID=87360565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211062820.4A Pending CN115964723A (en) 2022-09-01 2022-09-01 Accounting right processing method based on block chain network and miner node

Country Status (1)

Country Link
CN (1) CN115964723A (en)

Similar Documents

Publication Publication Date Title
CN108764870B (en) Transaction processing method and device based on block chain and electronic equipment
CN109327528B (en) Node management method and device based on block chain
CN108924130B (en) Block data verification method, device, equipment and storage medium
EP3824403B1 (en) Method, apparatus, and electronic device for blockchain-based recordkeeping
CN107171810B (en) Verification method and device of block chain
CN107360001B (en) Digital certificate management method, device and system
EP3610436A1 (en) Rapid distributed consensus on blockchain
US20210149885A1 (en) Blockchain-based content processing method and apparatus, device, and storage medium
CN111010284B (en) Processing method of block to be identified, related device and block chain system
CN112347521A (en) Medical data management method and system based on medical block chain
CN110286849B (en) Data processing method and device of data storage system
CN106650496B (en) Data processing method and device
US20230153806A1 (en) Method and device for preventing forking of blockchain
CN110866289A (en) Data processing method and device based on block chain, server and storage medium
CN114240433A (en) Data processing method and system based on block chain
CN112134883B (en) Method, device and related product for carrying out rapid authentication on trust relationship between nodes based on trusted computing
CN110910110B (en) Data processing method and device and computer storage medium
CN113051622B (en) Index construction method, device, equipment and storage medium
CN113254424A (en) Data service migration method, device and equipment
CN112258188A (en) Processing method, device, equipment and system for block chain transaction
CN112182009A (en) Data updating method and device of block chain and readable storage medium
CN115964723A (en) Accounting right processing method based on block chain network and miner node
CN115344879A (en) Consensus method based on block chain network, storage node and miner node
CN114707141A (en) Multi-party computing method and system based on block chain system
CN117010889A (en) Data processing method, device, equipment, medium and product

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