WO2020001368A1 - 一种竞猜游戏处理方法及系统 - Google Patents
一种竞猜游戏处理方法及系统 Download PDFInfo
- Publication number
- WO2020001368A1 WO2020001368A1 PCT/CN2019/092155 CN2019092155W WO2020001368A1 WO 2020001368 A1 WO2020001368 A1 WO 2020001368A1 CN 2019092155 W CN2019092155 W CN 2019092155W WO 2020001368 A1 WO2020001368 A1 WO 2020001368A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- quiz
- party
- random number
- content
- result
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F9/00—Games not otherwise provided for
- A63F9/18—Question-and-answer games
- A63F9/183—Question-and-answer games electric
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F17/00—Coin-freed apparatus for hiring articles; Coin-freed facilities or services
- G07F17/32—Coin-freed apparatus for hiring articles; Coin-freed facilities or services for games, toys, sports, or amusements
- G07F17/3244—Payment aspects of a gaming system, e.g. payment schemes, setting payout ratio, bonus or consolation prizes
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/75—Enforcing rules, e.g. detecting foul play or generating lists of cheating players
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/71—Game security or game management aspects using secure communication between game devices and game servers, e.g. by encrypting game data or authenticating players
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/80—Special adaptations for executing a specific game genre or game mode
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3236—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
- H04L9/3239—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/80—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
- A63F2300/8064—Quiz
Definitions
- the present application relates to the field of computer information technology, and in particular, to a wonderful game processing method and system, device, and storable medium.
- the present invention provides a quiz game processing method, including:
- the quiz order release request information includes the first quiz content and a random number specified by A first hash value of the operation result obtained by the first operation of the second operation, and a second hash value of the random number;
- the quiz request information includes the second quiz content
- a first operation is performed on each of the pre-stored quiz content options and random numbers, and a hash operation is performed on the operation result of the first operation to obtain several first Three hash values; determining the first guess content by comparing the first hash value and each third hash value, and judging and generating a guess result with the second guess content;
- the second party is directly judged to win, and a quiz result is generated.
- the first guess content is verified based on the random number, the first hash value, and the second hash value, and the pass Judge the first quiz content and the second quiz content and generate quiz results;
- the second party is directly judged to win, and a guess result is generated.
- the quiz order release request information further includes first reward information of the first quiz reward, and the quiz request information further includes second reward information of the second quiz reward;
- the method further includes: issuing a reward to the quiz winner based on the first reward information, the second reward information, and the quiz result.
- the quiz order release request information also includes margin information to directly determine the victory of the second party.
- the generation of the quiz results also includes:
- the security deposit is forfeited according to the security deposit information and distributed to the second party.
- the random number sent by the first party is received within a predetermined time, issuing the reward to the quiz winning party according to the first reward information, the second reward information and the quiz result further includes returning the margin to the first party according to the margin information.
- the quiz order release request information is generated by the first party signing with the first private key held by the first party, and the quiz order request information is generated by the second party signing with the second private key held by the first party. Request information is recorded on the blockchain.
- the present invention provides a quiz game processing system, including:
- the first information receiving unit receives the quiz order release request information sent by the first party, and publishes the quiz order according to the quiz order release request information;
- the quiz order release request information includes the first quiz content and the operation obtained by the random number specified by the first operation.
- the second information receiving unit receives the quiz request information sent by the second party in response to the quiz order, and triggers the quiz smart contract; the quiz request information includes the second quiz content;
- the monitoring unit is configured to monitor whether the first party publishes a random number within a predetermined time by guessing a smart contract, so as to generate a guess result according to the monitoring result.
- the monitoring unit also includes:
- a judging subunit configured to perform a first operation on each of the pre-stored options and random numbers if a random number sent by the first party is received within a predetermined time, and hash the operation result of the first operation Operation to obtain a number of third hash values; determine the first guess content by comparing the first hash value and each third hash value, and judge and generate a guess result with the second guess content; if not received within a predetermined time When the random number sent by the first party is reached, the second party will be judged directly to generate a quiz result; or, if the random number and the first quiz content sent by the first party are received within a predetermined time, The Greek value and the second hash value verify the first quiz content, and when the verification is correct, the first quiz content and the second quiz content are judged and a quiz result is generated; if the first party's The random number and the first quiz content will directly determine the victory of the second party and generate a quiz result.
- a reward issuing unit configured to issue a reward to the winning party according to a predetermined rule, wherein when the random number s sent by the first party is not received within a predetermined time, the second party is directly determined to win. One quiz reward is given to the second party. When the random number s is obtained, the second party is directly determined to win, and the first guess is given to the second party.
- a method and system for processing a quiz game provided by various embodiments of the present invention lock the random number s to ensure that before the random number s is disclosed, no one can infer the quiz content except the owner can know the first quiz content. Avoid collusion and cheating.
- a method and system for processing a quiz game provided by some embodiments of the present invention further set a quiz reward and margin (such as points and other forms), and when the first party does not disclose the random number s, the first party's quiz reward and All the deposits belong to the second party, so that the first party is encouraged to disclose the random number s in a timely manner.
- a quiz reward and margin such as points and other forms
- a method and a system for processing a quiz game provided by some embodiments of the present invention further record the quiz request information of both sides of the game into the blockchain to ensure that the quiz request information cannot be tampered with, thereby ensuring fairness and justice of the game.
- FIG. 1 is a flowchart of a method for processing a guessing game according to an embodiment of the present invention.
- FIG. 2 is a flowchart of step S3 in a preferred embodiment of the method shown in FIG. 1.
- FIG. 3 is a flowchart of step S3 in another preferred embodiment of the method shown in FIG. 1.
- FIG. 4 is a flowchart of a preferred embodiment of the method shown in FIG. 1.
- FIG. 5 is a schematic structural diagram of a system according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a preferred embodiment of the system shown in FIG. 5.
- FIG. 1 is a flowchart of a method for processing a guessing game according to an embodiment of the present invention.
- the present invention provides a method for processing a guessing game, including:
- the quiz order release request information includes the first quiz content and the first result of the operation result obtained by the first operation specified by the random number A hash value x, and a second hash value y of the random number;
- step S1 the first party A provides a random number s, hashing the random number s to obtain a second hash value y, and punching the content of A, such as a stone, and the random number s according to (stone + s) To the operation result X, and hashing X to obtain a first hash value x;
- step S2 when the second party sees the first hash value x and the second hash value y, it sends out its punching content (such as cloth);
- step S3 for a certain period of time, it is assumed that two hours are set to monitor whether the first party A publishes a random number s to judge the results of the two parties' guesses, and generate the guesses.
- the guessing system can only calculate the contents of the first party's punches by using a random number s, which can be effective Avoid cheating during the game.
- the specified calculation method can be not only the operation method of (stone + s), but also the operation method of (s + stone), or the operation can be performed on the stone of the quiz content, and then the two. Combining operations, etc.
- the quiz game may be not only a guessing game, but also other online games such as specific size, anagram, playing poker, etc., which are not limited by this embodiment.
- the quiz order release request information is signed by the first party with the first private key held on the blockchain, and the quiz request information is signed by the second party with the second private key held on the blockchain.
- the private keys of the two parties' guessing request information are signed on the blockchain, thereby ensuring the authenticity and immutability of the punching information of both parties.
- FIG. 2 is a flowchart of step S3 in a preferred embodiment of the method shown in FIG. 1.
- step S3 includes:
- Step S31 if the random number s sent by the first party is received within a predetermined time, perform the first operation on each of the pre-stored options and random numbers, and perform a hash operation on the operation result of the first operation To obtain several third hash values; determine the first guess content by comparing the first hash x value and each third hash value, and judge and generate a second guess result with the second guess content;
- the second party B is directly judged to win, and a quiz result is generated.
- the quiz system will traverse the pre-stored quiz content (cloth, stone, scissors) and the random number to perform the first operation to obtain three After the three operation results are obtained, the three operation results are respectively hashed to obtain three third hash values.
- the three third hash values are compared with the first hash value x, and are obtained from the first hash value x.
- the quiz content with the same hash value is judged, and the quiz content and the second quiz content are judged, and a quiz result is generated. If the random number s announced by A is not received within a predetermined time, then it is directly determined that B wins, and even if A subsequently publishes s, the result cannot be changed.
- FIG. 3 is a flowchart of step S3 in another preferred embodiment of the method shown in FIG. 1. As shown in FIG. 3, step S3 includes:
- Step 31 ' if the random number s and the first guess content sent by the first party are received within a predetermined time, verify the first guess content based on the random number s, the first hash value x and the second hash value y, and When the verification is correct, the first quiz content and the second quiz content are compared to judge and generate a quiz result;
- the second party B is directly determined to win, and a guess result is generated.
- the guessing system will generate a second hash value b according to the public random number s hash, and convert the random number s And the first quiz content to generate an operation result according to the first operation, and perform a hash operation on the operation result to obtain a first hash value a, and verify whether the hash values a, b and the first hash value x, the second ha Whether the Greek value y is consistent. If the verification is correct, the first quiz content is determined, and the first quiz content and the second quiz content are judged to generate a quiz result. If the random number s and the first guess content are not received within the predetermined time, the second party B is directly determined to win.
- the above embodiment judges the quiz result by whether the first party publishes the random number s and the first quiz content, and further optimizes the way to obtain the first quiz content and judge the quiz result.
- FIG. 4 is a flowchart of a preferred embodiment of the method shown in FIG. 1.
- a method for processing a quiz game further includes:
- Step S4 The quiz order release request information further includes first reward information of the first quiz reward, and the quiz request information further includes second reward information of the second quiz reward; the method further includes: according to the first reward information and the second reward information And the quiz results will be awarded to the winner of the quiz.
- the method further includes:
- Step S5 The quiz order release request information also includes margin information. If a situation in which the second party B is directly judged to generate a victory result, the generation of the quiz result further includes: forfeiting the guaranty according to the security information and issuing it to the second party B.
- the method further includes:
- Step S6 If the random number s and the first guess content sent by the first party A are received within a predetermined time, issuing the reward to the winning party according to the first reward information, the second reward information and the guess result further includes: according to the margin information Refund the deposit to First Party A.
- the quiz request information includes the first quiz reward information (such as 30 points) in addition to the first hash value x and the second hash value y described above.
- the deposit (such as 30 points)
- the second party sends a quiz request message, that is, punches (such as the cloth), and contains 30 points for the second quiz reward information, If after receiving the random number s announced by the first party A, after calculating the punching content of A (that is, the stone), judge B to win.
- the smart contract will send 30 points from A to B, and the security deposit 30 points are returned to First Party A. If A does not publish a random number s within a certain period of time, the second party B is directly judged to win. The smart contract sends A's 30 points to B, and the second party B is confiscated.
- the above embodiment urges A to publish the random number s in time within a predetermined time by giving certain guessing rewards and punishment measures.
- the form of the quiz reward is not limited to points, and may be other forms such as game coins; the quiz reward of the two parties may be the same or different, or it may be doubled, etc.
- the form of the deposit may follow The form of the quiz reward is consistent or inconsistent.
- the quiz reward is points, and the deposit may be points or game currency or other forms, which are not limited by this embodiment.
- FIG. 5 is a schematic structural diagram of a system according to an embodiment of the present invention.
- a quiz game processing system includes:
- the first information receiving unit receives the quiz order release request information sent by the first party A, and publishes the quiz order according to the quiz order release request information;
- the quiz order release request information includes the first quiz content and a random number obtained by a specified first operation A first hash value x of the operation result, and a second hash value y of the random number;
- the second information receiving unit receives the quiz request information sent by the second party B in response to the quiz order, and triggers the quiz smart contract; the quiz request information includes the second quiz content;
- the monitoring unit is configured to monitor whether the first party A publishes a random number within a predetermined time by guessing a smart contract, so as to generate a guess result according to the monitoring result.
- the monitoring unit further includes:
- the judging subunit is configured to, if a random number sent by the first party A is received within a predetermined time, perform a first operation on each of the pre-stored options and random numbers, and perform a calculation result on the first operation. Greek operation to obtain a number of third hash values; determine the first guess content by comparing the first hash value x and each third hash value, and judge and generate a guess result with the second guess content; if within a predetermined time If the random number sent by the first party A is not received, the second party B is judged to win directly, and a quiz result is generated;
- the first guess content is verified based on the random number, the first hash value x and the second hash value y, and the verification is correct
- judge and generate the quiz result by comparing the first quiz content and the second quiz content; if the random number and the first quiz content sent by the first party A are not received within a predetermined time, then the second party B will be determined to win directly, Generate quiz results.
- FIG. 6 is a schematic structural diagram of a preferred embodiment of the system shown in FIG. 5.
- the quiz game processing system further includes:
- a reward issuing unit is configured to issue a reward to a quiz winner according to the first reward information, the second reward information, and a quiz result.
- the reward issuing unit includes a margin information sub-unit configured to forfeit the security deposit according to the security information and issue it to the second party B, or return the security deposit to the first party A according to the security information.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种竞猜游戏处理方法及系统,包括接收第一方发出的竞猜订单发布请求信息,根据所述竞猜订单发布请求信息发布竞猜订单;所述竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈希值,以及,所述随机数的第二哈希值(S1);接收第二方发出的响应于所述竞猜订单的竞猜请求信息,触发竞猜智能合约;所述竞猜请求信息包括第二竞猜内容(S2);通过所述竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果(S3)。通过锁定随机数,保证在公开随机数之前,除了拥有者能知道第一竞猜内容外其他任何人都无法推断出该竞猜内容,避免出现互相勾结作弊的情况。
Description
本申请涉及计算机信息技术领域,具体涉及一种精彩游戏处理方法及系统、设备和可存储介质。
目前互联网上的网络竞猜游戏,都需要一个中介来判断输赢,因为网络有时间延时,所以在互联网上不可能做到同时展示竞猜内容的,一般的解决方案是,一方先发布竞猜内容,告诉第三方中介,出的是什么,由第三方中介保密。然后另一方再出,第三方中介根据算法算出的什么,来判断双方的竞猜结果。然而这种方案有个很大的缺点,就是不能保证第三方是公平公正的,无法避免出现第三方篡改竞猜内容或者和其他方联合作弊的情况。
发明内容
鉴于现有技术中的上述缺陷或不足,期望提供一种公平公正,防止第三方和其中一方联合作弊的竞猜游戏处理方法及系统、设备和可存储介质。
第一方面,本发明提供一种竞猜游戏处理方法,包括:
接收第一方发出的竞猜订单发布请求信息,根据竞猜订单发布请求信息发布竞猜订单并将竞猜订单发布请求信息记录在区块链中;竞猜订单发布请求信息包括第一竞猜内容和随机数通过指 定的第一运算得到的运算结果的第一哈希值,以及,随机数的第二哈希值;
接收第二方发出的响应于竞猜订单的竞猜请求信息,触发竞猜智能合约,并将竞猜请求信息记录在区块链中;竞猜请求信息包括第二竞猜内容;
通过竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果。
进一步,若在预定时间内收到第一方发出的随机数,分别对预存的各竞猜内容可选项和随机数进行第一运算,并对第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对第一哈希值和各第三哈希值确定第一竞猜内容,并和第二竞猜内容判断并生成竞猜结果;
若在预定时间内没有接收到第一方发出的随机数,则直接判定第二方胜利,生成竞猜结果。
进一步,若在预定时间内收到第一方发出的随机数和第一竞猜内容,根据随机数、第一哈希值和第二哈希值验证第一竞猜内容,并在验证无误时通过比对第一竞猜内容和第二竞猜内容判断并生成竞猜结果;
若在预定时间内没有接收到第一方发出的随机数和第一竞猜内容,则直接判定第二方胜利,生成竞猜结果。
进一步,竞猜订单发布请求信息还包括第一竞猜奖励的第一奖励信息,竞猜请求信息还包括第二竞猜奖励的第二奖励信息;
方法还包括:根据第一奖励信息、第二奖励信息和竞猜结果对竞猜胜利方发放奖励。
进一步,竞猜订单发布请求信息还包括保证金信息,直接判定第二方胜利,生成竞猜结果还包括:
根据保证金信息罚没保证金并发放给第二方。
进一步,若在预定时间内收到第一方发出的随机数,根据第一奖励信息、第二奖励信息和竞猜结果对竞猜胜利方发放奖励还包括:根据保证金信息退还保证金给第一方。
进一步,的竞猜订单发布请求信息由第一方用持有的第一私钥签名生成,的竞猜请求信息由第二方用持有的第二私钥签名生成,将竞猜订单发布请求信息和竞猜请求信息记录在区块链上。
第二方面,本发明提供一种竞猜游戏处理系统,包括:
第一信息接收单元,接收第一方发出的竞猜订单发布请求信息,根据竞猜订单发布请求信息发布竞猜订单;竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈希值,以及,随机数的第二哈希值;
第二信息接受单元,接收第二方发出的响应于竞猜订单的竞猜请求信息,触发竞猜智能合约;竞猜请求信息包括第二竞猜内容;
监测单元,配置用于通过竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果。
进一步,监测单元还包括:
判断子单元,配置用于若在预定时间内收到第一方发出的随机数,分别对预存的各竞猜内容可选项和随机数进行第一运算,并对第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对第一哈希值和各第三哈希值确定第一竞猜内容,并和第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数,则直接判定第二方胜利,生成竞猜结果;或,若在预定时间内收到第一方发出的随机数和第一竞猜内容,根据随机数、第一哈希值和第二哈希值验证第一竞猜内容,并在验证无误时通过比对第一竞猜内容和第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数和第一竞猜内容,则直接判定第二方胜利,生成竞猜结果。
进一步,还包括:奖励发放单元,配置用于根据预定的规则对赢的一方发放奖励,其中在预定时间没有接收到第一方发出的随机数s时,则直接判定第二方赢,的第一竞猜奖励全部给第二方。出的随机数s时,则直接判定第二方赢,第一竞猜奖励全部给第二方。
本发明诸多实施例提供的一种竞猜游戏处理方法及系统通过锁定随机数s,保证在公开随机数s之前,除了拥有者能知道第一竞猜内容外其他任何人都无法推断出该竞猜内容,避免出现互相勾结作弊的情况。
本发明一些实施例提供的一种竞猜游戏处理方法及系统进一步通过设置了竞猜奖励和保证金(如积分等其他形式),并在第一方未公开随机数s时,第一方的竞猜奖励和保证金全部归第二方所 有,从而,鼓励第一方及时公开随机数s。
本发明一些实施例提供的一种竞猜游戏处理方法及系统进一步通过将游戏双方的竞猜请求信息记录到区块链中,保障了竞猜请求信息的不可篡改性,从而保证游戏的公平公正。
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1为本发明一实施例提供的一种竞猜游戏处理方法的流程图。
图2为图1所示方法的一种优选实施方式中步骤S3的流程图。
图3为图1所示方法的另一种优选实施方式中步骤S3的流程图。
图4为图1所示方法的一种优选实施方式的流程图。
图5为本发明一实施例提供的系统结构示意图。
图6为图5所示系统的一种优选实施方式的结构示意图。
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与发明相关的部分。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
图1为本发明一实施例提供的一种竞猜游戏处理方法流程图。
如图1所示,在本实施例中,本发明提供一种竞猜游戏处理方法,包括:
S1、接收第一方发出的竞猜订单发布请求信息,根据竞猜订单发布请求信息发布竞猜订单;竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈 希值x,以及,随机数的第二哈希值y;
S2、接收第二方发出的响应于竞猜订单的竞猜请求信息,触发竞猜智能合约;竞猜请求信息包括第二竞猜内容;
S3、通过竞猜智能合约在预定时间内监测第一方是否公布随机数s,以根据监测结果生成竞猜结果。
具体的,以猜拳游戏为例,
步骤S1中,第一方A提供一个随机数s,对随机数s进行哈希得到第二哈希值y,并对A的出拳内容,如石头,和随机数s按照(石头+s)的运算方法的到运算结果X,然后对X进行哈希,得到第一哈希值x;
步骤S2中,在第二方看到第一哈希值x和第二哈希值y时,发出自己的出拳内容(如布);
步骤S3中,在一定时间内,假设设定两个小时,监测第一方A是否公布随机数s来判断双方的竞猜结果进行判断,并生成竞猜结果。
通过发出哈希值,使除了第一方以外,任何其他各方都不可能知道第一方出拳的内容,竞猜系统只有通过随机数s才可以计算第一方的出拳内容,这样可以有效避免游戏过程中出现作弊的情况。
在更多实施例中,指定的运算方法不仅可以是(石头+s)的运算方法,也可以是(s+石头)的运算方法,也可以是先对竞猜内容石头做运算,然后再对二者结合进行运算等。在更多实施例中竞猜游戏不仅可以是猜拳游戏,也可以是比大小,猜字谜,玩扑克等其他网络游戏,不受本实施例的限制。
进一步优选地,竞猜订单发布请求信息由第一方用持有的第一私钥签名到区块链上,竞猜请求信息由第二方用持有的第二私钥签名到区块链上。
上述优选实施方式通过将双方竞猜请求信息私钥签名到区块链上,从而保证双方的出拳信息的真实可靠性和不可篡改性。
图2为图1所示方法的一种优选实施方式中步骤S3的流程图。
如图2所示,步骤S3包括:
步骤S31:若在预定时间内收到第一方发出的随机数s,分别对预存的各竞猜内容可选项和随机数进行所述第一运算,并对第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对第一哈希x值和各第三哈希值确定所述第一竞猜内容,并和第二竞猜内容判断并生成竞猜结果;
若在预定时间内没有接收到第一方A发出的随机数,则直接判定第二方B胜利,生成竞猜结果。
具体的,在预定的时间内,比如两小时,如果第一方A公布了随机数s,则竞猜系统会遍历预存的竞猜内容(布,石头,剪刀)和随机数进行第一运算,得到三个运算结果后,再分别对三个运算结果进行哈希运算得出三个第三哈希值,通过比对这三个第三哈希值与第一哈希值x,并获取与第一哈希值一致的竞猜内容,并将该竞猜内容与第二竞猜内容判断,并生成竞猜结果。如果在预定的时间内没有收到A公布的随机数s,则直接判定B赢,即使后来A公布了s也不能改变该结果。
上述实施方式通过第一方A是否只公开随机数s以使竞猜系统判断双方输赢,进一步优化了获取竞猜内容并判断竞猜结果的方式。
图3为图1所示方法的另一优选实施方式中步骤S3的流程图。如图3所示,步骤S3包括:
步骤31’、若在预定时间内收到第一方发出的随机数s和第一竞猜内容,根据随机数s、第一哈希值x和第二哈希值y验证第一竞猜内容,并在验证无误时通过比对第一竞猜内容和第二竞猜内容判断并生成竞猜结果;
若在预定时间内没有接收到第一方A发出的随机数s和第一竞猜内容,则直接判定第二方B胜利,生成竞猜结果。
具体的,在预定的时间内,如果第一方A公布了随机数s和第一竞猜内容,则竞猜系统会根据公开的随机数s哈希生成第二哈希值b,并将随机数s和第一竞猜内容按第一运算生成运算结果,并 对该运算结果进行哈希运算得到第一哈希值a,验证该哈希值a,b是否与第一哈希值x,第二哈希值y是否一致,若验证无误,则确定第一竞猜内容,并将第一竞猜内容和第二竞猜内容判断,生成竞猜结果。如果在预定时间内没有收到随机数s和第一竞猜内容,则直接判定第二方B胜利。
上述实施方式通过第一方是否公布随机数s和第一竞猜内容来判断竞猜结果,进一步优化了获取第一竞猜内容并判断竞猜结果的方式。
图4为图1所示方法的一种优选实施方式的流程图。
如图4所示,一种竞猜游戏处理方法,还包括:
步骤S4:竞猜订单发布请求信息还包括第一竞猜奖励的第一奖励信息,竞猜请求信息还包括第二竞猜奖励的第二奖励信息;该方法还包括:根据第一奖励信息、第二奖励信息和竞猜结果对竞猜胜利方发放奖励。
进一步优化的,该方法还包括:
步骤S5:竞猜订单发布请求信息还包括保证金信息,若是发生直接判定第二方B胜利的情况,则生成竞猜结果还包括:根据保证金信息罚没保证金并发放给第二方B。
进一步优化的,该方法还包括:
步骤S6:若在预定时间内收到第一方A发出的随机数s和第一竞猜内容,根据第一奖励信息、第二奖励信息和竞猜结果对竞猜胜利方发放奖励还包括:根据保证金信息退还保证金给第一方A。
具体的,在第一方发出竞猜订单发布请求信息时,竞猜请求信息中除了上述的第一哈希值x,第二哈希值y以外,还包含第一竞猜奖励信息(如30个积分)和保证金(如30个积分),第二方看到两个哈希值和30个积分后,发出竞猜请求信息,即出拳(如出布),并且包含第二竞猜奖励信息30个积分,如果接收到第一方A公布的随机数s后,计算出A的出拳内容后(即石头),则判断B赢,此时智能合约将A中的30个积分发送给B,并将保证金 30个积分返还给第一方A。若A在一定时间内没有公布随机数s,则直接判断第二方B赢,智能合约将A的30个积分发送给B,并将保证金一并罚没给第二方B。
上述实施例通过给与一定的竞猜奖励及惩罚措施,更大限度的督促A在预定时间内及时公布随机数s。
在更多实施例中,竞猜奖励的形式不限于积分,也可以是游戏币等其他形式;双方的竞猜奖励可以相同,也可以不相同,也可以是翻倍等其他情况,保证金的形式可以跟竞猜奖励的形式一致,也可以不一致,比如竞猜奖励是积分,保证金可以是积分或游戏币或其他形式,不受本实施例的限制。
图5为本发明一实施例提供的系统结构示意图。
如图5,一种竞猜游戏处理系统,包括:
第一信息接收单元,接收第一方A发出的竞猜订单发布请求信息,根据竞猜订单发布请求信息发布竞猜订单;竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈希值x,以及,随机数的第二哈希值y;
第二信息接受单元,接收第二方B发出的响应于竞猜订单的竞猜请求信息,触发竞猜智能合约;竞猜请求信息包括第二竞猜内容;
监测单元,配置用于通过竞猜智能合约在预定时间内监测第一方A是否公布随机数,以根据监测结果生成竞猜结果。
进一步优化地,监测单元还包括:
判断子单元,配置用于若在预定时间内收到第一方A发出的随机数,分别对预存的各竞猜内容可选项和随机数进行第一运算,并对第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对第一哈希值x和各第三哈希值确定第一竞猜内容,并和第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方A发出的随机数,则直接判定第二方B胜利,生成竞猜结果;
或,若在预定时间内收到第一方A发出的随机数和第一竞猜 内容,根据随机数、第一哈希值x和第二哈希值y验证第一竞猜内容,并在验证无误时通过比对第一竞猜内容和第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方A发出的随机数和第一竞猜内容,则直接判定第二方B胜利,生成竞猜结果。
图6为图5所示系统的一种优选实施方式的结构示意图。
如图6所示,竞猜游戏处理系统还包括:
奖励发放单元,配置用于用于根据所述第一奖励信息、所述第二奖励信息和竞猜结果对竞猜胜利方发放奖励。
进一步优化地,奖励发放单元包括保证金信息子单元配置用于根据所述保证金信息罚没保证金并发放给所述第二方B,或根据保证金信息退还所述保证金给第一方A。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离本申请构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方。
Claims (10)
- 一种竞猜游戏处理方法,其特征在于,包括:接收第一方发出的竞猜订单发布请求信息,根据所述竞猜订单发布请求信息发布竞猜订单;所述竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈希值,以及,所述随机数的第二哈希值;接收第二方发出的响应于所述竞猜订单的竞猜请求信息,触发竞猜智能合约;所述竞猜请求信息包括第二竞猜内容;通过所述竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果。
- 根据权利要求1所述的方法,其特征在于,所述通过所述竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果包括:若在预定时间内收到第一方发出的随机数,分别对预存的各竞猜内容可选项和所述随机数进行所述第一运算,并对所述第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对所述第一哈希值和各所述第三哈希值确定所述第一竞猜内容,并和所述第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数,则直接判定第二方胜利,生成竞猜结果。
- 根据权利要求1所述的方法,其特征在于,所述通过所述竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果包括:若在预定时间内收到第一方发出的随机数和第一竞猜内容,根据所述随机数、所述第一哈希值和所述第二哈希值验证所述第一竞猜内容,并在验证无误时通过比对所述第一竞猜内容和所述第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数和第一竞猜内容,则直接判定第二方胜利,生成竞猜结果。
- 根据权利要求2或3所述的方法,其特征在于,所述竞猜订单发布请求信息还包括第一竞猜奖励的第一奖励信息,所述竞猜请求信息还包括第二竞猜奖励的第二奖励信息;所述方法还包括:根据所述第一奖励信息、所述第二奖励信息和竞猜结果对竞猜胜利方发放奖励。
- 根据权利要求4所述的方法,其特征在于,所述竞猜订单发布请求信息还包括保证金信息,所述直接判定第二方胜利,生成竞猜结果还包括:根据所述保证金信息罚没保证金并发放给所述第二方。
- 根据权利要求5所述的方法,其特征在于:所述若在预定时间内收到第一方发出的随机数,所述根据所述第一奖励信息、所述第二奖励信息和竞猜结果对竞猜胜利方发放奖励还包括:根据保证金信息退还所述保证金给第一方。
- 一种竞猜游戏处理系统,其特征在于,包括:第一信息接收单元,接收第一方发出的竞猜订单发布请求信息, 根据所述竞猜订单发布请求信息发布竞猜订单;所述竞猜订单发布请求信息包括第一竞猜内容和随机数通过指定的第一运算得到的运算结果的第一哈希值,以及,所述随机数的第二哈希值;第二信息接受单元,接收第二方发出的响应于所述竞猜订单的竞猜请求信息,触发竞猜智能合约;所述竞猜请求信息包括第二竞猜内容;监测单元,配置用于通过所述竞猜智能合约在预定时间内监测第一方是否公布随机数,以根据监测结果生成竞猜结果。
- 根据权利要求7所述的一种竞猜游戏处理系统,其特征在于,监测单元还包括:判断子单元,配置用于若在预定时间内收到第一方发出的随机数,分别对预存的各竞猜内容可选项和所述随机数进行所述第一运算,并对所述第一运算的运算结果进行哈希运算,得到若干第三哈希值;通过比对所述第一哈希值和各所述第三哈希值确定所述第一竞猜内容,并和所述第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数,则直接判定第二方胜利,生成竞猜结果;或,若在预定时间内收到第一方发出的随机数和第一竞猜内容,根据所述随机数、所述第一哈希值和所述第二哈希值验证所述第一竞猜内容,并在验证无误时通过比对所述第一竞猜内容和所述第二竞猜内容判断并生成竞猜结果;若在预定时间内没有接收到第一方发出的随机数和第一竞猜内容,则直接判定第二方胜利,生成竞猜结果。
- 根据权利要求8所述的一种竞猜游戏处理系统,其特征在于,还包括:奖励发放单元,配置用于根据所述第一奖励信息、所述第二奖励信息和竞猜结果对竞猜胜利方发放奖励。
- 根据权利要求9所述的一种竞猜游戏处理系统,其特征在于,奖励发放单元包括保证金信息子单元,配置用于根据所述保证金信息罚没保证金并发放给所述第二方,或根据保证金信息退还所述保证金给第一方。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/256,630 US20210260469A1 (en) | 2018-06-29 | 2019-06-20 | Quiz Game Processing Method and System |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810697418.0A CN108992925B (zh) | 2018-06-29 | 2018-06-29 | 一种竞猜游戏处理方法及系统 |
CN201810697418.0 | 2018-06-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020001368A1 true WO2020001368A1 (zh) | 2020-01-02 |
Family
ID=64601501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/092155 WO2020001368A1 (zh) | 2018-06-29 | 2019-06-20 | 一种竞猜游戏处理方法及系统 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20210260469A1 (zh) |
CN (1) | CN108992925B (zh) |
WO (1) | WO2020001368A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108992925B (zh) * | 2018-06-29 | 2020-09-15 | 杭州复杂美科技有限公司 | 一种竞猜游戏处理方法及系统 |
CN109646934B (zh) * | 2018-12-24 | 2022-07-19 | 杭州复杂美科技有限公司 | 一种十点半游戏方法、设备和存储介质 |
CN110648447B (zh) * | 2019-08-08 | 2021-08-06 | 杭州复杂美科技有限公司 | 一种游戏随机数生成方法、应用及装置、设备和存储介质 |
CN112057875B (zh) * | 2020-05-12 | 2024-01-12 | 上海骋荣网络科技有限公司 | 游戏装备分配方法、设备和存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101373498A (zh) * | 2008-09-19 | 2009-02-25 | 深圳市卓易网络有限公司 | 一种基于网络平台的投注竞猜类游戏的实现方法 |
CN102044106A (zh) * | 2009-10-23 | 2011-05-04 | 钟巨航 | 用于博彩系统的方法和装置 |
US20130059655A1 (en) * | 2011-09-06 | 2013-03-07 | Multimedia Games, Inc. | Game authentication method for gaming machines and game platform with authentication capability |
CN105913174A (zh) * | 2016-04-07 | 2016-08-31 | 彭军红 | 一种基于区块链的彩票发行方法 |
CN107248132A (zh) * | 2017-06-15 | 2017-10-13 | 腾讯科技(深圳)有限公司 | 一种竞猜游戏的处理方法、装置、系统及终端 |
CN108992925A (zh) * | 2018-06-29 | 2018-12-14 | 杭州复杂美科技有限公司 | 一种竞猜游戏处理方法及系统 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6030288A (en) * | 1997-09-02 | 2000-02-29 | Quixotic Solutions Inc. | Apparatus and process for verifying honest gaming transactions over a communications network |
CN103944722B (zh) * | 2014-04-17 | 2017-05-10 | 华北科技学院 | 一种互联网环境下用户可信行为的识别方法 |
CN106552420A (zh) * | 2015-09-30 | 2017-04-05 | 彭先立 | 网路博弈游戏装置 |
JP6134415B2 (ja) * | 2016-04-11 | 2017-05-24 | 株式会社ユニバーサルエンターテインメント | 遊技機 |
-
2018
- 2018-06-29 CN CN201810697418.0A patent/CN108992925B/zh active Active
-
2019
- 2019-06-20 US US17/256,630 patent/US20210260469A1/en not_active Abandoned
- 2019-06-20 WO PCT/CN2019/092155 patent/WO2020001368A1/zh active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101373498A (zh) * | 2008-09-19 | 2009-02-25 | 深圳市卓易网络有限公司 | 一种基于网络平台的投注竞猜类游戏的实现方法 |
CN102044106A (zh) * | 2009-10-23 | 2011-05-04 | 钟巨航 | 用于博彩系统的方法和装置 |
US20130059655A1 (en) * | 2011-09-06 | 2013-03-07 | Multimedia Games, Inc. | Game authentication method for gaming machines and game platform with authentication capability |
CN105913174A (zh) * | 2016-04-07 | 2016-08-31 | 彭军红 | 一种基于区块链的彩票发行方法 |
CN107248132A (zh) * | 2017-06-15 | 2017-10-13 | 腾讯科技(深圳)有限公司 | 一种竞猜游戏的处理方法、装置、系统及终端 |
CN108992925A (zh) * | 2018-06-29 | 2018-12-14 | 杭州复杂美科技有限公司 | 一种竞猜游戏处理方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
US20210260469A1 (en) | 2021-08-26 |
CN108992925A (zh) | 2018-12-14 |
CN108992925B (zh) | 2020-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020001368A1 (zh) | 一种竞猜游戏处理方法及系统 | |
Nguyen et al. | A survey about consensus algorithms used in blockchain. | |
CN109523683B (zh) | 一种基于区块链技术的不记名电子投票方法 | |
CN110270097A (zh) | 安全的分散式视频游戏交易平台 | |
KR20210135495A (ko) | 블록체인 스마트 컨트랙트들에서 난수들을 발생하기 위한 방법 | |
CN107979585B (zh) | 一种数据处理方法、应用客户端及系统 | |
JP2022180596A (ja) | ブロックチェーンで実施されるイベントロック暗号化の方法及びシステム | |
US20230023060A1 (en) | Provably fair games using a blockchain | |
US20200152003A1 (en) | Gambling systems and methods based on blockchain technology | |
CN109359978A (zh) | 基于区块链网络的智能合约交易方法和系统 | |
JP6942927B2 (ja) | ゲームシステム、管理サーバのプログラム及びゲーム装置のプログラム | |
US20220410017A1 (en) | Provably fair games using a blockchain | |
Chambers et al. | Mitigating information exposure to cheaters in real-time strategy games | |
KR102262047B1 (ko) | 블록체인을 기반으로 한 경품 추첨 이벤트 관리 시스템 및 방법 | |
JP2018050973A (ja) | 乱数生成システム、乱数生成装置、乱数生成方法及びプログラム | |
Kushilevitz et al. | Fair e-lotteries and e-casinos | |
Ballweg et al. | PureLottery: Fair leader election without decentralized random number generation | |
US20220123947A1 (en) | A Method for Generating Random Numbers in Blockchain Smart Contracts | |
CN109120410B (zh) | 一种漂流瓶游戏方法、设备和存储介质 | |
KR102366638B1 (ko) | 게임 클라이언트의 참여 증명 기반 블록체인 시스템 및 이를 이용한 블록 보상 합의 방법 | |
JP2004534580A5 (zh) | ||
KR20210123393A (ko) | 의사-랜덤 데이터 생성을 위한 컴퓨터 구현된 방법 및 시스템 | |
TWI719810B (zh) | 遊戲給獎方法及其應用裝置 | |
Stajano et al. | Cyberdice: peer-to-peer gambling in the presence of cheaters | |
Moore | Trusted Real-World Event Outcomes on a Blockchain: Staked Voting and Its Application to Distributed Gaming |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19827139 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19827139 Country of ref document: EP Kind code of ref document: A1 |