Novel block chain consensus method based on motion
By introducing a pledge mechanism of virtual rights and game points into the blockchain consensus, combined with game theory algorithms, the centralization problem and the separation of game logic and blockchain logic in the blockchain consensus are solved, achieving a more fair and trustworthy system. Continuous accounting rights options extend the game life cycle and promote the development of DApps.
Patent Information
- Application Number
- CN202410844156.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
AI Technical Summary
The existing blockchain consensus mechanism has problems of centralization and separation of game logic from the underlying logic of the blockchain, which results in network nodes being unfair in obtaining accounting rights, shortening the life cycle of the game, and affecting the development of DApps.
Adopting a new sports-based blockchain consensus method, through the pledge and transaction mechanism of virtual rights (VE) and game points, combined with game theory algorithms, the randomness of the selection of accounting rights is enhanced to achieve a fair and sustainable consensus process.
It effectively weakens the centralization trend, promotes the participation of network nodes and the fairness of income, extends the life cycle of the game, and improves the development potential of DApps.
Smart Images

Figure CN118869705A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain, and in particular relates to a novel motion-based blockchain consensus method. Background Art
[0002] With the Metaverse [1] With the development of blockchain, decentralized applications (DApp, Decentralized Application) have gradually become popular [2] DApps built on blockchains such as Ethereum, TRON, and EOS have covered multiple categories such as games, NFTs, DeFi, and social networking, among which game DApps are the main driving force of the industry. In order for games to run stably, it is necessary to ensure the correctness of game asset ownership, the security of transaction data, and timely response, all of which are inseparable from the underlying support of blockchain technology for the metaverse.
[0003] Benefit from the decentralization, transparency, immutability and anonymity of blockchain [3] , DApp realizes the distributed storage and data security of application data and maintains the ecological order of the system. How to achieve data consistency in a distributed system requires the consensus protocol at the bottom of the blockchain.
[0004] However, the existing mainstream consensus mechanism [4] There is an unfair centralization trend. [5] Competing for accounting rights through computing power or PoS [6] Randomly selecting bookkeepers based on accumulated monetary rights will result in network nodes with more financial resources having a greater chance of obtaining bookkeeping rights, thus undermining the original intention of equality for all in the metaverse. In addition, there is a common problem in DApps where the logic of the game itself is separated from the consensus logic of the underlying blockchain. This means that the main players of the game are network nodes that get incentives from the system by obtaining bookkeeping rights. Once the benefits do not meet their expectations, the network nodes will give up the game. This will shorten the life cycle of the game and is not conducive to the development of DApps.
[0005] References
[0006] [1]Chen H,Duan H,Abdallah M,et al.Web3 Metaverse:State-of-the-art andvision[J].ACM Transactions on Multimedia Computing,Communications andApplications,2023,20(4):1-42.
[0007] [2]Cai W, Wang Z, Ernst JB, et al. Decentralized applications: The blockchain-empowered software system [J]. IEEE access, 2018, 6: 53019-53033.
[0008] [3]Gadekallu TR, Huynh-The T, Wang W, et al.Blockchain for themetaverse:A review[J].arxiv preprint arxiv:2203.09738,2022.
[0009] [4]Sankar LS, Sindhu M, Sethumadhavan M.Survey of consensus protocols on blockchain applications[C] / / 2017 4th international conference on advanced computing and communication systems(ICACCS).IEEE,2017:1-5.
[0010] [5]Back A.Hashcash-a denial of service counter-measure[J].2002.
[0011] [6]King S, Nadal S.Ppcoin: Peer-to-peer crypto-currency with proof-of-stake[J].self-published paper, August, 2012, 19(1). Summary of the invention
[0012] Purpose of the invention: In view of the centralization trend of traditional blockchain consensus and the separation of game logic and network node logic in DApp, the present invention proposes a new blockchain consensus method based on motion. The motion volume is used to replace the workload in PoW, and the system incentives of network nodes under different decisions are influenced based on game theory to enhance the randomness of the selection of accounting rights and achieve a fair and sustainable new blockchain consensus.
[0013] Technical solution: To achieve the purpose of the present invention, the technical solution adopted by the present invention is: a new blockchain consensus method based on motion, specifically including:
[0014] (1) Data generation and conversion: The virtual ecosystem divides players of the running game into two categories: network nodes that compete for block accounting rights and users who act as third parties. Each network node has different assets. Users and network nodes participating in the running game upload their exercise data to the blockchain network, and the exercise data is converted into virtual equity VE through blockchain smart contracts.
[0015] (2) Virtual equity pledge and transaction: Users convert their virtual equity VE into points, that is, transfer VE to network nodes participating in the competition for block accounting rights as a third party; when competing for block accounting rights, network nodes put all VE into the pledge pool. In addition to running, network nodes also use points to obtain users' VE.
[0016] (3) In the process of randomly selecting the ownership of bookkeeping rights, network nodes engage in game-playing. Network nodes with different equity values increase their stake values that can be pledged through game-playing, and the bookkeeper is determined based on the random selection algorithm.
[0017] (4) Block rewards are given to network nodes that obtain bookkeeping rights during the consensus process; the bookkeeper adds the created block to the blockchain, completing a round of consensus; when this round of blockchain consensus is completed, the network node elected as the bookkeeper and proposing block confirmation converts all the virtual equity VE it obtains into points and obtains block rewards, and the VE obtained by other network nodes in this round is cleared.
[0018] Furthermore, in the game, the process of determining the account keeper includes: first, determining whether the user transfers out the virtual equity VE. The user has two strategies to choose from: transferring out VE and refusing to transfer out VE. The game is terminated when the user chooses to refuse to transfer out VE; second, by analyzing the equilibrium state of the game, the optimal strategy combination of the network nodes is determined. The network nodes formulate strategies and choose to obtain VE by running or using points to purchase from a third party. Network nodes with different equity values increase their pledgeable equity value through the game; the account keeper is determined according to a random selection algorithm. The higher the equity value, the greater the probability of being selected as the account keeper.
[0019] Furthermore, network node N1 with a stake value greater than the threshold chooses to purchase VE from a third party, and network node N2 with a stake value less than the threshold chooses to obtain VE by running. Under this strategy combination, the probability that network node N2 obtains more income than network node N1 reaches expectations, and the probability of being selected as the bookkeeper also reaches expectations.
[0020] Furthermore, the utility function is used to describe the preference or benefits of game participants for different strategy combinations, and the line-drawing method is used to eliminate unfavorable strategies, determine the optimal strategy of the players, and find the equilibrium state of the game.
[0021] Furthermore, in the virtual ecosystem, the virtual rights pledge and transaction process also includes: the network node sends the virtual rights VE to a smart contract address for transferring VE, and the smart contract removes the corresponding virtual rights from the network node account that needs to convert the rights, and records the amount of transfer; after transferring the corresponding VE, the smart contract calculates the game points equivalent to the VE through a fixed proportional relationship, and transfers the points to the corresponding network node account; finally, the smart contract records the transaction of VE transfer and game points exchange, and writes it into the blockchain; at the same time, the network node uses the points to exchange the unpledged virtual rights VE in other players' accounts.
[0022] Furthermore, the exchange ratio between VE and points is initialized to 1:1, and the ratio is determined by the market value.
[0023] Furthermore, the virtual ecosystem operates as follows:
[0024] Step 1: When the system is initialized, the exchange ratio between virtual rights VE and points is 1:1;
[0025] Step 2: When the system is running, network nodes or users will generate VE if they choose to run. The VE generated by network nodes will flow directly into the pledge pool, and the VE generated by users will flow into the market;
[0026] Step 3: When the VE coin price drops, the network nodes with equity exceeding the threshold use points to purchase the VE circulating in the market. After the bottom-fishing behavior is completed, two behaviors occur simultaneously in the system: the network node executes Step 3.1, and the user earns points by running;
[0027] Step 3.1: When the VE coin price reaches the market lower limit, the network node will stake the acquired VE into the staking pool to compete for points incentives;
[0028] Step 4: When the VE coin price rises to the threshold, the network node does not perform the purchase operation for a period of time and chooses to run on its own; the user continues to run, and after a period of time, the virtual ecosystem operation jumps back to Step 3.
[0029] Beneficial effects: Compared with the prior art, the technical solution of the present invention has the following beneficial technical effects:
[0030] The present invention can solve the problem of the centralization trend of monopoly and increasing intensification of network nodes with more rights and interests in traditional consensus, and realize the coupling of user game logic and acquisition system incentive logic. Under reasonable parameter values, there is a situation where the network nodes with less rights and interests obtain more benefits in this round of game than the network nodes with more rights and interests. Therefore, according to the price of VE in the current consensus round, the network nodes play games with each other's information and choose strategies to maximize their own rights and interests. Network nodes with less rights and interests can obtain more rights and interests in the game, thereby narrowing the gap in VE pledged between current network nodes and increasing the probability of being randomly selected as bookkeepers (related to the rights and interests owned by the network nodes, the greater the rights and interests, the higher the probability of being selected). The network nodes with less rights and interests that have obtained the right to keep accounts will add new blocks to the blockchain and obtain block rewards (rights and interests), thereby narrowing the actual rights and interests gap with network nodes with more rights and interests, and finally weakening the degree of unfairness. The present invention can weaken the centralization trend of traditional consensus, and at the same time couple the game logic of players and obtain system incentive logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is the overall structural diagram of the present invention.
[0032] Figure 2 It is the equity gap between network nodes with different equity values under different consensus schemes. DETAILED DESCRIPTION
[0033] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0034] There are two main groups of people participating in the DApp running game: network nodes and users. Their exercise data will be uploaded to the blockchain network through the oracle. The blockchain will not only convert the exercise data into virtual equity VE (valid energy) recognized by the system, but also give block rewards to network nodes that obtain the right to keep accounts in the consensus mechanism. Network nodes need to pledge their own equity to compete to become bookkeepers. Considering that network nodes with equity values exceeding a certain threshold (having more equity) have a higher probability of obtaining the right to keep accounts than network nodes with equity values below a certain threshold (having less equity), network nodes with less / more equity will increase their stakeable equity value through gaming. Users can earn game points GET (Green Energy Token) by selling virtual equity VE to network nodes, which can be used to redeem various in-game benefits.
[0035] The present invention uses the calorie energy consumed by running as workload to upload to the blockchain network, and converts it into the equity held by the network nodes. The dual drive of interests and benefits increases the income and participation of network nodes, thereby realizing the coupling of the game logic of network nodes and the incentive logic of the acquisition system.
[0036] In the consensus mechanism, users who need game points will act as a "third party" to sell virtual rights to network nodes, and network nodes will pledge their own rights to compete for bookkeeping rights. Considering that network nodes with more rights have a higher probability of being selected as bookkeepers in PoS, the present invention introduces a game in the link of randomly selecting the ownership of bookkeeping rights. Network nodes can obtain virtual rights through two strategies: running or purchasing from a third party, and the choice of different strategies will affect the rights that network nodes can obtain and pledge in each round of consensus. By analyzing the equilibrium state of the game, the optimal strategy combination of network nodes is determined, so that network nodes with less rights can narrow the gap with network nodes with more rights.
[0037] This paper proposes a new blockchain consensus method based on motion, combined with the attached Figure 1 , the algorithm architecture and process are as follows:
[0038] (1) Data generation and conversion: This embodiment can be applied to gym scenarios. Players (all users participating in running fitness) can scan the QR code on the treadmill through various smart devices such as mobile phones, watches, and tablets to bind their personal accounts to specific devices (Bluetooth connection) and participate in the running game. When the exercise is over and the device is unbound, the device will calculate the calorie energy consumed by the account during the period according to the algorithm and return the data to the player's game terminal. In order to ensure the authenticity of the data, players need to upload their exercise data to the blockchain through the oracle, so as to convert the exercise data into virtual rights VE recognized by the blockchain. The mapping relationship between exercise data and virtual rights can be implemented in the smart contract by default.
[0039] (2) Virtual equity pledge and transaction: Both network nodes and users can obtain virtual equity through running. For users, since they do not participate in block creation, they can convert their virtual equity VE into usable game points, that is, sell VE to network nodes that need to compete for bookkeeping rights as a "third party". Network nodes need to put all VE into the pledge pool within the effective time of electing bookkeepers. Since the more equity pledged, the higher the probability of being selected as a bookkeeper, network nodes can use points to purchase users' VE in addition to running.
[0040] (3) Network node game: In the game, the process of determining the bookkeeper includes two parts. First, users are encouraged to sell virtual rights VE. Users have two strategies to choose from: selling virtual rights (Y) and refusing to sell (N). Refusing to sell virtual rights VE will terminate the game. Second, network nodes formulate strategies. Both network nodes with less rights and network nodes with more rights have two strategies: running (R) and buying (B). The present invention uses utility functions to describe the preference or benefits of game participants for different strategy combinations, and uses the line drawing method to gradually eliminate unfavorable strategies to determine the optimal strategy of the game player and find the equilibrium state of the game. Network nodes with more rights tend to choose to buy, while network nodes with less rights tend to run. Under this strategy combination, the network nodes with less rights are more likely to obtain benefits that exceed the benefits of network nodes with more rights, and the probability of being selected as bookkeepers is higher. Bookkeepers are determined according to a random selection algorithm. In this algorithm, the higher the equity value, the greater the probability of being selected.
[0041] This example conducts a comparative experiment between PoR consensus and PoS consensus, comparing the equity gap between network nodes with more / less equity after multiple rounds of consensus. Figure 2 As shown, this embodiment selects several groups of game situations: Figure 2 (a) and (b) in the figure are the comparison of consensus schemes under the same group of game situations. Figure 2 (c) and (d) in the figure are another set of game situations. Although Figure 2 In (a) and (c), (b) and (d), the network nodes obtain different rights and interests, and the number of consensus rounds they experience is also different, but the overall results show the same trend. In PoS consensus, as the number of consensus rounds increases, the interest gap between network nodes with less / more rights and interests is gradually increasing. In PoR consensus, the rights and interests of network nodes with less rights and interests will gradually approach or even exceed the rights and interests of network nodes with more rights and interests after multiple rounds of consensus. Once exceeded, the network nodes with less rights and interests will exchange identities with the network nodes with more rights and interests. At this time, the network nodes with less rights and interests will continue to compete for the right to record accounts, increase their own rights and interests, and make them close to and exceed the rights and interests of the network nodes with more rights and interests, and finally realize the continuous transformation of the identities of network nodes with more / less rights and interests. In the end, the rights and interests of both parties are close and the probability of being randomly selected as bookkeepers is also similar. Therefore, PoR can effectively weaken the degree of centralization in traditional consensus.
[0042] (4) Game rewards: The virtual rights and interests VE obtained by the network nodes in each round of consensus only have a one-time benefit. When the bookkeeper adds the created block to the blockchain, the consensus round is completed. When the consensus of this round of blocks is completed, the network node elected as the bookkeeper and proposing block confirmation can convert all the virtual rights and interests VE it has obtained into game universal points GET and obtain block rewards, while the VE obtained by other network nodes in this round will be cleared. GET can be used to redeem game-related benefits, such as annual / quarterly / monthly cards, new equipment, etc. GET can also be used to purchase VE sold by "third parties", but it cannot be directly exchanged for VE in the system. Similarly, VE cannot be directly exchanged for GET. However, the system defaults to the value of VE and GET being equal.
[0043] (5) Virtual currency ecosystem: The virtual currency ecosystem described in the present invention divides players of the running game into two categories: network nodes competing for block accounting rights and users acting as third parties, where network nodes are divided into network nodes with less equity and network nodes with more equity due to their own assets. The present invention allows network nodes to send virtual equity VE to a smart contract address specifically used to transfer VE. The smart contract will remove it from the network node account that needs to convert equity and record the amount of transfer. After transferring the corresponding VE, the smart contract will calculate the game points equivalent to VE through a fixed proportional relationship (such as 1:1) and transfer the points to the corresponding network node account. Finally, the smart contract will record the transaction of VE transfer and game points exchange and write it to the blockchain. At the same time, network nodes are also allowed to exchange unpledged virtual equity VE in other player accounts through GET. The exchange ratio between VE and GET is initialized to 1:1, and is subsequently determined by market value. The value of GET points is stable, but cannot be accumulated and has a certain validity period.
[0044] Based on the above settings, the virtual currency ecosystem of the present invention operates as follows:
[0045] Step 1: When the system is initialized, the exchange ratio between virtual equity VE and GET is 1:1;
[0046] Step 2: When the system is running, if the network nodes or users choose to run, VE will be generated. Although the VE generated by the network nodes will flow directly into the pledge pool and will not affect the VE price in the system, the VE generated by the users will flow into the market, resulting in an increase in the number of VE and a drop in the VE price.
[0047] Step 3: When the VE coin price falls, the virtual currency ecosystem in the present invention is beneficial to network nodes with more equity. Network nodes with more equity can use GET to purchase VE circulating in the market. In the short term, VE will still be under certain selling pressure, causing the coin price to fall further. When the bottom-fishing acquisition behavior is completed, two behaviors will occur simultaneously in the system: for network nodes, they will execute Step 3.1; for users, they will obtain gym points GET by running;
[0048] Step 3.1: When the VE price reaches the lower limit of the market, the network nodes will stake the acquired VE into the pledge pool to compete for GET incentives. At this time, the VE originally circulating in the market will enter the pledge pool, resulting in a decrease in the number of VE in circulation, and the continuous appreciation of VE, so that the network nodes can earn the difference.
[0049] Step 4: The above behavior will further lead to an increase in the price of VE. When the price of VE returns to its original price, the acquisition behavior of the network node will not generate any positive benefits. During this period, the network node will not perform the purchase operation, but choose to run on its own. Users will continue to run, so after a period of time, the market will circulate VE again, causing the price of VE to fall. At this time, the operation of the virtual currency ecosystem will jump back to Step 3.
[0050] The present invention has formulated a set of game rules for the distribution and circulation of virtual rights and interests, which can maintain a stable supply and demand relationship. In addition, based on the working principles of PoW and PoS, the present invention realizes a green consensus, reduces energy waste, and makes the process of obtaining system incentives no longer only beneficial to network nodes with more rights and interests, weakening the degree of centralization of the blockchain system. At the same time, running in the present invention is both a game behavior and a part of the consensus mechanism, coupling the game logic of DApp and the logic of obtaining system incentives, so that network nodes are more actively involved in the game driven by both interests and interests.
Claims
1. A new blockchain consensus method based on motion, It is characterized in that The following steps are involved: (1) Data generation and conversion: The virtual ecosystem divides players of the running game into two categories: network nodes competing for block accounting rights and users acting as third parties. Each network node has different assets. Users and network nodes participating in the running game upload their sports data to the blockchain network, which is converted into virtual equity VE through blockchain smart contracts; (2) Virtual equity pledge and transaction: The user converts the virtual equity VE he owns into points, that is, transfers VE as a third party to the network nodes participating in the competition for block accounting rights; When competing for the right to record a block, network nodes put all their VE into the pledge pool. In addition to running, network nodes also use points to obtain users' VE; (3) In the process of randomly selecting the ownership of bookkeeping rights, network nodes engage in game-playing. Network nodes with different equity values increase their stake values that can be pledged through game-playing, and the bookkeeper is determined based on the random selection algorithm; (4) Give block rewards to network nodes that obtain accounting rights during the consensus process; The bookkeeper adds the created block to the blockchain, completing a round of consensus. When this round of blockchain consensus is completed, the network node elected as the bookkeeper and proposing block confirmation will convert all the virtual equity VE it has obtained into points and obtain block rewards. The VE obtained by other network nodes in this round will be cleared.
2. A new motion-based blockchain consensus method according to claim 1, It is characterized in that In the game, the process of determining the bookkeeper includes: First, determine whether the user transfers out the virtual equity VE. The user has two strategies to choose from: transferring out VE or refusing to transfer out VE. The game ends when the user chooses to refuse to transfer out VE. Secondly, by analyzing the equilibrium state of the game, the optimal strategy combination of the network nodes is determined. The network nodes formulate strategies and choose to obtain VE by running or using points to purchase from a third party. Network nodes with different equity values increase their stakeable equity values through the game. The bookkeeper is determined based on a random selection algorithm. The higher the equity value, the greater the probability of being selected as the bookkeeper.
3. A new motion-based blockchain consensus method according to claim 1, It is characterized in that The network node N1 with a stake value greater than the threshold chooses to purchase VE from a third party, and the network node N2 with a stake value less than the threshold chooses to obtain VE by running. Under this strategy combination, the probability that the income obtained by network node N2 exceeds the income of network node N1 reaches the expected level, and the probability of being selected as the bookkeeper also reaches the expected level.
4. A new motion-based blockchain consensus method according to any one of claims 1-3, It is characterized in that The utility function is used to describe the preference or benefits of game participants for different strategy combinations. The line-drawing method is used to eliminate unfavorable strategies, determine the optimal strategy of the players, and find the equilibrium state of the game.
5. A new motion-based blockchain consensus method according to claim 1, It is characterized in that In the virtual ecosystem, the virtual equity pledge and transaction process also includes: The network node sends the virtual equity VE to a smart contract address for transferring VE. The smart contract removes the corresponding virtual equity from the network node account that needs to convert the equity and records the amount of transfer. After the corresponding VE is transferred, the smart contract calculates the game points equivalent to the VE through a fixed ratio and transfers the points to the corresponding network node account; Finally, the smart contract records the transactions of VE transfer and game points redemption and writes them into the blockchain; at the same time, the network nodes redeem the unpledged virtual rights VE in other players' accounts through points.
6. A new motion-based blockchain consensus method according to claim 5, It is characterized in that The exchange ratio between VE and points is initialized to 1:1, and the ratio is determined by market value.
7. A new motion-based blockchain consensus method according to claim 1, 5 or 6, It is characterized in that The virtual ecosystem operates as follows: Step 1: When the system is initialized, the exchange ratio between virtual rights VE and points is 1:1; Step 2: When the system is running, network nodes or users will generate VE if they choose to run. The VE generated by network nodes will flow directly into the pledge pool, and the VE generated by users will flow into the market; Step 3: When the VE coin price drops, the network nodes with equity exceeding the threshold use points to purchase the VE circulating in the market. After the bottom-fishing behavior is completed, two behaviors occur simultaneously in the system: the network node executes Step 3.1, and the user earns points by running; Step 3.1: When the VE coin price reaches the market lower limit, the network node will stake the acquired VE into the staking pool to compete for points incentives; Step 4: When the VE coin price rises to the threshold, the network node does not perform the purchase operation for a period of time and chooses to run on its own; the user continues to run, and after a period of time, the virtual ecosystem operation jumps back to Step 3.
