A blockchain-based equity allocation method and related devices

By publishing equity allocation contracts and smart contracts on the blockchain, blockchain nodes can customize equity allocation rules, solving the problem of the lack of flexibility and transparency in equity allocation rules in the DPOS consensus algorithm, and achieving more flexible and transparent equity allocation.

CN117061530BActive Publication Date: 2026-06-12ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
Filing Date
2023-08-31
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In the DPOS consensus algorithm, the rules for allocating the rights of blockchain nodes lack flexibility, which may lead to hard forks or the need for off-chain trust, making it impossible to achieve complete decentralization and transparency.

Method used

By publishing equity allocation contracts on the blockchain, blockchain nodes are allowed to customize equity allocation rules and distribute them openly and transparently in the form of smart contracts.

🎯Benefits of technology

It achieves flexibility and transparency in the rules for allocating rights, meets practical needs, and avoids issues such as hard forks and off-chain trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061530B_ABST
    Figure CN117061530B_ABST
Patent Text Reader

Abstract

The specification provides a blockchain-based equity distribution method and related equipment. The blockchain nodes in the blockchain include representative nodes with block creation authority and delegate nodes that elect representative nodes based on the equity they hold. The method is applied to any target blockchain node in the blockchain. The method includes: publishing an equity distribution agreement containing equity distribution rules on the blockchain, so that the delegate nodes determine the target trustee nodes from the blockchain nodes by viewing the equity distribution rules contained in the equity distribution agreement; receiving the equity delegated by at least one delegate node after the target blockchain node is determined as the target trustee node; in response to the target blockchain node being elected as a representative node based on the equity it holds, generating a target block and obtaining the block equity for generating the target block; initiating a contract call for the equity distribution agreement to distribute the block equity to at least one delegate node in accordance with the equity distribution rules contained therein.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to one or more embodiments in the field of blockchain technology, and in particular to a blockchain-based method for allocating rights and interests and related equipment. Background Technology

[0002] In the DPOS consensus algorithm, blockchain nodes holding stake can act as delegators, delegating a portion of their stake to other blockchain nodes acting as delegates. The delegates then elect a representative node based on the total stake they have delegated. If a delegate is successfully elected as a representative node, it can distribute the block-producing stake earned from generating new blocks to the corresponding delegators.

[0003] The aforementioned allocation of block-producing rights is typically a fixed rule within a blockchain system, lacking flexibility. Subsequent modifications to these rules would inevitably lead to a hard fork. Alternatively, delegating and entrusted nodes could negotiate the corresponding rights allocation rules privately off-chain, but this requires off-chain trust, fails to achieve complete decentralization, and lacks transparency. Summary of the Invention

[0004] In view of this, one or more embodiments of this specification provide a blockchain-based method for allocating rights and interests, as well as related equipment.

[0005] Firstly, this specification provides a blockchain-based method for allocating rights and interests, wherein the blockchain nodes include representative nodes with block creation authority and delegate nodes that elect the representative nodes based on their held rights and interests; the method is applied to any target blockchain node in the blockchain, and the method includes:

[0006] A rights allocation contract containing rights allocation rules is published on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the rights allocation rules contained in the rights allocation contract published on the blockchain;

[0007] Receive at least one delegating node in the blockchain, and the rights delegated after the target blockchain node is identified as the target delegated node;

[0008] In response to the target blockchain node being elected as a representative node based on its held stake, generating the target block, and acquiring the block-producing stake for generating the target block; and,

[0009] Initiate a contract call to the equity allocation contract to allocate the block-producing equity to the at least one delegated node in accordance with the equity allocation rules contained in the equity allocation contract.

[0010] Secondly, this specification provides a blockchain-based equity delegation method, wherein the blockchain nodes include representative nodes with block creation authority and delegation nodes that elect the representative nodes based on their held equity; multiple equity distribution contracts issued by blockchain nodes are deployed on the blockchain; the method is applied to any target delegation node in the blockchain, and the method includes:

[0011] The target trustee node is determined from multiple blockchain nodes that published the equity allocation contract by examining the equity allocation rules contained in the equity allocation contract published on the blockchain.

[0012] Delegate at least a portion of the interests held by the target delegation node to the target trustee node;

[0013] In response to the target entrusted node being elected as a representative node based on its held equity, generating a target block and obtaining the block-producing equity for generating the target block, the target entrusted node receives the block-producing equity allocated to the target delegate node by initiating a contract call for the equity allocation contract, in accordance with the equity allocation rules contained in the equity allocation contract.

[0014] Thirdly, this specification provides a blockchain-based rights allocation device, wherein the blockchain nodes include representative nodes with block creation permissions and delegate nodes that elect the representative nodes based on their held rights; the device is applied to any target blockchain node in the blockchain, and the device includes:

[0015] A contract publishing unit is used to publish an equity allocation contract containing equity allocation rules on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the equity allocation rules contained in the equity allocation contract published on the blockchain.

[0016] A trustee unit is used to receive the rights and interests delegated by at least one delegating node in the blockchain after the target blockchain node has been identified as the target trustee node.

[0017] A block-producing unit, configured to, in response to the target blockchain node being elected as a representative node based on its held stake, generate a target block and acquire the block-producing stake for generating the target block; and,

[0018] The rights allocation unit is used to initiate a contract call to the rights allocation contract in order to allocate the block-producing rights to the at least one delegated node in accordance with the rights allocation rules contained in the rights allocation contract.

[0019] Fourthly, this specification provides a blockchain-based equity delegation device, wherein the blockchain nodes include representative nodes with block creation permissions and delegation nodes that elect the representative nodes based on their held equity; multiple equity distribution contracts issued by blockchain nodes are deployed on the blockchain; the device is applied to any target delegation node in the blockchain, and the device includes:

[0020] The determining unit is used to determine the target trustee node from multiple blockchain nodes that publish the equity distribution contract by examining the equity distribution rules contained in the equity distribution contract published on the blockchain.

[0021] A delegation unit is used to delegate at least a portion of the rights and interests held by the target delegation node to the target trustee node;

[0022] The rights receiving unit is configured to, in response to the target entrusted node being elected as a representative node based on its held rights, generating a target block and obtaining the block-producing rights for generating the target block, receive the block-producing rights allocated to the target entrusted node by the target entrusted node through a contract call initiated for the rights allocation contract, in accordance with the rights allocation rules contained in the rights allocation contract.

[0023] Accordingly, this specification also provides a computer device, including: a memory and a processor; the memory stores a computer program that can be executed by the processor; when the processor executes the computer program, it performs the blockchain-based rights allocation method described in the first aspect above, or performs the blockchain-based rights delegation method described in the second aspect above.

[0024] Accordingly, this specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the blockchain-based rights allocation method as described in the first aspect above, or performs the blockchain-based rights delegation method as described in the second aspect above.

[0025] In summary, in this application, any blockchain node intending to become a representative node can publish a rights allocation contract containing rights allocation rules on the blockchain. Correspondingly, a delegating node in the blockchain can view the rights allocation rules contained in the rights allocation contracts published by multiple blockchain nodes and select a blockchain node that matches its intention as the target delegated node to delegate a portion of its rights to that target delegated node. Subsequently, if the target delegated node is successfully elected as a representative node based on its held rights, generates the target block, and obtains the corresponding block-producing rights, the target delegated node can initiate a contract call for the aforementioned rights allocation contract, thereby allocating the block-producing rights to at least one delegating node that delegated the rights to it according to the rights allocation rules contained in the contract. Thus, this application enables blockchain nodes to customize rights allocation rules and publish these rules on the blockchain in the form of smart contracts, making the rights allocation rules more flexible, transparent, and meeting practical needs. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of a blockchain network architecture provided in an exemplary embodiment;

[0027] Figure 2 This is a schematic diagram of a blockchain-based rights allocation method provided in an exemplary embodiment;

[0028] Figure 3 This is a schematic diagram of the structure of a blockchain-based rights allocation device provided in an exemplary embodiment;

[0029] Figure 4 This is a schematic diagram of the structure of a blockchain-based rights delegation device provided in an exemplary embodiment;

[0030] Figure 5 This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment. Detailed Implementation

[0031] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0032] It should be noted that the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification in other embodiments. In some other embodiments, the methods may include more or fewer steps than described in this specification. Furthermore, a single step described in this specification may be broken down into multiple steps in other embodiments; and multiple steps described in this specification may be combined into a single step in other embodiments.

[0033] It should be noted that "multiple" as used in this application refers to two or more.

[0034] Furthermore, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. The collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0035] First, some terms used in this specification will be explained to facilitate understanding by those skilled in the art.

[0036] (1) Delegated Proof of Stake (DPOS) is a consensus algorithm evolved from Proof of Stake (POS). In the POS consensus algorithm, each blockchain node holding stake can participate in an election to become a representative node (or consensus node). The representative node is responsible for verifying transactions and producing blocks. The probability of successfully competing is directly proportional to the amount of stake held by the blockchain node. That is, a blockchain node holding more stake is more likely to be elected as a representative node to create new blocks and obtain the corresponding block-producing stake. In one illustrated implementation, the block-producing stake may include transaction fees for all transactions contained in the block. These fees may be fees paid by the initiator of the on-chain transaction before the transaction is packaged, or fees paid during the transaction execution phase, etc. This specification does not specifically limit this.

[0037] However, in the DPOS consensus algorithm, blockchain nodes holding stake no longer directly participate in the election for representative nodes. Instead, they can act as delegators, delegating a portion of their stake to other blockchain nodes acting as delegates. The delegates then elect a representative node based on the total amount of stake they have delegated. If a delegate is successfully elected as a representative node, it can distribute the block-producing stake earned from generating new blocks to the corresponding delegators.

[0038] As mentioned above, when a delegating node entrusts its rights to a trustee node, it is essentially to obtain corresponding benefits. These benefits can mainly include the distribution of block-producing rights after the trustee node is successfully elected as the representative node.

[0039] In traditional DPOS, the aforementioned allocation of rights is usually a fixed rule within the blockchain system, lacking flexibility. If the rules need to be modified later, a hard fork will inevitably occur. Alternatively, delegating nodes and entrusted nodes can negotiate the corresponding rights allocation rules privately off-chain, which inevitably requires off-chain trust, cannot achieve complete decentralization, and lacks transparency.

[0040] Based on this, this specification provides a technical solution that makes the rights allocation rules more flexible and transparent by having the entrusted node customize the rights allocation rules and publish the rights allocation rules on the blockchain in the form of a smart contract.

[0041] In implementation, this application can be applied to any target blockchain node in a blockchain. This target blockchain node can publish a rights allocation contract containing rights allocation rules on the blockchain, allowing delegating nodes in the blockchain to determine a target trustee node from among multiple blockchain nodes by examining the rights allocation rules contained in the rights allocation contract published on the blockchain. The target blockchain node can then receive rights delegated by at least one delegating node in the blockchain after it has been determined as the target trustee node. Further, in response to the target blockchain node being elected as a representative node based on its held rights, generating a target block, acquiring the block-producing rights for generating the target block, and initiating a contract call to the aforementioned rights allocation contract to allocate the block-producing rights to at least one delegating node according to the rights allocation rules contained in the rights allocation contract.

[0042] In the above technical solution, any blockchain node intending to become a representative node can publish a rights allocation contract containing rights allocation rules on the blockchain. Correspondingly, a delegating node in the blockchain can view the rights allocation rules contained in the rights allocation contracts published by multiple blockchain nodes and select a blockchain node that matches its intention as the target delegated node, thus delegating a portion of its rights to that target delegated node. Subsequently, if the target delegated node is successfully elected as a representative node based on its held rights, generates the target block, and obtains the corresponding block-producing rights, the target delegated node can initiate a contract call for the aforementioned rights allocation contract, thereby allocating the block-producing rights to at least one delegating node that entrusted it with the rights according to the rights allocation rules contained in the contract. In this way, this application enables blockchain nodes to customize rights allocation rules and publish these rules on the blockchain in the form of smart contracts, making the rights allocation rules more flexible, transparent, and meeting practical needs.

[0043] Please see Figure 1 , Figure 1 This is a schematic diagram of a blockchain network architecture provided in an exemplary embodiment. One or more embodiments provided in this description can be used... Figure 1 The specific implementation is within the architecture shown or a similar architecture. For example... Figure 1 As shown, the blockchain includes multiple blockchain nodes, specifically blockchain node a, blockchain node b, blockchain node c, blockchain node d, and blockchain node e. Blockchain nodes a, b, c, d, and e can establish communication connections via a wireless network. These blockchain nodes can be computer devices connected to the blockchain network, such as servers or server clusters, etc., but this specification does not specify a particular limitation.

[0044] In one illustrated implementation, multiple blockchain nodes in the blockchain can elect representative nodes based on the DPOS consensus algorithm.

[0045] In one illustrated implementation, taking blockchain nodes a and b as examples, if blockchain nodes a and b intend to become representative nodes to generate new blocks and obtain block-producing rights, then blockchain nodes a and b can each publish a rights allocation contract containing rights allocation rules on the blockchain for other blockchain nodes to view. For example, blockchain node a can publish rights allocation contract a containing rights allocation rule a on the blockchain, and blockchain node b can publish rights allocation contract b containing rights allocation rule b on the blockchain, for other blockchain nodes to view.

[0046] It should be noted that this application does not specifically limit the type of rights. In one illustrated embodiment, the rights may include virtual resources that can be transferred on the blockchain, and correspondingly, the allocation of rights may include the transfer of virtual resources as rights between blockchain accounts. For example, the virtual resource may be a token, an off-chain asset, etc., and this specification does not specifically limit it in this regard.

[0047] In one illustrated embodiment, Figure 1 The blockchain shown can also deploy system contracts for managing the equity distribution contracts. Furthermore, after blockchain node a and blockchain node b publish equity distribution contract a and equity distribution contract b respectively, they can call the registration method contained in the system contract to register as trustee nodes.

[0048] Correspondingly, when other blockchain nodes (such as blockchain node c, blockchain node d, and blockchain node e) view the rights allocation rules contained in the rights allocation contracts published by blockchain node a and blockchain node b, they may specifically include: by viewing the rights allocation rules contained in the rights allocation contracts published on the blockchain by the trustee nodes registered on the system contract, identifying the target trustee node that meets their intentions from all trustee nodes, and entrusting a certain amount of rights to it.

[0049] For example, blockchain node c and blockchain node d can identify blockchain node a, which has registered as a trustee node on the system contract, as the target trustee node, and entrust some of their rights to blockchain node a.

[0050] For example, blockchain node e can identify blockchain node b, which is registered as a trustee node on the system contract, as the target trustee node, and entrust some of its own equity to blockchain node b.

[0051] It should be noted that this application does not specifically limit the content of the rights allocation rules. In one illustrated embodiment, the rights allocation rules may include rules on how the block-producing rights obtained by a blockchain node as a trustee node should be allocated to the delegating node after the trustee node is elected as a representative node.

[0052] In one illustrated embodiment, the rights allocation rule may include allocation ratios corresponding to delegated nodes and delegating nodes. For example, the allocation ratio may include a first allocation ratio for allocating block-producing rights to delegated nodes, and a second allocation ratio for allocating rights from the remaining block-producing rights to at least one delegating node that has delegated rights to the delegated node. The first allocation ratio can be customized according to the needs of the delegated nodes, such as 40%, 50%, or 60%, etc., and this specification does not specifically limit it. The second allocation ratio may be the percentage of rights delegated by the at least one delegating node in the total rights delegated by the at least one delegating node.

[0053] In one illustrated embodiment, the rights allocation contract may include any other possible rules besides the aforementioned rights allocation rules. For example, the rights allocation contract may also include rules stipulating that the delegating node can obtain the added value corresponding to its delegated rights, and rules stipulating that the entrusted node must compensate the delegating node for rights in the event of early termination of the rights allocation contract, etc., which are not specifically limited in this specification. For example, the rights compensation rule may specify the amount of compensation (e.g., specifying that the compensation is N times the delegated rights), and further, the rights compensation rule may stipulate that the entrusted node can terminate the contract early without compensation after obtaining the consent of the delegating node with X% weight, etc., which are not specifically limited in this specification.

[0054] In one of the illustrated embodiments, the early termination of the equity distribution contract may include: the entrusted node voluntarily terminating the equity distribution contract early; the entrusted node being penalized (e.g., transferring some of its equity to the account of other representative nodes, etc.) and the equity distribution contract being terminated early because it was found to have cheated or engaged in malicious behavior during the consensus process after being elected as a representative node, etc., etc., and this specification does not specifically limit this.

[0055] Understandably, a blockchain node registered as a delegated node must have sufficient equity to pay for the aforementioned value-added benefits and potential breach of contract damages. In other words, a portion of the equity in the delegated node's account needs to be frozen. This equity cannot be used to participate in the election for a delegated node; instead, it is used to pay the delegated node the value-added benefits corresponding to the delegated equity, as well as any subsequent potential breach of contract damages.

[0056] Furthermore, after receiving the rights delegated by other blockchain nodes, blockchain nodes a and b can compete for representative nodes based on their held rights. It is understood that at this point, the rights held by blockchain node a include the rights delegated by blockchain nodes c and d, as well as the rights originally held by blockchain node a; similarly, the rights held by blockchain node b include the rights delegated by blockchain node e, as well as the rights originally held by blockchain node b.

[0057] In one illustrated implementation, blockchain node a and blockchain node b can determine a portion of their total stake to run for representative node, or they can run for representative node based on the delegated stake they receive, etc., which are not specifically limited in this specification. The probability of a successful election is often related to the proportion of each blockchain node's stake in the total stake of all blockchain nodes participating in the election, etc., which will not be elaborated further here.

[0058] For example, if blockchain node a is successfully elected as a representative node, then blockchain node a can create new blocks and obtain the corresponding block-producing rights.

[0059] It should be noted that this application does not impose any special limitations on the block production rules of the representative nodes. In one illustrated embodiment, all representative nodes may take turns producing blocks at a fixed block production time interval to avoid uncertainty in block production time. Alternatively, depending on the actual situation, all representative nodes may not take turns producing blocks at a fixed block production time interval; this specification does not specifically limit this.

[0060] In one illustrated implementation, the new block created by blockchain node a typically needs to be successfully confirmed and uploaded to the blockchain according to the rules in the corresponding consensus algorithm before blockchain node a can obtain the corresponding block-producing rights. It should be noted that this application does not specifically limit the rules for confirming and uploading new blocks. For example, if the new block created by blockchain node a is confirmed by a certain proportion (e.g., at least 2 / 3, or at least 1 / 2, etc.) of the representative nodes, it can be successfully added to the blockchain to improve the security and reliability of the block.

[0061] Furthermore, blockchain node A can initiate a contract call to the aforementioned rights allocation contract A to allocate block-producing rights to blockchain nodes C and D according to the rights allocation rules A contained in the rights allocation contract A. For example, blockchain node A can obtain 50% of the block-producing rights, while the remaining 50% can be allocated to blockchain nodes C and D respectively, based on the proportion of their respective entrusted rights to the total entrusted rights.

[0062] Thus, this application enables blockchain nodes to customize equity allocation rules and publish these rules on the blockchain in the form of smart contracts, thereby making the equity allocation rules more flexible and transparent.

[0063] Please see Figure 2 , Figure 2 This is a schematic diagram illustrating a blockchain-based rights allocation method as provided in an exemplary embodiment. This method can be applied to... Figure 1 The blockchain shown can be specifically applied to... Figure 1 Any target blockchain node (e.g., blockchain node a) in the blockchain shown. Figure 2 As shown, the method may specifically include the following steps S201-S204.

[0064] Step S201: Publish an equity allocation contract containing equity allocation rules on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the equity allocation rules contained in the equity allocation contract published on the blockchain.

[0065] In one illustrated implementation, the individual blockchain nodes in the blockchain can elect representative nodes based on the DPOS consensus algorithm. Accordingly, the blockchain nodes in this blockchain may include representative nodes with block creation authority, and delegate nodes that elect representative nodes based on their held stake.

[0066] In one illustrated implementation, if any target blockchain node intends to become a representative node, it can pre-define corresponding rights allocation rules and publish a rights allocation contract containing these rules on the blockchain for other blockchain nodes acting as delegate nodes to view. The specific content of the rights allocation rules is described above. Figure 1 The description of the corresponding embodiments will not be repeated here. In some possible implementations, the target blockchain node can publish multiple equity distribution contracts on the blockchain. Each equity distribution contract may contain different equity distribution rules, have different validity periods, and have different rules for equity compensation for breach of contract, etc. This specification does not specifically limit these aspects.

[0067] In one illustrated implementation, after publishing a rights distribution contract, the target blockchain node can invoke a system contract deployed in the blockchain to register as a trustee node. For example, the target blockchain node can initiate a contract call transaction targeting the system contract to invoke the registration method contained in the system contract, thereby registering as a trustee node. The system contract may contain registration information for multiple trustee nodes, which may include rights distribution rules contained in the rights distribution contracts published by multiple trustee nodes, etc., which are not specifically limited in this specification.

[0068] Accordingly, when a delegating node views a rights distribution contract published on the blockchain, it can specifically include: calling the system contract to view the rights distribution rules contained in the rights distribution contracts published by the trustees registered on the system contract. Further, the delegating node can select a rights distribution rule that matches its preferences and designate the corresponding trustee node as the target trustee node, thereby delegating its rights to it.

[0069] In one illustrated implementation, the above registration method can specifically be register_delegatee(addr, end_time), where addr can be the address on the blockchain of the equity allocation contract published by the target blockchain node, and end_time can be the validity period of the equity allocation contract.

[0070] It should be noted that this application does not specifically limit the type of validity period of the rights distribution contract. In one illustrated embodiment, the validity period may include a timestamp indicating the validity period, such as a physical timestamp like August 23, 2023. In one illustrated embodiment, the validity period may also include a block number indicating the validity period, such as the validity period extending to block number 10000, etc., and this specification does not specifically limit this.

[0071] Step S202: Receive at least one delegating node in the blockchain, and the rights delegated after the target blockchain node is determined as the target entrusted node.

[0072] In one illustrated implementation, at least one delegating node in the blockchain can identify a target blockchain node that has registered as a delegated node as a target delegated node and delegate a certain amount of equity to it. Correspondingly, the target blockchain node can receive the equity delegated by the at least one delegating node after it has been identified as the target delegated node.

[0073] In one illustrated implementation, the system contract described above can also be used to manage stake delegation, whereby at least one delegating node can delegate stake to a target blockchain node by invoking the system contract.

[0074] For example, at least one delegating node can invoke the equity delegation method contained in the system contract to delegate at least a portion of its equity to a target delegated node (i.e., a target blockchain node). In one illustrated implementation, the equity delegation method can specifically be delegate(delegatee_id, amount), where delegatee_id can be the node identifier of the target delegated node, and amount can be the amount of equity delegated.

[0075] Step S203: In response to the target blockchain node being elected as a representative node based on its held rights, the target block is generated, and the block-producing rights for generating the target block are obtained.

[0076] In one illustrated implementation, after a target blockchain node is identified as a target trustee node by at least one delegating node and receives the rights delegated by the at least one delegating node, the target blockchain node can compete for a representative node with other trustee nodes based on the rights it holds.

[0077] It should be noted that this application does not impose specific limitations on the rules for electing representative nodes. In one illustrated implementation, the target blockchain node and other entrusted nodes may determine a portion of their respective interests from all their holdings to elect a representative node, or the target blockchain node and other entrusted nodes may elect a representative node based on the entrusted interests they have received, etc., and this specification does not impose specific limitations in this regard. The probability of a successful election is often related to the proportion of each blockchain node's interests in the total interests of all blockchain nodes participating in the election, etc., and this specification does not impose specific limitations in this regard.

[0078] In one illustrated implementation, if a target blockchain node is successfully elected as a representative node, the target blockchain node can generate the target block and acquire the block-producing rights for generating the target block.

[0079] Step S204: Initiate a contract call for the equity allocation contract to allocate the block-producing equity to the at least one delegated node in accordance with the equity allocation rules contained in the equity allocation contract.

[0080] Furthermore, in one illustrated implementation, in response to the target blockchain node being successfully elected as a representative node, generating a target block and acquiring the corresponding block-producing rights, the target blockchain node may allocate block-producing rights to at least one of the aforementioned delegate nodes.

[0081] In one illustrated implementation, when a target blockchain node allocates block-producing rights, it may specifically include: initiating a contract call for the aforementioned rights allocation contract, thereby allocating block-producing rights to at least one delegate node in accordance with the rights allocation rules contained in the rights allocation contract.

[0082] In one illustrated implementation, the target blockchain node initiates a contract call for the aforementioned equity allocation contract, which may specifically include: sending a contract call transaction for the equity allocation contract to a node device in the blockchain to invoke the equity allocation contract; or, sending a notification message to at least one delegated node that the target blockchain node has acquired block production rights to trigger at least one delegated node to send a contract call transaction for the equity allocation contract to a node device in the blockchain to invoke the equity allocation contract.

[0083] As mentioned above, the rights allocation rule may include a first allocation ratio for allocating block-producing rights to the entrusted node, and a second allocation ratio for allocating rights to at least one delegating node from the remaining block-producing rights. The first allocation ratio may be 40%, 50%, or 60%, etc., and this specification does not specify a particular ratio. The second allocation ratio is the percentage of rights delegated by each of the at least one delegating node in the total rights delegated by the at least one delegating node.

[0084] For example, the target blockchain node obtains 100 block-producing rights. Delegating node 1 delegates 40 rights to the target blockchain node, and delegating node 2 delegates 160 rights to the target blockchain node. The rights delegated by delegating node 1 account for 20% of the total rights (200) delegated by delegating node 1 and delegating node 2, and the rights delegated by delegating node 2 account for 80% of the total rights delegated by delegating node 1 and delegating node 2. Taking the first allocation ratio of 50% as an example, the target blockchain node can ultimately obtain 50% of the block-producing rights (50 rights). The target blockchain node can allocate 20% of the remaining 50% of rights to delegating node 1, i.e., delegating node 1 receives 10 rights, and allocate 80% of the remaining 50% of rights to delegating node 2, i.e., delegating node 2 receives 40 rights.

[0085] It should be noted that this application does not specifically limit the specific allocation process of rights. In one illustrated embodiment, after the target blockchain node successfully generates the target block, the corresponding block-producing rights can be issued by the system contract to the rights allocation contract published by the target blockchain node. Further, the target blockchain node then initiates a contract call to the rights allocation contract to allocate the block-producing rights to the target blockchain node and at least one delegate node according to the rights allocation rules contained in the rights allocation contract. The system contract may correspond to a fund pool, the funds in which may include transaction fees paid by the initiator of on-chain transactions. Correspondingly, the block-producing rights corresponding to the generation of the target block may include transaction fees from all transactions within that target block.

[0086] Furthermore, in one of the illustrated implementations, after the expiration of the validity period of the equity distribution contract issued by the target blockchain node, that is, after the end_time specified in the above register_delegatee(addr, end_time) registration method, the equity distribution contract will automatically expire and terminate. Furthermore, the target blockchain node will also lose its status as a delegated node and will be unable to participate in the election of representative nodes.

[0087] In one illustrated implementation, in response to the expiration of the equity allocation contract, the target blockchain node can invoke the contract termination method for the equity allocation contract contained in the system contract to terminate the equity allocation contract. For example, a scheduled task can be set up to trigger the target blockchain node to invoke the contract termination method for the equity allocation contract contained in the system contract once the equity allocation contract expires.

[0088] As mentioned above, the system contract maintains registration information corresponding to the registered trustee nodes. This registration information may include contract information corresponding to the equity allocation contract published by the trustee node on the blockchain.

[0089] Specifically, when a rights distribution contract expires and is terminated, the contract information of the rights distribution contract issued by the target blockchain node, which is included in the registration information maintained in the system contract, can be deleted. This contract information may include any possible information related to the rights distribution contract, such as the contract address, the validity period, the contract identifier, etc., but this specification does not specify any particular limitation.

[0090] Furthermore, after terminating the equity distribution contract, the target blockchain node can also invoke the cancellation method included in the system contract to cancel its previously registered trustee node identity in the system contract, etc. This specification does not specify the exact steps involved. Specifically, when cancelling the trustee node identity, the node information of the trustee node maintained in the system contract can be deleted, such as deleting the node identifier of the target blockchain node, etc. This specification does not specify the exact steps involved.

[0091] In one of the illustrated implementations, when the equity allocation contract of the target blockchain node expires and terminates, the target blockchain node needs to return all the delegated equity received to each delegate node. Furthermore, it also needs to pay each delegate node the value-added equity corresponding to the equity it delegated, and so on. This specification does not specifically limit this.

[0092] It should be noted that if the target blockchain node is in a consensus epoch when the contract expires, the validity period of the equity allocation contract can be automatically extended until the end of the epoch before it is determined to expire. Consequently, the target blockchain node will not be able to participate in the election of the next consensus epoch.

[0093] Furthermore, the target blockchain node can also update the validity period of the equity allocation contract before its expiration, i.e., renew the equity allocation contract. In one illustrated implementation, before the expiration of the equity allocation contract, the target blockchain node can call the contract renewal method for the equity allocation contract contained in the system contract to update the validity period of the equity allocation contract in the registration information maintained in the system contract. For example, the above contract renewal method can specifically be extend(addr, new_end_time), where addr can be the address of the equity allocation contract on the blockchain, and new_end_time can be the updated contract validity period.

[0094] In one illustrated implementation, if a target blockchain node needs to cancel the equity allocation contract before its expiration date (e.g., the target blockchain node needs to modify the equity allocation rules as soon as possible and does not want to wait for the equity allocation contract to expire automatically), it can call the contract cancellation method for the equity allocation contract contained in the system contract to cancel the equity allocation contract in advance. For example, the contract cancellation method described above can specifically be `cancel(addr)`, where `addr` can be the address of the equity allocation contract on the blockchain.

[0095] Specifically, similar to terminating a rights distribution contract upon expiration, when canceling a rights distribution contract in advance, the contract information of the rights distribution contract issued by the target blockchain node, which is included in the registration information maintained in the system contract, can be deleted, etc. This specification does not make specific limitations on this.

[0096] Furthermore, if the equity distribution contract of the target blockchain node is cancelled prematurely, the target blockchain node needs to return all the delegated equity it received to each delegated node. It also needs to pay each delegated node the corresponding value-added equity, and so on; this specification does not specify these details. Simultaneously, the target blockchain node also needs to compensate each delegated node for its equity according to the equity compensation rules stipulated in the equity distribution contract.

[0097] Understandably, after the equity distribution contract expires or is cancelled in advance, the target blockchain node can modify the original equity distribution rules based on current needs and publish the equity distribution contract containing the new equity distribution rules on the blockchain, making the formulation and modification of equity distribution rules very flexible and convenient.

[0098] In summary, in this application, any blockchain node intending to become a representative node can publish a rights allocation contract containing rights allocation rules on the blockchain. Correspondingly, a delegating node in the blockchain can view the rights allocation rules contained in the rights allocation contracts published by multiple blockchain nodes and select a blockchain node that matches its intention as the target delegated node to delegate a portion of its rights to that target delegated node. Subsequently, if the target delegated node is successfully elected as a representative node based on its held rights, generates the target block, and obtains the corresponding block-producing rights, the target delegated node can initiate a contract call for the aforementioned rights allocation contract, thereby allocating the block-producing rights to at least one delegating node that delegated the rights to it according to the rights allocation rules contained in the contract. Thus, this application enables blockchain nodes to customize rights allocation rules and publish these rules on the blockchain in the form of smart contracts, making the rights allocation rules more flexible, transparent, and meeting practical needs.

[0099] Corresponding to the above-described method and process, embodiments of this specification also provide a blockchain-based rights allocation device. Please refer to... Figure 3 , Figure 3 This is a schematic diagram of a blockchain-based rights allocation device provided in an exemplary embodiment. The blockchain nodes include representative nodes with block creation permissions and delegate nodes that elect the representative nodes based on their held rights. This device 30 can be applied to any target blockchain node (e.g., blockchain node a). Figure 3As shown, the device 30 includes:

[0100] Contract publishing unit 301 is used to publish an equity distribution contract containing equity distribution rules on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the equity distribution rules contained in the equity distribution contract published on the blockchain.

[0101] Trustee unit 302 is used to receive the rights and interests entrusted by at least one delegating node in the blockchain after the target blockchain node is determined as the target trustee node;

[0102] Block-producing unit 303 is configured to, in response to the target blockchain node being elected as a representative node based on its held stake, generate a target block and acquire the block-producing stake for generating the target block; and,

[0103] The rights allocation unit 304 is used to initiate a contract call to the rights allocation contract in order to allocate the block-producing rights to the at least one delegated node in accordance with the rights allocation rules contained in the rights allocation contract.

[0104] In one illustrated embodiment, a system contract for managing the equity allocation contract is deployed on the blockchain; the contract publishing unit 301 is specifically used for:

[0105] A rights allocation contract containing rights allocation rules is published on the blockchain, and the registration method contained in the system contract is invoked to initiate registration with the system contract to register as a trustee node. This allows the delegating node to determine the target trustee node from the trustee nodes in the blockchain by viewing the rights allocation rules contained in the rights allocation contract published on the blockchain by the trustee node registered on the system contract.

[0106] In one illustrated embodiment, the rights allocation unit 304 is specifically used for:

[0107] Send a contract invocation transaction for the equity allocation contract to the node device in the blockchain to invoke the equity allocation contract; or,

[0108] A notification message is sent to the at least one delegated node that the target blockchain node has acquired block production rights, thereby triggering the at least one delegated node to send a contract call transaction for the rights allocation contract to the node device in the blockchain, so as to invoke the rights allocation contract.

[0109] In one illustrated embodiment, the rights allocation rule includes an allocation ratio corresponding to the delegating nodes that delegate rights to the target blockchain node;

[0110] The rights allocation unit 304 is specifically used for:

[0111] The block-producing rights are allocated to the at least one delegated node according to the allocation ratio included in the rights allocation rules.

[0112] In one illustrated embodiment, the allocation ratio includes:

[0113] A first allocation ratio is used to allocate the block-producing rights to the target blockchain node;

[0114] A second allocation ratio is used to allocate rights to the at least one delegated node from the remaining block-producing rights; wherein the second allocation ratio is the ratio of the rights delegated by the at least one delegated node to the target blockchain node to the total rights delegated by the at least one delegated node.

[0115] In one illustrated embodiment, the device 30 further includes a contract expiration termination unit 305, for:

[0116] In response to the expiration of the validity period of the equity allocation contract, the contract termination method for the equity allocation contract contained in the system contract is invoked to terminate the equity allocation contract.

[0117] In one illustrated implementation, the system contract maintains registration information corresponding to registered trustee nodes; wherein, the registration information includes contract information corresponding to the equity allocation contract published by the trustee node on the blockchain;

[0118] The contract termination unit 305 is specifically used for:

[0119] Delete the contract information of the rights allocation contract contained in the registration information maintained in the system contract.

[0120] In one illustrated embodiment, the contract information includes the contract address of the equity allocation contract and the validity period corresponding to the equity allocation contract.

[0121] In one illustrated embodiment, the validity period includes a timestamp indicating the validity period; or, a block number indicating the validity period.

[0122] In one illustrated embodiment, the device 30 further includes a contract renewal unit 306 for:

[0123] Before the expiration of the validity period of the equity allocation contract, the contract renewal method for the equity allocation contract contained in the system contract is invoked to update the validity period of the equity allocation contract contained in the registration information.

[0124] In one illustrated embodiment, the device 30 further includes a contract cancellation unit 307, for:

[0125] Before the expiration of the validity period of the equity allocation contract, the contract cancellation method for the equity allocation contract contained in the system contract is invoked to cancel the equity allocation contract.

[0126] In one illustrated embodiment, the contract cancellation unit 307 is specifically used for:

[0127] Delete the contract information of the rights allocation contract contained in the registration information maintained in the system contract.

[0128] In one illustrated implementation, the rights include virtual resources that can be transferred on the blockchain; the allocation of rights includes transferring the virtual resources as rights between blockchain accounts.

[0129] Accordingly, embodiments of this specification also provide a blockchain-based delegation of rights device. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of a blockchain-based rights delegation device provided in an exemplary embodiment. The blockchain nodes include representative nodes with block creation permissions and delegation nodes that elect the representative nodes based on their held rights. Multiple rights allocation contracts issued by the blockchain nodes are deployed on the blockchain. The device 40 can be applied to any target delegation node on the blockchain (e.g., blockchain node c). Figure 4 As shown, the device 40 includes:

[0130] The determining unit 401 is used to determine the target trustee node from multiple blockchain nodes that publish the equity distribution contract by examining the equity distribution rules contained in the equity distribution contract published on the blockchain.

[0131] The delegation unit 402 is used to delegate at least a portion of the rights and interests held by the target delegation node to the target trustee node;

[0132] The rights receiving unit 403 is configured to, in response to the target entrusted node being elected as a representative node based on its held rights, generating a target block and obtaining the block-producing rights for generating the target block, receive the block-producing rights allocated to the target entrusted node by the target entrusted node through a contract call initiated for the rights allocation contract, in accordance with the rights allocation rules contained in the rights allocation contract.

[0133] In one illustrated embodiment, a system contract for managing the delegation of interests is deployed on the blockchain; the delegation unit 402 is specifically used for:

[0134] Invoke the equity delegation method contained in the system contract to delegate at least a portion of the equity held by the target delegation node to the target trustee node.

[0135] For details on the implementation process of the functions and roles of each unit in the aforementioned devices 30 and 40, please refer to the above. Figures 1-2 The description of the corresponding embodiments will not be repeated here. It should be understood that the above-described devices 30 and 40 can be implemented in software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by the processor (CPU) of the device loading the corresponding computer program instructions into memory and running them. From a hardware perspective, in addition to the CPU and memory, the device typically includes other hardware such as chips for wireless signal transmission and reception, and / or other hardware such as boards for implementing network communication functions.

[0136] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the units or modules can be selected to achieve the purpose of the solution described in this specification, depending on actual needs. Those skilled in the art can understand and implement this without any inventive effort.

[0137] The devices, units, and modules described in the above embodiments can be implemented by computer chips or physical entities, or by products with certain functions. A typical implementation device is a computer, which can take the form of a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email sending and receiving device, game console, tablet computer, wearable device, in-vehicle computer, or any combination of these devices.

[0138] Corresponding to the above method embodiments, embodiments of this specification also provide a computer device. Please refer to... Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device provided in an exemplary embodiment. Figure 5 The computer device shown can be the one described above. Figure 1 Any target blockchain node in the blockchain shown, or a device that interfaces with any target blockchain node, can specifically be a smartphone, smart wearable device, tablet, laptop, desktop computer, server, or server cluster with the aforementioned functions, etc. This specification does not specifically limit this. Figure 5As shown, the computer device includes a processor 1001 and a memory 1002, and may further include an input device 1004 (e.g., a keyboard) and an output device 1005 (e.g., a display). The processor 1001, memory 1002, input device 1004, and output device 1005 can be connected via a bus or other means. Figure 5 As shown, the memory 1002 includes a computer-readable storage medium 1003 storing a computer program executable by the processor 1001. The processor 1001 may be a CPU, a microprocessor, or an integrated circuit for controlling the execution of the above method embodiments. When running the stored computer program, the processor 1001 can execute various steps of the blockchain-based rights allocation method in the embodiments of this specification, including: publishing a rights allocation contract containing rights allocation rules on the blockchain, so that a delegating node can determine a target trustee node from the blockchain nodes by viewing the rights allocation rules contained in the rights allocation contract published on the blockchain; receiving rights delegated by at least one delegating node in the blockchain after the target blockchain node is determined as the target trustee node; generating a target block and obtaining the block-producing rights for generating the target block in response to the target blockchain node being elected as a representative node based on its held rights; and initiating a contract call for the rights allocation contract to allocate the block-producing rights to the at least one delegating node according to the rights allocation rules contained in the rights allocation contract, etc.

[0139] For a detailed description of each step in the above blockchain-based rights distribution method, please refer to the previous content, which will not be repeated here.

[0140] Corresponding to the above-described method embodiments, embodiments of this specification also provide a computer-readable storage medium storing computer programs. When run by a processor, these computer programs execute the various steps of the blockchain-based rights allocation method described in this specification. Please refer to the above for details. Figures 1-2 The description of the corresponding embodiments will not be repeated here.

[0141] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.

[0142] In a typical configuration, a terminal device includes one or more CPUs, input / output interfaces, network interfaces, and memory.

[0143] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0144] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data.

[0145] 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, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transient media, such as modulated data signals and carrier waves.

[0146] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0147] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of computer program products implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

Claims

1. A blockchain-based method for allocating rights and interests, characterized in that, The blockchain nodes in the blockchain include representative nodes with block creation authority, and delegate nodes that elect the representative nodes based on their held interests. The method is applied to any target blockchain node in the blockchain, and the method includes: A rights allocation contract containing rights allocation rules is published on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the rights allocation rules contained in the rights allocation contract published on the blockchain; Receive at least one delegating node in the blockchain, and the rights delegated after the target blockchain node is identified as the target delegated node; In response to the target blockchain node being elected as a representative node based on its held stake, generating the target block, and acquiring the block-producing stake for generating the target block; and, Initiate a contract call to the equity allocation contract to allocate the block-producing equity to the at least one delegated node in accordance with the equity allocation rules contained in the equity allocation contract.

2. The method according to claim 1, characterized in that, A system contract for managing the equity allocation contract is deployed on the blockchain; the step of publishing an equity allocation contract containing equity allocation rules on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the equity allocation rules contained in the equity allocation contract published on the blockchain, includes: A rights allocation contract containing rights allocation rules is published on the blockchain, and the registration method contained in the system contract is invoked to initiate registration with the system contract to register as a trustee node. This allows the delegating node to determine the target trustee node from the trustee nodes in the blockchain by viewing the rights allocation rules contained in the rights allocation contract published on the blockchain by the trustee node registered on the system contract.

3. The method according to claim 1, characterized in that, The initiation of the contract call for the equity allocation contract includes: Send a contract invocation transaction for the equity allocation contract to the node device in the blockchain to invoke the equity allocation contract; or, A notification message is sent to the at least one delegated node that the target blockchain node has acquired block production rights, thereby triggering the at least one delegated node to send a contract call transaction for the rights allocation contract to the node device in the blockchain, so as to invoke the rights allocation contract.

4. The method according to claim 1, characterized in that, The rights allocation rules include the allocation ratio corresponding to the delegating nodes that delegate rights to the target blockchain node; The step of allocating the block-producing rights to the at least one delegated node according to the rights allocation rules contained in the rights allocation contract includes: The block-producing rights are allocated to the at least one delegated node according to the allocation ratio included in the rights allocation rules.

5. The method according to claim 4, characterized in that, The allocation ratio includes: A first allocation ratio is used to allocate the block-producing rights to the target blockchain node; A second allocation ratio is used to allocate rights to the at least one delegated node from the remaining block-producing rights; wherein the second allocation ratio is the ratio of the rights delegated by the at least one delegated node to the target blockchain node to the total rights delegated by the at least one delegated node.

6. The method according to claim 2, characterized in that, The method further includes: In response to the expiration of the validity period of the equity allocation contract, the contract termination method for the equity allocation contract contained in the system contract is invoked to terminate the equity allocation contract.

7. The method according to claim 6, characterized in that, The system contract maintains registration information corresponding to the registered trustee nodes; wherein, the registration information includes contract information corresponding to the equity allocation contract published by the trustee node on the blockchain; The termination of the equity distribution contract includes: Delete the contract information of the rights allocation contract contained in the registration information maintained in the system contract.

8. The method according to claim 7, characterized in that, The contract information includes the contract address of the equity allocation contract and the validity period corresponding to the equity allocation contract.

9. The method according to claim 8, characterized in that, The validity period includes a timestamp indicating the validity period; or a block number indicating the validity period.

10. The method according to claim 8, characterized in that, The method further includes: Before the expiration of the validity period of the equity allocation contract, the contract renewal method for the equity allocation contract contained in the system contract is invoked to update the validity period of the equity allocation contract contained in the registration information.

11. The method according to claim 7, characterized in that, The method further includes: Before the expiration of the validity period of the equity allocation contract, the contract cancellation method for the equity allocation contract contained in the system contract is invoked to cancel the equity allocation contract.

12. The method according to claim 11, characterized in that, The cancellation of the equity allocation contract includes: Delete the contract information of the rights allocation contract contained in the registration information maintained in the system contract.

13. The method according to any one of claims 1-12, characterized in that, The rights include virtual resources that can be transferred on the blockchain; the allocation of rights includes transferring virtual resources as rights between blockchain accounts.

14. A blockchain-based method for delegating rights, characterized in that, The blockchain nodes in the blockchain include representative nodes with block creation authority, and delegate nodes that elect the representative nodes based on their held interests. Multiple blockchain nodes have deployed equity distribution contracts on the blockchain. The method is applied to any target delegate node in the blockchain, and the method includes: The target trustee node is determined from multiple blockchain nodes that published the equity allocation contract by examining the equity allocation rules contained in the equity allocation contract published on the blockchain. Delegate at least a portion of the interests held by the target delegation node to the target trustee node; In response to the target entrusted node being elected as a representative node based on its held equity, generating a target block and obtaining the block-producing equity for generating the target block, the target entrusted node receives the block-producing equity allocated to the target delegate node by initiating a contract call for the equity allocation contract, in accordance with the equity allocation rules contained in the equity allocation contract.

15. The method according to claim 14, characterized in that, A system contract for managing equity delegation is deployed on the blockchain; the delegation of at least a portion of the equity held by the target delegation node to the target trustee node includes: Invoke the equity delegation method contained in the system contract to delegate at least a portion of the equity held by the target delegation node to the target trustee node.

16. A blockchain-based rights allocation device, characterized in that, The blockchain nodes in the blockchain include representative nodes with block creation authority, and delegate nodes that elect the representative nodes based on their held interests. The device is applied to any target blockchain node in the blockchain, and the device includes: A contract publishing unit is used to publish an equity allocation contract containing equity allocation rules on the blockchain, so that the delegating node can determine the target trustee node from the blockchain nodes by viewing the equity allocation rules contained in the equity allocation contract published on the blockchain. A trustee unit is used to receive the rights and interests delegated by at least one delegating node in the blockchain after the target blockchain node has been identified as the target trustee node. A block-producing unit, configured to, in response to the target blockchain node being elected as a representative node based on its held stake, generate a target block and acquire the block-producing stake for generating the target block; and, The rights allocation unit is used to initiate a contract call to the rights allocation contract in order to allocate the block-producing rights to the at least one delegated node in accordance with the rights allocation rules contained in the rights allocation contract.

17. A blockchain-based rights delegation device, characterized in that, The blockchain nodes in the blockchain include representative nodes with block creation authority, and delegate nodes that elect the representative nodes based on their held interests. Multiple blockchain nodes have deployed equity distribution contracts on the blockchain. The device is applied to any target delegate node in the blockchain, and the device includes: The determining unit is used to determine the target trustee node from multiple blockchain nodes that publish the equity distribution contract by examining the equity distribution rules contained in the equity distribution contract published on the blockchain. A delegation unit is used to delegate at least a portion of the rights and interests held by the target delegation node to the target trustee node; The rights receiving unit is configured to, in response to the target entrusted node being elected as a representative node based on its held rights, generating a target block and obtaining the block-producing rights for generating the target block, receive the block-producing rights allocated to the target entrusted node by the target entrusted node through a contract call initiated for the rights allocation contract, in accordance with the rights allocation rules contained in the rights allocation contract.

18. A computer device, characterized in that, include: Memory and processor; The memory stores computer programs that can be executed by the processor; When the processor runs the computer program, it performs the method as described in any one of claims 1 to 13, or performs the method as described in any one of claims 14 to 15.

19. A computer-readable storage medium, characterized in that, It stores a computer program thereon, which, when executed by a processor, implements the method as described in any one of claims 1 to 13, or performs the method as described in any one of claims 14 to 15.