CN113259127A - Block chain-based evidence distribution method and device, electronic equipment and storage medium - Google Patents
Block chain-based evidence distribution method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113259127A CN113259127A CN202110651671.4A CN202110651671A CN113259127A CN 113259127 A CN113259127 A CN 113259127A CN 202110651671 A CN202110651671 A CN 202110651671A CN 113259127 A CN113259127 A CN 113259127A
- Authority
- CN
- China
- Prior art keywords
- node
- block chain
- determining
- allocation
- distribution
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 239000003999 initiator Substances 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012986 modification Methods 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 16
- 230000001360 synchronised effect Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 238000007726 management method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000035945 sensitivity Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 238000009795 derivation Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012552 review Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 230000004936 stimulating effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
- H04L9/3213—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a block chain-based evidence-passing distribution method, a block chain-based evidence-passing distribution device, electronic equipment and a storage medium, wherein the method is applied to a block chain network, the block chain network comprises a plurality of distributed nodes, and the method comprises the following steps: classifying the distributed nodes according to role attributes to obtain classification results; determining a distributable block link certificate; performing primary distribution on the distributable block chain evidence according to a first set distribution mode based on the classification result; in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode; wherein, the assignable block chain general evidence is used to indicate the accumulated resource of a project under the condition of satisfying the set condition.
Description
Technical Field
The invention relates to the technical field of internet and block chains, in particular to a block chain-based evidence distribution method and device, electronic equipment and a storage medium.
Background
The blockchain technology is used as a distributed network, and key technologies such as an intelligent contract and a Token (Token) technology have a plurality of application scenarios. However, no related technical scheme applies the block chain and the evidence-passing technology to the processing of innovation achievements at present.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a block chain-based credential distribution method, device, electronic device and storage medium, which can distribute reasonable rewards to participating parties, and is beneficial to encourage innovation enthusiasm of people or groups.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a block chain-based credential distribution method, which is applied to a block chain network, where the block chain network includes a plurality of distributed nodes; the method comprises the following steps:
classifying the distributed nodes according to role attributes to obtain classification results;
determining a distributable block link certificate; performing primary distribution on the distributable block chain evidence according to a first set distribution mode based on the classification result; in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode;
wherein, the assignable block chain general evidence is used to indicate the accumulated resource of a project under the condition of satisfying the set condition.
In the above aspect, the method further includes:
determining a first role attribute of a first node; the first node is any node in the block chain network;
determining a second set distribution mode corresponding to the first node based on the first role attribute;
distributing a first block link certificate to the first node based on the corresponding second set distribution mode;
the first block link certificate belongs to the block link certificate obtained by primary distribution corresponding to the first role attribute and is used for indicating the reward for the first node.
In the foregoing solution, the determining, based on the first attribute, a second allocation manner corresponding to the first node includes:
under the condition that the first role attribute of the first node is determined to be the initiator of the item, determining that a second set distribution mode corresponding to the first node is as follows: and determining the quantity of block chain certificates which are obtained by the first node according to the incidence relation between the first node and the results contained in the project.
In the foregoing solution, the determining, based on the first attribute, a second allocation manner corresponding to the first node includes:
when the role attribute of the first node is determined to be the supporter of the project, determining that a second setting distribution mode corresponding to the first node is as follows: and determining the number of block chaining licenses which are acquired by the first node according to the supporting mode and/or the supporting time of the first node for the item.
In the above aspect, the method further includes:
and monitoring the use condition of the first node for the block chain general evidence obtained by the initial allocation under the condition that the role attribute of the first node is determined to be the operator of the project.
In the above aspect, the method further includes:
under the condition that the first role attribute of the first node is determined to be a supporter of a derivative item, the assignable block chain permit obtained by the item is not assigned; wherein the derived item is a new item separated from the item.
In the above aspect, the method further includes:
receiving an updated intelligent contract sent by a second node; broadcasting the updated intelligent contract to each node in the blockchain network to cause each node to install the updated intelligent contract;
wherein the updated intelligent contract is obtained by modifying the first setting allocation mode and/or at least one corresponding second setting allocation mode by the second node; the second node is a node of the block chain network having modification authority.
In a second aspect, an embodiment of the present invention further provides a block chain-based credential distribution device, which is applied to a block chain network, where the block chain network includes a plurality of distributed nodes; the device comprises a classification module, a determination module and an allocation module, wherein the classification module is used for classifying the data;
the classification module is used for classifying the distributed nodes according to the role attributes to obtain classification results;
the determining module is used for determining the distributable block link certificate; the assignable block chain general evidence is used for indicating the accumulated resources of a project under the condition of meeting the set condition;
the distribution module is used for carrying out primary distribution on the distributable block chain certificate according to a first set distribution mode based on the classification result; and in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode.
In the above solution, the apparatus further comprises: the determining module is further configured to determine a first role attribute of the first node; the first node is any node in the block chain network; determining a second set distribution mode corresponding to the first node based on the first role attribute;
the allocation module is further configured to allocate a first block link certificate to the first node based on the corresponding second set allocation manner;
the first block link certificate belongs to the block link certificate obtained by primary distribution corresponding to the first role attribute and is used for indicating the reward for the first node.
In the foregoing solution, the determining module is further configured to determine, when the first role attribute of the first node is determined to be the initiator of the item, that the second setting allocation manner corresponding to the first node is: and determining the quantity of block chain certificates which are obtained by the first node according to the incidence relation between the first node and the results contained in the project.
In the foregoing solution, the determining module is further configured to determine, when the role attribute of the first node is determined to be a supporter of an item, that the second setting allocation manner corresponding to the first node is: and determining the number of block chaining licenses which are acquired by the first node according to the supporting mode and/or the supporting time of the first node for the item.
In the foregoing solution, the determining module is further configured to monitor, when it is determined that the role attribute of the first node is an operator of the project, a use condition of the blockchain credential obtained by the first node for the initial allocation.
In the above solution, the apparatus further includes a derivation processing module, configured to, in a case that it is determined that the first role attribute of the first node is a supporter of a derived item, not allocate an assignable block chain permit obtained by the item; wherein the derived item is a new item separated from the item.
In the above scheme, the apparatus further includes a receiving module and a broadcasting module, where the receiving module is configured to receive an updated intelligent contract sent by a second node;
the broadcasting module is configured to broadcast the updated intelligent contract to each node in the block chain network, so that each node installs the updated intelligent contract; wherein the updated intelligent contract is obtained by modifying the first setting allocation mode and/or at least one corresponding second setting allocation mode by the second node; the second node is a node of the block chain network having modification authority.
In a third aspect, the present invention further provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described above.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method when executing the computer program.
The embodiment of the invention provides a block chain-based evidence-based distribution method and device, electronic equipment and a storage medium. Wherein the method is applied to a blockchain network comprising a plurality of distributed nodes; the method comprises the following steps: classifying the distributed nodes according to role attributes to obtain classification results; determining a distributable block link certificate; performing primary distribution on the distributable block chain evidence according to a first set distribution mode based on the classification result; in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode; wherein, the assignable block chain general evidence is used to indicate the accumulated resource of a project under the condition of satisfying the set condition. The method classifies nodes in the block chain network according to role attributes of participating nodes, distributes block chain general certificates to each class of nodes according to a first set distribution mode, and distributes the block chain general certificates to each node according to a second set distribution mode corresponding to each class of nodes, so that reasonable rewards are distributed to each node of participating parties, and innovation enthusiasm of encouraging people or groups is facilitated.
Drawings
Fig. 1 is a schematic flowchart of a block chain-based credential distribution method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a blockchain network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another block chain-based credential distribution method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a block chain-based credential distribution device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) A Block chain (Blockchain) is a storage structure for encrypted, chained transactions formed from blocks (blocks). The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The block chain is essentially a decentralized database, and is used as the bottom technology of the bitcoin, and is a series of data blocks which are generated by correlation through a cryptographic method, wherein each data block contains information of a batch of bitcoin network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block.
For example, the header of each block may include hash values of all transactions in the block, and also include hash values of all transactions in the previous block, so as to achieve tamper resistance and forgery resistance of the transactions in the block based on the hash values; newly generated transactions, after being filled into the tiles and passing through the consensus of nodes in the blockchain network, are appended to the end of the blockchain to form a chain growth.
2) A Blockchain Network (Blockchain Network) incorporates new blocks into a set of nodes of a Blockchain in a consensus manner.
3) Smart Contracts (Smart Contracts), also known as chain codes (chainodes) or application codes, are a computer protocol intended to propagate, verify or execute Contracts in an informative manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
The intelligent contract is deployed in a program in a node of the block chain network, and the node executes the intelligent contract called in the received transaction to update or inquire the key value of the state database for data.
The intelligent contract can be automatically triggered to execute when the constraint condition is met, manual intervention is not needed, and the intelligent contract can also be automatically contracted when the condition is not met, and theoretically, all terms agreed in advance can be triggered to execute. The smart contracts encapsulate the relevant processes that interact directly with the block ledger, for example being invoked by an application, performing functions including initiating transactions and querying transactions.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flowchart of a block chain-based credential distribution method according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a blockchain network, where the blockchain network includes a plurality of distributed nodes, and includes the specific steps of:
s101: and classifying the distributed nodes according to the role attributes to obtain a classification result.
It should be noted that the blockchain network may be any kind of blockchain network, for example, a blockchain network built for achievement processing, which is also referred to as an achievement processing blockchain network; as another example, a network of blockchains built to handle logistics, and the like. The blockchain network includes a plurality of distributed nodes, as an alternative configuration, as shown in fig. 2. In fig. 2, a blockchain network 200 includes a node 210-1, a node 210-2, nodes 210-3, … …, and a blockchain management platform 220, wherein each participating node in the blockchain network can upload information, and after information is uploaded at a certain node, the information is broadcasted to other nodes in the blockchain network through the blockchain management platform 220, so that other nodes can perceive the information; each participated node in the blockchain network can perform information interaction with adjacent nodes, the whole blockchain network publicly transfers valuable information, and each participated node is independent. In addition, the nodes in the block chain network illustrated in fig. 2 may be functionally hierarchical, for example, some nodes have high reputation and some nodes have low reputation, and the roles of some nodes may have been determined at the beginning of building the block chain network, and these nodes have specific functions assigned to them, for example, in a building block chain-based alumni economic system, the node corresponding to the role of the alumni has an identity authentication function, that is, when all nodes join the alumni economic system based on the block chain, the node is required to perform identity authentication on the node. It should be understood that the nodes in the blockchain network also have other functions that the blockchain network should have, and thus are not described in detail herein. The blockchain management platform 220 may be used for authentication authorization when a node accesses the blockchain network 200, broadcasting information issued by the node, and the like. The execution subject of the block chain-based evidence-based distribution method provided by the embodiment of the present invention may be the block chain management platform 220.
Here, the role attribute is a role assumed by a participating node of the blockchain network, for example, a node of an initiator of the project, a node of a supporter of the project, a node of an operator of the project, a node of a sponsor of the project, and the like in the achievement processing blockchain network, and then, the role attribute of the achievement processing blockchain network includes the initiator of the project, the supporter of the project, the operator of the project, the sponsor of the project, and the like. As another example, the logistics processing block chain network includes nodes of a goods provider (commonly called a merchant), nodes of a goods transporter (e.g., a courier company), nodes of a goods purchaser (commonly called a purchaser), and so on, and then, in the logistics processing block chain network, the role attributes include the goods provider, the goods transporter, the goods purchaser, and so on.
What is stated for S101 is: and dividing the distributed nodes into a plurality of categories according to the role attributes, wherein the nodes in the blockchain network with the same role attribute belong to one category.
S102: determining a distributable block link certificate; performing primary distribution on the distributable block chain evidence according to a first set distribution mode based on the classification result; in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode; wherein, the assignable block chain general evidence is used to indicate the accumulated resource of a project under the condition of satisfying the set condition.
It should be noted that S102 may invoke an intelligent contract in the blockchain network to complete the above processing. The set condition can be the condition that the reward distribution triggering condition in the intelligent contract is achieved, and can also be other specified conditions. Here, assuming that the setting condition is that the reward distribution trigger condition in the smart contract is reached, what is expressed by S102 is: firstly, according to reward distribution triggering conditions set in an intelligent contract, when the reward distribution triggering conditions are met, determining distributable block chain permit, then, distributing corresponding block chain permit from the distributable block chain permit for each type of nodes according to a first set distribution mode, namely, the primary distribution, and then, as each type of nodes possibly comprises a plurality of nodes, how to distribute the interior of each type of nodes is to distribute the block chain permit obtained by the primary distribution again according to a second set distribution mode corresponding to each type of nodes, namely, distributing the distributable block chain permit twice: the first time, the nodes of the same type are taken as a whole and distributed to the nodes of different types; and after the same type of node obtains the primarily distributed block chain certificate for the second time, distributing corresponding rewards from the primarily distributed block chain certificate for each node contained in the type.
For example, assume that the classification result is an initiator class node of the aforementioned project, a support class node of the project, an operator class node of the project, a sponsor class node of the project; the first set distribution mode is that the distribution ratio is 3:1:2: 4; the number of the distributable block chain certificates is 100; at this time, the initial allocation is: the initiator class node is totally distributed with 30 block chaining certificates; the supporting side class node of the project is totally allocated with 10 block chain certificates, the operator class node of the project is totally allocated with 20 block chain certificates, and the investor class node of the project is totally allocated with 40 block chain certificates. Under the assumption that: the initiator type node comprises 4 nodes, and the second set distribution mode corresponding to the type node is that the distribution proportion is also 3:1:2:4, so that the first node in the type node can distribute 9 block chaining certificates; the second node may allocate 3 block chaining certificates; the third node may allocate 6 blockchain passes; the fourth node may allocate 12 blockchain credentials. Other types of nodes are also analogized. And are not illustrated here.
It should be understood that the second setting allocation in different types of nodes may be the same or different.
It should be noted that the first setting allocation manner may be a result of negotiation between each participant, or may be set by a dominant party, and the specific situation may be determined according to the actual situation of the project.
For the second allocation scheme, the different parties may make their decisions in several ways. The following is a description of a specific process of obtaining a blockchain voucher as a reward by a node.
In some embodiments, the method further comprises:
determining a first role attribute of a first node; the first node is any node in the achievement processing block chain network;
determining a second set distribution mode corresponding to the first node based on the first role attribute;
distributing a first block link certificate to the first node based on the corresponding second set distribution mode;
the first block link certificate belongs to the block link certificate obtained by primary distribution corresponding to the first role attribute and is used for indicating the reward for the first node.
It should be noted that the first role attribute is a role to which the node itself belongs, and may be one of an initiator of the project, a supporter of the project, an operator of the project, and a sponsor of the project; or one of the aforementioned goods provider, goods transporter, and goods purchaser, which needs to be determined according to the application scenario. In the embodiment of the present invention, the blockchain network is taken as an example of a result processing blockchain network, and then, the first role attribute may be one of an initiator of the project, a supporter of the project, an operator of the project, and a sponsor of the project. The allocation of the second setting in the different types of nodes may be the same or different. When the block link permit is allocated to the first node, a second set allocation mode corresponding to the first node needs to be acquired according to the role attribute of the first node, and then allocation is performed to acquire the acquired first block link permit.
As an optional implementation manner, the determining, based on the first attribute, a second setting allocation manner corresponding to the first node includes:
under the condition that the first role attribute of the first node is determined to be the initiator of the item, determining that a second set distribution mode corresponding to the first node is as follows: and determining the quantity of block chain certificates which are obtained by the first node according to the incidence relation between the first node and the results contained in the project.
It should be noted that the association relationship mentioned herein may refer to how close the first node is to the achievement, or what the first node is in relation to the achievement, for example, whether the first node is one of owners of the achievement, or only a publisher of the achievement. It is stated here that the second setting assignment may be different depending on the association relationship between the first node and the outcome.
For example, assume that the first node is associated with the outcome by: the first node is the first owner of the outcome, and then, in order to encourage the initiative of innovation, the second setting allocation manner may be: the first node monopolizes 40% of the number of the primarily allocated block chain permit in the class node, other owner nodes in the class node averagely allocate 40% of the primarily allocated block chain permit in the class node, and the initiator node of the achievement allocates 20% of the primarily allocated block chain permit in the class node. For example, the association relationship between the first node and the achievement is: the first node is one of the owners of the result, but not the first owner, and then the second setting allocation manner may be: firstly, according to the block chain certification of the initial distribution of 40% of the first owner node; the block chaining certification of the initial allocation of other owner nodes accounts for 40%; the method includes that an initiator node accounts for 20% of initially allocated block link certificates, then the proportion of the block link certificates allocated by the first node as an owner is judged, then whether the sum of the proportion of the block link certificates allocated by the owner and the total proportion of the first node after the initiator node accounts for 20% exceeds a set proportion is judged, for example, the set proportion is 40%, if the sum exceeds the set proportion, the first node can only account for the initially allocated block link certificates of the set proportion, and the excess part is allocated to the first owner node. It should be understood that the second setting assignment described herein is merely exemplary and is not intended to limit the present invention.
As another optional implementation manner, the determining, based on the first attribute, a second setting allocation manner corresponding to the first node includes:
when the role attribute of the first node is determined to be the supporter of the project, determining that a second setting distribution mode corresponding to the first node is as follows: and determining the number of block chaining licenses which are acquired by the first node according to the supporting mode and/or the supporting time of the first node for the item.
It should be noted that the support means described herein may include approval, comment, forwarding, matching, and the like. The support time may refer to when the item starts to be supported. The reward distribution principle of the nodes with the role attributes generally considers time sensitivity and/or content sensitivity, wherein the time sensitivity can mean that the earlier the item is supported, the larger the number of distributed block chaining certificates is. The content sensitivity may refer to a greater number of assigned blockchain passes with positive feedback on reviews of the item, which may refer to reviews that are beneficial to optimizing the item or matches that are beneficial to the item advancing forward, etc. For example, the project is infrastructure of a 5G network, in the project, a node proposes an optimization suggestion for a hardware deployment problem of the 5G network, the optimization suggestion has a positive feedback characteristic, and the node may obtain a higher number in a later reward distribution.
It should be noted that, in any of the above support methods, when the support is performed, a certain number of blockchain certificates are required as a fee, and the number of blockchain certificates required for different support methods may be different or the same, and is specifically set according to specific items. In this case, the number of blockchain certificates finally obtained by the type node is the difference between the number of blockchain certificates distributed according to the distribution scheme after the reward distribution triggering condition is reached and the number of blockchain certificates consumed in supporting.
In an alternative embodiment, the second setting allocation manner may be: firstly, screening a plurality of ladders according to the time dimension, and distributing block chain general certificates obtained by primary distribution in the nodes according to the ladders. For example, according to the support time sequence, the nodes sorted in the top 10% may obtain, as the reward, 30% of the blockchain testimony obtained by the initial allocation in the class of nodes, for example, if only three nodes A, B, C are the nodes in the top 10%, the node a comment consumes 10 blockchain testimonies (which may be Token), and the node B and the node C approve each consumption 5 tokens, then the node A, B, C divides the reward of 30% of all the nodes of the supporter of the item according to 2:1: 1; the first 50% of the sorted nodes can obtain 30% of the block chain general certificate obtained by the initial allocation in the nodes as the reward, and at the moment, the ABC of the first 10% of the sorted nodes continues to participate in the allocation again; finally, all nodes in the type obtain the block chain general evidence obtained by the initial allocation in the type nodes as the reward, and then the ABC of the first 10% continues to participate in the allocation again at the moment. That is, this allocation formula is equivalent to that ABC nodes can accumulate rewards three times, and it is also verified that the earlier the support time is, the larger the number of block chains distributed.
As a further optional implementation, the method further comprises:
and monitoring the use condition of the first node for the block chain general evidence obtained by the initial allocation under the condition that the role attribute of the first node is determined to be the operator of the project.
It should be noted that, in the project operation board, in principle, the corresponding reward proportion is distributed to the project party according to the contract rule, and the project party can only operate the project and cannot use the project privately, so that the node in the project operator needs to supervise the use condition of the block chain general certificate obtained by the initial distribution. Some block links can be distributed to the nodes in the type adaptively as a means for stimulating active work, and the specific distribution amount can be determined according to actual conditions.
In some embodiments, in the event that the first persona attribute of the first node is determined to be a supporter of a derived item, an assignable chunk chain pass obtained by not assigning the item; wherein the derived item is a new item separated from the item.
It should be noted that, in addition to the role attributes already described above, the role attributes may also be supporters of the derived items. The derivative item is a new item separated from the item. In this case, in the blockchain network, the nodes may further support comments in the item, and if the ratio of the number of praise obtained by comments posted by nodes other than the original item team to the number of praise of the original item reaches a certain ratio (for example, 50%), the comment may become an independent item, and all the praise and other blockchain permits obtained by the comment are no longer included in the resources of the original item, and the allocable blockchain permits obtained by the original item is also not reallocated.
In some embodiments, the method further comprises:
receiving an updated intelligent contract sent by a second node; broadcasting the updated intelligent contract to each node in the work processing blockchain network to cause each node to install the updated intelligent contract;
wherein the updated intelligent contract is obtained by modifying the first setting allocation mode and/or at least one corresponding second setting allocation mode by the second node; the second node is a node of the block chain network having modification authority.
The above expression means: only nodes with modification rights can modify the allocation in the smart contract. The modification authority of the node is distributed by the block chain management platform when the node accesses the block chain network.
Wherein the manner in which the updated intelligent contract is installed by the node in the blockchain network comprises:
starting a new node in the blockchain network to join the blockchain network;
compiling binary code of the updated smart contract by the launched node;
sending the binary code of the updated intelligent contract to other nodes of the blockchain network for installation so as to obtain a blockchain address and an application program interface of the binary code;
wherein the block chain address and the application program interface are used to invoke the updated smart contract.
As an example, the user terminal locally launches an ethernet gateway node, such as Geth or testpc; compiling a new binary code of the intelligent contract through the started Ethernet workshop node; and sending the Binary code of the new intelligent contract to other nodes of the block chain network for installation so as to achieve the effect of consensus and obtain a block chain address and an Application program Interface of the Binary code, wherein the Application program Interface is an Application Binary Interface (ABI).
For understanding the embodiment of the present invention, as shown in fig. 3, it illustrates a flowchart of another block chain-based evidence-based distribution method according to the embodiment of the present invention. In fig. 3, the main execution body of the method is a block chain management platform, and the specific steps include:
the method comprises the steps that firstly, a plurality of distributed nodes in a block chain network are classified according to role attributes, and classification results are obtained; the classification result is an initiator class node of the project, a support class node of the project and an operator class node of the project;
secondly, determining a distributable block link certificate; performing primary distribution on the distributable block chain general certificate for the initiator class node, the project supporter class node and the project operator class node according to a first set distribution mode;
thirdly, determining a second set distribution mode corresponding to the initiator type node of the project according to the incidence relation between the node and the result contained in the project, and determining the block chain evidence obtaining amount of each node in the initiator type node of the project according to the second set distribution mode;
it should be noted that, in the third step, the association relationship may refer to whether the node is an owner of the result, or not, or is not the first owner. For example, when a block link certificate is allocated to a certain node in the initiator class of the project, it is determined whether the certain node is a publisher; after judging that the publisher is, judging whether the publisher is the owner; after judging that the owner is the first owner, judging whether the owner is the first owner or not, if so, adding the block chain pass certificate obtained by the publisher and the block chain pass certificate obtained by the first owner; the other nodes obtain the corresponding shares, for example, only the owner, but not the publisher or the first owner, and only the share that the owner has. It is also possible to rule that the issuer is only one of the owners, but not the first owner, and the number of block chaining certificates obtained by the issuer does not exceed a set limit, for redundant nodes reassigned to the first owner.
Fourthly, dividing the echelons in the support side nodes of the project according to the support time sequence; carrying out accumulation type obtaining block chain communication certificate according to the echelon;
and fifthly, tracking the use condition of the operator class node of the supervision project on the block chain general certificate obtained by the initial allocation.
The method classifies nodes in a result processing block chain network according to role attributes of participating nodes, distributes block chain general certificates to each class of nodes according to a first set distribution mode, and distributes block chain general certificates to each node according to a second set distribution mode corresponding to each class of nodes.
Based on the same inventive concept, an embodiment of the present invention further provides a block chain-based credential distribution device, as shown in fig. 4, where the device 40 is applied to a block chain network, and the block chain network includes a plurality of distributed nodes; the apparatus 40 comprises a classification module 401, a determination module 402 and an assignment module 403, wherein;
the classification module 401 is configured to classify the plurality of distributed nodes according to the role attributes to obtain classification results;
the determining module 402 is configured to determine a chain link certificate of an allocable block; the assignable block chain general evidence is used for indicating the accumulated resources of a project under the condition of meeting the set condition;
the allocating module 403 is configured to perform primary allocation on the assignable block chain voucher according to a first set allocation manner based on the classification result; and in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode.
In some embodiments, the apparatus further comprises: the determining module 402 is further configured to determine a first role attribute of the first node; the first node is any node in the block chain network; determining a second set distribution mode corresponding to the first node based on the first role attribute;
the allocating module 403 is further configured to allocate a first block link certificate to the first node based on the corresponding second set allocation manner;
the first block link certificate belongs to the block link certificate obtained by primary distribution corresponding to the first role attribute and is used for indicating the reward for the first node.
In some embodiments, the determining module 402 is further configured to, when it is determined that the first role attribute of the first node is an initiator of the item, determine that the second setting allocation manner corresponding to the first node is: and determining the quantity of block chain certificates which are obtained by the first node according to the incidence relation between the first node and the results contained in the project.
In some embodiments, the determining module 402 is further configured to, when it is determined that the role attribute of the first node is a supporter of an item, determine that a second setting allocation manner corresponding to the first node is as follows: and determining the number of block chaining licenses which are acquired by the first node according to the supporting mode and/or the supporting time of the first node for the item.
In some embodiments, the determining module 402 is further configured to, if it is determined that the role attribute of the first node is an operator of the project, monitor the usage of the blockchain certificate obtained by the first node for the initial allocation.
In some embodiments, the apparatus further comprises a derivation processing module, configured to, in a case where the first role attribute of the first node is determined to be a supporter of a derived item, not allocate an allocable block chain voucher obtained by the item; wherein the derived item is a new item separated from the item.
In some embodiments, the apparatus further comprises a receiving module and a broadcasting module, wherein the receiving module is configured to receive the updated smart contract sent by the second node;
the broadcasting module is configured to broadcast the updated intelligent contract to each node in the block chain network, so that each node installs the updated intelligent contract; wherein the updated intelligent contract is obtained by modifying the first setting allocation mode and/or at least one corresponding second setting allocation mode by the second node; the second node is a node of the block chain network having modification authority.
It should be noted that the evidence distribution device provided in the embodiment of the present invention is the same as the inventive concept of the aforementioned evidence distribution method, and thus, the terms appearing herein have been explained in detail in the discussion of the aforementioned method, and are not described again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, where the electronic device 50 includes: at least one processor 501, a memory 502, and at least one communication interface 503, the various components of the electronic device 50 being coupled together by a bus system 504, it being understood that the bus system 504 is used to enable connected communication between these components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.
It will be appreciated that the memory 502 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random access Memory (FRAM), a magnetic Random access Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 502 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 50. Examples of such data include: any computer program for operating on the electronic device 50, such as implementations of classifying the plurality of distributed nodes according to role attributes, obtaining classification results, etc., may be embodied in the memory 502.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the electronic Device 50 may be implemented by one or more ApplicatioN Specific INtegrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the above-described methods.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. 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, that is, 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be 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 above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. The evidence-passing distribution method based on the block chain is characterized by being applied to a block chain network, wherein the block chain network comprises a plurality of distributed nodes; the method comprises the following steps:
classifying the distributed nodes according to role attributes to obtain classification results;
determining a distributable block link certificate; performing primary distribution on the distributable block chain evidence according to a first set distribution mode based on the classification result; in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode;
wherein, the assignable block chain general evidence is used to indicate the accumulated resource of a project under the condition of satisfying the set condition.
2. The method of claim 1, further comprising:
determining a first role attribute of a first node; the first node is any node in the block chain network;
determining a second set distribution mode corresponding to the first node based on the first role attribute;
distributing a first block link certificate to the first node based on the corresponding second set distribution mode;
the first block link certificate belongs to the block link certificate obtained by primary distribution corresponding to the first role attribute and is used for indicating the reward for the first node.
3. The method of claim 2, wherein determining the second allocation type corresponding to the first node based on the first attribute comprises:
under the condition that the first role attribute of the first node is determined to be the initiator of the item, determining that a second set distribution mode corresponding to the first node is as follows: and determining the quantity of block chain certificates which are obtained by the first node according to the incidence relation between the first node and the results contained in the project.
4. The method of claim 2, wherein determining the second allocation type corresponding to the first node based on the first attribute comprises:
when the role attribute of the first node is determined to be the supporter of the project, determining that a second setting distribution mode corresponding to the first node is as follows: and determining the number of block chaining licenses which are acquired by the first node according to the supporting mode and/or the supporting time of the first node for the item.
5. The method of claim 2, further comprising:
and monitoring the use condition of the first node for the block chain general evidence obtained by the initial allocation under the condition that the role attribute of the first node is determined to be the operator of the project.
6. The method of claim 2, further comprising:
under the condition that the first role attribute of the first node is determined to be a supporter of a derivative item, the assignable block chain permit obtained by the item is not assigned; wherein the derived item is a new item separated from the item.
7. The method of claim 1, further comprising:
receiving an updated intelligent contract sent by a second node; broadcasting the updated intelligent contract to each node in the blockchain network to cause each node to install the updated intelligent contract;
wherein the updated intelligent contract is obtained by modifying the first setting allocation mode and/or at least one corresponding second setting allocation mode by the second node; the second node is a node of the block chain network having modification authority.
8. The evidence obtaining and distributing device based on the block chain is characterized by being applied to a block chain network, wherein the block chain network comprises a plurality of distributed nodes; the device comprises a classification module, a determination module and an allocation module, wherein the classification module is used for classifying the data;
the classification module is used for classifying the distributed nodes according to the role attributes to obtain classification results;
the determining module is used for determining the distributable block link certificate; the assignable block chain general evidence is used for indicating the accumulated resources of a project under the condition of meeting the set condition;
the distribution module is used for carrying out primary distribution on the distributable block chain certificate according to a first set distribution mode based on the classification result; and in each type of node, redistributing the block chain general certificate obtained by the primary allocation according to a corresponding second set allocation mode.
9. A readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 7 when the computer program is executed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110651671.4A CN113259127A (en) | 2021-06-11 | 2021-06-11 | Block chain-based evidence distribution method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110651671.4A CN113259127A (en) | 2021-06-11 | 2021-06-11 | Block chain-based evidence distribution method and device, electronic equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113259127A true CN113259127A (en) | 2021-08-13 |
Family
ID=77187751
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110651671.4A Pending CN113259127A (en) | 2021-06-11 | 2021-06-11 | Block chain-based evidence distribution method and device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113259127A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114331778A (en) * | 2021-09-30 | 2022-04-12 | 湖北工业大学 | Blockchain-based intelligence collaborative token distribution method and computing equipment |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108712487A (en) * | 2018-05-11 | 2018-10-26 | 北京奇虎科技有限公司 | Logical card distribution method, device and equipment based on block chain |
| CN108876621A (en) * | 2018-06-29 | 2018-11-23 | 杭州云象网络技术有限公司 | Distributed Autonomous formula investment and financing platform construction method based on block chain technology |
| CN111047447A (en) * | 2019-12-26 | 2020-04-21 | 卓尔智联(武汉)研究院有限公司 | Method, device, computer equipment and storage medium for determining the amount of token issued |
| CN111078797A (en) * | 2019-12-26 | 2020-04-28 | 卓尔智联(武汉)研究院有限公司 | Token distribution method, device, computer equipment and storage medium |
| CN111769986A (en) * | 2020-06-29 | 2020-10-13 | 卓尔智联(武汉)研究院有限公司 | Man-machine cooperation method and device based on block chain and electronic equipment |
-
2021
- 2021-06-11 CN CN202110651671.4A patent/CN113259127A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108712487A (en) * | 2018-05-11 | 2018-10-26 | 北京奇虎科技有限公司 | Logical card distribution method, device and equipment based on block chain |
| CN108876621A (en) * | 2018-06-29 | 2018-11-23 | 杭州云象网络技术有限公司 | Distributed Autonomous formula investment and financing platform construction method based on block chain technology |
| CN111047447A (en) * | 2019-12-26 | 2020-04-21 | 卓尔智联(武汉)研究院有限公司 | Method, device, computer equipment and storage medium for determining the amount of token issued |
| CN111078797A (en) * | 2019-12-26 | 2020-04-28 | 卓尔智联(武汉)研究院有限公司 | Token distribution method, device, computer equipment and storage medium |
| CN111769986A (en) * | 2020-06-29 | 2020-10-13 | 卓尔智联(武汉)研究院有限公司 | Man-machine cooperation method and device based on block chain and electronic equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114331778A (en) * | 2021-09-30 | 2022-04-12 | 湖北工业大学 | Blockchain-based intelligence collaborative token distribution method and computing equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12028459B2 (en) | Multi-access edge computing node with distributed ledger | |
| US12412180B2 (en) | System and techniques for utilizing a smart contracts library | |
| KR101950912B1 (en) | Verification system and method for transaction based block chain | |
| CN108959621B (en) | Method, device, equipment and storage medium for realizing block chain network | |
| CN110991622B (en) | Machine learning model processing method based on block chain network and node | |
| EP3610436B1 (en) | Rapid distributed consensus on blockchain | |
| CN109040029B (en) | Method and apparatus for executing transactions in a blockchain | |
| JP2024147682A (en) | SYSTEM AND METHOD FOR CONTROLLING ASSET RELATED ACTIVITIES VIA BLOCKCHAIN | |
| WO2020252479A1 (en) | System and method using a fitness-gradient blockchain consensus | |
| JP2019160316A (en) | System, method and computer program for resource equity for blockchain | |
| CN108830686A (en) | A kind of assets information processing method and server based on block chain | |
| CN111177797B (en) | Block chain-based data processing method and device and electronic equipment | |
| CN113256297B (en) | Data processing method, device and equipment based on block chain and readable storage medium | |
| CN101297317A (en) | Method and system to support dynamic rights and resources sharing | |
| CN112166445A (en) | Federated Learning Method and Federated Learning Device Based on Blockchain Network | |
| CN114049096A (en) | Blockchain-based personalized customization system and method | |
| CN113256149A (en) | Block chain node reputation adjusting method and device, electronic equipment and storage medium | |
| CN110599144A (en) | Network access method and device for block link points | |
| CN113259127A (en) | Block chain-based evidence distribution method and device, electronic equipment and storage medium | |
| CN109711840A (en) | Transaction data processing method and device and storage medium | |
| CN110852883A (en) | Method and device, node, and readable storage medium for supply chain token issuance | |
| CN113256394B (en) | Supply chain resource management system based on intelligent contract | |
| CN113259126B (en) | Blockchain-based achievement processing method, device, electronic device and storage medium | |
| CN112789596B (en) | A method, apparatus, and blockchain node device for processing task processing requests. | |
| CN114579354B (en) | Block chain network service platform, data storage method and storage medium |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210813 |