Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The inventors of the present application have found, through long-term research: as blockchain systems evolve, the more assets need to be consumed for maintaining the blockchain system, so that fewer and fewer assets can be used for maintaining the blockchain system, which is not only detrimental to the development of the blockchain system, but also may cause the network of the blockchain system to crash. To solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of the present invention. The blockchain system 100 of the present embodiment includes a management platform 101 and a donor 102.
The management platform 101 may manage the asset budget of the blockchain system 100. The assets of the blockchain system 100 may include digital currency of the blockchain, other digital currency, goods or services, other assets of value, and the like. Management platform 101 may perform management operations such as transfers, charges, payments, checks, etc. on the assets of blockchain system 100.
The asset collection of the blockchain system 100 is performed, for example, through a common account configured by the blockchain system 100, and assets in the common account can be used for governance of the blockchain. The management platform 101 may enable management of the asset balance of the blockchain system 100 by managing common accounts. For example, the management platform 101 may collect donated assets, place the donated assets into a common account, and draw funds from the common account for the abatement blockchain. The management platform 101 may be a particular node or organization thereof in the blockchain system 100. For example, the management platform 101 may be selected nodes with stable operation and high reputation in the blockchain system 100, and these nodes may collectively manage the fund collection and payment of the blockchain system 100.
In this embodiment, the management platform 101 may also deploy a corresponding intelligent contract for specifying relevant rules for the donation transaction on the blockchain. For example, a smart contract may specify collection rules for donated assets and usage rules for donated assets. After the management platform 101 receives the donation assets, the donation assets can be placed into the corresponding account according to the collection rules in the intelligent contract, and the corresponding donation assets are paid out according to the usage rules. The management platform 101 automatically performs management operations such as fund collection, payment or inspection by executing the intelligent contract, which is beneficial to reducing human intervention and improving the fund security and the fund management reliability of the blockchain system 100.
In this embodiment, the donor 102 may include a person or thing or collection thereof that participates in the blockchain donation transaction. The donor 102 may donate assets to the blockchain system 100 for blockchain remediation or other uses. For example, the donor 102 may transfer the donated assets to the management platform 101 so that the management platform 101 may expend the donated assets for administration of the blockchain.
The donor 102 may be a blockchain node in the blockchain system 100, and the interaction of the donor with the blockchain system 100 is realized through information interaction of a blockchain network. In some embodiments, the donor 102 may further provide a visual operation interface, receive the donation information input by the donor through the interface, and send the donation information to the management platform 101, so as to realize the interaction between the donor and the management platform 101.
When the donor 102 is used as a blockchain node, it can also participate in transactions such as endorsement, sorting, block packing, communication or accounting of the blockchain, and obtain a corresponding reward by participating in the blockchain transaction. The donor 102 may also donate the reward earned as a donation asset. For example, the donor 102 may obtain a corresponding fund award through the packaging of the participating blocks and donate the obtained fund award to the management platform 101.
In this embodiment, the blockchain system 100 may further include a donation platform 103. The donation platform 103 may manage donation transactions on the blockchain and provide a trusted donation channel for the donation transactions of the blockchain. For example, when the donor 102 performs a blockchain donation, the donation information may be sent to the donation platform 103, and the donation platform 103 may forward the donation information to the management platform 101 after verification. The donation platform 103 may also deploy corresponding intelligent contracts to specify transaction rules and verification rules for the donation transactions. The donation platform 103 may automatically check the donation information and perform a donation transaction by executing a corresponding intelligent contract.
The donation platform 103 may also be used to issue donation requirements for more donated assets, for blockchain governance or other uses. For example, the management platform 101, blockchain node, or other demand party may send a message requesting asset donation to the donation platform 103, and the donation platform 103 may broadcast the message to the blockchain network or send a message to the other donation parties 102 after verification, and timely feed back to the corresponding demand party when receiving the donation message.
In this embodiment, the blockchain system 100 may include one or more donation platforms 103. The multiple donation platforms 103 can alleviate the low donation efficiency caused by the high concurrency of data in the blockchain system 100, and are beneficial to improving the donation efficiency. The donor 102 may donate via multiple donation platforms 103, for example, the donor 102 may select different donation platforms 103 for donation according to the type of donation asset; alternatively, the donor 102 may select a corresponding donation platform 103 for donation according to the donation requirement issued by the donation platform 103.
The management platform 101 of this embodiment can manage the asset balance of the blockchain system 100, and the asset accumulation can be obtained by receiving the donated assets from the donator 102, so as to treat the blockchain, and promote the healthy, stable and sustainable development of the blockchain. The management platform 101 performs the expenditure of donation assets by executing the intelligent contract, so that human intervention can be reduced, and the safety and fairness of the use of the donation assets are improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the block chain donation method of the present application. The embodiment comprises the following steps:
s101: and the donator sends the donation information and the donation assets to the management platform.
In this embodiment, the donor may initiate a donation transaction by sending donation information to the management platform. The donation information may include identity information of the donor and information related to the donated asset. The identity information of the donor includes, for example, personal information of the donor, such as information of a phone, an address, a mailbox, and the like; the information related to the donated assets includes, for example, donation time, asset type, usage, applicable objects, usage time limit, etc. The donation information may also include information about whether the donated asset is anonymous, whether the donated asset is directed for use, paid or gratuitous donations, and the like.
When donated, the donator can disclose the identity information of the donator to the blockchain system, and donates in a non-anonymous mode. Alternatively, the donor may choose to donate anonymously, without disclosing its identity to the blockchain system. For example, the donor may refuse to enter the corresponding identity information in the donation information for an anonymous donation. Alternatively, the donor may use the corresponding code as the identification without disclosing the actual identity information. The donator can also disclose the identity information of the donator to the management platform, but the donator is appointed to carry out donation in an anonymous mode in the intelligent contract, and the identity information of the donator is hidden from the beneficiary. The donator can effectively protect the privacy security of the donator by carrying out anonymous donation.
In this embodiment, the donation transaction initiated by the donator to the blockchain system may be a gratuitous donation or a gratuitous donation. When the donator donates without compensation, the donator can send the donation assets to the management platform, and after the management platform receives the donation assets and correctly uses the donation assets, the donation transaction is completed. The donator can spontaneously donate to the block chain system for no compensation; or, the donor may also obtain the asset requirement of the blockchain system in advance, and donate the corresponding asset for no compensation according to the requirement.
The donator can also obtain corresponding assets or services when performing the paid donation. The donation compensation may be an exchange of assets or services according to the asset requirements of the blockchain system. For example, after acquiring the asset demand information of the blockchain system, the donor may send donation information to the management platform for a paid donation, and the donation information may further include related information of an asset or a service that the donor can obtain after donation; and after the management platform confirms that the donation is received, receiving the donation assets of the donator and providing corresponding assets or services for the donator, wherein the donator completes the paid donation after receiving the corresponding assets or services.
In this embodiment, the donor may donate a plurality of types of donated assets to the management platform. For example, donated assets may include digital currency of the blockchain, other digital currency, legal currency, goods or services, other assets of value, and the like. The donor sends the donated assets to the management platform, including, for example, transferring money to a corresponding account of the management platform, providing beneficial services to the management platform, providing useful goods to an address specified by the management platform, etc. The donator can write the type of the donated assets into the donation information so that the management platform can orderly perform classification management on the donated assets.
The donor can also write in the donation information whether the donation assets are used directionally or not, that is, whether the donation assets are limited to applicable objects or not. And the management platform can use the donation assets according to the corresponding using modes after receiving the donation assets. For example, the donation direction management platform donates donation assets for non-directional use, and after the management platform receives the donation assets, the donation assets can be used randomly according to requirements. If the donation direction management platform donates the donation assets for directional use and specifies the applicable objects of the donation assets, the management platform can use the donation assets for the specified applicable objects according to rules so as to realize directional use of the donation assets.
The donor can send the donation information and the donation assets to the management platform at the same time, so that the management platform can check the donation assets in time. In some embodiments, the donor may also send the donation information to the management platform, and the management platform may determine whether the donation information of the donor meets the asset requirement of the blockchain after receiving the donation information, so as to determine whether the donation asset of the donor needs to be received.
The asset requirements of the blockchain may include information about the type of assets, the number of assets, etc. required in the current time period of the blockchain system. The management platform determines whether the donation information meets the asset requirements of the blockchain, which may include, for example, determining whether the type of donation asset in the donation information is an asset type specified in the asset requirements. For example, if the asset type currently required by the blockchain system is the digital currency of the blockchain, the management platform determines whether the donation asset type in the donation information is the digital currency of the blockchain, if so, the management platform may accept the donation, and if not, the management platform may give up the donation. The assets currently required by the blockchain system may also be items, and the management platform may determine whether the donated assets are of the required item type to determine whether to accept the donation. The management platform is convenient for the management of the donation assets by screening the donation assets of the proper types, and is favorable for obtaining the currently most valuable assets in proper time.
The management platform may also determine whether the number of donated assets matches the asset requirements of the blockchain. For example, the management platform may set an upper limit of the number of donated assets according to the asset requirements of the block chain, and may determine whether the number of donated assets in the donation information exceeds the upper limit when the donation information of the donor is received; or judging whether the sum of the number of the donated assets and the accumulated number of the donated assets which are received currently exceeds an upper limit; if the upper limit is exceeded, the management platform may give up the donation. The management platform can avoid waste caused by excess assets by controlling the number and value of donated assets, can also avoid the balance of a block chain economic system due to over concentration of donated assets, reduces adverse effects on the block chain economic system, and maintains stable development of the block chain economic system.
The management platform can also judge whether the assets or services which are used as the exchange donation assets in the donation information for compensation donation can be effectively provided or not, so that whether the corresponding assets or services can be correctly provided for the donator or not after the donation is received or not is determined, and the benefits of the donator can be effectively protected. In addition, when the donor performs the targeted donation, the management platform can also judge whether the donated assets in the donation information conform to the asset type, number or other related information required by the applicable target of the targeted donation.
In this embodiment, if the management platform determines that the donation information meets the asset requirement of the blockchain, the management platform continues to receive the donation assets of the donator. If the management platform judges that the donation information does not meet the asset requirement of the block chain, the donation information can be abandoned, and the donation asset of the donator is not accepted. The management platform is convenient for management of the donation assets by screening the donation assets meeting the asset requirements of the block chain, is favorable for obtaining the current most valuable assets in a proper time and exerts the maximum value of the donation assets.
S102: the management platform generates a donation contract based on the donation information.
In this embodiment, the management platform is further deployed with an intelligent contract. After receiving the donation information, the management platform can call the intelligent contract of the block chain to generate the donation contract of the donation transaction.
The smart contracts may specify transaction rules for the donation transactions. Including, for example, the duration of the transaction, the payment method for the donated asset, the payment address, the payment time, the exchanged assets or services for the donated fee, and the like. The smart contracts may also specify usage rules for the donated assets, including, for example, the lifetime of the donated assets, applicable objects, directed or undirected usage, the processing method of the incomplete donation transaction, and the like. The management platform calls the intelligent contract of the blockchain to generate a transaction contract based on the donation information, and the transaction contract can specify the use rule of the donation asset.
In some embodiments, the management platform may also verify the correctness and validity of the donation information in advance after receiving the donation information. For example, the management platform may verify that the donated information is in the correct format, the information is complete, the donated assets are valid, and so on. The management platform can call the intelligent contract to generate a corresponding donation contract when the donation information is verified to be correct and legal.
S103: the management platform executes the donation contract to disburse at least a portion of the donated assets for administration of the blockchain.
In this embodiment, the management platform may execute the intelligent contract to pay for the donated assets after receiving the donated assets. The management platform may expend portions of the donated assets for governance of the blockchain, including, for example, maintenance of the blockchain network, maintenance and updates of node devices in the blockchain system, rewards of blockchain link points for participating in blockchain transactions, and the like. The management platform pays for the donation assets by executing the donation contract, so that the equity and reliability of the donation asset paying can be ensured, and the possibility of malicious use of the donation assets is reduced.
In this embodiment, if the donation assets of the donator are non-directional donations, the management platform may execute the donation contract to dominate the donation assets according to the requirement. For example, the management platform may pay out portions of the donated assets for administration of the blockchain or other use. If the donation expenditure of the donor is a directed donation, the management platform may execute a donation contract to direct the donated asset to the applicable object specified by the donation contract.
In some embodiments, the management platform may also determine the validity of the payout pattern of the donated asset when the donated asset is paid out. For example, S103 may further include: the management platform judges whether the expenditure mode of the donation assets meets the stipulation of a donation contract or not; if the corresponding regulations are met, the management platform expends a corresponding part of the donation assets; and if the corresponding regulations are not met, the management platform gives up the expenditure donation assets.
The expenditure mode of the donation assets can comprise at least one of the usage of the donation assets, expenditure objects and expenditure amount, and the management platform can determine the legality of the expenditure mode by carrying out corresponding judgment when the donation assets are paid. For example, in one particular embodiment, the donated assets are a quantity of digital currency, and half of the donated assets are specified in the donation contract for the abatement blockchain; when the management platform pays the donation assets, whether the use of the donation assets is correct or not can be judged, and whether the paid donation assets exceed the specified number or not can be judged; if the management platform judges that the application is correct and no excess is provided, the donation assets can be paid out; if one of the items is determined to be non-compliant, e.g., improperly used or out-of-amount, then the expenditure on the donated asset may be abandoned. The management platform can prevent the donation assets from being used indiscriminately by judging whether the use mode of the donation money meets the requirements of the intelligent contract or not, and the safety of the donation assets is improved.
In other embodiments, the management platform may also determine the validity of the spending time of the donated asset when the donated asset is paid. For example, S104 may further include: the management platform judges whether the expenditure time of the donated assets is within the preset use time or not; if the service life is within the preset service life, the management platform pays out a corresponding part of the donation assets; and if the service life is not within the preset service life, the management platform gives up paying out the donation assets and returns the donation assets.
The preset usage time is, for example, a time period during which the donation asset can be used since the donation asset is received from the management platform. Alternatively, the preset usage time may also be a time period specified in the donation contract and during which the donation assets can be used, and the timing is started according to the corresponding trigger rule. When the management platform executes the donation contract to pay out donation resources, whether the expenditure time is within the preset use time or not can be judged, and if the expenditure time exceeds the preset use time, the expenditure donation assets can be abandoned. The preset use time is, for example, ten days, one month, or the like. The management platform can guarantee the timeliness of the donation assets by transferring the donation assets within the preset service time, and the use value of the donation assets can be guaranteed.
In this embodiment, if the management platform determines that the expenditure time of the donation asset is not within the preset use time, the management platform may return the donation asset, so as to reduce the waste of the donation asset. In some embodiments, the donation assets can be used in a plurality of expenditure, the management platform can judge whether the expenditure time of the donation assets is within the preset use time when the donation assets are paid every time, and if the expenditure time is judged to be overtime, the management platform can return the rest donation assets.
In this embodiment, the donor may also initiate a paid donation to the management platform, and the management platform provides corresponding assets or services to the donor as compensation after receiving the donation from the donor. For example, the management platform may also perform the following step of S104.
S104: the management platform provides the corresponding asset or service to the donor.
In this embodiment, the management platform may further provide corresponding assets or services to the donor after the donor performs the paid donation. The assets and services provided by the management platform may include digital currency, other digital currency, legal currency, goods or services, etc. of the local blockchain. The management platform can encourage the donor to actively participate in the block chain donation by providing corresponding asset or service compensation for the donor, thereby being beneficial to the asset accumulation of the block chain system and maintaining the stable development of the block chain system. In some embodiments, the management platform providing the respective asset or service to the donor may also be notifying other third parties by the management platform to provide the respective asset or service.
In the embodiment, the asset balance of the block chain system is managed through the management platform, and donation assets in the block chain system are managed trustfully, so that the asset accumulation can be obtained for treating the block chain, the fund for managing the block chain network is continuous, the normal operation of the block chain is not influenced by the fund exhaustion, and the health, stability and sustainable development of the block chain are facilitated; and the management platform carries out the expenditure of donation assets through executing the intelligent contract, so that the human intervention can be reduced, and the use safety and fairness of the donation assets are improved.
In this embodiment, the sequence of steps S101 to S104 is the description sequence in this embodiment, and is not limited to the sequence of the donation method of the blockchain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be executed simultaneously or individually by exchanging the sequence.
Referring to fig. 3, fig. 3 is a schematic flow chart of a donation method of the blockchain of the present application according to a second embodiment. This embodiment is further described on the basis of the first embodiment of the donation method for blockchain of the present application, and the steps of this embodiment that are the same as those of the first embodiment of the donation method for blockchain of the present application are not described herein again. The embodiment comprises the following steps:
s201: the management platform sets up a plurality of asset accounts.
In this embodiment, the management platform may manage the asset budget of the blockchain system. The management platform may set up a plurality of asset accounts, each for managing a respective type of asset. For example, the management platform can receive digital currency, other digital currency and legal currency of the local block chain, the management platform can set an account corresponding to each currency, and a plurality of accounts can be isolated from each other, which is beneficial to realizing the ordered and efficient management of asset balance.
In some embodiments, the management platform may also set up accounts that exclusively manage donated assets so as to be isolated from other blockchain assets for ease of management. The management platform can also be provided with a plurality of management nodes, and each account can be managed by one or more corresponding management nodes. When the expenditure of the donated assets is performed, the donated assets in the account may be paid by the corresponding management node.
S202: the donor sends a donation contract and donation assets to the management platform.
S203: the management platform generates a donation contract based on the donation information.
S204: the management platform places the donated assets into the corresponding asset accounts.
In this embodiment, after the management platform receives the donation information, the management platform can acquire the type of the donation assets, and after the donation information is received, the donation assets can be placed into the same type of asset accounts, so that the diversity of the block chain donation assets can be realized, and various donation assets can be used for different purposes in the block chain treatment process, so that the management platform is more comprehensive and efficient in the block chain treatment.
In some embodiments, the donor may donate multiple types of donated assets to the management platform, and after receiving the donated assets, the management platform may divide the donated assets according to the types of the donated assets, and then place the divided donated assets into the asset accounts of the corresponding types. The management platform can pay out the donation assets from the corresponding accounts respectively according to the donation contracts when paying out the donation assets. The management platform puts the donation assets into the corresponding asset accounts according to the asset types of the donation assets, and is favorable for orderly management of various donation assets.
S205: and the management platform obtains the asset expenditure authority of the asset account corresponding to the donated asset.
In this embodiment, the asset account may be further configured with a corresponding asset expenditure authority, and the management platform may further obtain the asset expenditure authority of the corresponding account before the donation asset is paid out, and then pay out the donation asset after the asset expenditure authority is obtained.
The asset expenditure authority comprises a signature of a public and private key pair corresponding to the asset account, for example, and the management platform can expend the donated assets in the asset account after obtaining the corresponding signature. For example, in one particular embodiment, the blockchain system includes a plurality of asset accounts, each asset account configured with one or more public-private key pairs and configured with corresponding spending rights, such as requiring a signature of all or a portion of the public-private key pairs. For example, the asset account a is configured with a public and private key pair, and if the management platform needs to pay out the donation assets from the account a, the management platform can obtain the signature of the public and private key pair of the account a first and then pay out the corresponding donation assets. For another example, asset account B is configured with three public and private key pairs, the contribution of the donated asset requires signatures of at least two public and private key pairs, and if the management platform needs to pay the donated asset from account B, the signatures of at least two of the public and private key pairs need to be acquired to obtain the asset spending authority of the corresponding donated asset.
In some embodiments, the asset account may also configure the corresponding asset spending rights in terms of the number of spending donated assets. If the number of the donation assets is large, the management platform needs to obtain more signatures to satisfy the expenditure authority of the corresponding donation assets. For example, in the above embodiment, when a management platform expends a large number of donated assets in asset account B, it needs to obtain signatures of all public and private key pairs; if the number of donation assets is small, the corresponding donation assets can be paid only by acquiring the signatures of two public and private key pairs.
In some embodiments, the management platform obtaining asset spending rights for the asset account may further include the management platform determining that the type and number of spending assets meet spending requirements for donated assets in the asset account. For example, an asset account is configured with the types of donated assets that can be paid out and an upper limit on the number of donated assets per payout; the management platform can also determine that the types of the donated assets are consistent and the number of the donated assets is not over-paid before the donated assets are paid so as to determine asset paying authority with corresponding asset accounts; if the types of the donated assets are not consistent or the number of the donated assets is excessive, the asset expenditure permission of the corresponding asset account is not provided.
In this embodiment, if the management platform does not correctly obtain the asset expenditure permission of the asset account, the donated assets of the corresponding asset account are not allowed to be paid out.
S206: the management platform disburses at least a portion of the donated assets from their corresponding asset accounts for administration of the blockchain.
In this embodiment, the management platform may pay out the donated assets in the asset account after correctly obtaining the asset payout authority of the asset account. The donated assets paid out of the asset account by the management platform may be the donated assets of the donation. For example, the management platform puts the received donation assets into the corresponding asset account, the donation assets are locked, and the donation assets can be unlocked and paid when the management platform needs to pay the donation assets, so that the safety of the donation assets can be effectively protected, and the donation assets are prevented from being used indiscriminately.
In some embodiments, the donated assets paid out from the asset account by the management platform may also be donated assets originally in the asset account. For example, the management platform may put the received donation assets into the corresponding asset accounts, and use the donation assets for generating value in addition, when the donation assets need to be paid out, the management platform may pay out a corresponding number of assets from the original assets of the asset accounts, which is beneficial to the flexible management of the donation assets, and the management platform may generate new value by using the donation assets, so that the assets for governing the blockchain may be continuously sourced.
In this embodiment, if the donor performs a paid donation, the management platform may further provide corresponding assets or services to the donor as compensation after receiving the donation from the donor. For example, the management platform may also perform the following step of S207.
S207: the management platform provides the corresponding asset or service to the donor.
The management platform of the embodiment is used for managing different types of donation assets by setting a plurality of accounts, so that the orderly management of the donation assets is facilitated; the management platform also acquires the asset expenditure authority of the corresponding asset account in advance before the donation assets are paid out, the indiscriminate use of the donation assets is avoided, and the safety of the donation assets is improved.
In this embodiment, the sequence of steps S201 to S207 is the description sequence in this embodiment, and is not limited to the sequence of the donation method of the blockchain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be executed simultaneously or individually by exchanging the sequence.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the block chain donation method of the present application. This embodiment is further described on the basis of the first embodiment of the donation method for blockchain of the present application, and the steps of this embodiment that are the same as those of the first embodiment of the donation method for blockchain of the present application are not described herein again. The embodiment comprises the following steps:
s301: the donator sends the donation information to the donation platform.
In this embodiment, the blockchain system is further provided with a donation platform, and the donation platform can manage donation transactions of the blockchain and provide a trusted donation channel for the donator. When the donator donates, the donator can initiate donation transaction by sending the donation information to the donation platform.
The donation platform can also be used for issuing donation items, and the donator can select corresponding donation items to donate. When donation is performed, the donator may write the name or code number of the corresponding donation item in the donation information, so that the donation platform may determine the corresponding donation item through the donation information. The donation platform can also verify the legality of the donation information after receiving the donation information, and inform the donator to pay the donation assets after verifying that the donation information is legal; or the donor may be notified to refuse his donation after the donation information is verified to be illegal.
For more contents of the donation information in this step, reference may be made to the description of S101 in the first embodiment of the block chain donation method in this application, and details are not described herein again.
S302: and the donation platform sends the donation information to the management platform.
In this embodiment, the donation platform may forward the donation information to the management platform after determining that the donation information is legal. Or, the donation platform may also extract part of the information in the donation information after receiving the donation information, and send the extracted part of the information to the management platform. For example, the donation platform may send information of the type of donated assets, the number of assets, the usage, etc. in the donation information to the management platform.
In some embodiments, the donation platform may also verify the validity of the donation information before sending the donation information to the management platform. For example, the donation platform may verify whether the donation information format is correct, whether the information is complete, whether the donated asset is valid, whether the asset requirements of the blockchain are met, and the like. If the donation platform verifies that the donation information is legal, the donation information can be sent to the management platform; and if the donation information is verified to be illegal, the donation information is not sent to the management platform.
The donation platform can also deploy corresponding intelligent contracts, and after the donation information is received, the intelligent contracts can be called to simulate donation transactions of the corresponding donation information so as to determine whether the donation transactions are effective or not. The donation platform may send the donation information to the management platform after determining that the donation information is valid. The donation platform can also give up sending the donation information to the management platform after determining that the donation information is invalid. The donation platform can guarantee the validity of block chain donation through simulation transaction, and reduces the resource waste and donation efficiency reduction caused by invalid donation.
S303: the management platform generates a donation contract based on the donation information.
S304: and the management platform receives the donation assets paid by the donator within the preset receiving time.
In this embodiment, after the donor sends the donation information to the donation platform in advance, the donor may also pay the donation asset to the management platform within a proper donation time. For example, the donor may pay the management platform for the donated assets within a period of time, such as five days, seven days, etc., after receiving the message that the donation platform determines to receive the donation, which is beneficial to the asset turnover and raising of the donor. The donation time can be agreed in the intelligent contract, and the donator only needs to pay donation assets to the management platform within the period of time.
The management platform can receive donation assets paid by the donator within a preset receiving time after receiving the donation information of the donation platform. The preset receiving time is, for example, a period of time counted after the donation information is received from the management platform, and the management platform can receive the donation assets of the donator within the period of time, so that timeliness of the donation assets can be effectively ensured. For example, after receiving the donation information, the management platform may receive the donation assets of the donor at a preset receiving time, such as seven days, ten days, and the like, according to the provision of the intelligent contract. In some embodiments, the management platform may also abort the donation transaction if it does not have the donation asset received within the predetermined receiving time.
S305: the management platform executes the donation contract to disburse at least a portion of the donated assets for administration of the blockchain.
In this embodiment, if the donor performs a paid donation, the management platform may further provide corresponding assets or services to the donor as compensation after receiving the donation from the donor. For example, the management platform may also perform the following step of S306.
S306: the management platform provides the corresponding asset or service to the donor.
In the embodiment, the donation platform is arranged to manage donation transactions, so that a credible donation channel can be provided for a donator; the management platform receives donation assets within the preset receiving time, the asset turnover and the raising of donators are facilitated, the timeliness of the donation assets can be effectively guaranteed, and the loss of the use value of the donation assets due to the fact that the payment time of the donation assets is too long is reduced.
In this embodiment, the sequence of steps S301 to S306 is the description sequence in this embodiment, and is not limited to the sequence of the donation method of the blockchain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be executed simultaneously or individually by exchanging the sequence. This embodiment can be combined with the second embodiment of the donation method of the blockchain of the present application described above.
Referring to fig. 5, fig. 5 is a schematic flow chart of a donation method of the blockchain of the present application according to a fourth embodiment. The embodiment uses the management platform as an execution main body, and includes:
s401: the management platform receives a donation contract and donation assets for a donor.
In this embodiment, the management platform may be used to manage the fund balance of the blockchain system.
S402: and the management platform calls the intelligent contract of the block chain to generate a donation contract based on the donation information.
In this embodiment, the donation contract may be used to specify usage rules for donation assets.
S403: the management platform executes the donation contract to disburse at least a portion of the donated assets for administration of the blockchain.
In this embodiment, regarding more functions and execution steps of the management platform, reference may be made to the description of the first to third embodiments of the block chain donation method in the present application, and details are not described herein again.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 60 of the present embodiment includes a processor 61, a memory 62, and a communication circuit 63, and the processor 61 is coupled to the memory 62 and the communication circuit 63.
In this embodiment, the communication circuit 63 is used for the electronic device 60 to communicate with an external device. The memory 62 is used to store program instructions. The processor 61 is configured to execute program instructions to implement the steps of the management platform in the first to fourth embodiments of the block chain donation method of the present application.
In the present embodiment, the processor 61 may also be referred to as a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip having signal processing capabilities. The processor 61 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this embodiment, for further execution processes, functions, and the like of the electronic device 60, reference may be made to the description of the first to fourth embodiments of the block chain donation method in the present application, and details are not repeated herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of a storage medium according to the present application. The storage medium 70 in this embodiment is used to store program instructions 71. The program instructions 71 can be executed by a processor to implement the steps of the management platform in the first to fourth embodiments of the blockchain donation method of the present application. Reference may be specifically made to the description of the first to fourth embodiments of the block chain donation method in the present application, and details are not described herein again.
The donation method of blockchain according to the present application, the methods according to the first to fourth embodiments, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium 70 includes: various media capable of storing program codes, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other devices, such as a mobile terminal including a storage medium.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.