CN113379417A - Block chain-based ground computing system and method - Google Patents

Block chain-based ground computing system and method Download PDF

Info

Publication number
CN113379417A
CN113379417A CN202010163535.6A CN202010163535A CN113379417A CN 113379417 A CN113379417 A CN 113379417A CN 202010163535 A CN202010163535 A CN 202010163535A CN 113379417 A CN113379417 A CN 113379417A
Authority
CN
China
Prior art keywords
task
calculation
transaction
manager
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010163535.6A
Other languages
Chinese (zh)
Inventor
杨税令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Benchainless Technology Shenzhen Co ltd
Original Assignee
Benchainless Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Benchainless Technology Shenzhen Co ltd filed Critical Benchainless Technology Shenzhen Co ltd
Priority to CN202010163535.6A priority Critical patent/CN113379417A/en
Publication of CN113379417A publication Critical patent/CN113379417A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain-based land computing system and a block chain-based land computing method, which comprise an accounting manager, a freezing manager, a unfreezing manager, a task distribution manager and a task result manager.

Description

Block chain-based ground computing system and method
Technical Field
The present invention relates to the field of block chain technology, and more particularly, to a block chain-based ground computing system and method.
Background
The computing power of a computer is a main foundation for supporting the current information-based society to advance, the improving speed of the computing power is an important factor for limiting the information-based advancing speed, the informatization requirement of the social development is higher and higher, the requirement on the computing power is higher and higher, but the requirement on the informatization in the social development is only increased but not reduced, the improvement of the computing power of the computer has a physical limit, the speed improvement of a single chip of the computer almost enters a stagnation stage when the computer develops to the present, and the design of a multi-core chip is difficult to break through.
At present, the most adopted scheme is distributed computing, a single task is decomposed into a plurality of tasks to be distributed to different chips for processing, and essentially, an organization pounts more money and purchases more equipment for computing, but the construction mode has large initial investment cost, high maintenance cost in the operation and maintenance process, high-performance computing requirements do not exist continuously and are serious in waste, in order to solve the problem, the most mainstream solution in the world is to provide cloud computing service, sell idle computing capacity to recover part of construction cost, even obtain profit, but the cloud computing essence is not changed, still depends on construction, maintenance and operation of a certain organization, for the single organization, the cost of the initial investment equipment is still huge, and the cloud computing mode is larger in integration scale after the single organization, the oligopolistic monopoly can be a necessary result, in the process of increasing the scale, the risk of cloud computing is increased, the normal operation of the whole society is directly influenced until the mechanism bearing the cloud computing generates credit risk, when the influence range is increased, any mechanism cannot bear the risk of the operation of the whole society, and the cloud computing at the moment becomes the biggest hidden danger of restricting and threatening the development of the society. However, the computing power of a computer cannot be increased endlessly, and the demand of the society for the computing power is increasing continuously, so that how to meet the demand of the computing power of the whole society and not cause the risk of the whole society after the computing power is concentrated becomes a problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a block chain-based ground computing system and a block chain-based ground computing method.
A block chain-based land computing system comprises an accounting manager, a freezing manager, a unfreezing manager, a task distribution manager and a task result manager; the accounting manager is used for managing asset accounts of participants of the current computing task, assets held by a user are managed in the asset accounts, the assets serve as a basis for freezing and unfreezing when a subsequent task is released and completed, and the assets are used for participating in issuing bonus points participating in the computing task; the freezing manager is used for managing freezing information of the user account, the prize money for completing the task is frozen on the chain when the task distributor distributes the calculation task, which task the freezing comes from is listed in the freezing information, and the longest freezing time is specified by the distributor of the task but cannot exceed the maximum freezing time on the chain; the unfreezing manager is used for executing unfreezing operation of the account, after the calculation is completed and the account passes the verification, the bonus can be unfrozen to the first user who completes the calculation, when the first user who completes the unfreezing, other users who complete the calculation cannot obtain the bonus, and when the calculation is not completed by the task calculator when the calculation task waiting result is overtime, the frozen bonus can be unfrozen and returned to the account of the task issuer; the task distribution manager is used for a distributor of a computing task to send the computing task, and specifies the range of available participants of the computing task, and any person can participate in the task if the range is not specified as an open task, only the personnel in the list can participate in the computation of the task after the specification, and the task content is encrypted by using a participant key at the moment for a non-public task, and only the participant of the task can decrypt and compute and submit the task result; the task result manager is used for participating in the equipment computing task of the computing task, checking the task, decrypting the task and then computing the task assigned to the task, submitting the result after the result is successfully obtained, and obtaining the reward.
The system establishes an account on a blockchain through an accounting manager, a task distribution manager establishes a transaction of a calculation task, sets a task regulation and converts the transaction of the sub-task into the blockchain transaction; the task distribution manager manages the range of the participants, signs the transaction, submits the transaction to a block chain, and nodes on the block chain receive the transaction and process the transaction; the participator inquires a calculation task list sent to the participator on the chain through the task result manager, obtains a task calculation result, generates a transaction for submitting the task result, fills the task result into the transaction, converts the transaction into a block chain transaction, signs the transaction, submits the transaction to the block chain, and the node on the block chain receives the transaction to start the transaction; and obtaining the calculation type, returning the calculation result to the task manager, and using the freezing manager and the unfreezing manager to obtain corresponding assets to complete the calculation task and the transaction.
Further, the accounting manager comprises an accounting list module, an accounting query module and an accounting interface module;
the accounting list module is used for storing accounting of calculation task participants, wherein the participants comprise a task distributor and a task calculator, and account information is newly added or updated when the two parties join in a calculation task;
the accounting inquiry module is used for inquiring accounting;
the accounting interface module is used for providing an interface for interaction between the inside and the outside of the accounting manager, and is an entrance for providing accounting information service to the outside.
Further, the freezing manager comprises an account freezing module and a list freezing module;
the account freezing module is used for managing the information of the current frozen accounts, including which task of which calculation task distributor is frozen and the number of the frozen rewards, and the frozen accounts and the available accounts of the calculation task distributor are two completely independent accounts;
the freezing list module is used for storing the information of the freezing account.
Further, the unfreezing manager comprises an unfreezing execution module and an accounting return module;
the unfreezing execution module is used for unfreezing the account of the calculation task issuer, informing the accounting return module to return to the account of the participant who completes the calculation task, executing after waiting for receiving the notification of the task result manager, clearing the detail frozen number after the execution is finished, updating the frozen account, and informing the accounting return module to perform corresponding operation;
the accounting return module is used for unfreezing the assets with the quantity specified by the unfreezing execution module to a specified account, and determining whether the specified account is a task calculator account or a task distributor account or other specific accounts according to rules during task distribution.
Further, the task distribution manager comprises a task information module, a participation rule module, a task sending module and a task checking module;
the task information module is used for releasing task information on a current chain so that other participants in the network can see the calculation task and participate in task calculation in real time;
the participation rule module is used for defining specific rules of the task, and comprises a calculation type required by the calculation task, wherein the calculation type supports CPU calculation, GPU calculation and AI calculation, and a range of participants in which the calculation task can participate, the participants are addresses of linked accounts, and can participate in the calculation task when the range is not specified;
the task distribution module is used for sending the computing tasks created by the participants to the network, and for the computing tasks which only allow the specific users to participate, the users can send the computing tasks to the participants through the task sending module, so that the participants can directly participate in the computing tasks;
and the task checking module is used for checking the distributed tasks.
Further, the task result manager comprises a history submission module, a result verification module, a submission result module and a reward execution module;
the history submitting module is used for recording and inquiring the recording information of the result calculated by other people of the current task and the condition that the result is adopted historically by the current participant in the calculation task;
the result checking module is used for checking the calculation result according to a checking rule set when the calculation task is issued, the checking rule is executed by a task initiator and is compiled by codes, the execution process can only be run once without circulating statements, and the calculation result is correct when the checking result returns to be true;
the result submitting module is used for submitting the own calculation result to the blockchain network by the calculator of the task, wherein only the first participant who submits the correct calculation result can obtain the reward, and the task results submitted by other people are discarded by the network;
the reward execution module is used for informing the unfreezing manager to distribute the reward after the submitted result of the participant is verified, wherein the distribution is a one-time distribution and is only distributed to the first submitter which is processed to obtain the correct result.
A block chain-based ground computing method comprises the steps of distributing a computing task, submitting the result of the computing task and obtaining rewards:
s1, distributing a computing task
S11, creating an account on the blockchain through the accounting manager, wherein the account obtains an asset, the task distribution manager creates a transaction of a blank distribution calculation task, sets a task regulation, converts the transaction of the branch task into the blockchain transaction, checks whether the participated calculation range is larger than zero, converts the participated calculation range into S12, and ends the task when the participated calculation range is smaller than zero;
s12, extracting the participant public key through the task distribution manager, encrypting the calculation task by using the participant public key, filling the encrypted calculation task into the calculation task of the transaction, and ending the participant range processing;
s13, signing the transaction through the task distribution manager, submitting the transaction to a block chain, receiving the transaction by a node on the block chain, and processing the transaction;
s2, submitting the calculation task result and obtaining the reward
S21, inquiring the list of my calculation tasks sent to the chain through the task result manager, inquiring calculation tasks without a specified range on the chain, selecting a calculation task which is not processed by others, decrypting the content of the calculation task, starting to execute the calculation task, obtaining a task calculation result, generating a transaction for submitting the task result, filling the task result into the transaction, converting the transaction into a block chain transaction, signing the transaction, submitting the transaction to the block chain, receiving the transaction by nodes on the block chain, and starting the transaction;
s22, verifying the validity of the transaction through the task result manager, checking whether the calculation task is still within the effective height of submitting the result, checking whether the calculation task is not processed by other people, and discarding the transaction if any item is not checked to be passed; when the check is passed, the calculation type is obtained through the task result manager, whether the calculation type is a quota calculation task is checked, the result check logic is extracted, whether the result submitted by the user meets the check logic is verified, if the result does not meet the check logic, the transaction is discarded, and if the result meets the check logic, the result is adopted to process the transaction;
s23 the task result manager waits for the block height to reach the end height of the calculation task, when the freezing manager detects that the block height reaches the end height of the calculation task, the freezing manager starts to enter the residual asset returning operation, the unfreezing manager checks whether the balance of the calculation task is larger than 0, if not, the unfreezing processing is skipped, if yes, the assets of the amount of the residual amount of the calculation task are sent to the account of the calculation task issuer, the amount of the assets are sent to the account of the calculation task issuer, and the account freezing of the calculation task is finished; at this time, the task result manager finishes the distribution of the calculation task and finishes one time of calculation task result submission.
Further, the task specification of S11 includes setting bonus asset type, bonus amount, calculation type, range of participators, calculating task ending height, and task result check code.
Further, the transaction processing step of S13 is:
s131, verifying the validity of the transaction through the task distribution manager;
s132, checking whether the initiator of the transaction holds the assets through the accounting manager, and checking whether the initiator of the transaction holds sufficient assets;
s133, checking whether the ending height of the calculation task exceeds the maximum waiting height of the block chain through the task distribution manager, checking whether the ending height of the calculation task is higher than the current height, checking whether the type range of the calculation task is within the support range of the current block chain, and checking whether the asset number of the calculation task is greater than zero; discarding the transaction if any of the checks fails; when the checking is passed, starting to process the account through the task distribution manager, and paying down a specified number of assets in the calculation task distribution transaction from the calculation task distributor account through the accounting manager;
s134, the assets with the account-setting quantity are uploaded to a freezing account through the freezing manager, the calculation task to which the freezing belongs is recorded in the freezing detail, and the freezing operation is completed;
s135, the task distribution manager stores the frozen transaction information into a local processed transaction list, and creates a new calculation task again to complete transaction processing.
Further, the adopted processing flow of the result of S22 is as follows:
s221 the accounting manager starts to process the accounting;
s222, the unfreezing manager unloads a specified amount of assets from the computation task distributor frozen account;
s223, the accounting manager accounts the appointed quantity of assets for the calculation task result submitter, the accounting manager completes accounting processing, and the task result manager stores the transaction submitting the calculation task result into a processed transaction list to complete transaction processing.
Compared with the prior art, the distributed computing method and the distributed computing system have the advantages that the distributed computing effect that the computing power monopoly cannot be caused by center removal is achieved, and the problem that the risk of a single main body is overlarge when cloud computing is developed to be in an ultra-large scale is solved.
Drawings
FIG. 1 is a block chain-based composition diagram of a local computing system according to the present invention
FIG. 2 is a schematic diagram of the accounting manager according to the present invention;
FIG. 3 is a schematic diagram of the components of the freeze manager of the present invention;
FIG. 4 is a schematic diagram of the thawing manager of the present invention;
FIG. 5 is a schematic diagram of the task distribution manager according to the present invention;
FIG. 6 is a schematic diagram of the task result manager according to the present invention;
FIG. 7 is a flow chart of a block chain-based ground computing method according to the present invention;
FIG. 8 is a schematic flow chart of the transaction processing of S13 according to the present invention;
FIG. 9 is a flowchart illustrating the process of adopting the result of S22 according to the present invention;
wherein: 100 an accounting manager; 200 freezing manager, 300 unfreezing manager, 400 task distribution manager and 500 task result manager; 101, an accounting list module, 102, an accounting inquiry module and 103, an accounting interface module; a 201 account freezing module and a 202 inventory freezing module; a 301 unfreezing execution module and a 302 accounting return module; a 401 task information module, a 402 participation rule module, a 403 task sending module and a 404 task checking module; 501 history submission module, 502 result verification module, 503 submission result module, 504 reward execution module.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples. It should be noted that the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, a block chain-based local computing system includes an accounting manager 100, a freezing manager 200, a unfreezing manager 300, a task distribution manager 400, a task result manager 500; the accounting manager 100 is used for managing the asset accounts of the participants of the current computing task, wherein the asset held by the user is managed in the asset accounts, the asset is used as the basis for freezing and unfreezing when the following tasks are released and completed, and the asset is used for participating in the issuance of the bonus participating in the computing task; the freezing manager 200 is used for managing freezing information of the user account, the full amount of the prize money completed by the task is frozen on the chain when the task distributor distributes the calculation task, which task the freezing is from is listed in the freezing information, and the longest freezing time is specified by the distributor of the task but cannot exceed the maximum freezing time on the chain; the unfreezing manager 300 is used for performing unfreezing operation of the account, after the calculation is completed and verification is passed, the bonus can be unfrozen to the first user who completes the calculation, when the first user who completes the unfreezing operation is completed, other users who complete the calculation cannot obtain the bonus, and when the calculation task waiting result is over, the task calculator does not complete the calculation, the frozen bonus can be unfrozen and returned to the account of the account issuer; the task distribution manager 400 is used for a distributor of a computing task to distribute the computing task, and specifies a scope of available participants of the computing task, and if the scope is not specified, the computing task is an open task, and any person can participate in the task, only the personnel in the list can participate in the computing of the task after the specification, and the task content is encrypted by using a participant key for a non-public task at the moment, and only the participants of the task can decrypt and compute and submit the task result; the task result manager 500 is used for participating in the device calculation task of the calculation task, verifying the task, decrypting the task and calculating the task assigned to the task, submitting the result after the result is successfully obtained, and obtaining the reward.
The system creates accounts on the blockchain through the accounting manager 100, the task distribution manager 400 creates transactions of calculation tasks, sets task regulations and converts the transactions of the calculation tasks into blockchain transactions; the task distribution manager 400 manages the scope of the participants, signs the transaction, submits the transaction to the blockchain, and the nodes on the blockchain receive the transaction and process the transaction; the participator inquires a calculation task list sent to my in the chain through the task result manager 500, obtains a task calculation result, generates a transaction for submitting the task result, fills the task result into the transaction, converts the transaction into a block chain transaction, signs the transaction, submits the transaction to a block chain, and the node on the block chain receives the transaction to start the transaction; and obtaining the calculation type, returning the calculation result to the task manager, and using the freezing manager 200 and the unfreezing manager 300 to obtain the corresponding asset to complete the calculation task and the transaction.
As shown in fig. 2, the accounting manager 100 includes an accounting list module 101, an accounting query module 102, and an accounting interface module 103;
the accounting list module 101 is configured to store accounting of calculation task participants, where the participants include a task distributor and a task calculator, and when both parties join in a calculation task, account information is added or updated;
the accounting query module 102 is configured to query an accounting; the system is used for inquiring a type of accounting according to specific conditions, such as a red packet issuer or a red packet robber, which is the basis for providing accounting information service for other modules;
the accounting interface module 103 is used for providing an interface for interaction between the inside and the outside of the accounting manager, and is an entry for providing an accounting information service to the outside.
The freeze manager 200, as shown in FIG. 3, includes a freeze accounts module 201, a freeze inventory module 202;
the account freezing module 201 is used for managing information of current frozen accounts, including which task of which calculation task distributor is frozen and what is the freezing reward, and the available accounts of the frozen accounts and the calculation task distributor are two completely independent accounts;
the frozen list module 202 is used for storing information of frozen accounts.
As shown in fig. 4, the thawing manager 300 includes a thawing execution module 301, an accounting return module 302;
the unfreezing execution module 301 is configured to unfreeze an account of a calculation task issuer, notify the accounting return module to return to a participant account where a calculation task is completed, execute the calculation task after waiting for receiving a notification from the task result manager, clear the detail frozen number after the execution is finished, update the frozen account, and notify the accounting return module to perform a corresponding operation;
the accounting return module 302 is used for unfreezing the assets with the quantity specified by the unfreezing execution module to a specified account, and the specified account is determined to be a task calculator account or a task distributor account or other specific accounts according to rules when tasks are distributed.
As shown in fig. 5, the task distribution manager 400 includes a task information module 401, a participation rule module 402, a task sending module 403, and a task checking module 404;
the task information module 401 is configured to publish task information on a current link, so that other participants in a network can see a computing task and participate in task computing in real time;
the participation rule module 402 is configured to define specific rules of the task, including a calculation type required by the calculation task, where the calculation type supports CPU calculation, GPU calculation, AI calculation, and a range of participants in which the calculation task can participate, and the participant is an address of a chain account, and any person can participate when the range is not specified, and after the range of the participants is specified, the calculation task is encrypted by using a key of a person in the specified range when the calculation task is specified, and only the participant can decrypt the calculation task and submit a calculation result by using its own private key;
the task distribution module 403 is configured to send the computing task that has been created by the participant to the network, and for the computing task that only allows a specific user to participate, the user may send the computing task to the participant through the task sending module, so that the participant may directly participate in the computing task;
the task checking module 404 is configured to check the distributed task.
As shown in FIG. 6, the task results manager 500 includes a history submission module 501, a results verification module 502, a submission results module 503, and a reward execution module 504;
the history submitting module 501 is used for recording and inquiring the recording information of the result calculated by other people of the current task and the condition that the result is adopted historically by the current participant in the calculation task;
the result verification module 502 verifies the calculation result according to the verification rule set when the calculation task is issued, the verification rule is executed by the task initiator, the rule is compiled by codes, the execution process can only be run once, no loop statement exists, and the calculation result is correct when the verification result returns to true;
the result submitting module 503 is used for the task calculator to submit its own calculation result to the blockchain network, where only the first participant who submits the correct calculation result can obtain the reward, and the task results submitted by other people will be discarded by the network;
the reward enforcement module 504 is configured to notify the thaw manager to issue a reward after the participant's submitted results are verified, where the issuance is a one-time issuance issued only to the first submitter that processed the correct results.
As shown in fig. 7-9, a blockchain based ground computing method includes the steps of distributing a computing task and submitting the results of the computing task and obtaining rewards:
s1, distributing a computing task
S11, creating an account on the block chain through the accounting manager, wherein the account obtains an asset, the task distribution manager creates a transaction of a blank distribution calculation task, and sets a task regulation, wherein the task regulation comprises the set bonus asset type, bonus amount, calculation type, range of a calculator, calculation task ending height and task result check code; converting the transaction of the sub-tasks into block chain transaction, checking whether the participated calculation range is larger than zero or not, and converting into the block chain transaction when the participated calculation range is larger than zero
S12, ending the task when the value is less than or equal to zero;
s12, extracting the participant public key through the task distribution manager, encrypting the calculation task by using the participant public key, filling the encrypted calculation task into the calculation task of the transaction, and ending the participant range processing;
s13, signing the transaction through the task distribution manager, submitting the transaction to a block chain, receiving the transaction by a node on the block chain, and processing the transaction;
the specific steps of S13 are as follows: s131, verifying the validity of the transaction through the task distribution manager; s132, checking whether the initiator of the transaction holds the asset through the account manager, and checking whether the initiator of the transaction holds enough assets; s133, checking whether the ending height of the calculation task exceeds the maximum waiting height of the block chain through the task distribution manager, checking whether the ending height of the calculation task is higher than the current height, checking whether the type range of the calculation task is within the support range of the current block chain, and checking whether the asset number of the calculation task is greater than zero; discarding the transaction if any of the checks fails; when the checking is passed, starting to process the account through the task distribution manager, and issuing accounts of the assets with the specified quantity in the calculation task distribution transaction from the account of the calculation task distributor through the accounting manager; s134, the resources with the account release amount are uploaded to the freezing account through the freezing manager, the calculation task to which the freezing belongs is recorded in the freezing detail, and the freezing operation is completed; s135, the task distribution manager stores the frozen transaction information into a local processed transaction list, and creates a new calculation task again to complete transaction processing;
s2, submitting the calculation task result and obtaining the reward
S21, inquiring the list of my calculation tasks sent to the chain through the task result manager, inquiring calculation tasks without a specified range on the chain, selecting a calculation task which is not processed by others, decrypting the content of the calculation task, starting to execute the calculation task, obtaining a task calculation result, generating a transaction for submitting the task result, filling the task result into the transaction, converting the transaction into a block chain transaction, signing the transaction, submitting the transaction to the block chain, receiving the transaction by nodes on the block chain, and starting the transaction;
s22, verifying the validity of the transaction through the task result manager, checking whether the calculation task is still within the effective height of submitting the result, checking whether the calculation task is not processed by other people, and discarding the transaction if any item is not checked to be passed; when the check is passed, the calculation type is obtained through the task result manager, whether the calculation type is a quota calculation task is checked, the result check logic is extracted, whether the result submitted by the user meets the check logic is verified, if the result does not meet the check logic, the transaction is discarded, and if the result meets the check logic, the result is adopted to process the transaction; the specific transaction flow is as follows: s221, the account manager starts to process accounts; s222, the unfreezing manager unloads a specified amount of assets from the computation task distributor frozen account; s223, the accounting manager accounts the appointed quantity of assets for the calculation task result submitter, the accounting manager completes account processing, and the task result manager stores the transaction submitting the calculation task result into a processed transaction list to complete transaction processing;
s23 the task result manager waits for the block height to reach the end height of the calculation task, when the freezing manager detects that the block height reaches the end height of the calculation task, the freezing manager starts to enter the residual asset returning operation, the unfreezing manager checks whether the balance of the calculation task is larger than 0, if not, the unfreezing processing is skipped, if yes, the assets of the amount of the residual amount of the calculation task are sent to the account of the calculation task issuer, the amount of the assets are sent to the account of the calculation task issuer, and the account freezing of the calculation task is finished; at this time, the task result manager finishes the distribution of the calculation task and finishes one time of calculation task result submission.
The above-mentioned embodiments are only preferred embodiments of the present invention, and do not limit the technical scope of the present invention, so that the changes and modifications made by the claims and the specification of the present invention should fall within the scope of the present invention.

Claims (10)

1. A block chain-based land computing system comprises an accounting manager, a freezing manager, a unfreezing manager, a task distribution manager and a task result manager;
the accounting manager is used for managing asset accounts of participants of the current computing task, assets held by a user are managed in the asset accounts, the assets serve as a basis for freezing and unfreezing when a subsequent task is released and completed, and the assets are used for participating in issuing bonus points participating in the computing task;
the freezing manager is used for managing freezing information of the user account, the prize money completed by the task is frozen on the chain in full when the task distributor distributes the calculation task, which task the freezing comes from is listed in the freezing information, and the longest freezing time is specified by the distributor of the task but cannot exceed the maximum freezing time on the chain;
the unfreezing manager is used for executing unfreezing operation of the account, after the calculation is completed and verification is passed, the bonus can be unfrozen to the first user who completes the calculation, when the first user who completes the unfreezing is completed, other users who complete the calculation cannot obtain the bonus, when the calculation is not completed by the task calculator when the calculation task waiting result is overtime, the frozen bonus can be unfrozen and returned to the account of the task issuer;
the task distribution manager is used for a distributor of a computing task to distribute the computing task, and specifies the range of participants of the computing task, if the range is not specified, the computing task is an open task, and any person can participate in the task, only the personnel in the list can participate in the computing of the task after the specification, the task content is encrypted by using a participant key for the non-public task, and only the participants of the task can decrypt and compute and submit the task result;
the task result manager is used for participating in the equipment computing task of the computing task, checking the task, decrypting the task and then computing the task assigned to the task, submitting the result after the result is successfully obtained, and obtaining the reward.
The system establishes an account on a blockchain through an accounting manager, a task distribution manager establishes a transaction of a calculation task, sets a task regulation and converts the transaction of the sub-task into the blockchain transaction; the task distribution manager manages the range of the participants, signs the transaction, submits the transaction to a block chain, and nodes on the block chain receive the transaction and process the transaction; the participator inquires a calculation task list sent to the participator on the chain through the task result manager, obtains a task calculation result, generates a transaction for submitting the task result, fills the task result into the transaction, converts the transaction into a block chain transaction, signs the transaction, submits the transaction to the block chain, and a node on the block chain receives the transaction to start the transaction; and obtaining the calculation type, returning the calculation result to the task manager, and obtaining corresponding assets by using the freezing manager and the unfreezing manager to complete the calculation task and the transaction.
2. The blockchain-based ground computing system of claim 1, wherein: the accounting manager comprises an accounting list module, an accounting query module and an accounting interface module;
the accounting list module is used for storing accounting of calculation task participants, wherein the participants comprise a task distributor and a task calculator, and account information is newly added or updated when the two parties join in a calculation task;
the accounting inquiry module is used for inquiring accounting;
the accounting interface module is used for providing an interface for interaction between the inside and the outside of the accounting manager, and is an inlet for providing accounting information service to the outside.
3. The blockchain-based ground computing system of claim 1, wherein: the freezing manager comprises an account freezing module and a list freezing module;
the account freezing module is used for managing the information of the current frozen accounts, including which task of which calculation task distributor is frozen and the number of the frozen rewards, and the frozen accounts and the available accounts of the calculation task distributor are two completely independent accounts;
the freezing list module is used for storing the information of the freezing account.
4. The blockchain-based ground computing system of claim 1, wherein: the unfreezing manager comprises an unfreezing execution module and an account return module;
the unfreezing execution module is used for unfreezing the account of the calculation task issuer, informing the accounting return module to return to the account of the participant who completes the calculation task, executing after waiting for receiving the notification of the task result manager, clearing the detail frozen number after the execution is finished, updating the frozen account, and informing the accounting return module to perform corresponding operation;
the accounting return module is used for unfreezing the assets with the quantity specified by the unfreezing execution module to a specified account, and determining whether the specified account is a task calculator account or a task distributor account or other specific accounts according to rules during task distribution.
5. The blockchain-based ground computing system of claim 1, wherein: the task distribution manager comprises a task information module, a participation rule module, a task sending module and a task checking module;
the task information module is used for releasing task information on a current chain so that other participants in the network can see the calculation task and participate in task calculation in real time;
the participation rule module is used for defining specific rules of the task, and comprises a calculation type required by the calculation task, wherein the calculation type supports CPU calculation, GPU calculation and AI calculation, and a range of participants in which the calculation task can participate, the participants are addresses of linked accounts, and can participate in the calculation task when the range is not specified;
the task distribution module is used for sending the computing task which is created by the participant to the network, and for the computing task which only allows a specific user to participate, the user can send the computing task to the participant through the task sending module, so that the participant can directly participate in the computing task;
and the task checking module is used for checking the distributed tasks.
6. The blockchain-based ground computing system of claim 1, wherein: the task result manager comprises a history submission module, a result verification module, a submission result module and a reward execution module;
the history submitting module is used for recording and inquiring the recording information of the result calculated by other people of the current task and the condition that the result is adopted historically by the current participant in the calculation task;
the result checking module is used for checking the calculation result according to a checking rule set when the calculation task is issued, the checking rule is executed by a task initiator and is compiled by codes, the execution process can only be run once without circulating statements, and the calculation result is correct when the checking result returns to be true;
the result submitting module is used for submitting the own calculation result to the blockchain network by the calculator of the task, wherein only the first participant who submits the correct calculation result can obtain the reward, and the task results submitted by other people are discarded by the network;
the reward execution module is used for informing the unfreezing manager to issue the reward after the submitted result of the participant is verified, wherein the issuance is a one-time issuance and only issued to the first submitter which is processed to have the correct result.
7. A block chain-based ground computing method comprises the steps of distributing a computing task, submitting the result of the computing task and obtaining rewards:
s1, distributing a computing task
S11, creating an account on the blockchain through the accounting manager, wherein the account obtains an asset, the task distribution manager creates a transaction of a blank distribution calculation task, sets a task regulation, converts the transaction of the branch task into the blockchain transaction, checks whether the participated calculation range is larger than zero, converts the participated calculation range into S12, and ends the task when the participated calculation range is smaller than zero;
s12, extracting the participant public key through the task distribution manager, encrypting the calculation task by using the participant public key, filling the encrypted calculation task into the calculation task of the transaction, and ending the participant range processing;
s13, signing the transaction through the task distribution manager, submitting the transaction to a block chain, receiving the transaction by a node on the block chain, and processing the transaction;
s2, submitting the calculation task result and obtaining the reward
S21, inquiring the list of my calculation tasks sent to the chain through the task result manager, inquiring calculation tasks without a specified range on the chain, selecting a calculation task which is not processed by others, decrypting the content of the calculation task, starting to execute the calculation task, obtaining the calculation result of the task, generating a transaction for submitting the result of the task, filling the result of the task into the transaction, converting the transaction into a block chain transaction, signing the transaction, submitting the transaction to the block chain, receiving the transaction by nodes on the block chain, and starting the transaction;
s22, verifying the validity of the transaction through the task result manager, checking whether the calculation task is still within the effective height capable of submitting the result, checking whether the calculation task is not processed by other people, and discarding the transaction if any item is not checked to be passed; when the checking is passed, the calculation type is obtained through the task result manager, whether the calculation type is a quota calculation task is checked, result check logic is extracted, whether the result submitted by a user meets the check logic is verified, if the result does not meet the check logic, the transaction is discarded, if the result meets the check logic, a result adopted processing flow is entered, and transaction processing is completed;
s23 the task result manager waits for the block height to reach the end height of the calculation task, when the freezing manager detects the height, the freezing manager starts to enter the residual asset returning operation, the unfreezing manager checks whether the balance of the calculation task is larger than 0, if not, the unfreezing processing is skipped, if yes, the assets of the amount of the residual amount of the calculation task are sent to the account of the calculation task issuer, the accounts of the calculation task are checked; at this time, the task result manager finishes the distribution of the calculation task and finishes one time of calculation task result submission.
8. The blockchain-based ground computing method according to claim 7, wherein the task specification of S11 includes setting of bonus asset type, bonus amount, computing type, range of available computing persons, computing task ending height, and task result check code.
9. The blockchain-based ground computing method according to claim 7, wherein the transaction processing step of S13 is:
s131, verifying the validity of the transaction through the task distribution manager;
s132, checking whether the initiator of the transaction holds the asset through the accounting manager, and checking whether the initiator of the transaction holds enough assets;
s133, checking whether the ending height of the calculation task exceeds the maximum waiting height of the block chain through the task distribution manager, checking whether the ending height of the calculation task is higher than the current height, checking whether the type range of the calculation task is in the current block chain support range, and checking whether the asset number of the calculation task is larger than zero; discarding the transaction if any of the checks fails; when the checking is passed, starting to process the account through the task distribution manager, and issuing accounts of the assets with the specified quantity in the calculation task distribution transaction from the account of the calculation task distributor through the accounting manager;
s134, the assets with the account-setting quantity are uploaded to a freezing account through the freezing manager, the calculation task to which the freezing belongs is recorded in the freezing detail, and the freezing operation is completed;
s135, the task distribution manager stores the frozen transaction information into a local processed transaction list, and creates a new calculation task again to complete transaction processing.
10. The blockchain-based ground computing method according to claim 7, wherein the result of S22 is adopted as a processing flow:
s221 the accounting manager starts to process the accounting;
s222, the unfreezing manager unloads a specified amount of assets from the computation task distributor frozen account;
s223, the accounting manager accounts the appointed quantity of assets for the calculation task result submitter, the accounting manager completes accounting processing, and the task result manager stores the transaction submitting the calculation task result into a processed transaction list to complete transaction processing.
CN202010163535.6A 2020-03-10 2020-03-10 Block chain-based ground computing system and method Pending CN113379417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010163535.6A CN113379417A (en) 2020-03-10 2020-03-10 Block chain-based ground computing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010163535.6A CN113379417A (en) 2020-03-10 2020-03-10 Block chain-based ground computing system and method

Publications (1)

Publication Number Publication Date
CN113379417A true CN113379417A (en) 2021-09-10

Family

ID=77569536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010163535.6A Pending CN113379417A (en) 2020-03-10 2020-03-10 Block chain-based ground computing system and method

Country Status (1)

Country Link
CN (1) CN113379417A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110585715A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Game data processing method, device, equipment and storage medium based on block chain
CN110659110A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Block chain based distributed computing method and system
CN110720102A (en) * 2017-06-09 2020-01-21 区块链控股有限公司 Block chains for general purpose computing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110720102A (en) * 2017-06-09 2020-01-21 区块链控股有限公司 Block chains for general purpose computing
CN110659110A (en) * 2018-06-28 2020-01-07 厦门本能管家科技有限公司 Block chain based distributed computing method and system
CN110585715A (en) * 2019-09-29 2019-12-20 腾讯科技(深圳)有限公司 Game data processing method, device, equipment and storage medium based on block chain

Similar Documents

Publication Publication Date Title
US10554407B1 (en) Protocols for decentralized networks
US11593321B2 (en) Systems and methods of self-administered protocols on a blockchain platform
US20190355058A1 (en) Method and apparatus for processing credit score real-time adjustment, and processing server
CN104484811B (en) It is a kind of that transaction processing method and system are put on someone's head based on mobile Internet
CN106961481B (en) Bad asset information sharing method and server based on block chain technology
CN109063049B (en) Account processing method, device, equipment and storage medium of block chain network
CN111522826A (en) Bidding transaction processing method and system based on block chain and related nodes
CN111476460B (en) Method, equipment and medium for intelligent operation scheduling of self-service equipment of bank
CN114047971B (en) Edge computing resource allocation method and device
CN109509070A (en) A kind of wisdom venue system
WO2020124199A1 (en) Method, system, and computer readable medium for transferring cryptographic tokens
CN110610421A (en) Guarantee fund management method and device under fragment framework
CN111612511A (en) Resource allocation method and device based on activity task and electronic equipment
CN110378693B (en) Distributed energy weak centralized transaction management system based on alliance block chain
CN110599370A (en) Property management method and device based on block chain and storage medium
US11245528B1 (en) Protocols for decentralized networks
CN112053146A (en) Cross-chain reward and punishment method based on anonymous service and Hash locking
CN116452334B (en) Multi-carbon transaction method and system for industrial park based on blockchain
CN113379417A (en) Block chain-based ground computing system and method
CN117094764A (en) Bank integral processing method and device
Ouaguid et al. Towards a new reward and punishment approach for blockchain-based system
US11570001B1 (en) Protocols for decentralized networks
US20220012733A1 (en) Method and system of using miner commitment to reward proofs
CN112819525A (en) Block chain based shared economic integral system
CN113888016A (en) Personalized customization system based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination