Unlock instant, AI-driven research and patent intelligence for your innovation.

A game random number generation method, application and device, equipment and storage medium

A random number and game technology, applied in the field of blockchain, can solve the problems of unstable block hash random number, inability to play blockchain games, and impossibility of data tampering, so as to achieve flexible and controllable lottery time, The game results are stable and not easy to crack

Active Publication Date: 2021-08-06
HANGZHOU FUZAMEI TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Random numbers are crucial to the blockchain, especially some blockchain games completely rely on the randomness and fairness of random numbers. If random numbers can be predicted or tampered with, then blockchain-based games will not be possible
[0003] Chinese patents CN109583892A and CN109450629A have proposed some random number generation methods, but most of the existing random number generation methods rely on block hashes. Considering the need for unpredictability, they need to rely on future block hashes
This brings about an inherent disadvantage: from the perspective of waiting time, the random number should rely on the block hash as close as possible, such as the next block; from the perspective of non-tampering, the random number should rely on the block as far away as possible, For example, after 6 blocks of Bitcoin, the data is almost impossible to be tampered with, and Chain33 is 12 blocks
[0004] Moreover, the random number that depends on the block hash is unstable, because even one more irrelevant transaction in the block will cause the change of the entire block hash, so relying on the block hash will cause the random number to become very Fragile

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A game random number generation method, application and device, equipment and storage medium
  • A game random number generation method, application and device, equipment and storage medium
  • A game random number generation method, application and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] A random number generation method for games, suitable for blockchain nodes, such as figure 1 shown, including:

[0038]S101. Receive the first transaction sent by the first party; wherein, the first transaction includes the hash value of the first random number locally generated by the first party at the current block height, and the first party is in the Nth block The first random number generated locally at the previous block height, N is a positive integer, and the value of N can be the block rollback height to further strengthen the stable source of random numbers;

[0039] In different blockchain systems, the value of the block rollback height N is different, because the block rollback height in each blockchain system is different. For the public chain Chain33, it is 6 blocks. 12 for Ethereum. By limiting the locally generated first random number to be announced after the rollback interval, it is ensured that the first random number will not be announced after th...

Embodiment 2

[0069] This embodiment proposes a game random number application, which is suitable for blockchain nodes. According to the method for generating game random numbers described in Embodiment 1, as image 3 shown, including:

[0070] After the second random number has passed the specified remainder operation, it is compared with the prediction content of the second trading game that meets the set lottery conditions received before the current block, and the current block is determined according to the game rules of the first game contract. The win or loss of the second undrawn transaction that satisfies the set lottery conditions received before the block.

[0071] Take the game of guessing the size as an example, because the random number of the game of guessing the size only needs to be large or small, so the decimal value of the second random number can be taken as a standard, 1 means large, and 0 means small.

[0072] Use this standard to compare with the game prediction con...

Embodiment 3

[0075] This embodiment proposes a device for generating random numbers for games, which is suitable for blockchain nodes. According to the method for generating random numbers for games described in Embodiment 1, as Figure 4 shown, including:

[0076] The game opens an interface for receiving the first transaction sent by the first party; the first transaction includes the hash value of the first random number locally generated by the first party at the current block height, and the first party is at the Nth The first random number generated locally at the block height before the block;

[0077] It is also used to detect whether there is a second transaction that has not received a lottery that meets the set lottery conditions received before the current block;

[0078] If so, it is further used to use the first random number and the second transaction received before the current block that meets the set lottery conditions to generate a hash value as the second random number...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a game random number generation method, application, device, equipment and storage medium, belonging to the technical field of blockchain. Receive the first transaction sent by the first party; detect whether there is a second transaction received before the current block that meets the set lottery conditions; The first random number generated locally at the height and the second transaction received before the current block that has not received a lottery prize are generated through a specified hash operation as the second random number, and the second random number sent by the second party is received. Two transactions, and mark the drawing status of the second transaction as undrawn, the second transaction includes the second party's game deposit and game prediction content. Aiming at the technical problem that the random number is fragile and unstable, the invention makes the random number more stable and difficult to tamper with.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a game random number generation method, application, device, device and storage medium. Background technique [0002] Random numbers are crucial to the blockchain, especially some blockchain games completely rely on the randomness and fairness of random numbers. If random numbers can be predicted or tampered with, then blockchain-based games will not be possible . [0003] Chinese patents CN109583892A and CN109450629A have proposed some random number generation methods, but most of the existing random number generation methods rely on block hashes. Considering that the need is unpredictable, they need to rely on future block hashes. This brings about an inherent disadvantage: from the perspective of waiting time, the random number should rely on the block hash as close as possible, such as the next block; from the perspective of non-tampering, the random number shou...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G07C15/00G07F17/32H04L9/32G06F7/58
CPCG07C15/006G07F17/329H04L9/3236G06F7/588H04L9/50
Inventor 袁兴强王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD