CN110572477A - Priority evaluation method and related equipment thereof - Google Patents

Priority evaluation method and related equipment thereof Download PDF

Info

Publication number
CN110572477A
CN110572477A CN201910930061.0A CN201910930061A CN110572477A CN 110572477 A CN110572477 A CN 110572477A CN 201910930061 A CN201910930061 A CN 201910930061A CN 110572477 A CN110572477 A CN 110572477A
Authority
CN
China
Prior art keywords
random seed
client
random
check value
seed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910930061.0A
Other languages
Chinese (zh)
Inventor
周开班
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910930061.0A priority Critical patent/CN110572477A/en
Publication of CN110572477A publication Critical patent/CN110572477A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic 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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a priority evaluation method, which comprises the following steps: the blockchain node device receives a first check value from a first client and a second check value from a second client; the blockchain node device receives a first random seed from a first client and a second random seed from a second client; the block chain node equipment verifies the first check value and the second check value; if the verification is passed, generating a random number according to the first random seed and the second random seed, generating a priority evaluation result according to the random number, and sending the priority evaluation result to the first client and the second client. By adopting the embodiment of the invention, the first random seed and the second random seed can participate in the generation process of the random number, and the priority evaluation result is obtained by utilizing the random number, so that the fairness of the priority evaluation result is realized.

Description

Priority evaluation method and related equipment thereof
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a priority evaluation method and a device related thereto.
Background
In each field in real life, the condition of multi-party priority evaluation is involved, and how to obtain a priority evaluation result is particularly important, so that the priority evaluation result has public confidence.
Currently, the priority evaluation result is obtained through a random number, and a traditional random number generation method generates a random number for the hardware condition based on equipment, so that the traditional random number generation method cannot achieve an ideal effect in many fields. For example, in a two-player game scenario, the random number generated based on the hardware condition of the device is often not meaningful as a criterion for determining the game result. The random number is generated based on the hardware condition of the device, so that the random number is not determined by both game parties, and the game result is judged by the random number, so that the game result has no public credibility.
Disclosure of Invention
The embodiment of the invention provides a priority evaluation method and related equipment thereof, which can enable random seeds to participate in the generation process of random numbers, and block chain node equipment obtains a priority evaluation result by using the random numbers, so that the reliability of the priority evaluation result is improved.
In a first aspect, an embodiment of the present invention provides a priority evaluation method, where the method includes:
The blockchain node device receives a first check value from the first client regarding the first random seed and receives a second check value from the second client regarding the second random seed; the blockchain node device receives a first random seed from a first client and receives a second random seed from a second client; the block chain node equipment verifies a first check value of the first random seed and a second check value of the second random seed; if the verification is passed, generating a random number according to the first random seed and the second random seed; and the block chain node equipment generates priority evaluation results of the first client and the second client according to the random numbers and sends the priority evaluation results to the first client and the second client.
In the technical scheme, after the block link point equipment receives a first check value of a first random seed and a second check value of a second random seed, the block link point equipment receives the first random seed and the second random seed; verifying a first check value of the first random seed and a second check value of the second random seed; if the verification is passed, the block link point device may determine that the first client does not modify the first random seed after sending the first check value, and the second client does not modify the second random seed after sending the second random seed, so as to implement source reliability of the first random seed and the second random seed. And the block chain node equipment generates a random number according to the first random seed and the second random seed, and generates a priority evaluation result of the first client and the second client by using the random number. In the game scene, the random seeds of both game parties can participate in the generation process of the random number, and the game result is obtained by using the random number, so that the game result has public credibility.
In one implementation, the specific implementation manner of the block link point device determining the first interval and the second interval according to the intermediate number may be that: the block chain node equipment takes the intermediate number as the upper limit of the first interval; obtaining a lower limit of a first interval according to the first random seed and the second random seed; and obtaining the upper limit of the second interval according to the first random seed and the second random seed, and taking the intermediate number as the lower limit of the second interval.
In the technical scheme, the operation result of the first random seed and the second random seed is used as the upper limit and the lower limit of the first interval and the second interval, so that the first interval and the second interval can be generated according to the operation result, and the priority evaluation result is obtained according to the fact that the random number is located in the first interval or the second interval, so that the priority evaluation result has public confidence.
In one implementation, the specific implementation manner that the block link point device generates the priority evaluation results of the first client and the second client according to the random number may be as follows: the block chain node equipment generates an intermediate number according to the first random seed and the second random seed; the block chain node equipment determines a first interval and a second interval according to the number of the intermediate intervals; and when the random number is positioned in the first interval, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client is higher than that of the second client. The first random seed belongs to the first interval, and the second random seed belongs to the second interval.
In the technical scheme, the block link point device determines that the random number and the first random seed are in the same interval and the random number and the second random seed are in different intervals by judging that the random number is in the first interval, so that the priority judgment result is that the priority of the first client is higher than that of the second client. The priority evaluation result is obtained by judging whether the random number and the random seed are in the same interval, so that the priority evaluation result can be relied on.
In one implementation, the specific implementation manner of generating the random number by the block link point device according to the first random seed and the second random seed may be: the block chain node equipment performs binary conversion on the first random seed to obtain a second numerical value; the block chain node equipment performs binary conversion on the second random seeds to obtain a third numerical value; and the block chain node equipment performs logical operation on the second numerical value and the third numerical value to obtain a logical operation result, and performs decimal conversion on the logical operation result to obtain a random number.
In the technical scheme, the block link point device takes the result of the complex operation of the first random seed and the second random seed as a random number, so that the operation rule can be prevented from being predicted. In the game scene, the fairness of the game result is realized.
In one implementation, the manner in which the block link point device generates the priority evaluation results of the first client and the second client according to the random number may further be: the block chain node equipment calculates the random number and the first random seed to obtain a fourth numerical value; the block chain node equipment calculates the random number and the second random seed to obtain a fifth numerical value; and when the fourth numerical value is larger than the fifth numerical value, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client is lower than that of the second client.
In the technical scheme, the block link point device compares a fourth numerical value obtained by comparing the random number with the first random seed and a fifth numerical value obtained by calculating the random number with the second random seed to obtain a priority evaluation result, and sends the priority evaluation result to the first client and the second client. The priority evaluation result can be made to have confidence.
In one implementation, after the block link point device receives the first check value and the second check value, the block link point device may further generate a first block based on the first check value and the second check value, and uplink the first block.
In the technical scheme, the block link node device uplinks the first check value and the second check value, so that any block link node device in the block link network can acquire the first check value, the second check value and the second check value, and distributed storage of the first check value and the second check value is realized.
In one implementation, after receiving the first random seed and the second random seed, the block-node device may further generate a second block based on the first random seed and the second random seed, and uplink the second block.
In the technical scheme, the block chain node device uplinks the first random seed and the second random seed, so that any block chain node device in the block chain network can acquire the first random seed and the second random seed, and distributed storage of the first random seed and the second random seed is achieved.
In a second aspect, an embodiment of the present invention provides a priority evaluation method, where the method includes:
the client sends a target check value related to the target random seed to the blockchain node equipment, wherein the target random seed is a first random seed or a second random seed, when the target random seed is the first random seed, the target check value is the first check value, and when the target random seed is the second random seed, the target check value is the second check value; the client sends the target random seeds to the block link node equipment so that the block link node equipment generates a fifth check value based on the target random seeds, and when the fifth check value is the same as the target check value, the block link node equipment generates a priority evaluation result according to the target random seeds; and the client receives a priority evaluation result from the blockchain node equipment.
In the technical scheme, after the client sends the target check value to the blockchain node device, the client sends the target random seed to the blockchain node device, so that the target random seed can be ensured not to be modified, and the reliability of the target random seed is realized. Meanwhile, the client can receive a priority evaluation result from the blockchain node device, and the priority evaluation result is used for indicating the priority of the client, so that the interactivity between the client and a user is improved.
In a third aspect, an embodiment of the present invention provides a block link point device, where the block link point device has a function of implementing the priority evaluation method described in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one implementation, the block link point device includes a receiving module, a verifying module, a generating module, and a transmitting module. The receiving module is used for receiving a first check value of the first client relative to the first random seed and a second check value of the second client relative to the second random seed; the receiving module is further used for receiving a first random seed from the first client and a second random seed from the second client; the verification module is used for verifying the first verification value and the second verification value; the generating module is used for generating random numbers according to the first random seeds and the second random seeds; the generating module is also used for generating a priority evaluation result according to the random number; and the sending module is used for sending the priority evaluation result to the first client and the second client.
In a fourth aspect, an embodiment of the present invention provides a client device, where the client device has a function of implementing the method for processing a random number according to the second aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one implementation, the client device includes a sending module and a receiving module. The sending module is used for sending a target check value related to the target random seed to the blockchain node equipment; the sending module is further used for sending the target random seed to the block chain node equipment; and the receiving module is used for receiving the priority evaluation result from the block link point equipment.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program for a block link point device, which includes a program for executing the above-mentioned first aspect.
in a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program for a block link point device, which includes a program for executing the second aspect.
By implementing the embodiment of the invention, after the block link point equipment receives the first check value and the second check value, the block link point equipment receives the first random seed and the second random seed, so that the first random seed and the second random seed have reliability. After receiving the first check value and the second check value, the blockchain node device may further generate a first block based on the first check value and the second check value, and uplink the first block, so that any node device in the blockchain network may obtain the first check value and the second check value. And the block chain node point equipment verifies the first verification value of the first random seed and the second verification value of the second random seed, if the verification is passed, a random number is generated based on the first random seed and the second random seed, and a priority evaluation result is generated by using the random number. In a game scene, random seeds of two game parties participate in a game process, so that a game result has public credibility.
drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the background art, the drawings required to be used in the embodiments of the present invention will be described below.
FIG. 1 is a schematic diagram of a priority evaluation system according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for priority evaluation according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another method for priority assessment according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another method for determining priority according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a block link point device according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a block link point device according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of a client according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of a client according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings.
As random numbers are widely used in various aspects of real life, methods for generating random numbers become more and more important parts of people. Generally, random numbers can be applied in lottery, gaming, or generating winning numbers. For example, in a scenario of two-player game, two players of the game do not trust each other, a random number needs to be generated, and the random number is used as a criterion for determining win-or-lose of the two players of the game, so as to obtain a game result. The embodiment of the present invention is illustrated by taking a two-player game scenario as an example, and does not limit the present invention.
The traditional two-person game scene mainly relates to a first game party, a second game party and a third judging party, wherein under the condition that the first game party and the second game party are not trusted with each other, the third judging party generates a random number based on the hardware condition of equipment, and as the game parties do not participate in the generation process of the random number, the game result obtained by utilizing the random number has no public trust.
For example, two people each hold a card, neither person knows the size of the opponent's card, a random number is given by the third judge based on the hardware condition of the device, and the game result is obtained by using the random number. It can be seen that the random number given by the third judge is completely a random number generated based on the hardware condition of the device, and the two parties of the game do not participate in the generation of the random number, so that the game result may cause an adverse result to one party of the game.
in order to solve the above problems, the embodiment of the present invention introduces a block chain technique into a game scenario, and provides a priority evaluation method, where the priority evaluation method specifically includes: the blockchain node device receives a first check value from the first client regarding the first random seed and receives a second check value from the second client regarding the second random seed; the blockchain node device receives a first random seed from a first client and receives a second random seed from a second client; the block chain node equipment verifies a first check value of the first random seed and a second check value of the second random seed; if the verification is passed, the block chain node equipment generates priority evaluation results of the first client and the second client according to the random numbers, and sends the priority evaluation results to the first client and the second client, wherein the priority evaluation results are used for indicating the priorities of the first client and the second client. In a game scene, the random number generated by the method is used as a standard for judging the game, so that the game result is more fair.
Therefore, the first client sends the first check value of the first random seed to the blockchain node device first, and then sends the first random seed to the blockchain node device, so that the first random seed is not modified, and the reliability of the first random seed is ensured. The beneficial effect that the second client sequentially sends the second check value and the second random seed to the blockchain node device is the same as the beneficial effect, and the description is omitted here.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm, and has the characteristics of decentralization, openness, independence, safety, anonymity and the like. The blockchain may include a plurality of node devices, and each of the plurality of node devices may store a block issued to the blockchain network, thereby implementing distributed storage of data. The block chain technology realizes decentralization, does not depend on an additional third-party management mechanism or hardware facilities, has no central control, and realizes self-verification, transmission and management of information by each node through distributed accounting and storage except for the self-integrated block chain.
in order to better understand a method for generating random numbers disclosed in the embodiments of the present invention, a communication system to which the embodiments of the present invention are applicable is first described below.
referring to fig. 1, fig. 1 is a schematic diagram of a priority evaluation system according to an embodiment of the present invention. As shown in fig. 1, the priority evaluation system includes: at least one client, at least one blockchain node device. The at least one block chain node device may comprise one or more of a block chain node device 1, a block link point device 2, and a block link point device 3, the block link point device 1, the block link point device 2, and the block link point device 3 forming a block chain network.
Taking the example that the priority evaluation system includes the block link point device, the first client, and the second client, the block link point device may be any one of the block chain node device 1, the block link point device 2, and the block link point device 3. The blockchain node device may receive a first check value from a first client and a second check value from a second client, and then the blockchain node device may receive a first random seed from the first client and a second random seed from the second client. The blockchain node device may verify a first check value of the first random seed and a second check value of the second random seed. If the verification is passed, the block link point device can generate a random number according to the first random seed and the second random seed, generate a priority evaluation result based on the random number, and send the priority evaluation result to the first client and the second client.
Taking the priority evaluation system including the first block link point device, the second block link point device, the first client, and the second client as an example, the first block link point device or the second block link point device may be any one of the block chain node device 1, the block link point device 2, and the block link point device 3, and the first block link point device and the second block link point device are different block link point devices.
For example, the first block-linked-point device may uplink the first check value after receiving the first check value from the first client, and then the first block-linked-point device may uplink the first random seed after receiving the first random seed from the first client. The second block-link point device may obtain the first check value and the first random seed on the chain, and the second block-link point device sequentially receives the second check value and the second random seed from the second client. And then, the second block link point equipment verifies the first check value of the first random seed and the second check value of the second random seed. And if the verification is passed, the second block chain node equipment generates a random number according to the first random seed and the second random seed, generates a priority evaluation result based on the random number, and sends the priority evaluation result to the first client and the second client. Optionally, the second blk device may forward the priority evaluation result to the first client through the first blk device.
for another example, after the first parity value and the first random seed are sequentially received from the first client, the first block-node device may send the first parity value and the first random seed to the second block-node device. After the second block link point device receives the second check value and the second random seed from the second client in sequence, the first check value of the first random seed and the second check value of the second random seed may be verified. If the verification is passed, the second block link point device may generate a priority evaluation result based on the random number. The manner of generating the priority evaluation result in the embodiment of the present application is the same as the manner of generating the priority evaluation result in the embodiment described above, and the embodiment of the present application is not described again.
taking the priority evaluation system including the first block link point device, the second block link point device, the third block link node device, the first client and the second client as an example, the first block link point device, the second block link point device or the third block link node device may be any one of the block link node device 1, the block link point device 2 and the block link point device 3, and the first block link point device, the second block link point device and the third block link node device are different block link point devices. The first block-link-point device may uplink the first check value and the first random seed in the above manner, and the second block-link-point device may uplink the second check value and the second random seed in the above manner. And then, the third block chain node equipment acquires the first check value and the second check value or the first random seed and the second random seed on the chain, verifies the first check value of the first random seed and the second check value of the second random seed, and generates a priority evaluation result of the first client and the second client according to the random number if the verification is passed. The manner in which the third block link node device generates the priority evaluation result is the same as the manner in which the second block link node device generates the priority evaluation result in the above embodiment, and details are not repeated in this embodiment.
The third blockchain node device may send the priority evaluation result to the first client and the second client. Optionally, the third blockchain node device may forward the priority evaluation result to the first client or the second client through the first blockchain node device or the second blockchain node device.
Taking the example that the priority evaluation system includes the block link point device and the client, the block link point device may be any one of the block link node device 1, the block link point device 2, and the block link point device 3. The client may send the first check value and the first random seed to the blockchain node device in sequence when detecting the operation of the first user. The client may further send the second check value and the second random seed to the blockchain node device in sequence when detecting the operation of the second user. The method for generating the priority evaluation result by the block link point device is the same as the method for generating the priority evaluation result by the block link point device in the above embodiment, and the description of the embodiment of the present application is omitted.
Referring to fig. 2, fig. 2 is a schematic flow chart of a priority evaluation method according to an embodiment of the present invention, the method includes, but is not limited to, the following steps:
Step S201: the first client acquires a first random seed.
specifically, the first client receives a first random seed from the first user, and generates a first check value based on the first random seed.
in one implementation, the first client may obtain a first random seed from the block link point device, and generate a first check value according to the first random seed. Wherein the block link point device stores at least one random seed.
In one implementation, when the first client detects a first user operation, a first random seed is generated based on a pseudo-random number generator to obtain the first random seed, and then a first check value is generated according to the first random seed.
Step S202: the first client generates a first check value based on the first random seed.
in an implementation manner, the first check value may be a first hash value, that is, the first client generates a first hash value of the first random seed according to a hash algorithm, and sends the first hash value to the blockchain node device. Common hashing algorithms include: a Message Digest algorithm (Message Digest 4, MD4), a Secure hash algorithm 1(Secure HashAlgorithm 1, SHA-1), and the like, and the embodiment of the present invention does not limit which hash algorithm is specifically used.
Step S203: and the first client sends the first check value to the blockchain node equipment.
Step S204: the second client obtains a second random seed.
Step S205: the second client generates a second check value based on the second random seed.
Step S206: and the second client sends the second check value to the blockchain node equipment.
Specifically, the execution sequence of steps S204 to S206 and steps S201 to S203 is not sequential, and the execution process of the second client in steps S204 to S206 is the same as the execution process of the first client in steps S201 to S203, which is not described herein again.
Step S207: and the first client sends the first random seed to the blockchain node equipment.
Step S208: and the second client sends the second random seed to the blockchain node equipment.
It should be noted that the block link node device may receive the first check value and the first random seed of the first client in sequence, and then receive the second check value and the second random seed of the second client in sequence; the blockchain node device may further receive the first check value of the first client and the second check value of the second client, and then receive the first random seed of the first client and the second random seed of the second client, which is not limited in the embodiment of the present invention.
Step S209: and the block chain node equipment verifies the first check value and the second check value.
Specifically, the block link point equipment generates a third check value according to the first random seed and generates a fourth check value according to the second random seed; and when the third check value is the same as the first check value and the fourth check value is the same as the second check value, determining that the verification is passed.
In one implementation, the first check value from the first client may be a first hash value, the second check value from the second client may be a second hash value, and the block link point device performs a hash algorithm on the first random seed to obtain a third hash value; and the block chain node equipment performs a hash algorithm on the second random seed to obtain a fourth hash value. And when the third hash value is the same as the first hash value and the fourth hash value is the same as the second hash value, determining that the verification is passed.
step S210: and if the verification is passed, the block link point equipment generates a random number according to the first random seed and the second random seed.
Specifically, if the block link point device determines that the third check value is the same as the first check value and the fourth check value is the same as the second check value, the block link point device generates a random number according to the first random seed and the second random seed, so that the reliability of the first random seed and the second random seed can be ensured.
if the third check value is different from the first check value, the block link point device determines that the first client modifies the first random seed after sending the first check value, and then generates first prompt information and sends the first prompt information to the first client and the second client, wherein the first prompt information is used for prompting that the first client has wrong operation.
If the fourth check value is different from the second check value, the block link node device determines that the second client modifies the second random seed after sending the second check value, and then generates second prompt information and sends the second prompt information to the first client and the second client, wherein the second prompt information is used for prompting that the second client has an error operation.
Therefore, by comparing that the third check value is the same as the first check value and the fourth check value is the same as the second check value, the block link point device can ensure the reliability of the first random seed and the second random seed, thereby realizing fairness and justice of the priority evaluation result.
step S211: and the block chain node equipment generates a priority evaluation result according to the random number, wherein the priority evaluation result is used for indicating the priority of the first client and the priority of the second client.
Specifically, the block link point device compares the random number with the first random seed and the second random seed to obtain a priority evaluation result, where the priority evaluation result is used to indicate that the priority of the first client is higher than the priority of the second client, or that the priority of the first client is lower than the priority of the second client.
For example, in the two-player game scenario, if the priority evaluation result indicates that the priority of the first client is higher than the priority of the second client, the first game party corresponding to the first client is a winner, and the second game party corresponding to the second client is a loser. And if the priority evaluation result shows that the priority of the first client is lower than that of the second client, the first game party corresponding to the first client is a loser, and the second game party corresponding to the second client is a winner.
Step S212: and the block chain node equipment sends the priority evaluation result to the first client and the second client.
specifically, after the block link point device obtains the priority evaluation result, the block link point device sends the priority evaluation result to the first client and the second client.
In one implementation, after obtaining the priority evaluation result, the block link point device may generate a notification message based on the priority evaluation result, and send the notification message to the first client and the second client, where the notification message is used to indicate the priority evaluation result.
By implementing the embodiment of the invention, after the block link point device receives the first check value and the second check value and receives the first random seed and the second random seed, the first check value of the first random seed and the second check value of the second random seed can be verified; if the verification is passed, then a random number is generated according to the first random seed and the second random seed, and the priority evaluation result is obtained by using the random number, so that the first random seed is not modified after the first client sends the first check value to the blockchain node device, and the second random seed is not modified after the second client sends the second check value to the blockchain node device, thereby ensuring the fairness and justice of the priority evaluation process.
Fig. 3 is a schematic flowchart of another priority evaluation method provided in an embodiment of the present invention, which includes but is not limited to S301 to S309, wherein:
Step S301: the first client acquires a first random seed.
specifically, the execution process of step S301 may refer to step S201 in fig. 2, which is not described herein again.
Step S302: the first client generates a first check value according to the first random seed.
Specifically, the execution process of step S302 may refer to step S202 in fig. 2, which is not described herein again.
Step S303: and the first client sends the first check value to the blockchain node equipment.
Specifically, the execution process of step S303 may refer to step S203 in fig. 2, which is not described herein again.
step S304: the second client obtains a second random seed.
step S305: the second client generates a second check value according to the second random seed.
Step S306: and the second client sends the second check value to the blockchain node equipment.
Specifically, the execution sequence of steps S304 to S306 and steps S301 to S303 is not sequential, and the execution process of the second client in steps S304 to S306 is the same as the execution process of the first client in steps S301 to S303, which is not described herein again.
step S307: and the first client sends the first random seed to the blockchain node equipment.
Step S308: and the second client sends the second random seed to the blockchain node equipment.
It should be noted that the block link node device may receive the first check value and the first random seed of the first client in sequence, and then receive the second check value and the second random seed of the second client in sequence; the blockchain node device may further receive the first check value of the first client and the second check value of the second client, and then receive the first random seed of the first client and the second random seed of the second client, which is not limited in the embodiment of the present invention.
Step S309: and the block chain node equipment verifies the first check value and the second check value.
Specifically, the execution process of step S309 may refer to step S209 in fig. 2, which is not described herein again.
Step S310: and if the verification is passed, the block link point equipment generates a random number according to the first random seed and the second random seed.
Specifically, when the third check value is the same as the first check value and the fourth check value is the same as the second check value, the block link point device calculates the first random seed and the second random seed to obtain the random number.
in one implementation, the block link point device may perform an arithmetic operation on the first random seed and the second random seed to obtain an arithmetic operation result, and use the arithmetic operation result as a random number. Optionally, the first random seed and the second random seed are subjected to subtraction, and a result obtained through the subtraction is used as a random number. For example, if the first random seed is 12 and the second random seed is 7, the subtraction result between the first random seed and the second random seed is 5, and 5 is taken as the random number. Optionally, after the first random seed and the second random seed are subjected to subtraction, division is performed on a subtraction result to obtain a random number. For example, if the first random seed is 12 and the second random seed is 7, the subtraction result between the first random seed and the second random seed is 5, and the value obtained by dividing 5 by 2 is 2.5, and then 2.5 is used as the random number.
It should be noted that, the operation rule for performing the operation on the first random seed and the second random seed is various, and the embodiment of the present invention does not limit this.
Step S311: and the block chain node equipment generates an intermediate number according to the first random seed and the second random seed, and determines a first interval and a second interval according to the intermediate number.
Specifically, the block link point device calculates the first random seed and the second random seed to generate a middle number, a lower limit value of the first interval, and an upper limit value of the first interval. The block chain node device may determine the first section and the second section by setting the intermediate number as an upper limit of the first section and setting the intermediate number as a lower limit of the second section.
In one implementation, the operating the first random seed and the second random seed by the block link point device to determine the first interval and the second interval may include: the block chain node equipment calculates the average value of the first random seed and the second random seed to obtain the average value of the first random seed and the second random seed, and the average value is used as an intermediate number; adding the first random seed and the second random seed by the block chain node equipment to obtain a first numerical value, taking the opposite number of the first numerical value, and taking the opposite number as the lower limit of a first interval; the blockchain node device takes the first value as an upper limit of the second interval. As can be seen from the above, the lower limit of the first interval is the inverse of the first value, and the upper limit of the first interval is the average value of the first random seed and the second random seed; the lower limit of the second interval is an average value of the first random seed and the second random seed, and the upper limit of the second interval is a first value.
for example, in a game scenario, if the first random seed of the first game party is 13 and the second random seed of the second game party is 3, the first random seed and the second random seed are subjected to an average value algorithm to obtain an intermediate number of 8, and the first random seed and the second random seed are added to obtain a first value of 16. Then the lower limit of the first interval is-16 and the upper limit of the first interval is 8; the lower limit of the second interval is 8 and the upper limit of the second interval is 16, that is, the first interval is [ -16,8 ], and the second interval is [8,16 ].
It should be noted that, the block link point device may perform various rules on the first random seed and the second random seed to obtain the middle number, the lower limit value of the first interval, and the upper limit value of the first interval, and the embodiment of the present invention does not limit the operation rules.
Therefore, the ranges of the first interval and the second interval are determined by calculating the first random seed and the second random seed, and the first random seed and the second random seed can be ensured to participate in the generation process of the first interval and the second interval, so that the ranges of the first interval and the second interval are related to the random seeds, and the priority evaluation result can be determined.
step S312: and when the random number is positioned in the first interval, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client is higher than that of the second client.
Specifically, the block link point device judges whether the relation between the random number and the first random seed and the second random seed meets a first preset rule according to the first preset rule, and obtains a priority judgment result.
In one implementation, the block link point device generates an intermediate number according to the first random seed and the second random seed; determining a first interval and a second interval according to the intermediate number, wherein the first random seed belongs to the first interval, and the second random seed belongs to the second interval; and when the random number is positioned in the first interval, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client is higher than that of the second client.
Assume that the first predetermined rule is: and when the random number and a certain random seed are positioned in the same interval, the client corresponding to the random seed is considered as the client with higher priority. That is to say, the block link point device determines that the random number is located in the first interval or the second interval, if the random number is located in the first interval, the block link point device considers that the random number and the first random seed are located in the same interval, and the random number and the second random seed are located in different intervals, and then the block link node device obtains a priority evaluation result according to the above process, wherein the priority evaluation result is used for indicating that the priority of the first client is higher than the priority of the second client.
For example, in a scenario of a two-player game, the first random seed provided by the first gaming party is 12, the second random seed provided by the second gaming party is 8, then the first interval is [ -20,10 ], the second interval is [10,20], wherein the first random seed 12 is located in the second interval and the second random seed 8 is located in the first interval. The random number obtained by the block chain node device through subtraction operation of the first random seed and the second random seed is 4, and it can be known that the random number 4 and the second random seed 8 are located in a first interval [ -20,10 ], and the random number 4 and the second random seed 12 are located in different intervals. The priority evaluation result obtained by the block link point device is as follows: the second client has a higher priority than the first client.
It should be noted that the foregoing example is only used to illustrate that, when the block chain node point device is located in the same interval as the random seed of a certain party in the game based on the random number, the priority of the client corresponding to the random seed is determined to be higher, and in other feasible implementation manners, the block chain node point device may also be configured to determine that, when the random number is located in the same interval as the random seed of the certain party in the game, the priority of the client corresponding to the random seed is determined to be lower.
Therefore, by comparing whether the random number and the random seed are in the same interval or not, the random seed which is closer to the difference value of the random number can be obtained, and the priority of the client corresponding to the random seed is judged to be higher, so that the priority judgment result can be relied on.
Step S313: and the block chain node equipment sends the priority evaluation result to the first client and the second client.
Specifically, the execution process of step S309 can refer to step S208 in fig. 2, which is not described herein again.
Therefore, by implementing the embodiment of the present invention, both the first random seed of the first client and the second random seed of the second client participate in the generation process of the random number, and the block link point device obtains the priority levels of the first client and the second client by determining whether the random number is in the same interval as the first random seed of the first client or the second random seed of the second client, so as to obtain the priority level evaluation result, and sends the priority level evaluation result to the client. The random seeds of the two game parties participate in the game process in the game scene, and the game parties in the two game parties are judged to have higher priority with the random seeds and the random numbers in the same interval, so that the game result is fair.
Fig. 4 is a schematic flowchart of another priority evaluation method provided in an embodiment of the present invention, which includes but is not limited to S401 to S409, where:
Step S401: the first client acquires a first random seed.
Specifically, the execution process of step S401 may refer to step S201 in fig. 2, which is not described herein again.
Step S402: the first client generates a first check value according to the first random seed.
Specifically, the execution process of step S402 can refer to step S202 in fig. 2, which is not described herein again.
Step S403: and the first client sends the first check value to the blockchain node equipment.
Specifically, the execution process of step S403 may refer to step S203 in fig. 2, which is not described herein again.
Step S404: the second client obtains a second random seed.
step S405: the second client generates a second check value according to the second random seed.
Step S406: and the second client sends the second check value to the blockchain node equipment.
Specifically, the execution sequence of steps S404 to S406 and steps S401 to S403 are not in sequence, and the execution process of the second client in steps S404 to S406 is the same as the execution process of the first client in steps S401 to S403, which is not described herein again.
step S407: and the first client sends the first random seed to the blockchain node equipment.
Step S408: and the second client sends the second random seed to the blockchain node equipment.
It should be noted that the block link node device may receive the first check value and the first random seed of the first client in sequence, and then receive the second check value and the second random seed of the second client in sequence; the blockchain node device may further receive the first check value of the first client and the second check value of the second client, and then receive the first random seed of the first client and the second random seed of the second client, which is not limited in the embodiment of the present invention.
Step S409: and verifying the first random seed and the second random seed by the blockchain node equipment.
Specifically, the execution process of step S405 may refer to step S205 in fig. 2, which is not described herein again.
Step S410: and if the verification is passed, the block link point equipment generates a random number according to the first random seed and the second random seed.
specifically, if the third check value is the same as the first check value and the fourth check value is the same as the second check value, the block link point device operates the first random seed and the second random seed to obtain a random number.
in one implementation, the block link point device performs binary conversion on the first random seed to obtain a second numerical value, and the block link point device performs binary conversion on the second random seed to obtain a third numerical value; the block chain node equipment performs logical operation on the second numerical value and the third numerical value to obtain a logical operation result; and performing decimal conversion on the logical operation result to obtain the random number.
For example, in a two-player gaming scenario, the first random seed held by the first gaming party is 7 and the second random seed held by the second gaming party is 9. The block chain node equipment performs binary conversion on the first random seeds to obtain a second numerical value of 0111, and similarly, the block chain node equipment performs binary conversion on the second random seeds to obtain a third numerical value of 1001; the block chain node equipment performs exclusive-or operation on the second numerical value 0111 and the third numerical value 1001 to obtain an exclusive-or operation result 1110; the block chain node device performs decimal conversion on the exclusive or operation result 1110 to obtain a random number of 14.
It should be noted that the binary conversion or the decimal conversion may be replaced by other binary conversion operations, which is not limited in the embodiment of the present invention.
Therefore, the block chain node point equipment performs binary conversion on the first random seed and the second random seed, performs binary logic operation on the conversion result, performs decimal conversion on the logic operation result, and finally obtains the random number. The random number generated by a complex method can not be predicted by lawbreakers, so that the fairness of priority evaluation results is ensured.
step S411: calculating the random number and the first random seed to obtain a fourth numerical value; and operating the random number and the second random seed to obtain a fifth numerical value.
in one implementation, the block link point device may operate the random number with the first random seed, and operate the random number with the second random seed by: carrying out subtraction operation on the random number and the first random seed to obtain a fourth numerical value, and carrying out subtraction operation on the random number and the second random seed to obtain a fifth numerical value; comparing the fourth numerical value with the fifth numerical value to obtain a comparison result; and generating a priority evaluation result according to the comparison result.
Step S412: and when the fourth numerical value is larger than the fifth numerical value, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client side is lower than that of the second client side.
Specifically, the block chain node point equipment calculates the fourth numerical value and the fifth numerical value, and generates a priority evaluation result according to the calculation result.
In one implementation, the block link point device calculates the random number and the first random seed to obtain a fourth numerical value; calculating the random number and the second random seed to obtain a fifth numerical value; and when the fourth numerical value is larger than the fifth numerical value, generating a priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client side is lower than that of the second client side.
assume that the second predetermined rule is: the priority of the client corresponding to the value with the fourth numerical value and the value with the fifth numerical value are lower. Specifically, the block link point device subtracts the fourth numerical value from the fifth numerical value, and when the obtained result is a positive number, it indicates that the fourth numerical value is greater than the fifth numerical value, and then the block link point device may determine that the priority of the first client is lower than that of the second client. That is, the first random seed differs from the random number by a greater amount than the second random seed. The above description is embodied on the coordinate axis, that is, the position of the first random seed on the coordinate axis is farther from the random number than the position of the second random seed on the coordinate axis.
for example, in a two-player game scenario, if the first random seed of the first betting party is 7 and the second random seed of the second betting party is 10, the random number is 13, the fourth value is 6, the fifth value is 3, and it is known that the fourth value 6 is greater than the fifth value 3. According to the second preset rule, the priority of the first client corresponding to the fourth numerical value is lower than the priority of the second client corresponding to the fifth numerical value. Is embodied on a coordinate axis, that is, means that the first random number is at a coordinate position farther from the random number.
It should be noted that the foregoing example is only used to illustrate that, when the difference value between the random number and the random seed of a certain party in a game is larger, the block-linked-point device determines that the priority of the client corresponding to the random seed is lower, and in other feasible implementation manners, the block-linked-point device may also determine that the priority of the client corresponding to the random seed is higher when the difference value between the random number and the random seed of the certain party in the game is larger, which is not limited in this embodiment of the present invention.
therefore, by comparing the difference value between the random number and the random seed, the random seed which is closer to the random number in the first random seed and the second random seed can be obtained, and the priority of the client corresponding to the random seed is judged to be higher, so that the priority judgment result can be based on the priority judgment result.
Step S413: and the block chain node equipment sends the priority evaluation result to the first client and the second client.
Specifically, the execution process of step S409 may refer to step S208 in fig. 2, which is not described herein again.
Therefore, by implementing the embodiment of the invention, the block link point device compares the fourth numerical value generated by the random number and the first random seed with the fifth numerical value generated by the random number and the second random seed to obtain the difference value between the fourth numerical value and the fifth numerical value, obtains the priority evaluation result according to the difference value, and sends the priority evaluation result to the first client and the second client. Based on the second preset rule, the priority levels of the first client and the second client can be obtained, and the priority evaluation result can be based.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a block link point apparatus according to an embodiment of the present invention, where the block link point apparatus 500 is used to perform steps performed by the block link point apparatus in the method embodiments corresponding to fig. 2 to fig. 4, and the block link point apparatus 500 may include:
A receiving module 501, configured to receive a first check value from a first client regarding a first random seed and a second check value from a second client regarding a second random seed;
A receiving module 501, configured to receive a first random seed from a first client and a second random seed from a second client;
A verification module 502, configured to verify the first verification value and the second verification value;
A generating module 503, configured to generate a random number according to the first random seed and the second random seed;
The generating module 503 is further configured to generate a priority evaluation result according to the random number;
A sending module 504, configured to send the priority evaluation result to the first client and the second client.
In one implementation, the verification module 502 may include a generation unit 5021 and a comparison unit 5022, where the generation unit 5021 is configured to generate a third check value according to a first random seed and a fourth check value according to a second random seed; the generating unit 5021 is further configured to pack the first check value and the second check value into a first block, and pack the first random seed and the second random seed into a second block; the comparing unit 5022 is used for comparing whether the third check value is the same as the first check value and whether the fourth check value is the same as the second check value.
In one implementation, the sending module 505 is further configured to send the first and second blocks to other block link point devices in the blockchain network.
it should be noted that details that are not mentioned in the embodiment corresponding to fig. 5 and specific implementation manners of the steps executed by each module may refer to the embodiments shown in fig. 2 to fig. 4 and the foregoing details, and are not described again here.
in one implementation, the relevant functions implemented by the various modules in FIG. 5 may be implemented in connection with a processor and a communications interface. Referring to fig. 6, fig. 6 is a schematic structural diagram of a block link point device according to an embodiment of the present invention, where the block link point device 600 includes a processor 601, a memory 602, and a communication interface 603, and the processor 601, the memory 602, and the communication interface 603 are connected by one or more communication buses.
The processor 601 is configured to support the blockchain node device to perform the corresponding functions of the blockchain node device in the methods described in fig. 2-4. The Processor 601 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
the memory 602 is used for storing program codes and the like. The Memory 602 may include volatile Memory (volatile Memory), such as Random Access Memory (RAM); the Memory 602 may also include a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The communication interface 603 is used for receiving and transmitting data, for example, the communication interface 603 is used for receiving a first check value from a first client and a second check value from a second client, or the communication interface 603 is used for transmitting a priority evaluation result to the first client and the second client, and the like.
In an embodiment of the present invention, the block link node device 600 includes a plurality of communication interfaces, wherein the communication interface for transmitting data and the communication interface for receiving data may not be the same communication interface.
The processor 601 may call the program code stored in the memory 602 to perform the following operations:
Receiving a first check value from a first client and a second check value from a second client through the communication interface 603, the communication interface 603 further receiving a first random seed from the first client and a second random seed from the second client;
Verifying the first check value and the second check value;
If the verification is passed, generating a random number according to the first random seed and the second random seed;
And generating a priority evaluation result according to the random number, and sending the priority evaluation result to the first client and the second client.
Further, the processor 601 may further cooperate with the communication interface 603 to perform operations corresponding to the block link point device in the embodiments shown in fig. 2 to 4, which may specifically refer to the description in the method embodiments and will not be described herein again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a client according to an embodiment of the present invention, where the client 700 is configured to execute steps executed by a first client or a second client in the method embodiments corresponding to fig. 2 to fig. 4, and the client may include:
A sending module 701, configured to send a target check value related to the target random seed to the blockchain node device;
The sending module 701 is further configured to send the target random seed to the blockchain node device;
a receiving module 702 is configured to receive a priority evaluation result from the block link point device.
It should be noted that details that are not mentioned in the embodiment corresponding to fig. 7 and specific implementation manners of the steps executed by each module may refer to the embodiments shown in fig. 2 to fig. 4 and the foregoing details, and are not described again here.
In one implementation, the relevant functions implemented by the various modules in FIG. 7 may be implemented in connection with a processor and a communications interface. Referring to fig. 8, fig. 8 is a schematic structural diagram of a client according to an embodiment of the present invention, where the client 800 includes a processor 801, a memory 802, and a communication interface 803, and the processor 801, the memory 802, and the communication interface 803 are connected by one or more communication buses.
The processor 801 is configured to support the client to perform the functions of the first client or the second client in the methods described in fig. 2-4. The Processor 801 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 802 is used for storing program codes and the like. The Memory 802 may include volatile Memory (volatile Memory), such as Random Access Memory (RAM); the Memory 802 may also include a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (HDD) or a Solid State Drive (SSD); the memory 802 may also comprise a combination of the above-described types of memory.
The communication interface 803 is used for receiving and transmitting data, for example, the communication interface 803 is used for transmitting the target check value and the target random seed to the blockchain node device, or the communication interface 803 is used for receiving a priority evaluation result from the blockchain node device, and the like.
In this embodiment of the present invention, the client 800 includes a plurality of communication interfaces, wherein the communication interface for transmitting data and the communication interface for receiving data may not be the same communication interface.
The processor 801 may call the program code stored in the memory 802 to perform the following operations:
Sending the target check value to the block chain node device through the communication interface 803, and sending the target random seed to the block chain node device through the communication interface 803;
and receiving a priority evaluation result from the blockchain node equipment.
Further, the processor 801 may further cooperate with the communication interface 803 to execute operations corresponding to the first client or the second client in the embodiments shown in fig. 2 to fig. 4, which may specifically refer to the description in the method embodiments, and is not described herein again.
Embodiments of the present invention also provide a computer readable storage medium, which can be used to store computer software instructions for the block-link point device in the embodiments shown in fig. 2 to 4, and which contains a program designed for the block-link point device in the embodiments described above.
Another computer-readable storage medium may be used to store computer software instructions for the first client or the second client in the embodiments shown in fig. 2-4, which include programs designed for the first client or the second client in the above embodiments.
the computer readable storage medium includes, but is not limited to, flash memory, hard disk, solid state disk.
an embodiment of the present invention further provides a computer program product, which when being executed by a computing device, can execute the priority evaluation method designed for the block link point device in the embodiments of fig. 2 to 4.
An embodiment of the present invention further provides a computer program product, which when executed by a computing device, can execute the priority evaluation method designed for the first client or the second client in the embodiments of fig. 2 to 4.
In an embodiment of the present invention, there is further provided a chip including a processor and a memory, where the memory includes the processor and the memory, and the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, and the computer program is used to implement the method in the above method embodiment.
those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
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. A priority evaluation method, comprising:
Receiving a first check value of a first random seed sent by a first client and receiving a second check value of a second random seed sent by a second client;
Receiving the first random seed sent by the first client and receiving the second random seed sent by the second client;
Verifying a first check value of the first random seed and a second check value of the second random seed;
If the verification is passed, generating a random number according to the first random seed and the second random seed;
And generating priority evaluation results of the first client and the second client according to the random numbers, and sending the priority evaluation results to the first client and the second client.
2. the method of claim 1, wherein the first check value is a first hash value and the second check value is a second hash value;
The verifying the first check value of the first random seed and the second check value of the second random seed includes:
generating a third check value according to the first random seed, and generating a fourth check value according to the second random seed;
And when the third check value is the same as the first check value and the fourth check value is the same as the second check value, determining that the verification is passed.
3. The method of claim 1, wherein generating random numbers from the first random seed and the second random seed comprises:
And operating the first random seed and the second random seed to obtain the random number.
4. the method according to claim 3, wherein the generating the priority evaluation results of the first client and the second client according to the random number comprises:
Generating an intermediate number according to the first random seed and the second random seed;
Determining a first interval and a second interval according to the intermediate number, wherein the first random seed belongs to the first interval, and the second random seed belongs to the second interval;
And when the random number is located in the first interval, generating the priority evaluation result, wherein the priority evaluation result is used for indicating that the priority of the first client is higher than that of the second client.
5. the method of claim 4, wherein determining the first interval and the second interval according to the intermediate number comprises:
Taking the intermediate number as the upper limit of the first interval;
obtaining a lower limit of the first interval according to the first random seed and the second random seed;
And obtaining the upper limit of the second interval according to the first random seed and the second random seed, and taking the intermediate number as the lower limit of the second interval.
6. the method of claim 1, wherein generating random numbers from the first random seed and the second random seed comprises:
Performing binary conversion on the first random seed to obtain a second numerical value;
performing the binary conversion on the second random seed to obtain a third numerical value;
and performing logic operation on the second numerical value and the third numerical value to obtain a logic operation result, and performing decimal conversion on the logic operation result to obtain the random number.
7. the method according to claim 6, wherein the generating the priority evaluation results of the first client and the second client according to the random number comprises:
Calculating the random number and the first random seed to obtain a fourth numerical value;
Calculating the random number and the second random seed to obtain a fifth numerical value;
when the fourth value is greater than the fifth value, generating the priority evaluation result, where the priority evaluation result is used to indicate that the priority of the first client is lower than the priority of the second client.
8. The method of claim 1, wherein after receiving the first check value of the first random seed sent by the first client and receiving the second check value of the second random seed sent by the second client, the method further comprises:
Generating the first block according to the first check value and the second check value;
And issuing the first block to a block chain network.
9. The method of claim 1, wherein after receiving the first random seed sent by the first client and the second random seed sent by the second client, the method further comprises:
Generating the second block according to the first random seed and the second random seed;
issuing the second chunk to a blockchain network.
10. a block link point device comprising means for performing the method of any one of claims 1 to 9.
CN201910930061.0A 2019-09-26 2019-09-26 Priority evaluation method and related equipment thereof Pending CN110572477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910930061.0A CN110572477A (en) 2019-09-26 2019-09-26 Priority evaluation method and related equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910930061.0A CN110572477A (en) 2019-09-26 2019-09-26 Priority evaluation method and related equipment thereof

Publications (1)

Publication Number Publication Date
CN110572477A true CN110572477A (en) 2019-12-13

Family

ID=68783086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910930061.0A Pending CN110572477A (en) 2019-09-26 2019-09-26 Priority evaluation method and related equipment thereof

Country Status (1)

Country Link
CN (1) CN110572477A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090259705A1 (en) * 2008-04-11 2009-10-15 Krishnan Kunjunny Kailas Method and structure for provably fair random number generator
CN104796997A (en) * 2015-04-21 2015-07-22 太原理工大学 Node priority based conflict resolving method in wireless sensor network
CN105162760A (en) * 2015-07-28 2015-12-16 郝孟一 Random draw-off method, apparatus and system
CN105516195A (en) * 2016-01-19 2016-04-20 上海众人网络安全技术有限公司 Security authentication system and security authentication method based on application platform login
CN108845790A (en) * 2018-06-20 2018-11-20 胡晓东 A kind of application block chain generates the method and relevant apparatus of credible random number
CN109360091A (en) * 2018-08-30 2019-02-19 阿里巴巴集团控股有限公司 A kind of arbitrary object choosing method and device based on block chain
CN109583892A (en) * 2018-11-21 2019-04-05 安徽高山科技有限公司 A kind of random number selecting method in block chain
CN109615370A (en) * 2018-10-25 2019-04-12 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN110069241A (en) * 2019-03-27 2019-07-30 阿里巴巴集团控股有限公司 Acquisition methods, device, client device and the server of pseudo random number

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090259705A1 (en) * 2008-04-11 2009-10-15 Krishnan Kunjunny Kailas Method and structure for provably fair random number generator
CN104796997A (en) * 2015-04-21 2015-07-22 太原理工大学 Node priority based conflict resolving method in wireless sensor network
CN105162760A (en) * 2015-07-28 2015-12-16 郝孟一 Random draw-off method, apparatus and system
CN105516195A (en) * 2016-01-19 2016-04-20 上海众人网络安全技术有限公司 Security authentication system and security authentication method based on application platform login
CN108845790A (en) * 2018-06-20 2018-11-20 胡晓东 A kind of application block chain generates the method and relevant apparatus of credible random number
CN109360091A (en) * 2018-08-30 2019-02-19 阿里巴巴集团控股有限公司 A kind of arbitrary object choosing method and device based on block chain
CN109615370A (en) * 2018-10-25 2019-04-12 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN109583892A (en) * 2018-11-21 2019-04-05 安徽高山科技有限公司 A kind of random number selecting method in block chain
CN110069241A (en) * 2019-03-27 2019-07-30 阿里巴巴集团控股有限公司 Acquisition methods, device, client device and the server of pseudo random number

Similar Documents

Publication Publication Date Title
CN110708171B (en) Block chain consensus voting method, device, equipment and storage medium
US9979707B2 (en) Cryptographic security functions based on anticipated changes in dynamic minutiae
CN108334753B (en) Pirate application verification method and distributed server node
KR20190105027A (en) Data sharing method and data sharing system
CN107133520B (en) Credibility measuring method and device for cloud computing platform
US10867048B2 (en) Dynamic security module server device and method of operating same
CN113940032A (en) Method and apparatus for recording work history and certifying reputation in blockchain networks
CN110351089A (en) A kind of data signature authentication method and device
CN108111464B (en) Data verification method and device
CN115499379B (en) Information interaction method, device, equipment and medium based on block chain
CN107666470B (en) Verification information processing method and device
CN114503146A (en) Method and apparatus for registration and authentication of miner identity in a blockchain network
CN110309160A (en) Data enter chain transaction methods, device, computer equipment and storage medium
CN112055017A (en) Single-account multi-application unified login method and device and computer equipment
CN110704464B (en) Method and device for processing bifurcation problem
WO2019221713A1 (en) Data security method utilizing mesh network dynamic scoring
US11784822B2 (en) System and method for transmitting a notification to a network
CN107026729B (en) Method and device for transmitting software
KR20200012375A (en) Block chain system in d2d communication environments and constructing method thereof
CN110572477A (en) Priority evaluation method and related equipment thereof
CN114978651B (en) Privacy calculation evidence-storing method and device, electronic equipment and storage medium
CN110750735A (en) False event identification method, device, equipment and storage medium based on block chain network
CN116318911A (en) Domain name access method and device, electronic equipment and storage medium
CN113329004B (en) Authentication method, system and device
CN109302442A (en) A kind of data storage method of proof and relevant device

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: 20191213