WO2020082869A1 - 事件预测方法及装置、电子设备 - Google Patents

事件预测方法及装置、电子设备 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
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/101495
Other languages
English (en)
French (fr)
Inventor
张文彬
马宝利
刘正
宋旭阳
崔嘉辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2020082869A1 publication Critical patent/WO2020082869A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本说明书一个或多个实施例提供一种事件预测方法及装置、电子设备,应用于区块链节点;所述方法包括:获取参与方针对指定事件确定的预测结果;调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。

Description

事件预测方法及装置、电子设备 技术领域
本说明书一个或多个实施例涉及区块链技术领域,尤其涉及一种事件预测方法及装置、电子设备。
背景技术
对于尚未完成的事件,往往需要等待该事件完成后,才能够准确获知该事件的结果。但是,一些场景下希望提前获知事件的结果,比如基于该事件的结果来提前采取应对措施,再比如基于该事件的结果确定是否需要对关联事件的处理方案进行调整等。
在相关技术中,可以通过多种方式对事件进行结果预测,比如根据历史数据的预测分析,再比如通过样本训练出的预测模型进行预测分析等。由于使用的预测数据、采用的预测方式、所处的预测环境等存在差异,使得不同参与方在参与到针对同一事件的结果预测时,往往得到的预测结果也不尽相同,甚至存在较大偏差。
发明内容
有鉴于此,本说明书一个或多个实施例提供一种事件预测方法及装置、电子设备。
为实现上述目的,本说明书一个或多个实施例提供技术方案如下:
根据本说明书一个或多个实施例的第一方面,提出了一种事件预测方法,应用于区块链节点;所述方法包括:
获取参与方针对指定事件确定的预测结果;
调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
根据本说明书一个或多个实施例的第二方面,提出了一种事件预测装置,应用于区块链节点;所述装置包括:
第一获取单元,获取参与方针对指定事件确定的预测结果;
调用单元,调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
根据本说明书一个或多个实施例的第三方面,提出了一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器通过运行所述可执行指令以实现如上述实施例中任一所述的事件预测方法。
附图说明
图1是一示例性实施例提供的一种事件预测方法的流程图。
图2是一示例性实施例提供的一种预测事件结果的示意图。
图3是一示例性实施例提供的一种智能合约实施的功能逻辑的流程图。
图4是一示例性实施例提供的一种设备的结构示意图。
图5是一示例性实施例提供的一种事件预测装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。
图1是一示例性实施例提供的一种事件预测方法的流程图。如图1所示,该方法应用于区块链节点,可以包括以下步骤:
步骤102,获取参与方针对指定事件确定的预测结果。
在一实施例中,预测结果可以由参与方输入,比如可以向参与方提供输入界面,使得参与方可以基于该输入界面而输入预测结果,再比如可以采集参与方的输入语音,从输入语音中识别出参与方希望输入的预测结果。其中,当参与方输入预测结果时,应当确保该预测结果满足预设格式,比如该预测结果可以为指定长度的字符串或其他格式,本说明书并不对此进行限制。
在一实施例中,区块链节点可以在参与方的请求下,调用预设的用于生成预测结果的智能合约,使得该智能合约可以通过预定义的随机算法而自动生成预测结果。当然,参与方可以对智能合约自动生成的内容进行查看,从而将该内容确认为预测结果;或者,指示智能合约重新生成新的内容,直至参与方对生成的内容予以确认。
在一实施例中,一个或多个参与方可以对同一事件进行预测,使得区块链上可以存在分别对应于各个参与方的预测结果;其中,每一参与方可以存在对应的唯一标识,使得每一参与方发布的预测结果可以与其唯一标识进行关联,以便于对区块链上发布的各个预测结果进行有效区分。
在一实施例中,指定事件为被指明确定需要进行结果预测的任意事件,比如某一路口的交通状况、某一地区的水稻收成、某一海域的台风形成时间等,本说明书并不对此进行限制。
步骤104,调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
在一实施例中,可以在区块链的客户端上创建交易(transfer),从而通过该交易将参与方输入的预测结果发布至区块链上,成为区块链的分布式数据库中的一笔数据。
需要指出的是:区块链中的交易,存在狭义的交易以及广义的交易之分。狭义的交易是指用户向区块链发布的一笔价值转移;例如,在传统的比特币区块链网络中,交易可以是用户在区块链中发起的一笔转账。而广义的交易是指用户向区块链发布的一笔具有业务意图的业务数据;例如,运营方可以基于实际的业务需求搭建一个联盟链,依托 于联盟链部署一些与价值转移无关的其它类型的在线业务(比如,事件预测、租房业务、车辆调度业务、保险理赔业务、信用服务、医疗服务等),而在这类联盟链中,交易可以是用户在联盟链中发布的一笔具有业务意图的业务消息或者业务请求。本说明书中的交易,应当倾向于理解为广义上的交易。
在一实施例中,由于区块链采用分布式数据库,使得发布至区块链上的预测结果无法被篡改,可以确保预测结果真实、可靠。
在一实施例中,当预测结果被发布至区块链中的第一区块,而实际结果来自区块高度大于第一区块的第二区块时,基于区块链中各个区块之间的链式关系,使得预测结果的加入可以增加实际结果的不确定性,可以极大地降低不法分子操控实际结果的可能性。
在一实施例中,所述智能合约用于在区块链中产生第三区块后,确定所述实际结果;其中,所述第三区块的区块高度大于所述第二区块,且高度差为预设数值。换言之,智能合约虽然基于第二区块的区块内容来确定实际结果,但是产生该第二区块后并不立即确定实际结果,而是等待预设数量个区块之后,才确定该实际结果,保证了第二区块的安全性,使得攻击者必须连续攻击第二区块与第三区块之间的所有区块,使得攻击成本极高,可以极大地降低不法分子操控实际结果的可能性。
在一实施例中,区块链节点可以获取所述参与方确定的与所述预测结果相关联的随机性内容;其中,所述智能合约还用于将所述随机性内容发布至所述第一区块;或者,所述智能合约还用于将所述随机性内容发布至区块链的第四区块,且所述第二区块的区块高度大于所述第四区块的区块高度。通过增加随机性内容,可以进一步强化对实际结果的随机化影响,从而进一步降低不法分子操控实际结果的可能性。
在一实施例中,所述实际结果还与区块链中的一个或多个其他区块的区块内容相关,使得不法分子即便具备区块攻击能力,也必须分别攻击第二区块和该其他区块才能够达成目的,造成了极高的攻击成本,可以极大地降低不法分子操控实际结果的可能性。
在一实施例中,上述的一个或多个其他区块可以包括:包含至少一条针对所述指定事件的预测结果的区块,这样可以使得所有预测结果均可以影响到实际结果,可以增加实际结果的不确定性。
在一实施例中,所述智能合约用于通过下述公式对所述第二区块和m个其他区块的区块内容进行处理,以确定出所述实际结果:
H’1=H(Hn,Hm),
H’i=H(H’(i-1),H(m-i+1)),其中1<i≤m;
其中,H为预设的哈希函数,Hn为与所述第二区块的区块内容相关的哈希值,Hi为与第i个其他区块的区块内容相关的哈希值,所述实际结果为H’m。
在一实施例中,在通过上述公式进行计算的过程中,m个其他区块之间可以按照预设顺序进行依次排列,形成第1个其他区块、……、第m个其他区块,比如该预设顺序可以包括区块高度从小至大的顺序,本说明书并不对此进行限制。
在一实施例中,智能合约还可以用于:将H’m的字符数量压缩为预设数量。比如,当哈希函数H生成的哈希值为256位、预设数量为8位时,可以将该256位的H’m压缩为8位字符串,以作为本说明书中的实际结果。换言之,由于预先定义了实际结果的格式为“8位字符串”,因而需要按照该格式来生成实际结果;类似地,参与方所确定的预测结果也应当符合该“8位字符串”的格式。
在一实施例中,区块链节点可以根据所述参与方对所述指定事件的预测情况,将第一资产凭证分配至所述参与方。例如,区块链节点可以调用用于分配资产凭证的智能合约,使得该智能合约运行后可以根据参与方的预测情况和针对资产凭证的分配规则,自动将第一资产凭证分配至参与方。由于智能合约上的处理逻辑为公开内容,并且整个处理过程由智能合约自动完成、不存在人工干预,使得无论是对预测结果和实际结果的比较还是对第一资产凭证的分配,都能够确保客观、公正。
在一实施例中,当预测结果与实际结果相匹配时,表明提供该预测结果的参与方对于上述指定事件的结果预测具有一定的准确度。那么,通过向参与方分配第一资产凭证,可以控制各个参与方对于资产凭证的持有量,从而在一定程度上对于各个参与方实现标记作用:持有资产凭证越多的参与方对于事件结果的预测能力越强,因而在后续的事件预测过程中,能够据此快速筛选出预测能力强的参与方,以从这些参与方处获得可能相对更加准确的预测结果。
在一实施例中,第一资产凭证可以包括区块链智能资产凭证。智能资产凭证用于表征一定的权益,以实现对参与方准确预测上述指定事件的激励,有助于该参与方继续参与对后续事件的预测,从而实现良性循环。比如参与方在区块链上实施预设操作时,譬如该预设操作可以包括发布交易、发起共识(例如基于PBFT实用拜占庭容错算法而发起)等,可以通过向各个区块链节点分配一定量的智能资产凭证,以促使该预设操作能够尽快顺利完成。再比如参与方可以通过在区块链上扮演锚点(anchor)角色的区块链 节点,将持有的智能资产凭证兑换为等价的链外权益凭证。
在一实施例中,第一资产凭证可以包括链外权益凭证。链外权益凭证用于表征一定的权益,以实现对参与方准确预测上述指定事件的激励,有助于该参与方继续参与对后续事件的预测,从而实现良性循环。比如参与方在区块链上实施预设操作时,譬如该预设操作可以包括发布交易、发起共识(例如基于PBFT实用拜占庭容错算法而发起)等,可以将链外权益凭证兑换为区块链内等价的智能资产凭证、并通过向各个区块链节点分配一定量的智能资产凭证,以促使该预设操作能够尽快顺利完成。其中,链外权益凭证可以包括用于表征任意类型的链外权益的凭证,譬如在会员系统内的会员积分、在交易平台上的优惠券、兑换券、抵价券等,本说明书并不对此进行限制。
在一实施例中,所述指定事件包括一个或多个子事件,所述预测结果用于对所述一个或多个子事件进行结果预测。例如,当预测结果、实际结果均为预设长度的字符串时,该字符串可以被划分为若干组,每组包含一个或多个字符串、对应于上述的一个子事件。其中,所述智能合约被用于在所述预测结果对所述一个或多个子事件的结果预测均正确的情况下,将所述第一资产凭证分配至所述参与方。换言之,当预测结果对指定事件的结果预测完全正确时,该预测结果被智能合约判定为匹配于该指定事件的实际结果;例如,当预测结果和实际结果均为“02-05-12-15-23-26”时,该指定事件包含6个子事件,可以判定为预测结果对指定事件的结果预测完全正确。
在一实施例中,所述指定事件包括多个子事件;当所述第一资产凭证被分配至所述参与方时,所述第一资产凭证所表征的权益大小正相关于被所述预测结果准确预测的子事件在所述多个子事件中的占比。例如,当预测结果与实际结果完全相同时,即被所述预测结果准确预测的子事件在所述多个子事件中的占比为100%,第一资产凭证所表征的权益大小可以为预设的最大值;当预测结果与实际结果完全不相同时,即被所述预测结果准确预测的子事件在所述多个子事件中的占比为0%,第一资产凭证所表征的权益大小可以为预设的最小值(0或其他预设值)。例如,当预测结果和实际结果均为“02-05-12-15-23-26”时,可以判定被所述预测结果准确预测的子事件在所述多个子事件中的占比为100%;当预测结果为“02-06-13-15-20-26”、实际结果为“02-05-12-15-23-26”时,该指定事件包含6个子事件,可以判定被所述预测结果准确预测的子事件在所述多个子事件中的占比为50%。
在一实施例中,第一资产凭证所表征的权益大小可以采用线性变化,例如占比为30%时,权益大小为预设最大值的30%,又例如占比为80%时,权益大小为预设最大值的 80%等。在另一实施例中,第一资产凭证所表征的权益大小可以采用非线性变化,例如占比为30%时,权益大小为预设最大值的10%,再例如占比为80%时,权益大小为预设最大值的50%,又例如占比为95%时,权益大小为预设最大值的80%等。
在一实施例中,所述指定事件包括多个子事件,当预测结果与实际结果并非完全一致时,不论被所述预测结果准确预测的子事件在所述多个子事件中的占比为何,均可以判定为两者不匹配,从而不向参与方分配资产凭证。
在一实施例中,区块链节点可以确定所述参与方持有的第二资产凭证被冻结,以作为用于担保所述预测结果的有效性的担保凭证;其中,所述智能合约用于在所述预测结果不匹配于所述实际结果的情况下解除所述参与方对所述担保凭证的持有关系。通过将参与方持有的第二资产凭证冻结为担保凭证,使得该担保凭证被用于对参与方提供的预测结果进行担保,可以对参与方设置一定的参与门槛,避免随意参与而影响对上述指定事件的准确预测。
在一实施例中,当第二资产凭证表征的权益越大时,表明参与方对自身提供的预测结果越自信,那么当预测结果与实际结果相匹配时,在一定程度上表明参与方确实具备极强的预测能力,因而通过将所述第一资产凭证所表征的权益大小设定为与所述第二资产凭证表征的权益大小呈正相关,可以对相应的参与方的预测能力进行更为准确地标记,以及对相应参与方进行更大程度的激励。
在一实施例中,即便参与方并未冻结形成担保凭证,仍然可以参与对指定事件的结果预测,并在预测结果与实际结果相匹配的情况下获得上述的第一资产凭证。在另一实施例中,当参与方并未冻结形成担保凭证时,参与方输入的预测结果被判定为无效,使其无法真正参与到对指定事件的结果预测;或者,在预测结果与实际结果相匹配的情况下,虽然可以向该参与方分配第一资产凭证,但是该第一资产凭证无法表征任何权益相当于未分配任何资产凭证,使得该参与方的参与无意义。
图2是一示例性实施例提供的一种预测事件结果的示意图。如图2所示,假定用户A希望参与针对事件B的结果预测,该用户A可以通过安装有客户端的手机21输入预测结果。该预测结果可以由用户A通过任意方式获得,比如由用户A通过图2中未示出的服务器对历史数据进行大数据分析得到,又比如由用户A根据自身经验而得到,本说明书并不对此进行限制。类似地,用户A还可以通过手机21输入其他与预测相关的信息。
设备22被配置为区块链中的一个区块链节点,该设备22可以接收手机21发送的预测结果;基于手机21运行的客户端上的已登录账号,该预测结果可以被确定为来自用户A。当然,手机21也可以将上述的预测结果等信息发送至区块链中的其他区块链节点,这些区块链节点的处理过程与设备22类似,可以参考本说明书中对于设备22的相关描述。而其他用户也可以对事件B进行结果预测,并通过自身使用的手机或其他电子设备将预测结果等信息发送至设备22或其他区块链节点处,这些用户的处理过程与用户A类似,可以参考本说明书中对于用户A的相关描述。
设备22可以在区块链中对用户A输入的预测结果等信息进行共识,使得该预测结果等信息在通过共识后被发布至区块链,以记录至区块链的分布式数据库中,即“上链”。本说明书并不限定采用的共识算法的类型;例如,当设备22所处的区块链为联盟链或公有链时,该设备22可以基于诸如PBFT(Practical Byzantine Fault Tolerance,实用拜占庭容错)算法向其他区块链节点发起共识,并在通过共识后将该预测结果发布至区块链,使其被记录至区块链的分布式数据库中;再例如,当设备22所处的区块链为公有链时,该设备22可以与其他区块链节点基于POW(Proof of Work,工作量证明)算法、POS(Proof of Stake,股权证明)算法或其他算法竞争记账权,并由获得记账权的区块链节点向相应区块内记入交易数据,而当包含用户A输入的预测结果等信息的交易被记入时,该预测结果等信息可以被记录至区块链的分布式数据库中。
为了确定用户A输入的预测结果与实际结果是否相匹配,尤其是为了避免在处理过程中涉及到人为干预、确保准确度和有效性,可以预先在区块链上创建智能合约,该智能合约中定义有用于确定预测结果与实际结果之间的匹配情况的功能逻辑,设备22可以通过调用该智能合约,使得该智能合约通过其功能逻辑自动实施下述操作:将预测结果等信息发布至区块链上,确定事件B的实际结果,对预测结果与实际结果进行比较,分配资产凭证等。
在一实施例中,智能合约可以由区块链上的交易或其他智能合约进行调用,以触发其自动实施相关功能逻辑,譬如上述用于确定预测结果与实际结果之间的匹配情况的功能逻辑等。设备22可以通过在区块链中发布交易或调用其他智能合约,以实现对上述智能合约的调用;或者,可以由其他区块链节点对上述智能合约进行调用,本说明书并不对此进行限制。在被调用后,上述的智能合约可以在设备22上运行,以自动实施上述的功能逻辑。
为了便于理解,下面结合彩票投注场景,对图2所示实施例中提及的智能合约所实 施的功能逻辑进行详细描述。其中,图3是一示例性实施例提供的一种智能合约实施的功能逻辑的流程图。如图3所示,该功能逻辑可以包括以下步骤:
步骤302,智能合约确定已提交的投注交易。
在一实施例中,手机21可以向用户A提供彩票投注界面,使得用户A可以通过该彩票投注界面选择投注号码,并由被选中的投注号码组合形成用户A投注的彩票号码,即投注号码。
在一实施例中,用户A可以在彩票投注界面中设定投注金额。用户A可以针对同一投注号码支付一注或多注资金(每注资金的金额为预设的单注金额),以作为该投注号码对应的投注金额。
在一实施例中,手机21可以为用户A的投注行为生成一随机数,该随机数可以用于增加最终的开奖结果的随机性,降低开奖结果被操控的可能性,提升彩票的公平性和公正性。针对用户A的投注行为,手机21可以自动生成上述的随机数,该过程可以对用户A不可见;或者,彩票投注界面可以提供一随机数生成选项,使得用户A可以手动触发生成该随机数,并且可以向用户A出示该随机数;或者,用户A可以手动输入一随机数,本说明书并不对此进行限制。
在一实施例中,在完成对上述投注号码、投注金额和随机数等的设定后,手机21可以创建相应的投注交易,并利用用户A的私钥对该投注交易进行签名后,将该投注交易提交至区块链中,使得区块链节点可以针对该投注交易调用智能合约,而该智能合约可以基于如图3所示的功能逻辑完成后续的处理过程。
步骤304,智能合约验证交易合法性。
在一实施例中,智能合约可以针对投注交易的合法性进行验证,比如签名是否符合要求、投注号码是否符合预设格式、用户A的区块链账户是否足够支付该投注金额等。当通过验证后,可以转入步骤306,否则智能合约可以忽略当前的投注交易。
步骤306,智能合约触发转移投注资金。
在一实施例中,智能合约可以从用户A的区块链账户向预设的彩票账户进行投注资金的转移,且转移金额为上述的投注金额。不论用户A对应的投注号码是否中奖,被转移的投注资金都不会返还给用户A,这些投注资金被作为用户A对彩票开奖过程的参与条件。
步骤308,智能合约在区块链账本中记录投注信息和资金转移信息。
在一实施例中,区块链中的各个区块链节点处分别维护有内容统一的区块链账本,智能合约可以将投注交易中记录的投注信息(如投注人、投注号码、投注金额、投注时间戳等)和步骤306中转移投注资金所产生的资金转移信息在区块链中进行发布,以记录至区块链账本中。
步骤310,智能合约确定区块链中是否已产生高度为N的区块;若已产生,则转入步骤312。
步骤312,智能合约确定区块链中是否已产生高度为N+M的区块;若已产生,则转入步骤314。
在一实施例中,N和M均为预定义的任意正整数。对于N而言,应当确保该高度N大于其他参与本次彩票开奖的投注号码所在的区块链节点;比如用户A的投注号码(包含于上述的投注信息中)可以位于区块链中高度为K的区块中,且应当确保N>K。换言之,对于所处区块的高度大于N的投注号码,都应当认为在本次彩票开奖过程中无效。当然,并非所有区块高度小于N的区块中,包含的投注号码都有效,因而可以对能够参与本次彩票开奖的区块高度进行限定,比如对于高度属于[T0,T1]、其中T0<N<T1的区块,其中包含的投注号码被认为可以参与本次彩票开奖,而其他高度过大或过小的区块均无法参与。
其中,M可以为预定义的任意正整数;当然,可以针对M的取值进行限制,比如限制为T1<N<N+M<T2。基于下述步骤314中对开奖结果的计算过程,可以获知开奖结果可以与高度为N~N+M的区块均相关,使得不法分子需要连续攻击N~N+M的所有区块,才有可能操控开奖结果,从而造成极大的攻击成本,使得开奖结果被操控的可能性极低,有助于保证开奖结果的公平有效。
步骤314,智能合约计算开奖结果。
在一实施例中,智能合约可以分别确定出高度为N的区块,以及区块链中包含与本次彩票开奖相关的投注号码(比如投注号码所在区块的高度属于[T0,T1]这一范围)的m个区块,并分别获取这些区块的哈希值(哈希值与对应区块的区块内容相关),比如:高度为N的区块对应于哈希值Hn,而m个区块对应的哈希值分别为H1~Hm(譬如可以按照区块高度从小至大的顺序进行排列)。进一步的,智能合约可以按照下述公式进行计算:
H’1=H(Hn,Hm),
H’i=H(H’(i-1),H(m-i+1)),其中1<i≤m;
其中,H为预设的哈希函数,H(Hn,Hm)表示通过该哈希函数H对Hn和Hm进行哈希运算、得到相应的哈希值为H’1;类似地,H(H’(i-1),H(m-i+1))表示通过该哈希函数H对H’(i-1)和H(m-i+1)进行哈希运算、得到相应的哈希值为H’i。最终,可以计算得到计算结果为H’m。
在一实施例中,计算结果H’m的字符长度可能大于实际所需的长度,因而智能合约可以通过预定义的压缩函数C对该计算结果H’m进行压缩,得到最终的开奖结果为C(H’m)。例如,该压缩函数C可以用于选取H’m开头、结尾或中间位置处的若干字符,当然本说明书并不对此进行限制。
步骤316,智能合约在区块链账本中记录开奖结果。
在一实施例中,与步骤308相类似的,智能合约可以在区块链中对开奖结果进行发布,使得开奖结果被记录至区块链节点维护的区块链账本中。
步骤318,智能合约根据投注信息和开奖结果,确定中奖用户和奖金。
在一实施例中,智能合约可以从区块链账本中分别读取各个用户对应的投注信息,并将其与开奖结果进行比较,以确定各个用户的中奖情况。例如,智能合约可以读取用户A对应的投注信息,该投注信息中包含用户A设定的投注号码,那么根据该投注号码与作为开奖结果的字符串之间的匹配情况,以及预定义的中奖规则,智能合约可以确定该用户A是否中奖;如果用户A被确认为中奖,那么智能合约可以根据中奖等级对应的单注奖金、用户A为投注号码支付的投注金额等,确定用户A能够获得的奖金金额。
步骤320,智能合约发放奖金。
在一实施例中,以用户A为例,智能合约可以按照确定的奖金金额,自动从预定义的奖金发放账户向用户A的区块链账户进行转账,完成奖金发放操作;类似地,智能合约可以自动完成所有奖金发放操作。由于奖金发放过程由智能合约自动完成,不仅能够简化用户操作、提升发放效率,而且具有极高的安全性。
图4是一示例性实施例提供的一种设备的示意结构图。请参考图4,在硬件层面,该设备包括处理器402、内部总线404、网络接口406、内存408以及非易失性存储器 410,当然还可能包括其他业务所需要的硬件。处理器402从非易失性存储器410中读取对应的计算机程序到内存408中然后运行,在逻辑层面上形成事件预测装置。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。
请参考图5,在软件实施方式中,该事件预测装置应用于区块链节点;该装置可以包括:
第一获取单元51,获取参与方针对指定事件确定的预测结果;
调用单元52,调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
可选的,所述智能合约用于在区块链中产生第三区块后,确定所述实际结果;其中,所述第三区块的区块高度大于所述第二区块,且高度差为预设数值。
可选的,还包括:
第二获取单元53,获取所述参与方确定的与所述预测结果相关联的随机性内容;
其中,所述智能合约还用于将所述随机性内容发布至所述第一区块;或者,所述智能合约还用于将所述随机性内容发布至区块链的第四区块,且所述第二区块的区块高度大于所述第四区块的区块高度。
可选的,所述实际结果还与区块链中的一个或多个其他区块的区块内容相关。
可选的,所述一个或多个其他区块包括:包含至少一条针对所述指定事件的预测结果的区块。
可选的,所述智能合约用于通过下述公式对所述第二区块和m个其他区块的区块内容进行处理,以确定出所述实际结果:
H’1=H(Hn,Hm),
H’i=H(H’(i-1),H(m-i+1)),其中1<i≤m;
其中,H为预设的哈希函数,Hn为与所述第二区块的区块内容相关的哈希值,Hi为与第i个其他区块的区块内容相关的哈希值,所述实际结果为H’m。
可选的,所述智能合约还用于:将H’m的字符数量压缩为预设数量。
可选的,所述预测结果由所述参与方输入,或者由用于生成预测结果的智能合约通过预定义的随机算法而自动生成。
可选的,还包括:
分配单元54,根据所述参与方对所述指定事件的预测情况,将第一资产凭证分配至所述参与方。
可选的,所述第一资产凭证包括:区块链智能资产凭证或者链外权益凭证。
可选的,还包括:
确定单元55,确定所述参与方持有的第二资产凭证被冻结,以作为用于担保所述预测结果的有效性的担保凭证;
其中,所述智能合约用于在所述预测结果不匹配于所述实际结果的情况下解除所述参与方对所述担保凭证的持有关系。
可选的,所述第一资产凭证所表征的权益大小与所述第二资产凭证表征的权益大小呈正相关。
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只 读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。

Claims (25)

  1. 一种事件预测方法,应用于区块链节点;所述方法包括:
    获取参与方针对指定事件确定的预测结果;
    调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
  2. 根据权利要求1所述的方法,所述智能合约用于在区块链中产生第三区块后,确定所述实际结果;其中,所述第三区块的区块高度大于所述第二区块,且高度差为预设数值。
  3. 根据权利要求1所述的方法,还包括:
    获取所述参与方确定的与所述预测结果相关联的随机性内容;
    其中,所述智能合约还用于将所述随机性内容发布至所述第一区块;或者,所述智能合约还用于将所述随机性内容发布至区块链的第四区块,且所述第二区块的区块高度大于所述第四区块的区块高度。
  4. 根据权利要求1所述的方法,所述实际结果还与区块链中的一个或多个其他区块的区块内容相关。
  5. 根据权利要求4所述的方法,所述一个或多个其他区块包括:包含至少一条针对所述指定事件的预测结果的区块。
  6. 根据权利要求4所述的方法,所述智能合约用于通过下述公式对所述第二区块和m个其他区块的区块内容进行处理,以确定出所述实际结果:
    H’1=H(Hn,Hm),
    H’i=H(H’(i-1),H(m-i+1)),其中1<i≤m;
    其中,H为预设的哈希函数,Hn为与所述第二区块的区块内容相关的哈希值,Hi为与第i个其他区块的区块内容相关的哈希值,所述实际结果为H’m。
  7. 根据权利要求6所述的方法,所述智能合约还用于:将H’m的字符数量压缩为预设数量。
  8. 根据权利要求1所述的方法,所述预测结果由所述参与方输入,或者由用于生成预测结果的智能合约通过预定义的随机算法而自动生成。
  9. 根据权利要求1所述的方法,还包括:
    根据所述参与方对所述指定事件的预测情况,将第一资产凭证分配至所述参与方。
  10. 根据权利要求9所述的方法,所述第一资产凭证包括:区块链智能资产凭证或者链外权益凭证。
  11. 根据权利要求9所述的方法,还包括:
    确定所述参与方持有的第二资产凭证被冻结,以作为用于担保所述预测结果的有效性的担保凭证;
    其中,所述智能合约用于在所述预测结果不匹配于所述实际结果的情况下解除所述参与方对所述担保凭证的持有关系。
  12. 根据权利要求11所述的方法,所述第一资产凭证所表征的权益大小与所述第二资产凭证表征的权益大小呈正相关。
  13. 一种事件预测装置,应用于区块链节点;所述装置包括:
    第一获取单元,获取参与方针对指定事件确定的预测结果;
    调用单元,调用智能合约,所述智能合约被用于将所述预测结果发布至区块链的第一区块,并基于区块链中的第二区块的区块内容确定所述指定事件的实际结果,以根据所述预测结果与所述实际结果的比较结果确定所述参与方对所述指定事件的预测情况;其中,所述第二区块的区块高度大于所述第一区块的区块高度。
  14. 根据权利要求13所述的装置,所述智能合约用于在区块链中产生第三区块后,确定所述实际结果;其中,所述第三区块的区块高度大于所述第二区块,且高度差为预设数值。
  15. 根据权利要求13所述的装置,还包括:
    第二获取单元,获取所述参与方确定的与所述预测结果相关联的随机性内容;
    其中,所述智能合约还用于将所述随机性内容发布至所述第一区块;或者,所述智能合约还用于将所述随机性内容发布至区块链的第四区块,且所述第二区块的区块高度大于所述第四区块的区块高度。
  16. 根据权利要求13所述的装置,所述实际结果还与区块链中的一个或多个其他区块的区块内容相关。
  17. 根据权利要求16所述的装置,所述一个或多个其他区块包括:包含至少一条针对所述指定事件的预测结果的区块。
  18. 根据权利要求16所述的装置,所述智能合约用于通过下述公式对所述第二区块和m个其他区块的区块内容进行处理,以确定出所述实际结果:
    H’1=H(Hn,Hm),
    H’i=H(H’(i-1),H(m-i+1)),其中1<i≤m;
    其中,H为预设的哈希函数,Hn为与所述第二区块的区块内容相关的哈希值,Hi为与第i个其他区块的区块内容相关的哈希值,所述实际结果为H’m。
  19. 根据权利要求18所述的装置,所述智能合约还用于:将H’m的字符数量压缩为预设数量。
  20. 根据权利要求13所述的装置,所述预测结果由所述参与方输入,或者由用于生成预测结果的智能合约通过预定义的随机算法而自动生成。
  21. 根据权利要求13所述的装置,还包括:
    分配单元,根据所述参与方对所述指定事件的预测情况,将第一资产凭证分配至所述参与方。
  22. 根据权利要求21所述的装置,所述第一资产凭证包括:区块链智能资产凭证或者链外权益凭证。
  23. 根据权利要求21所述的装置,还包括:
    确定单元,确定所述参与方持有的第二资产凭证被冻结,以作为用于担保所述预测结果的有效性的担保凭证;
    其中,所述智能合约用于在所述预测结果不匹配于所述实际结果的情况下解除所述参与方对所述担保凭证的持有关系。
  24. 根据权利要求23所述的装置,所述第一资产凭证所表征的权益大小与所述第二资产凭证表征的权益大小呈正相关。
  25. 一种电子设备,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-12中任一项所述的方法。
PCT/CN2019/101495 2018-10-25 2019-08-20 事件预测方法及装置、电子设备 Ceased WO2020082869A1 (zh)

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 (zh) 2020-04-30

Family

ID=65958236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/101495 Ceased WO2020082869A1 (zh) 2018-10-25 2019-08-20 事件预测方法及装置、电子设备

Country Status (3)

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

Families Citing this family (5)

* 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 腾讯科技(深圳)有限公司 基于区块链的目标事件执行方法和装置
CN113678295A (zh) 2019-10-11 2021-11-19 株式会社Lg新能源 锂二次电池及其制造方法
CN110990490B (zh) * 2019-12-19 2023-09-01 京东科技信息技术有限公司 区块链网络中区块链的入账方法、装置、设备及介质
CN114443233A (zh) * 2022-01-30 2022-05-06 中国农业银行股份有限公司 事务数据处理方法、装置、系统、电子设备和存储介质

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
TW202016807A (zh) 2020-05-01
CN109598365A (zh) 2019-04-09

Similar Documents

Publication Publication Date Title
US11087372B2 (en) Benefit allocation method, apparatus, and electronic device
TWI733057B (zh) 資源轉移和資金轉移的方法和裝置
WO2020082869A1 (zh) 事件预测方法及装置、电子设备
US11669811B2 (en) Blockchain-based digital token utilization
CN111882745B (zh) 对象选取方法及装置、电子设备
CN109242675B (zh) 基于区块链的资产发布方法及装置、电子设备
TWI718472B (zh) 事件預測方法及裝置、電子設備
KR20200091882A (ko) 증분적으로 완성되는 디지털 자산 담보 지갑
TWI729345B (zh) 事件預測方法及裝置、電子設備
WO2019127532A1 (zh) 基于区块链的众筹信息处理方法、装置、存储介质及电子设备
TWI706340B (zh) 事件預測方法及裝置、電子設備
WO2020220742A1 (zh) 为区块链上的数据锚定时间的方法及装置、电子设备
CN111461691A (zh) 基于区块链的流量统计系统、方法及装置
TWI699728B (zh) 區塊發佈方法及裝置、電子設備
CN113553378A (zh) 一种区块链数据的删除方法和装置
TW202107361A (zh) 區塊鏈網路中實現機密交易的方法及裝置
WO2020019780A1 (zh) 事件预测方法及装置、电子设备
HK40008023A (zh) 事件预测方法及装置、电子设备
HK40008023B (zh) 事件预测方法及装置、电子设备
HK40003289B (zh) 区块发布方法及装置、电子设备
HK40002115A (zh) 事件预测方法及装置、电子设备
US20210383464A1 (en) Electronic device and method for bidding queue number based on blockchain
HK40002572A (zh) 事件预测方法及装置、电子设备
Mangalkar et al. A Survey on Use of Blockchain Technology in Introducing Transparency in Charity
HK40041864A (zh) 一种区块链数据的删除方法和装置

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