CN112671793A - Method, device and related product for determining verification node in block chain - Google Patents

Method, device and related product for determining verification node in block chain Download PDF

Info

Publication number
CN112671793A
CN112671793A CN202011615080.3A CN202011615080A CN112671793A CN 112671793 A CN112671793 A CN 112671793A CN 202011615080 A CN202011615080 A CN 202011615080A CN 112671793 A CN112671793 A CN 112671793A
Authority
CN
China
Prior art keywords
dice
block chain
blockchain
model
faces
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.)
Granted
Application number
CN202011615080.3A
Other languages
Chinese (zh)
Other versions
CN112671793B (en
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.)
Beijing Octa Innovations Information Technology Co Ltd
Original Assignee
Beijing Octa Innovations Information Technology 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 Beijing Octa Innovations Information Technology Co Ltd filed Critical Beijing Octa Innovations Information Technology Co Ltd
Priority to CN202011615080.3A priority Critical patent/CN112671793B/en
Publication of CN112671793A publication Critical patent/CN112671793A/en
Application granted granted Critical
Publication of CN112671793B publication Critical patent/CN112671793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application discloses a method and a device for determining verification nodes in a block chain and a related product, wherein dices are generated in real time through at least part of block chain link points in a block chain system based on a set dice model and are broadcasted inside the block chain system; the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible. Therefore, the state of the block chain node is verified conveniently, the verification efficiency is improved, and the operation efficiency of the block chain system is improved.

Description

Method, device and related product for determining verification node in block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for determining a verification node in a blockchain, and a related product.
Background
The block chain system is an integrated application mode of technologies such as a distributed data storage system, point-to-point transmission, a consensus mechanism and an encryption algorithm, and can realize trust and value transfer which cannot be realized by the traditional internet on the internet. The blockchain system comprises a plurality of blockchain nodes, and because the blockchain system is a decentralized system, if the normal and safe operation of the blockchain system is ensured, the states of the blockchain nodes must be verified, and the blockchain nodes can participate in the operation only if the states of the blockchain nodes are credible. However, in the prior art, the verification process is complicated, so that the verification efficiency is low, and the operation of the blockchain system is greatly influenced.
Disclosure of Invention
Based on the above problems, embodiments of the present application provide a method and an apparatus for determining a verification node in a blockchain, and a related product.
In a first aspect, an embodiment of the present application provides a method for determining a proving node in a block chain, including:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
Optionally, in a specific embodiment, at least a part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast inside the block chain system, including: at least part of the block chain link points in the block chain system generate each face of the dice in real time based on the set dice model and broadcast in the block chain system.
Optionally, in a specific embodiment, at least part of the block chain link points in the block chain system generate the faces of the dice in real time based on the set dice model and broadcast inside the block chain system, including: at least some of the blockchain link points in the blockchain system generate respective faces of the dice in time segments based on the set dice model and broadcast within the blockchain system.
Optionally, in a specific embodiment, the receiving the block chain node points of the die to determine whether the faces of the die are uniform comprises: and judging whether each face of the dice is uniform or not based on the set probability model after the block chain link points of the dice are received.
In a second aspect, an embodiment of the present application provides an apparatus for determining a proving node in a blockchain, including:
a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system;
and the verification unit is used for judging whether all the faces of the dice are uniform or not by the block chain node points of the received dice, and if so, verifying that the block chain node points of the dice are credible.
Optionally, in a specific embodiment, the dice generation unit is further configured to enable at least some of the dice link points in the blockchain system to generate respective faces of the dice in real time based on the set dice model and to broadcast the faces inside the blockchain system.
Optionally, in a specific embodiment, the dice generation unit is further configured to enable at least part of the dice link points in the blockchain system to generate the faces of the dice based on the set dice model time-sharing period and to broadcast the faces inside the blockchain system.
In a third aspect, an embodiment of the present application provides a blockchain system, including: a plurality of block chain nodes, each block chain node is provided with a device for confirming the node in the block chain, which is characterized in that the device comprises: a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system; and the verification unit is used for judging whether all the faces of the dice are uniform or not by the block chain node points of the received dice, and if so, verifying that the block chain node points of the dice are credible.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory having computer-executable instructions stored thereon and a processor for executing the computer-executable instructions to perform the steps of:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible. .
In a fifth aspect, an embodiment of the present application provides a computer storage medium having computer-executable instructions stored thereon, where the computer-executable instructions, when executed, implement the following steps:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
The application discloses a method and a device for determining verification nodes in a block chain and a related product, wherein dices are generated in real time through at least part of block chain link points in a block chain system based on a set dice model and are broadcasted inside the block chain system; the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible. Therefore, the state of the block chain node is verified conveniently, the verification efficiency is improved, and the operation efficiency of the block chain system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a method for determining a verified node in a blockchain according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an apparatus for determining a verified node in a blockchain according to an embodiment of the present disclosure;
fig. 3 is a block chain system according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a computer storage medium provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
It is not necessary for any particular embodiment of the invention to achieve all of the above advantages at the same time.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, an embodiment of the present application provides a method for determining a verification node in a blockchain, including:
s101: at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
optionally, in this embodiment, the blockchain system may be a federation chain, a private chain, or a public chain; alternatively, in this embodiment, the block link points may be a block chain light node and a block chain full node. The block chain whole node is a node which possesses all transaction data of the whole network, and the block chain light node is a node which only possesses the transaction data related to the light node.
Optionally, in this embodiment, the block chain node points of the generated dice may also be the block chain node points of the dice received from the other block chain node points.
Optionally, in this embodiment, a monitoring module is disposed on each block chain node, and the monitoring module is configured to monitor whether there is a dice broadcasted in the block chain system, and if there is a dice broadcasted in the block chain system, receive the dice broadcasted;
optionally, in this embodiment, the monitoring module is provided with a monitoring policy, such as timing or monitoring only dice in a fixed format, where it is to be noted that the monitoring modules on all the block link points in the block chain system have the same monitoring mechanism, and the monitoring mechanism corresponds to parameters of the dice model, such as a generation algorithm, a generation time, and the like.
Optionally, in a specific embodiment, at least a part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast inside the block chain system, including: at least part of the block chain link points in the block chain system generate each face of the dice in real time based on the set dice model and broadcast in the block chain system.
Optionally, in this embodiment, the faces of the dice generated by the dice model in real time may be generated simultaneously, or only one face may be generated each time, and a plurality of faces may be generated continuously.
Optionally, in this embodiment, the faces of the dice may be set, and the dice model may be flexibly set according to the requirements of the application scenario.
Optionally, the shape of the die may also be configured by a die model, such as if the faces are generated simultaneously, the die model includes a plurality of die sub-models, each die sub-model being responsible for generating one of the faces, and a particular die sub-model may be configured in the shape of the die.
Optionally, when the dice model (including the dice sub-model) generates a face of the dice, log data of a system start process of the block chain node and running log data of an application program after the system start are used as input;
optionally, in this embodiment, when each face of the generated dice is broadcasted inside the blockchain system, the faces may be based on TCP (Transmission Control Protocol), UDP (User Datagram Protocol), coap (Constrained Application Protocol), mqtt (Message Queuing telemeasuring Transport Protocol), mqttn (Message Queuing telemeasuring Transport-Sensor network, Message Queuing telemeasuring Transport Protocol Sensor version);
optionally, in this embodiment, the block chain nodes in the block chain system may be grouped, so that each block chain node exists in at least two groups, the block chain node performs broadcast polling on the group where the block chain node is located, and after receiving the dice, the other block chain nodes in the group perform broadcast of the dice in another group where the other block chain nodes are located, thereby achieving fast broadcast of the dice, and being capable of quickly determining whether each face of the dice is uniform, further, speeding up the verification efficiency that the block chain node generating the dice is credible, and ensuring efficient cooperative work of the whole block chain system.
Optionally, in a specific embodiment, at least part of the block chain link points in the block chain system generate the faces of the dice in real time based on the set dice model and broadcast inside the block chain system, including: at least some of the blockchain link points in the blockchain system generate respective faces of the dice in time segments based on the set dice model and broadcast within the blockchain system.
Optionally, in an embodiment, one face of the dice is generated in each time period or at a certain time, so that multiple faces can be generated in multiple time periods or multiple times, and the generation of the control faces in the time-division manner avoids the generation of the faces from being too concentrated, so that the impact of a network storm on the blockchain system can be avoided, and the safe operation of the blockchain system is ensured.
Optionally, in this embodiment, the time or the period of generating the surface may be flexibly configured according to the application scenario.
Optionally, in a specific embodiment, the dice model is a normal distribution function;
correspondingly, at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system, and the method comprises the following steps:
and at least part of the block chain link points in the block chain system generate output function values in real time based on the set normal distribution function and broadcast in the block chain system.
Optionally, in a specific embodiment, the normal distribution function is a gaussian function, and correspondingly, at least some of the block chain nodes in the block chain system generate the output function value in real time based on the set normal distribution function and broadcast inside the block chain system, including: at least part of the block chain nodes in the block chain system generate output function values in real time based on the set Gaussian function and broadcast in the block chain system.
Optionally, in this embodiment, because the factor affecting the state of the blockchain node uses a large randomness, for this reason, a normal distribution function is used as the dice model, and this randomness can be effectively dealt with, so that the output function value is distributed in a normal form to accurately and intuitively reflect the probability of whether the state of the blockchain node is credible.
S102: the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
Optionally, in this embodiment, if the faces of the die are uniform, it indicates that the state of the block chain node generating the die is stable, and thus it is determined to be authentic.
Optionally, in this embodiment, the faces of the dice are uniform, i.e. the faces are not substantially different, or are identical, but in practice, it is preferred that the faces are not substantially different.
Optionally, in this embodiment, the confidence of the block chain node has timeliness, for example, the block chain node for generating the dice is determined to be trustworthy at a certain time, which only indicates that the block chain node is trustworthy at the time and does not indicate that the block chain node is always trustworthy; therefore, by means of the scheme of the embodiment of the application, for any block chain node, the steps are repeated until a dice with uniform faces is found, so that the block chain node is proved to be credible at a certain moment. Therefore, in other words, the technical scheme of the embodiment of the application is also equivalent to a detection scheme of the block connection point trusted state, so that the real-time detection of the block link point trusted state is effectively realized, and an important basis is provided for the block link point to participate in subsequent accounting, consensus and the like;
alternatively, in the embodiments of the present application, the blockchain link points at which the dice are generated may be master nodes in the blockchain system, which, in addition to validating, saving and transmitting transactions, promote other events in the blockchain, such as voting events, execution of protocol operations and compliance with the laws of the blockchain, according to their nature, relative to common nodes. The master node is typically always online and provides much more memory than a regular node.
Optionally, in a specific embodiment, the receiving the block chain node points of the die to determine whether the faces of the die are uniform comprises: and judging whether each face of the dice is uniform or not based on the set probability model after the block chain link points of the dice are received.
Optionally, in this embodiment, when determining whether each interview is uniform based on the probability model, the probability model outputs a probability that each face is uniform, and the probability is larger, which proves that each face is likely to be uniform, where in order to quickly and effectively determine whether each face is uniform, a probability threshold or a probability range is set, if the probability output by the probability model is larger than the probability threshold or is within the probability range, each face is determined to be uniform, otherwise, each face is determined to be non-uniform, so that the block link points regenerate the faces of the dice, and through a probability-based manner, a situation that the state of the block link nodes in the block link system is changeable and actually credible can be effectively dealt with.
Optionally, in a specific embodiment, the probabilistic model has a uniform prior probability and an optimal probability for each face of the die; the block chain node points of the received dice judge whether all faces of the dice are uniform or not based on a set probability model, and the method comprises the following steps: and judging whether each face of the dice is uniform or not based on the set probability model, the prior probability and the optimal probability after receiving the block chain link points of the dice.
Optionally, in a specific embodiment, the determining whether each face of the dice is uniform based on the set probability model, the prior probability and the best probability by the block chain node of the received dice includes: and calculating the uniform probability of each face of the dice based on the set probability model after receiving the block chain link points of the dice, and judging whether each face of the dice is uniform or not according to the prior probability and the optimal probability.
Optionally, in this embodiment, the prior probability and the optimal probability may be obtained based on sample learning.
Optionally, in this embodiment, after obtaining the uniform probability of each face of the dice, the probability, the prior probability and the optimal probability are introduced into a bayesian function, a logical probability is calculated, and whether each face of the dice is uniform is determined according to the size of the probability, where the larger the logical probability is, the larger the probability that each face of the dice is uniform is. Specifically, a logical probability threshold or a logical probability range may be set, if the logical probability threshold is greater than the logical probability threshold or is within the logical probability range, the faces of the dice are determined to be uniform, otherwise, the faces are determined to be non-uniform, and further, the faces of the dice are regenerated by the block link points.
Example two
Referring to fig. 2, an apparatus 20 for determining a validating node in a blockchain according to an embodiment of the present application includes:
a dice generation unit 201, configured to generate dice in real time based on the set dice model for at least some of the block chain nodes in the block chain system, and broadcast the dice inside the block chain system;
a verification unit 202, configured to enable the received block chain node of the die to determine whether the faces of the die are uniform, and if so, verify that the block chain node of the die is authentic.
The following is a detailed description:
a dice generation unit 201, configured to generate dice in real time based on the set dice model for at least some of the block chain nodes in the block chain system, and broadcast the dice inside the block chain system;
optionally, in this embodiment, the blockchain system may be a federation chain, a private chain, or a public chain; alternatively, in this embodiment, the block link points may be a block chain light node and a block chain full node. The block chain whole node is a node which possesses all transaction data of the whole network, and the block chain light node is a node which only possesses the transaction data related to the light node.
Optionally, in this embodiment, the block chain node points of the generated dice may also be the block chain node points of the dice received from the other block chain node points.
Optionally, in this embodiment, a monitoring module is disposed on each block chain node, and the monitoring module is configured to monitor whether there is a dice broadcasted in the block chain system, and if there is a dice broadcasted in the block chain system, receive the dice broadcasted;
optionally, in this embodiment, the monitoring module is provided with a monitoring policy, such as timing or monitoring only dice in a fixed format, where it is to be noted that the monitoring modules on all the block link points in the block chain system have the same monitoring mechanism, and the monitoring mechanism corresponds to parameters of the dice model, such as a generation algorithm, a generation time, and the like.
Optionally, in a specific embodiment, the dice generation unit 201 is further configured to enable at least some of the dice link points in the blockchain system to generate respective faces of the dice in real time based on the set dice model and broadcast within the blockchain system.
Optionally, in this embodiment, the faces of the dice generated by the dice model in real time may be generated simultaneously, or only one face may be generated each time, and a plurality of faces may be generated continuously.
Optionally, in this embodiment, the faces of the dice may be set, and the dice model may be flexibly set according to the requirements of the application scenario.
Optionally, the shape of the die may also be configured by a die model, such as if the faces are generated simultaneously, the die model includes a plurality of die sub-models, each die sub-model being responsible for generating one of the faces, and a particular die sub-model may be configured in the shape of the die.
Optionally, when the dice model (including the dice sub-model) generates a face of the dice, log data of a system start process of the block chain node and running log data of an application program after the system start are used as input;
optionally, in this embodiment, when each face of the generated dice is broadcasted inside the blockchain system, the faces may be based on TCP (Transmission Control Protocol), UDP (User Datagram Protocol), coap (Constrained Application Protocol), mqtt (Message Queuing telemeasuring Transport Protocol), mqttn (Message Queuing telemeasuring Transport-Sensor network, Message Queuing telemeasuring Transport Protocol Sensor version);
optionally, in this embodiment, the dice generating unit 201 is further configured to group the block chain nodes in the block chain system, so that each block chain node exists in at least two groups, the block chain node performs broadcast polling on the group where the block chain node is located, and after receiving the dice from other block chain nodes in the group, the dice is broadcast in another group where the other block chain nodes are located, so as to achieve fast broadcast of the dice, and can quickly determine whether each face of the dice is uniform, further, speed up the verification efficiency that the block chain node generating the dice is credible, and ensure efficient cooperative work of the entire block chain system.
Optionally, in a specific embodiment, the die generating unit 201 is further configured to enable at least part of the dice link points in the blockchain system to generate the faces of the dice based on the set dice model time-sharing period and broadcast within the blockchain system.
Optionally, in an embodiment, the dice generation unit 201 is further configured to generate one face of the dice at each time period or at a certain time, so that a plurality of faces can be generated at a plurality of time periods or a plurality of times, and by controlling the generation of the faces in a time-division manner, the faces are prevented from being excessively generated, so that an impact of a network storm on the blockchain system can be avoided, and safe operation of the blockchain system is ensured.
Optionally, in this embodiment, the time or the period of generating the surface may be flexibly configured according to the application scenario.
Optionally, in a specific embodiment, the dice model is a normal distribution function;
correspondingly, the dice generating unit 201 is further configured to enable at least some of the block chain nodes in the block chain system to generate output function values in real time based on the set normal distribution function and broadcast the output function values inside the block chain system.
Optionally, in a specific embodiment, the normal distribution function is a gaussian function, and correspondingly, the dice generation unit 201 is further configured to enable at least some of the block chain nodes in the block chain system to generate output function values in real time based on the set gaussian function and broadcast the output function values inside the block chain system.
Optionally, in this embodiment, because the factor affecting the state of the blockchain node uses a large randomness, for this reason, a normal distribution function is used as the dice model, and this randomness can be effectively dealt with, so that the output function value is distributed in a normal form to accurately and intuitively reflect the probability of whether the state of the blockchain node is credible.
A verification unit 202, configured to enable the received block chain node of the die to determine whether the faces of the die are uniform, and if so, verify that the block chain node of the die is authentic.
Optionally, in this embodiment, if the faces of the die are uniform, it indicates that the state of the block chain node generating the die is stable, and thus it is determined to be authentic.
Optionally, in this embodiment, the faces of the dice are uniform, i.e. the faces are not substantially different, or are identical, but in practice, it is preferred that the faces are not substantially different.
Optionally, in this embodiment, the trusted status of the block chain node has timeliness, for example, the block chain node for generating the dice is determined to be trusted at a certain time, which only indicates that the block chain node is trusted at the certain time, and does not indicate that the block chain node is always trusted; therefore, by means of the scheme of the embodiment of the application, for any block chain node, the steps are repeated until a dice with uniform faces is found, so that the block chain node is proved to be credible at a certain moment. Therefore, in other words, the technical scheme of the embodiment of the application is also equivalent to a detection scheme of the block connection point trusted state, so that the real-time detection of the block link point trusted state is effectively realized, and an important basis is provided for the block link point to participate in subsequent accounting, consensus and the like;
alternatively, in the embodiments of the present application, the blockchain link points at which the dice are generated may be master nodes in the blockchain system, which, in addition to validating, saving and transmitting transactions, promote other events in the blockchain, such as voting events, execution of protocol operations and compliance with the laws of the blockchain, according to their nature, relative to common nodes. The master node is typically always online and provides much more memory than a regular node.
Optionally, in a specific embodiment, the verifying unit 202 is further configured to determine whether the faces of the dice are uniform based on the set probability model.
Optionally, in this embodiment, when determining whether each interview is uniform based on the probability model, the probability model outputs a probability that each face is uniform, and the probability is larger, which proves that each face is likely to be uniform, where in order to quickly and effectively determine whether each face is uniform, a probability threshold or a probability range is set, if the probability output by the probability model is larger than the probability threshold or is within the probability range, each face is determined to be uniform, otherwise, each face is determined to be non-uniform, so that the block link points regenerate the faces of the dice, and through a probability-based manner, a situation that the state of the block link nodes in the block link system is changeable and actually credible can be effectively dealt with.
Optionally, in a specific embodiment, the probabilistic model has a uniform prior probability and an optimal probability for each face of the die; the validation unit 202 is further configured to determine whether each face of the dice is uniform based on the set probability model, the prior probability and the optimal probability.
Optionally, in a specific embodiment, the verifying unit 202 is further configured to enable the block chain nodes of the received dice to calculate probabilities of uniformity of the faces of the dice based on a set probability model, and determine whether the faces of the dice are uniform according to the prior probabilities and the optimal probabilities.
Optionally, in this embodiment, the prior probability and the optimal probability may be obtained based on sample learning.
Optionally, in this embodiment, the verifying unit 202 obtains the probability that each face of the dice is uniform, and then brings the probability, the prior probability and the optimal probability into a bayesian function, calculates a logical probability, and determines whether each face of the dice is uniform according to the size of the probability, where the larger the logical probability is, the larger the probability that each face of the dice is uniform is. Specifically, the validating unit 202 may set a logical probability threshold or a logical probability range, and if the logical probability threshold is greater than the logical probability threshold or is within the logical probability range, determine that each face of the dice is uniform, otherwise, determine that each face is non-uniform, and further enable the block chain nodes to regenerate the faces of the dice.
EXAMPLE III
Referring to fig. 3, an embodiment of the present application provides a block chain system, including: a plurality of blockchain nodes 301, each blockchain node being provided with a device for determining a confirmation node in a blockchain, comprising: a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system; and the verification unit is used for judging whether all the faces of the dice are uniform or not by the block chain node points of the received dice, and if so, verifying that the block chain node points of the dice are credible.
The following is a detailed description:
a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system;
optionally, in this embodiment, the blockchain system may be a federation chain, a private chain, or a public chain; alternatively, in this embodiment, the block link points may be a block chain light node and a block chain full node. The block chain whole node is a node which possesses all transaction data of the whole network, and the block chain light node is a node which only possesses the transaction data related to the light node.
Optionally, in this embodiment, the block chain node points of the generated dice may also be the block chain node points of the dice received from the other block chain node points.
Optionally, in this embodiment, a monitoring module is disposed on each block chain node, and the monitoring module is configured to monitor whether there is a dice broadcasted in the block chain system, and if there is a dice broadcasted in the block chain system, receive the dice broadcasted;
optionally, in this embodiment, the monitoring module is provided with a monitoring policy, such as timing or monitoring only dice in a fixed format, where it is to be noted that the monitoring modules on all the block link points in the block chain system have the same monitoring mechanism, and the monitoring mechanism corresponds to parameters of the dice model, such as a generation algorithm, a generation time, and the like.
Optionally, in a specific embodiment, the dice generation unit is further configured to enable at least some of the dice link points in the blockchain system to generate respective faces of the dice in real time based on the set dice model and to broadcast the faces inside the blockchain system.
Optionally, in this embodiment, the faces of the dice generated by the dice model in real time may be generated simultaneously, or only one face may be generated each time, and a plurality of faces may be generated continuously.
Optionally, in this embodiment, the faces of the dice may be set, and the dice model may be flexibly set according to the requirements of the application scenario.
Optionally, the shape of the die may also be configured by a die model, such as if the faces are generated simultaneously, the die model includes a plurality of die sub-models, each die sub-model being responsible for generating one of the faces, and a particular die sub-model may be configured in the shape of the die.
Optionally, when the dice model (including the dice sub-model) generates a face of the dice, log data of a system start process of the block chain node and running log data of an application program after the system start are used as input;
optionally, in this embodiment, when each face of the generated dice is broadcasted inside the blockchain system, the faces may be based on TCP (Transmission Control Protocol), UDP (User Datagram Protocol), coap (Constrained Application Protocol), mqtt (Message Queuing telemeasuring Transport Protocol), mqttn (Message Queuing telemeasuring Transport-Sensor network, Message Queuing telemeasuring Transport Protocol Sensor version);
optionally, in this embodiment, the dice generation unit is further configured to group the block link points in the block chain system, so that each block chain node exists in at least two groups, the block link point performs broadcast polling on the group where the block link point is located, and after receiving the dice from other block link points in the group, the dice is broadcast in another group where the other block link nodes are located, so as to achieve fast broadcast of the dice, and can quickly determine whether each face of the dice is uniform, further, speed up the verification efficiency that the block link points that generate the dice are authentic, and ensure efficient cooperative work of the entire block chain system.
Optionally, in a specific embodiment, the dice generation unit is further configured to enable at least part of the dice link points in the blockchain system to generate the faces of the dice based on the set dice model time-sharing period and to broadcast the faces inside the blockchain system.
Optionally, in an embodiment, the dice generation unit is further configured to generate one face of the dice at each time period or at a certain time, so that a plurality of faces can be generated at a plurality of time periods or a plurality of times, and the generation of the control plane in a time-division manner avoids the face from being too concentrated, so that an impact of a network storm on the blockchain system can be avoided, and safe operation of the blockchain system is ensured.
Optionally, in this embodiment, the time or the period of generating the surface may be flexibly configured according to the application scenario.
Optionally, in a specific embodiment, the dice model is a normal distribution function;
correspondingly, the dice generation unit is further used for enabling at least part of the block chain points in the block chain system to generate output function values in real time based on the set normal distribution function and broadcasting the output function values inside the block chain system.
Optionally, in a specific embodiment, the normal distribution function is a gaussian function, and correspondingly, the dice generation unit is further configured to enable at least some of the block chain nodes in the block chain system to generate output function values in real time based on the set gaussian function and broadcast the output function values inside the block chain system.
Optionally, in this embodiment, because the factor affecting the state of the blockchain node uses a large randomness, for this reason, a normal distribution function is used as the dice model, and this randomness can be effectively dealt with, so that the output function value is distributed in a normal form to accurately and intuitively reflect the probability of whether the state of the blockchain node is credible.
And the verification unit is used for judging whether all the faces of the dice are uniform or not by the block chain node points of the received dice, and if so, verifying that the block chain node points of the dice are credible.
Optionally, in this embodiment, if the faces of the die are uniform, it indicates that the state of the block chain node generating the die is stable, and thus it is determined to be authentic.
Optionally, in this embodiment, the faces of the dice are uniform, i.e. the faces are not substantially different, or are identical, but in practice, it is preferred that the faces are not substantially different.
Optionally, in this embodiment, the trusted status of the block chain node has timeliness, for example, the block chain node for generating the dice is determined to be trusted at a certain time, which only indicates that the block chain node is trusted at the certain time, and does not indicate that the block chain node is always trusted; therefore, by means of the scheme of the embodiment of the application, for any block chain node, the steps are repeated until a dice with uniform faces is found, so that the block chain node is proved to be credible at a certain moment. Therefore, in other words, the technical scheme of the embodiment of the application is also equivalent to a detection scheme of the block connection point trusted state, so that the real-time detection of the block link point trusted state is effectively realized, and an important basis is provided for the block link point to participate in subsequent accounting, consensus and the like;
alternatively, in the embodiments of the present application, the blockchain link points at which the dice are generated may be master nodes in the blockchain system, which, in addition to validating, saving and transmitting transactions, promote other events in the blockchain, such as voting events, execution of protocol operations and compliance with the laws of the blockchain, according to their nature, relative to common nodes. The master node is typically always online and provides much more memory than a regular node.
Optionally, in a specific embodiment, the verifying unit is further configured to determine whether the faces of the dice are uniform based on the set probability model.
Optionally, in this embodiment, when determining whether each interview is uniform based on the probability model, the probability model outputs a probability that each face is uniform, and the probability is larger, which proves that each face is likely to be uniform, where in order to quickly and effectively determine whether each face is uniform, a probability threshold or a probability range is set, if the probability output by the probability model is larger than the probability threshold or is within the probability range, each face is determined to be uniform, otherwise, each face is determined to be non-uniform, so that the block link points regenerate the faces of the dice, and through a probability-based manner, a situation that the state of the block link nodes in the block link system is changeable and actually credible can be effectively dealt with.
Optionally, in a specific embodiment, the probabilistic model has a uniform prior probability and an optimal probability for each face of the die; the confirming unit is further used for enabling the block chain link points of the received dice to judge whether all the faces of the dice are uniform or not based on the set probability model, the prior probability and the optimal probability.
Optionally, in a specific embodiment, the verifying unit is further configured to enable the block chain nodes of the received dice to calculate probabilities of uniformity of the faces of the dice based on a set probability model, and determine whether the faces of the dice are uniform according to the prior probabilities and the optimal probabilities.
Optionally, in this embodiment, the prior probability and the optimal probability may be obtained based on sample learning.
Optionally, in this embodiment, the verifying unit obtains the probability that each face of the dice is uniform, and then brings the probability, the prior probability and the optimal probability into a bayesian function, calculates a logical probability, and determines whether each face of the dice is uniform according to the size of the probability, where the larger the logical probability is, the larger the probability that each face of the dice is uniform is. Specifically, the proving unit may set a logical probability threshold or a logical probability range, and if the logical probability threshold is greater than the logical probability threshold or is within the logical probability range, determine that each face of the dice is uniform, otherwise, determine that each face is non-uniform, and further enable the block link points to regenerate the faces of the dice.
Example four
Referring to fig. 4, an embodiment of the present application provides an electronic device, including: a memory having computer-executable instructions stored thereon and a processor for executing the computer-executable instructions to perform the steps of:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
The following is a detailed description:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
optionally, in this embodiment, the blockchain system may be a federation chain, a private chain, or a public chain; alternatively, in this embodiment, the block link points may be a block chain light node and a block chain full node. The block chain whole node is a node which possesses all transaction data of the whole network, and the block chain light node is a node which only possesses the transaction data related to the light node.
Optionally, in this embodiment, the block chain node points of the generated dice may also be the block chain node points of the dice received from the other block chain node points.
Optionally, in this embodiment, a monitoring module is disposed on each block chain node, and the monitoring module is configured to monitor whether there is a dice broadcasted in the block chain system, and if there is a dice broadcasted in the block chain system, receive the dice broadcasted;
optionally, in this embodiment, the monitoring module is provided with a monitoring policy, such as timing or monitoring only dice in a fixed format, where it is to be noted that the monitoring modules on all the block link points in the block chain system have the same monitoring mechanism, and the monitoring mechanism corresponds to parameters of the dice model, such as a generation algorithm, a generation time, and the like.
Optionally, in a specific embodiment, at least a part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast inside the block chain system, including: at least part of the block chain link points in the block chain system generate each face of the dice in real time based on the set dice model and broadcast in the block chain system.
Optionally, in this embodiment, the faces of the dice generated by the dice model in real time may be generated simultaneously, or only one face may be generated each time, and a plurality of faces may be generated continuously.
Optionally, in this embodiment, the faces of the dice may be set, and the dice model may be flexibly set according to the requirements of the application scenario.
Optionally, the shape of the die may also be configured by a die model, such as if the faces are generated simultaneously, the die model includes a plurality of die sub-models, each die sub-model being responsible for generating one of the faces, and a particular die sub-model may be configured in the shape of the die.
Optionally, when the dice model (including the dice sub-model) generates a face of the dice, log data of a system start process of the block chain node and running log data of an application program after the system start are used as input;
optionally, in this embodiment, when each face of the generated dice is broadcasted inside the blockchain system, the faces may be based on TCP (Transmission Control Protocol), UDP (User Datagram Protocol), coap (Constrained Application Protocol), mqtt (Message Queuing telemeasuring Transport Protocol), mqttn (Message Queuing telemeasuring Transport-Sensor network, Message Queuing telemeasuring Transport Protocol Sensor version);
optionally, in this embodiment, the block chain nodes in the block chain system may be grouped, so that each block chain node exists in at least two groups, the block chain node performs broadcast polling on the group where the block chain node is located, and after receiving the dice, the other block chain nodes in the group perform broadcast of the dice in another group where the other block chain nodes are located, thereby achieving fast broadcast of the dice, and being capable of quickly determining whether each face of the dice is uniform, further, speeding up the verification efficiency that the block chain node generating the dice is credible, and ensuring efficient cooperative work of the whole block chain system.
Optionally, in a specific embodiment, at least part of the block chain link points in the block chain system generate the faces of the dice in real time based on the set dice model and broadcast inside the block chain system, including: at least some of the blockchain link points in the blockchain system generate respective faces of the dice in time segments based on the set dice model and broadcast within the blockchain system.
Optionally, in an embodiment, one face of the dice is generated in each time period or at a certain time, so that multiple faces can be generated in multiple time periods or multiple times, and the generation of the control faces in the time-division manner avoids the generation of the faces from being too concentrated, so that the impact of a network storm on the blockchain system can be avoided, and the safe operation of the blockchain system is ensured.
Optionally, in this embodiment, the time or the period of generating the surface may be flexibly configured according to the application scenario.
Optionally, in a specific embodiment, the dice model is a normal distribution function;
correspondingly, at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system, and the method comprises the following steps:
and at least part of the block chain link points in the block chain system generate output function values in real time based on the set normal distribution function and broadcast in the block chain system.
Optionally, in a specific embodiment, the normal distribution function is a gaussian function, and correspondingly, at least some of the block chain nodes in the block chain system generate the output function value in real time based on the set normal distribution function and broadcast inside the block chain system, including: at least part of the block chain nodes in the block chain system generate output function values in real time based on the set Gaussian function and broadcast in the block chain system.
Optionally, in this embodiment, because the factor affecting the state of the blockchain node uses a large randomness, for this reason, a normal distribution function is used as the dice model, and this randomness can be effectively dealt with, so that the output function value is distributed in a normal form to accurately and intuitively reflect the probability of whether the state of the blockchain node is credible.
The block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
Optionally, in this embodiment, if the faces of the die are uniform, it indicates that the state of the block chain node generating the die is stable, and thus it is determined to be authentic.
Optionally, in this embodiment, the faces of the dice are uniform, i.e. the faces are not substantially different, or are identical, but in practice, it is preferred that the faces are not substantially different.
Optionally, in this embodiment, the trusted status of the block chain node has timeliness, for example, the block chain node for generating the dice is determined to be trusted at a certain time, which only indicates that the block chain node is trusted at the certain time, and does not indicate that the block chain node is always trusted; therefore, by means of the scheme of the embodiment of the application, for any block chain node, the steps are repeated until a dice with uniform faces is found, so that the block chain node is proved to be credible at a certain moment. Therefore, in other words, the technical scheme of the embodiment of the application is also equivalent to a detection scheme of the block connection point trusted state, so that the real-time detection of the block link point trusted state is effectively realized, and an important basis is provided for the block link point to participate in subsequent accounting, consensus and the like;
alternatively, in the embodiments of the present application, the blockchain link points at which the dice are generated may be master nodes in the blockchain system, which, in addition to validating, saving and transmitting transactions, promote other events in the blockchain, such as voting events, execution of protocol operations and compliance with the laws of the blockchain, according to their nature, relative to common nodes. The master node is typically always online and provides much more memory than a regular node.
Optionally, in a specific embodiment, the receiving the block chain node points of the die to determine whether the faces of the die are uniform comprises: and judging whether each face of the dice is uniform or not based on the set probability model after the block chain link points of the dice are received.
Optionally, in this embodiment, when determining whether each interview is uniform based on the probability model, the probability model outputs a probability that each face is uniform, and the probability is larger, which proves that each face is likely to be uniform, where in order to quickly and effectively determine whether each face is uniform, a probability threshold or a probability range is set, if the probability output by the probability model is larger than the probability threshold or is within the probability range, each face is determined to be uniform, otherwise, each face is determined to be non-uniform, so that the block link points regenerate the faces of the dice, and through a probability-based manner, a situation that the state of the block link nodes in the block link system is changeable and actually credible can be effectively dealt with.
Optionally, in a specific embodiment, the probabilistic model has a uniform prior probability and an optimal probability for each face of the die; the block chain node points of the received dice judge whether all faces of the dice are uniform or not based on a set probability model, and the method comprises the following steps: and judging whether each face of the dice is uniform or not based on the set probability model, the prior probability and the optimal probability after receiving the block chain link points of the dice.
Optionally, in a specific embodiment, the determining whether each face of the dice is uniform based on the set probability model, the prior probability and the best probability by the block chain node of the received dice includes: and calculating the uniform probability of each face of the dice based on the set probability model after receiving the block chain link points of the dice, and judging whether each face of the dice is uniform or not according to the prior probability and the optimal probability.
Optionally, in this embodiment, the prior probability and the optimal probability may be obtained based on sample learning.
Optionally, in this embodiment, after obtaining the uniform probability of each face of the dice, the probability, the prior probability and the optimal probability are introduced into a bayesian function, a logical probability is calculated, and whether each face of the dice is uniform is determined according to the size of the probability, where the larger the logical probability is, the larger the probability that each face of the dice is uniform is. Specifically, a logical probability threshold or a logical probability range may be set, if the logical probability threshold is greater than the logical probability threshold or is within the logical probability range, the faces of the dice are determined to be uniform, otherwise, the faces are determined to be non-uniform, and further, the faces of the dice are regenerated by the block link points.
EXAMPLE five
Referring to fig. 5, an embodiment of the present application provides a computer storage medium having computer-executable instructions stored thereon, where the computer-executable instructions, when executed, implement the following steps:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
The following is a detailed description:
at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
optionally, in this embodiment, the blockchain system may be a federation chain, a private chain, or a public chain; alternatively, in this embodiment, the block link points may be a block chain light node and a block chain full node. The block chain whole node is a node which possesses all transaction data of the whole network, and the block chain light node is a node which only possesses the transaction data related to the light node.
Optionally, in this embodiment, the block chain node points of the generated dice may also be the block chain node points of the dice received from the other block chain node points.
Optionally, in this embodiment, a monitoring module is disposed on each block chain node, and the monitoring module is configured to monitor whether there is a dice broadcasted in the block chain system, and if there is a dice broadcasted in the block chain system, receive the dice broadcasted;
optionally, in this embodiment, the monitoring module is provided with a monitoring policy, such as timing or monitoring only dice in a fixed format, where it is to be noted that the monitoring modules on all the block link points in the block chain system have the same monitoring mechanism, and the monitoring mechanism corresponds to parameters of the dice model, such as a generation algorithm, a generation time, and the like.
Optionally, in a specific embodiment, at least a part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast inside the block chain system, including: at least part of the block chain link points in the block chain system generate each face of the dice in real time based on the set dice model and broadcast in the block chain system.
Optionally, in this embodiment, the faces of the dice generated by the dice model in real time may be generated simultaneously, or only one face may be generated each time, and a plurality of faces may be generated continuously.
Optionally, in this embodiment, the faces of the dice may be set, and the dice model may be flexibly set according to the requirements of the application scenario.
Optionally, the shape of the die may also be configured by a die model, such as if the faces are generated simultaneously, the die model includes a plurality of die sub-models, each die sub-model being responsible for generating one of the faces, and a particular die sub-model may be configured in the shape of the die.
Optionally, when the dice model (including the dice sub-model) generates a face of the dice, log data of a system start process of the block chain node and running log data of an application program after the system start are used as input;
optionally, in this embodiment, when each face of the generated dice is broadcasted inside the blockchain system, the faces may be based on TCP (Transmission Control Protocol), UDP (User Datagram Protocol), coap (Constrained Application Protocol), mqtt (Message Queuing telemeasuring Transport Protocol), mqttn (Message Queuing telemeasuring Transport-Sensor network, Message Queuing telemeasuring Transport Protocol Sensor version);
optionally, in this embodiment, the block chain nodes in the block chain system may be grouped, so that each block chain node exists in at least two groups, the block chain node performs broadcast polling on the group where the block chain node is located, and after receiving the dice, the other block chain nodes in the group perform broadcast of the dice in another group where the other block chain nodes are located, thereby achieving fast broadcast of the dice, and being capable of quickly determining whether each face of the dice is uniform, further, speeding up the verification efficiency that the block chain node generating the dice is credible, and ensuring efficient cooperative work of the whole block chain system.
Optionally, in a specific embodiment, at least part of the block chain link points in the block chain system generate the faces of the dice in real time based on the set dice model and broadcast inside the block chain system, including: at least some of the blockchain link points in the blockchain system generate respective faces of the dice in time segments based on the set dice model and broadcast within the blockchain system.
Optionally, in an embodiment, one face of the dice is generated in each time period or at a certain time, so that multiple faces can be generated in multiple time periods or multiple times, and the generation of the control faces in the time-division manner avoids the generation of the faces from being too concentrated, so that the impact of a network storm on the blockchain system can be avoided, and the safe operation of the blockchain system is ensured.
Optionally, in this embodiment, the time or the period of generating the surface may be flexibly configured according to the application scenario.
Optionally, in a specific embodiment, the dice model is a normal distribution function;
correspondingly, at least part of the block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system, and the method comprises the following steps:
and at least part of the block chain link points in the block chain system generate output function values in real time based on the set normal distribution function and broadcast in the block chain system.
Optionally, in a specific embodiment, the normal distribution function is a gaussian function, and correspondingly, at least some of the block chain nodes in the block chain system generate the output function value in real time based on the set normal distribution function and broadcast inside the block chain system, including: at least part of the block chain nodes in the block chain system generate output function values in real time based on the set Gaussian function and broadcast in the block chain system.
Optionally, in this embodiment, because the factor affecting the state of the blockchain node uses a large randomness, for this reason, a normal distribution function is used as the dice model, and this randomness can be effectively dealt with, so that the output function value is distributed in a normal form to accurately and intuitively reflect the probability of whether the state of the blockchain node is credible.
The block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible.
Optionally, in this embodiment, if the faces of the die are uniform, it indicates that the state of the block chain node generating the die is stable, and thus it is determined to be authentic.
Optionally, in this embodiment, the faces of the dice are uniform, i.e. the faces are not substantially different, or are identical, but in practice, it is preferred that the faces are not substantially different.
Optionally, in this embodiment, the trusted status of the block chain node has timeliness, for example, the block chain node for generating the dice is determined to be trusted at a certain time, which only indicates that the block chain node is trusted at the certain time, and does not indicate that the block chain node is always trusted; therefore, by means of the scheme of the embodiment of the application, for any block chain node, the steps are repeated until a dice with uniform faces is found, so that the block chain node is proved to be credible at a certain moment. Therefore, in other words, the technical scheme of the embodiment of the application is also equivalent to a detection scheme of the block connection point trusted state, so that the real-time detection of the block link point trusted state is effectively realized, and an important basis is provided for the block link point to participate in subsequent accounting, consensus and the like;
alternatively, in the embodiments of the present application, the blockchain link points at which the dice are generated may be master nodes in the blockchain system, which, in addition to validating, saving and transmitting transactions, promote other events in the blockchain, such as voting events, execution of protocol operations and compliance with the laws of the blockchain, according to their nature, relative to common nodes. The master node is typically always online and provides much more memory than a regular node.
Optionally, in a specific embodiment, the receiving the block chain node points of the die to determine whether the faces of the die are uniform comprises: and judging whether each face of the dice is uniform or not based on the set probability model after the block chain link points of the dice are received.
Optionally, in this embodiment, when determining whether each interview is uniform based on the probability model, the probability model outputs a probability that each face is uniform, and the probability is larger, which proves that each face is likely to be uniform, where in order to quickly and effectively determine whether each face is uniform, a probability threshold or a probability range is set, if the probability output by the probability model is larger than the probability threshold or is within the probability range, each face is determined to be uniform, otherwise, each face is determined to be non-uniform, so that the block link points regenerate the faces of the dice, and through a probability-based manner, a situation that the state of the block link nodes in the block link system is changeable and actually credible can be effectively dealt with.
Optionally, in a specific embodiment, the probabilistic model has a uniform prior probability and an optimal probability for each face of the die; the block chain node points of the received dice judge whether all faces of the dice are uniform or not based on a set probability model, and the method comprises the following steps: and judging whether each face of the dice is uniform or not based on the set probability model, the prior probability and the optimal probability after receiving the block chain link points of the dice.
Optionally, in a specific embodiment, the determining whether each face of the dice is uniform based on the set probability model, the prior probability and the best probability by the block chain node of the received dice includes: and calculating the uniform probability of each face of the dice based on the set probability model after receiving the block chain link points of the dice, and judging whether each face of the dice is uniform or not according to the prior probability and the optimal probability.
Optionally, in this embodiment, the prior probability and the optimal probability may be obtained based on sample learning.
Optionally, in this embodiment, after obtaining the uniform probability of each face of the dice, the probability, the prior probability and the optimal probability are introduced into a bayesian function, a logical probability is calculated, and whether each face of the dice is uniform is determined according to the size of the probability, where the larger the logical probability is, the larger the probability that each face of the dice is uniform is. Specifically, a logical probability threshold or a logical probability range may be set, if the logical probability threshold is greater than the logical probability threshold or is within the logical probability range, the faces of the dice are determined to be uniform, otherwise, the faces are determined to be non-uniform, and further, the faces of the dice are regenerated by the block link points.
The application discloses a method and a device for determining verification nodes in a block chain and a related product, wherein dices are generated in real time through at least part of block chain link points in a block chain system based on a set dice model and are broadcasted inside the block chain system; the block chain node points of the dice are received to judge whether all sides of the dice are uniform, and if so, the block chain node points of the dice are confirmed to be credible. Therefore, the state of the block chain node is verified conveniently, the verification efficiency is improved, and the operation efficiency of the block chain system is improved.
Referring to fig. 6, fig. 6 is a schematic diagram of a hardware structure of an electronic device in an embodiment of the present application, where the hardware structure of the electronic device may include: a processor 601, a communication interface 602, a computer-readable medium 603, and a communication bus 606;
the processor 601, the communication interface 602, and the computer-readable medium 603 complete communication with each other through the communication bus 606;
optionally, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module;
the processor 601 may be specifically configured to execute the executable program stored in the memory, so as to perform all or part of the methods of any one of the above-described method embodiments.
The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
It should be noted that, in the present specification, all the embodiments are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described embodiments of the apparatus and system are merely illustrative, and the modules illustrated as separate components may or may not be physically separate, and the components suggested as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for determining a validating node in a blockchain, comprising:
at least part of block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
and receiving the block chain link points of the dice to judge whether all faces of the dice are uniform, and if so, confirming that the block chain link points of the dice are credible.
2. The method for determining verified nodes in a blockchain according to claim 1, wherein at least some of the blockchain nodes in the blockchain system generate dices in real time based on a set dice model and broadcast within the blockchain system, comprising: at least part of the block chain link points in the block chain system generate each face of the dice in real time based on the set dice model and broadcast inside the block chain system.
3. The method for determining verified nodes in a blockchain according to claim 2, wherein at least some of the blockchain link points in the blockchain system generate respective faces of a dice in real time based on a set dice model and broadcast within the blockchain system, comprising: at least some of the blockchain link points in the blockchain system generate respective faces of the dice in time segments based on the set dice model and broadcast within the blockchain system.
4. The method of determining validation nodes in a blockchain of claim 1, wherein the receiving the blockchain link points of the die to determine whether the faces of the die are uniform comprises: and judging whether each face of the dice is uniform or not based on a set probability model after the block chain link points of the dice are received.
5. An apparatus for determining a validating node in a blockchain, comprising:
a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system;
and the verification unit is used for judging whether all the faces of the dice are uniform or not after receiving the block chain link points of the dice, and if so, the received block chain link points of the dice verify that the block chain link points for generating the dice are credible.
6. The apparatus of claim 5, wherein the dice generation unit is further configured to enable at least some of the tile link points in the tile chain system to generate and broadcast faces of dice in real time based on the set dice model.
7. The apparatus of claim 6, wherein the dice generation unit is further configured to cause at least some of the blockchain link points in the blockchain system to generate and broadcast faces of the dice based on the set dice model in a timesharing manner within the blockchain system.
8. A blockchain system, comprising: a plurality of block chain nodes, each block chain node is provided with a device for confirming the node in the block chain, which is characterized in that the device comprises: a dice generation unit, which is used for enabling at least part of the block chain nodes in the block chain system to generate dice in real time based on the set dice model and broadcast in the block chain system; and the verification unit is used for judging whether all the faces of the dice are uniform or not after receiving the block chain link points of the dice, and if so, the received block chain link points of the dice verify that the block chain link points for generating the dice are credible.
9. An electronic device, comprising: a memory having computer-executable instructions stored thereon and a processor for executing the computer-executable instructions to perform the steps of:
at least part of block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
and receiving the block chain link points of the dice to judge whether all faces of the dice are uniform, and if so, confirming that the block chain link points of the dice are credible.
10. A computer storage medium having computer-executable instructions stored thereon that, when executed, perform the steps of:
at least part of block chain link points in the block chain system generate dices in real time based on the set dice model and broadcast in the block chain system;
and receiving the block chain link points of the dice to judge whether all faces of the dice are uniform, and if so, confirming that the block chain link points of the dice are credible.
CN202011615080.3A 2020-12-30 2020-12-30 Method, device and related product for determining confirmation node in block chain Active CN112671793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011615080.3A CN112671793B (en) 2020-12-30 2020-12-30 Method, device and related product for determining confirmation node in block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011615080.3A CN112671793B (en) 2020-12-30 2020-12-30 Method, device and related product for determining confirmation node in block chain

Publications (2)

Publication Number Publication Date
CN112671793A true CN112671793A (en) 2021-04-16
CN112671793B CN112671793B (en) 2022-10-14

Family

ID=75411411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011615080.3A Active CN112671793B (en) 2020-12-30 2020-12-30 Method, device and related product for determining confirmation node in block chain

Country Status (1)

Country Link
CN (1) CN112671793B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763319A (en) * 2016-02-02 2016-07-13 南京云创大数据科技股份有限公司 Random multi-state verification code generation method
US20170104703A1 (en) * 2015-10-07 2017-04-13 Line Corporation Method and system for expanding function of message in communication session
WO2018171177A1 (en) * 2017-03-20 2018-09-27 上海中兴软件有限责任公司 Index weight verification method and device of network quality assessment tool
CN111600709A (en) * 2020-05-26 2020-08-28 牛津(海南)区块链研究院有限公司 Method and device for generating verifiable random number

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170104703A1 (en) * 2015-10-07 2017-04-13 Line Corporation Method and system for expanding function of message in communication session
CN105763319A (en) * 2016-02-02 2016-07-13 南京云创大数据科技股份有限公司 Random multi-state verification code generation method
WO2018171177A1 (en) * 2017-03-20 2018-09-27 上海中兴软件有限责任公司 Index weight verification method and device of network quality assessment tool
CN111600709A (en) * 2020-05-26 2020-08-28 牛津(海南)区块链研究院有限公司 Method and device for generating verifiable random number

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
肖德琴等: "基于高斯分布的传感器网络信誉模型", 《通信学报》 *
马满福等: "物联网中跨域移动节点的信任迁移", 《计算机工程》 *

Also Published As

Publication number Publication date
CN112671793B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN109981281B (en) Method and device for determining candidate elements based on block chain proposal random consensus
CN108512939B (en) Block chain consensus method, device and related equipment
CN108848148B (en) Transaction information confirmation method and device based on block chain
CN108509615B (en) Consensus establishing method and device based on drawing mechanism and readable storage medium
CN111327414A (en) Block chain consensus method and system, computer storage medium and electronic device
CN113794694B (en) Binary consensus method and device based on reliable broadcast
CN107182042B (en) Short message channel quality evaluation method, device, medium and system
EP4006742A1 (en) Fork processing method and blockchain node
CN111490878A (en) Key generation method, device, equipment and medium
CN112187475A (en) Method and device for performing multi-center accounting based on trusted computing and related products
CN112202765B (en) Block chain common identification block method, block chain system, electronic device and storage medium
Yun et al. MMOG user participation based decentralized consensus scheme and proof of participation analysis on the bryllite blockchain system
CN111371556B (en) Block link point accounting method, device, equipment and storage medium
CN113626765A (en) Energy data processing method, device, equipment and storage medium
CN112671793B (en) Method, device and related product for determining confirmation node in block chain
CN111600703B (en) SM 2-based signature method, system, electronic equipment and storage medium
CN109348451A (en) The storage method and device of vehicle auxiliary transmission record
CN109788349B (en) Method and related device for detecting computing capability
CN114092101B (en) Transaction verification method and device, storage medium and electronic equipment
CN112131602B (en) Method, device and related product for quickly expanding trust relationship between nodes based on trusted computing
CN114707663A (en) Distributed machine learning method and device, electronic equipment and storage medium
CN112184439A (en) Decentralized transaction method and device based on node sequencing and related products
CN113032478A (en) Block chain system and data uplink method, device, equipment and medium
CN112804305B (en) Credible networking method and system of internet node and related product
CN115622712A (en) Dynamic quitting method and device for nodes in alliance chain and electronic equipment

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
GR01 Patent grant
GR01 Patent grant