WO2020082869A1 - Procédé et appareil de prédiction d'événement et dispositif électronique - Google Patents

Procédé et appareil de prédiction d'événement et dispositif électronique Download PDF

Info

Publication number
WO2020082869A1
WO2020082869A1 PCT/CN2019/101495 CN2019101495W WO2020082869A1 WO 2020082869 A1 WO2020082869 A1 WO 2020082869A1 CN 2019101495 W CN2019101495 W CN 2019101495W WO 2020082869 A1 WO2020082869 A1 WO 2020082869A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
result
blockchain
smart contract
participant
Prior art date
Application number
PCT/CN2019/101495
Other languages
English (en)
Chinese (zh)
Inventor
张文彬
马宝利
刘正
宋旭阳
崔嘉辉
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020082869A1 publication Critical patent/WO2020082869A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • One or more embodiments of this specification relate to the field of blockchain technology, and in particular, to an event prediction method and device, and electronic equipment.
  • the results of events can be predicted in various ways, such as predictive analysis based on historical data, and then predictive analysis based on a prediction model trained from samples. Due to the differences in the forecast data used, the forecast method used, and the forecast environment, etc., when different participants participate in the prediction of the result of the same event, they often get different prediction results, or even a large deviation. .
  • one or more embodiments of this specification provide an event prediction method and apparatus, and electronic equipment.
  • an event prediction method is proposed, which is applied to blockchain nodes; the method includes:
  • the smart contract is used to publish the prediction result to the first block of the blockchain, and determine the actual result of the specified event based on the block content of the second block in the blockchain To determine the participant ’s prediction of the specified event according to the comparison between the prediction result and the actual result; wherein the block height of the second block is greater than the area of the first block Block height.
  • an event prediction device is proposed, applied to a blockchain node; the device includes:
  • the first obtaining unit obtains the prediction result determined by the participant for the specified event
  • Calling unit calling a smart contract
  • the smart contract is used to publish the prediction result to the first block of the blockchain, and determine the specified event based on the block content of the second block in the blockchain
  • the actual result of to determine the prediction of the participant on the specified event according to the comparison between the predicted result and the actual result; wherein the height of the second block is greater than that of the first area
  • the block height of the block is greater than that of the first area
  • an electronic device including:
  • Memory for storing processor executable instructions
  • the processor executes the executable instruction to implement the event prediction method as described in any one of the above embodiments.
  • FIG. 1 is a flowchart of an event prediction method provided by an exemplary embodiment.
  • FIG. 2 is a schematic diagram of a predicted event result provided by an exemplary embodiment.
  • FIG. 3 is a flowchart of a functional logic implemented by a smart contract provided by an exemplary embodiment.
  • FIG. 4 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • FIG. 5 is a block diagram of an event prediction apparatus provided by an exemplary embodiment.
  • the steps of the corresponding method are not necessarily performed in the order shown and described in this specification.
  • the method may include more or fewer steps than described in this specification.
  • the single step described in this specification may be decomposed into multiple steps for description in other embodiments; and the multiple steps described in this specification may also be combined into a single step in other embodiments description.
  • FIG. 1 is a flowchart of an event prediction method provided by an exemplary embodiment. As shown in Figure 1, this method is applied to blockchain nodes and can include the following steps:
  • Step 102 Obtain the prediction result determined by the participant for the specified event.
  • the prediction result can be input by the participant, for example, an input interface can be provided to the participant, so that the participant can input the prediction result based on the input interface, and for example, the input voice of the participant can be collected from the input voice Identify the prediction results that the participant wishes to input.
  • the prediction result may be a character string of a specified length or other formats, which is not limited in this specification.
  • a blockchain node may call a preset smart contract for generating a prediction result at the request of a participant, so that the smart contract can automatically generate a prediction result through a predefined random algorithm.
  • the participant can view the content automatically generated by the smart contract to confirm the content as a prediction result; or, instruct the smart contract to regenerate new content until the participant confirms the generated content.
  • one or more participants can predict the same event, so that there can be prediction results corresponding to each participant on the blockchain; where each participant can have a corresponding unique identifier, so that The prediction results issued by each participant can be associated with its unique identifier, so as to effectively distinguish the prediction results released on the blockchain.
  • the designated event is any event that is indicated to determine the need to predict the outcome, such as the traffic condition of a certain intersection, the rice harvest in a certain area, the time of typhoon formation in a certain sea area, etc. limit.
  • Step 104 Call a smart contract, the smart contract is used to publish the prediction result to the first block of the blockchain, and determine the specified event based on the block content of the second block in the blockchain The actual result of, to determine the prediction of the participant on the specified event according to the comparison between the predicted result and the actual result; wherein the height of the second block is greater than that of the first area The block height of the block.
  • a transaction can be created on the client of the blockchain, so that the predicted result input by the participants can be published to the blockchain through the transaction, becoming a part of the distributed database of the blockchain Pen data.
  • a narrowly defined transaction refers to a value transfer issued by the user to the blockchain; for example, in the traditional Bitcoin blockchain network, the transaction can be a transfer initiated by the user in the blockchain.
  • the generalized transaction refers to a piece of business data with business intent that users release to the blockchain; for example, the operator can build an alliance chain based on actual business needs, relying on the alliance chain to deploy some other types that have nothing to do with value transfer Online business (for example, event prediction, rental business, vehicle scheduling business, insurance claims business, credit service, medical service, etc.), and in this type of alliance chain, the transaction can be a sum of business issued by the user in the alliance chain Intent business message or business request.
  • the transactions in this manual should tend to be understood as transactions in a broad sense.
  • the prediction results posted on the blockchain cannot be tampered with, which can ensure that the prediction results are true and reliable.
  • the prediction result when the prediction result is published to the first block in the blockchain, and the actual result comes from the second block with a block height greater than the first block, based on the The chain relationship between them makes the addition of prediction results increase the uncertainty of actual results, and can greatly reduce the possibility of criminals to manipulate the actual results.
  • the smart contract is used to determine the actual result after generating the third block in the blockchain; wherein the block height of the third block is greater than the second block, And the height difference is the preset value.
  • the smart contract determines the actual result based on the block content of the second block, the actual result is not determined immediately after the second block is generated, but the actual result is determined after waiting for a preset number of blocks .
  • the blockchain node may obtain the random content determined by the participant and associated with the prediction result; wherein, the smart contract is also used to publish the random content to the first A block; or, the smart contract is also used to publish the random content to the fourth block of the blockchain, and the block height of the second block is greater than the area of the fourth block Block height.
  • the actual result is also related to the block content of one or more other blocks in the blockchain, so that even if the criminal has the block attack capability, he must attack the second block and the block separately. Only other blocks can achieve their goals, resulting in extremely high attack costs, which can greatly reduce the possibility of criminals manipulating the actual results.
  • the one or more other blocks described above may include: a block containing at least one prediction result for the specified event, so that all prediction results can affect the actual results, and the actual results can be increased Of uncertainty.
  • the smart contract is used to process the block content of the second block and m other blocks by the following formula to determine the actual result:
  • H’1 H (Hn, Hm),
  • H’i H (H ’(i-1), H (m-i + 1)), where 1 ⁇ i ⁇ m;
  • H is a preset hash function
  • Hn is a hash value related to the block content of the second block
  • Hi is a hash value related to the block content of the i-th other block. The actual result stated is H'm.
  • m other blocks may be sequentially arranged in a preset order to form the first other block, ..., the mth other block,
  • the preset order may include the order of the block height from small to large, which is not limited in this specification.
  • the smart contract can also be used to compress the number of characters of H’m to a preset number.
  • the hash value generated by the hash function H is 256 bits and the preset number is 8 bits
  • the 256-bit H’m can be compressed into an 8-bit character string as the actual result in this specification.
  • the format of the actual result is defined as an “8-bit character string” in advance, the actual result needs to be generated according to this format; similarly, the prediction result determined by the participant should also conform to the format of the “8-bit character string” .
  • the blockchain node may allocate the first asset certificate to the participant according to the participant's prediction of the specified event.
  • a blockchain node can call a smart contract for distributing asset vouchers, so that after the smart contract runs, it can automatically allocate the first asset voucher to the participants according to the participant's prediction and allocation rules for the asset voucher. Since the processing logic on the smart contract is public content, and the entire process is automatically completed by the smart contract, there is no human intervention, so that whether it is the comparison of the predicted results and the actual results or the distribution of the first asset certificate, it can ensure the objective ,just.
  • the prediction result matches the actual result, it indicates that the participant who provided the prediction result has a certain accuracy in predicting the result of the specified event. Then, by assigning the first asset voucher to the participants, the amount of asset vouchers held by each participant can be controlled, so as to achieve a mark for each participant to a certain extent: the more participants holding asset vouchers, the event results The stronger the forecasting ability of, so in the subsequent event prediction process, it is possible to quickly screen out the participants with strong prediction ability to obtain relatively more accurate prediction results from these participants.
  • the first asset certificate may include a blockchain smart asset certificate.
  • the smart asset voucher is used to characterize certain rights and interests, so as to realize the incentive for the participant to accurately predict the above-mentioned designated events, and help the participant continue to participate in the prediction of the subsequent events, thereby achieving a virtuous circle.
  • the preset operation may include publishing a transaction, initiating consensus (for example, initiated based on the PBFT practical Byzantine fault tolerance algorithm), etc., by assigning a certain amount to each blockchain node Smart asset certificate to facilitate the preset operation to be completed as quickly as possible.
  • the participant can exchange the held smart asset certificate into an equivalent off-chain equity certificate through a blockchain node that plays an anchor role on the blockchain.
  • the first asset certificate may include an off-chain equity certificate.
  • the off-chain equity certificate is used to characterize certain rights and interests to achieve the incentive for the participant to accurately predict the above-mentioned designated events, which helps the participant continue to participate in the prediction of subsequent events, thereby achieving a virtuous circle.
  • the preset operation may include issuing a transaction, initiating consensus (for example, based on the PBFT practical Byzantine fault-tolerant algorithm), etc., and can convert the off-chain equity certificate into a blockchain Equivalent internal smart asset vouchers, and by assigning a certain amount of smart asset vouchers to each blockchain node, to facilitate the preset operation to be completed as quickly as possible.
  • the off-chain equity certificate may include a certificate used to characterize any type of off-chain equity, such as member points in the member system, coupons on the trading platform, exchange coupons, coupons, etc. Limit it.
  • the specified event includes one or more sub-events
  • the prediction result is used to predict the result of the one or more sub-events.
  • the character string may be divided into several groups, each group containing one or more character strings, corresponding to the above one sub-event.
  • the smart contract is used to distribute the first asset voucher to the participants if the prediction result predicts the result of the one or more sub-events correctly.
  • the prediction result when the prediction result predicts the result of the specified event completely, the prediction result is determined by the smart contract to match the actual result of the specified event; for example, when both the predicted result and the actual result are "02-05-12-15 -23-26 ", the specified event contains 6 sub-events, and it can be determined that the prediction result is completely correct for the result of the specified event.
  • the specified event includes multiple sub-events; when the first asset voucher is allocated to the participant, the size of the equity represented by the first asset voucher is positively related to the predicted result The proportion of accurately predicted sub-events in the plurality of sub-events.
  • the size of the equity represented by the first asset voucher may be a preset Maximum value; when the predicted result is completely different from the actual result, that is, the proportion of sub-events accurately predicted by the predicted result in the plurality of sub-events is 0%, the size of the equity represented by the first asset certificate can be It is the preset minimum value (0 or other preset value).
  • the prediction result and the actual result are "02-05-12-15-23-26"
  • the proportion of sub-events accurately predicted by the prediction result in the plurality of sub-events is 100% ;
  • the predicted result is "02-06-13-15-20-26" and the actual result is "02-05-12-15-23-26”
  • the specified event contains 6 sub-events, which can be determined as described
  • the proportion of sub-events accurately predicted by the prediction result in the plurality of sub-events is 50%.
  • the size of the equity represented by the first asset certificate can be changed linearly, for example, when the proportion is 30%, the equity size is 30% of the preset maximum value, and for example, when the proportion is 80%, the equity size It is 80% of the preset maximum, etc.
  • the size of the equity represented by the first asset certificate may adopt a non-linear change, for example, when the proportion is 30%, the equity size is 10% of the preset maximum value, and for example, when the proportion is 80%, The equity size is 50% of the preset maximum value. For example, when the proportion is 95%, the equity size is 80% of the preset maximum value.
  • the specified event includes multiple sub-events.
  • the predicted result and the actual result are not completely consistent, regardless of the proportion of the sub-events accurately predicted by the predicted result in the multiple sub-events, all It can be determined that the two do not match, and therefore no asset vouchers are allocated to the participants.
  • the blockchain node may determine that the second asset certificate held by the participant is frozen as a guarantee certificate for guaranteeing the validity of the prediction result; wherein, the smart contract is used When the predicted result does not match the actual result, the holding relationship of the participant to the guarantee certificate is released.
  • the guarantee certificate is used to guarantee the prediction results provided by the participant, and a certain threshold for participation can be set for the participant to avoid random participation and affect the above Specify accurate predictions of events.
  • the prediction result matches the actual result, it indicates to a certain extent that the participant really has Very strong predictive ability, so by setting the size of the equity represented by the first asset certificate to be positively correlated with the size of the equity represented by the second asset certificate, the prediction ability of the corresponding participant can be more accurate Mark, and provide a greater degree of incentive to the corresponding participants.
  • the participant even if the participant does not freeze the formation of the guarantee certificate, he can still participate in the prediction of the result of the specified event and obtain the above-mentioned first asset certificate if the predicted result matches the actual result.
  • the prediction result entered by the participant is judged to be invalid, making it impossible to really participate in the prediction of the result of the specified event; or, between the prediction result and the actual result.
  • the first asset voucher can be allocated to the participant, the first asset voucher cannot characterize any equity equivalent to not allocating any asset voucher, making the participation of the participant meaningless.
  • FIG. 2 is a schematic diagram of a predicted event result provided by an exemplary embodiment.
  • the user A can input the prediction result through the mobile phone 21 with the client installed.
  • the prediction result can be obtained by user A in any way, for example, user A performs big data analysis on historical data through a server not shown in FIG. 2, or for example, user A obtains it according to his own experience, and this specification does not Limit it.
  • user A can also input other prediction-related information through mobile phone 21.
  • the device 22 is configured as a blockchain node in the blockchain, and the device 22 can receive the prediction result sent by the mobile phone 21; based on the logged-in account on the client running the mobile phone 21, the prediction result can be determined as coming from the user A.
  • the mobile phone 21 can also send the above prediction results and other information to other blockchain nodes in the blockchain.
  • the processing process of these blockchain nodes is similar to the device 22, and the relevant description of the device 22 in this specification can be referred to .
  • Other users can also predict the result of Event B, and send the prediction results and other information to the device 22 or other blockchain nodes through their mobile phones or other electronic devices.
  • the processing process of these users is similar to that of User A. Refer to the relevant description for User A in this manual.
  • the device 22 can agree on the prediction results and other information entered by the user A in the blockchain, so that the prediction results and other information are released to the blockchain after passing the consensus to be recorded in the distributed database of the blockchain, namely "Wind up".
  • This specification does not limit the type of consensus algorithm used; for example, when the blockchain where the device 22 is located is a consortium chain or a public chain, the device 22 may be based on algorithms such as PBFT (Practical Byzantine Fault Tolerance).
  • Other blockchain nodes initiate consensus and publish the prediction results to the blockchain after passing the consensus, so that they are recorded in the distributed database of the blockchain; for another example, when the blockchain where the device 22 is located is In the case of a public chain, the device 22 can compete with other blockchain nodes based on the POW (Proof of Work, Proof of Work) algorithm, POS (Proof of Stake, Proof of Stake) algorithm, or other algorithms for bookkeeping rights, and the bookkeeping can be obtained by
  • POW Proof of Work, Proof of Work
  • POS Proof of Stake, Proof of Stake
  • the right blockchain node records transaction data into the corresponding block, and when a transaction containing information such as the prediction result input by user A is recorded, the prediction result and other information can be recorded to the distributed database of the blockchain in.
  • a smart contract can be created on the blockchain in advance. Functional logic is defined for determining the match between the predicted result and the actual result.
  • Device 22 can invoke the smart contract to make the smart contract automatically perform the following operations through its functional logic: publish the predicted result and other information to the block On the chain, determine the actual results of Event B, compare the predicted results with the actual results, and allocate asset certificates.
  • a smart contract can be invoked by a transaction or other smart contract on the blockchain to trigger its automatic implementation of related functional logic, such as the functional logic described above for determining the match between the predicted result and the actual result Wait.
  • the device 22 can issue the transaction or call other smart contracts in the blockchain to realize the call to the above smart contract; or, other blockchain nodes can call the above smart contract, which is not limited in this specification.
  • the above-mentioned smart contract can be run on the device 22 to automatically implement the above-mentioned function logic.
  • FIG. 3 is a flowchart of a functional logic implemented by a smart contract provided by an exemplary embodiment. As shown in FIG. 3, the functional logic may include the following steps:
  • Step 302 the smart contract determines the submitted betting transaction.
  • the mobile phone 21 may provide a lottery betting interface to the user A, so that the user A can select a betting number through the lottery betting interface, and the selected betting number combination forms a lottery number bet on the user A, that is, a betting number.
  • user A can set the bet amount in the lottery betting interface. User A can pay one or more bets on the same betting number (the amount of each bet is the preset single bet amount) as the betting amount corresponding to the betting number.
  • the mobile phone 21 can generate a random number for the betting behavior of the user A, which can be used to increase the randomness of the final lottery result, reduce the possibility of manipulation of the lottery result, improve the fairness of the lottery and Impartiality.
  • the mobile phone 21 can automatically generate the above random number, which can be invisible to user A; or, the lottery betting interface can provide a random number generation option so that user A can manually trigger the generation of the random number.
  • the random number can be presented to the user A; alternatively, the user A can manually input a random number, which is not limited in this specification.
  • the mobile phone 21 can create a corresponding betting transaction, and sign the betting transaction using the private key of user A, then The betting transaction is submitted to the blockchain, so that the blockchain node can call a smart contract for the betting transaction, and the smart contract can complete the subsequent processing based on the functional logic shown in FIG. 3.
  • Step 304 the smart contract verifies the legality of the transaction.
  • the smart contract can verify the legality of the betting transaction, such as whether the signature meets the requirements, whether the betting number conforms to the preset format, and whether the user A's blockchain account is sufficient to pay the bet amount.
  • the verification can go to step 306, otherwise the smart contract can ignore the current betting transaction.
  • Step 306 the smart contract triggers the transfer of betting funds.
  • the smart contract can transfer betting funds from the user A's blockchain account to the preset lottery account, and the transfer amount is the aforementioned bet amount. Regardless of whether the betting number corresponding to user A wins, the transferred betting funds will not be returned to user A. These betting funds are used as the conditions for user A to participate in the lottery draw process.
  • step 308 the smart contract records betting information and fund transfer information in the blockchain ledger.
  • each blockchain node in the blockchain maintains a unified blockchain ledger
  • the smart contract can record the betting information recorded in the betting transaction (such as bettor, bet number, bet amount, Betting timestamp, etc.) and the funds transfer information generated by transferring betting funds in step 306 are published in the blockchain to be recorded in the blockchain ledger.
  • step 310 the smart contract determines whether a block with a height of N has been generated in the blockchain; if it has been generated, it proceeds to step 312.
  • step 312 the smart contract determines whether a block with a height of N + M has been generated in the blockchain; if it has been generated, it proceeds to step 314.
  • both N and M are predefined arbitrary positive integers.
  • N you should ensure that the height N is greater than the blockchain node where other betting numbers participating in the lottery draw are located; for example, user A's betting number (contained in the above betting information) can be located in the blockchain with a height of In the block of K, it should be ensured that N> K.
  • all bet numbers whose block height is greater than N should be considered invalid in the lottery draw process.
  • the height of the blocks that can participate in the lottery draw can be limited. For example, the height belongs to [T0, T1], where T0 ⁇ For the block with N ⁇ T1, the betting number contained in it is considered to be able to participate in the lottery draw, while other blocks that are too large or too small cannot participate.
  • M can be any predefined positive integer; of course, the value of M can be limited, for example, the limit is T1 ⁇ N ⁇ N + M ⁇ T2.
  • the lottery result can be related to the blocks with a height of N ⁇ N + M, so that the criminals need to continuously attack all the blocks of N ⁇ N + M. It is possible to manipulate the lottery results, resulting in a huge attack cost, making the possibility of manipulation of the lottery results extremely low, which helps to ensure the fairness and effectiveness of the lottery results.
  • Step 314 the smart contract calculates the lottery result.
  • the smart contract can separately determine the block with a height of N, and the blockchain contains the betting number related to the lottery draw (for example, the height of the block where the betting number is located belongs to [T0, T1].
  • a range) of m blocks and obtain the hash values of these blocks (the hash value is related to the block content of the corresponding block), for example: a block with a height of N corresponds to the hash value Hn, and
  • the hash values corresponding to the m blocks are H1 to Hm (for example, they can be arranged in the order of block height from small to large).
  • the smart contract can be calculated according to the following formula:
  • H’1 H (Hn, Hm),
  • H’i H (H ’(i-1), H (m-i + 1)), where 1 ⁇ i ⁇ m;
  • H is a preset hash function
  • H (Hn, Hm) means that the hash function H is used to hash Hn and Hm, and the corresponding hash value is H'1; similarly, H (H '(i-1), H (m-i + 1)) means that H' (i-1) and H (m-i + 1) are hashed by the hash function H to obtain the corresponding hash The value is H'i.
  • H'm H (Hn, Hm) means that the hash function H is used to hash Hn and Hm, and the corresponding hash value is H'1; similarly, H (H '(i-1), H (m-i + 1)) means that H' (i-1) and H (m-i + 1) are hashed by the hash function H to obtain the corresponding hash The value is H'i.
  • the calculation result can be calculated as H'm.
  • the character length of the calculation result H'm may be greater than the actual required length, so the smart contract can compress the calculation result H'm through a predefined compression function C, and the final draw result is C (H'm).
  • the compression function C can be used to select several characters at the beginning, end, or middle position of H’m, of course, this specification does not limit this.
  • Step 316 the smart contract records the lottery result in the blockchain ledger.
  • the smart contract may publish the lottery result in the blockchain, so that the lottery result is recorded in the blockchain ledger maintained by the blockchain node.
  • step 318 the smart contract determines the winning user and the bonus according to the betting information and the draw result.
  • the smart contract can read the betting information corresponding to each user from the blockchain ledger and compare it with the draw result to determine the winning situation of each user. For example, the smart contract can read the betting information corresponding to user A, and the betting information contains the betting number set by user A, then according to the match between the betting number and the string as the result of the draw, and the pre-defined winning According to the rules, the smart contract can determine whether the user A wins; if the user A is confirmed as a winning, then the smart contract can determine the user A can obtain based on the single bet bonus corresponding to the winning level, the bet amount paid by the user A for the betting number Bonus amount.
  • Step 320 the smart contract issues a bonus.
  • the smart contract can automatically transfer funds from the predefined bonus payment account to user A's blockchain account according to the determined bonus amount to complete the bonus payment operation; similarly, the smart contract Can automatically complete all bonus distribution operations. Since the bonus distribution process is automatically completed by smart contracts, it not only simplifies user operations and improves the efficiency of distribution, but also has extremely high security.
  • FIG. 4 is a schematic structural diagram of a device provided by an exemplary embodiment. Please refer to FIG. 4.
  • the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile memory 410.
  • the processor 402 reads the corresponding computer program from the non-volatile memory 410 into the memory 408 and then runs it to form an event prediction device at a logical level.
  • one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of hardware and software, etc., that is to say, the execution body of the following processing flow is not limited to each
  • the logic unit may also be a hardware or logic device.
  • the event prediction device is applied to a blockchain node; the device may include:
  • the first obtaining unit 51 obtains the prediction result determined by the participant for the specified event
  • Calling unit 52 calling a smart contract
  • the smart contract is used to publish the prediction result to the first block of the blockchain, and determine the designation based on the block content of the second block in the blockchain
  • the actual result of the event to determine the prediction of the specified event by the participant according to the comparison between the predicted result and the actual result; wherein the block height of the second block is greater than that of the first The block height of the block.
  • the smart contract is used to determine the actual result after generating the third block in the blockchain; wherein, the height of the third block is greater than that of the second block, and the height The difference is the preset value.
  • Optional also includes:
  • the second obtaining unit 53 obtains the random content associated with the prediction result determined by the participant
  • the smart contract is also used to publish the random content to the first block; or, the smart contract is also used to publish the random content to the fourth block of the blockchain, And the block height of the second block is greater than the block height of the fourth block.
  • the actual result is also related to the block content of one or more other blocks in the blockchain.
  • the one or more other blocks include: a block containing at least one prediction result for the specified event.
  • the smart contract is used to process the block content of the second block and m other blocks by the following formula to determine the actual result:
  • H’1 H (Hn, Hm),
  • H’i H (H ’(i-1), H (m-i + 1)), where 1 ⁇ i ⁇ m;
  • H is a preset hash function
  • Hn is a hash value related to the block content of the second block
  • Hi is a hash value related to the block content of the i-th other block. The actual result stated is H'm.
  • the smart contract is also used to: compress the number of H’m characters to a preset number.
  • the prediction result is input by the participant, or is automatically generated by a smart contract used to generate the prediction result through a predefined random algorithm.
  • Optional also includes:
  • the allocation unit 54 allocates the first asset voucher to the participant according to the participant's prediction of the specified event.
  • the first asset certificate includes: a blockchain smart asset certificate or an off-chain equity certificate.
  • Optional also includes:
  • the determining unit 55 determines that the second asset certificate held by the participant is frozen as a guarantee certificate for guaranteeing the validity of the prediction result
  • the smart contract is used to release the holding relationship of the guarantee certificate by the participant if the predicted result does not match the actual result.
  • the size of the equity represented by the first asset certificate is positively related to the size of the equity represented by the second asset certificate.
  • the system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or by a product having a certain function.
  • a typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email sending and receiving device, and a game control Desk, tablet computer, wearable device, or any combination of these devices.
  • the computer includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic cassette tapes, magnetic disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • first, second, third, etc. may use the terms first, second, third, etc. to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination”.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Human Resources & Organizations (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Un ou plusieurs modes de réalisation de l'invention concernent un procédé et un appareil de prédiction d'événement ainsi qu'un dispositif électronique, qui sont appliqués à des nœuds de chaîne de blocs. Le procédé consiste à : obtenir un résultat de prédiction déterminé par un participant concernant un événement spécifié ; et appeler un contrat intelligent, le contrat intelligent étant utilisé pour publier le résultat de prédiction dans un premier bloc d'une chaîne de blocs et pour déterminer un résultat réel de l'événement spécifié d'après un contenu d'un second bloc de la chaîne de blocs de façon à déterminer, en fonction d'un résultat de comparaison entre le résultat de prédiction et le résultat réel, un état de prédiction du participant concernant l'événement spécifié, une hauteur de bloc du second bloc étant supérieure à une hauteur de bloc du premier bloc.
PCT/CN2019/101495 2018-10-25 2019-08-20 Procédé et appareil de prédiction d'événement et dispositif électronique WO2020082869A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811249436.9 2018-10-25
CN201811249436.9A CN109598365A (zh) 2018-10-25 2018-10-25 事件预测方法及装置、电子设备

Publications (1)

Publication Number Publication Date
WO2020082869A1 true WO2020082869A1 (fr) 2020-04-30

Family

ID=65958236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101495 WO2020082869A1 (fr) 2018-10-25 2019-08-20 Procédé et appareil de prédiction d'événement et dispositif électronique

Country Status (3)

Country Link
CN (1) CN109598365A (fr)
TW (1) TW202016807A (fr)
WO (1) WO2020082869A1 (fr)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598365A (zh) * 2018-10-25 2019-04-09 阿里巴巴集团控股有限公司 事件预测方法及装置、电子设备
CN110633983A (zh) * 2019-09-05 2019-12-31 腾讯科技(深圳)有限公司 基于区块链的目标事件执行方法和装置
CN110990490B (zh) * 2019-12-19 2023-09-01 京东科技信息技术有限公司 区块链网络中区块链的入账方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046337A1 (en) * 2013-08-06 2015-02-12 Chin-hao Hu Offline virtual currency transaction
CN108038954A (zh) * 2017-12-01 2018-05-15 中国联合网络通信集团有限公司 基于区块链的交易运行方法及挖矿节点
CN108447014A (zh) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 一种区块链博彩方法及系统
CN109598365A (zh) * 2018-10-25 2019-04-09 阿里巴巴集团控股有限公司 事件预测方法及装置、电子设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040635A (ja) * 2006-08-03 2008-02-21 Chugoku Electric Power Co Inc:The 混雑状況予測システム
CN107038638A (zh) * 2017-02-24 2017-08-11 杭州象链网络技术有限公司 一种基于联盟链的股权登记交易系统构建方法
CN108681950A (zh) * 2018-06-11 2018-10-19 国网江苏省电力有限公司南通供电分公司 基于区块链技术的配电网需求响应交易结算方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046337A1 (en) * 2013-08-06 2015-02-12 Chin-hao Hu Offline virtual currency transaction
CN108038954A (zh) * 2017-12-01 2018-05-15 中国联合网络通信集团有限公司 基于区块链的交易运行方法及挖矿节点
CN108447014A (zh) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 一种区块链博彩方法及系统
CN109598365A (zh) * 2018-10-25 2019-04-09 阿里巴巴集团控股有限公司 事件预测方法及装置、电子设备

Also Published As

Publication number Publication date
CN109598365A (zh) 2019-04-09
TW202016807A (zh) 2020-05-01

Similar Documents

Publication Publication Date Title
US11087372B2 (en) Benefit allocation method, apparatus, and electronic device
CN109242675B (zh) 基于区块链的资产发布方法及装置、电子设备
US20190333030A1 (en) Blockchain-based digital token utilization
TWI718472B (zh) 事件預測方法及裝置、電子設備
JP2021504859A (ja) 段階的に完全化されるデジタル資産担保ウォレット
JP2024042024A (ja) ブロックチェーン上のセキュアなピアツーピア通信の方法
WO2020082869A1 (fr) Procédé et appareil de prédiction d'événement et dispositif électronique
WO2020220759A1 (fr) Procédé et dispositif de paiement basés sur une chaîne de blocs
WO2020146955A1 (fr) Procédé de génération de nombres aléatoires dans des contrats intelligents à chaîne de blocs
KR20180014534A (ko) 블록체인 기반 트랜잭션 검증 시스템 및 그 방법
CN109117994B (zh) 事件预测方法及装置、电子设备
US20200175588A1 (en) Blockchain-based payment
US20220083683A1 (en) Distributed self-governing computer network to correlate blockchain and private computer system transactions method, apparatus, and system
CN112799708B (zh) 联合更新业务模型的方法及系统
WO2021209043A1 (fr) Statistiques de trafic à base de chaîne de blocs
TW202008227A (zh) 事件預測方法及裝置、電子設備
WO2020019792A1 (fr) Appareil et procédé de libération de blocs, et dispositif électronique
US20200201684A1 (en) Blockchain-based virtual resource allocation
CN112015822B (zh) 一种区块链数据的删除方法和装置
Platt et al. Sybil attacks on identity-augmented Proof-of-Stake
CN113468271A (zh) 智能合约账户的存储空间管理方法和装置
TWI706341B (zh) 事件預測方法及裝置、電子設備
US20220123947A1 (en) A Method for Generating Random Numbers in Blockchain Smart Contracts
CN115456772A (zh) 一种智能合约的创建方法和装置
KR102582328B1 (ko) 블록체인 기반의 게임 시스템 및 그 방법

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

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

Country of ref document: EP

Kind code of ref document: A1