CN111209113B - Resource allocation method, device, equipment and storage medium based on intelligent contract - Google Patents

Resource allocation method, device, equipment and storage medium based on intelligent contract Download PDF

Info

Publication number
CN111209113B
CN111209113B CN201911424676.2A CN201911424676A CN111209113B CN 111209113 B CN111209113 B CN 111209113B CN 201911424676 A CN201911424676 A CN 201911424676A CN 111209113 B CN111209113 B CN 111209113B
Authority
CN
China
Prior art keywords
resource allocation
information
account
intelligent contract
block chain
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.)
Active
Application number
CN201911424676.2A
Other languages
Chinese (zh)
Other versions
CN111209113A (en
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.)
Zhuo Erzhi Lian Wuhan Research Institute Co Ltd
Original Assignee
Zhuo Erzhi Lian Wuhan Research Institute 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 Zhuo Erzhi Lian Wuhan Research Institute Co Ltd filed Critical Zhuo Erzhi Lian Wuhan Research Institute Co Ltd
Priority to CN201911424676.2A priority Critical patent/CN111209113B/en
Publication of CN111209113A publication Critical patent/CN111209113A/en
Application granted granted Critical
Publication of CN111209113B publication Critical patent/CN111209113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention relates to a resource allocation method, a device, equipment and a storage medium based on an intelligent contract, wherein after receiving a resource allocation instruction, block link point equipment can execute a corresponding intelligent contract and acquire resource allocation amount and corresponding account information output by the intelligent contract, the intelligent contract is pre-deployed on the block link point equipment, the block link point equipment sends the resource allocation amount and the account information to a resource allocation server, first resource allocation credential information corresponding to the account information and fed back by the resource allocation server is sent to a target terminal, the target terminal can send second resource allocation credential information to the resource allocation server, and if the two pieces of resource allocation credential information are matched, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block link account. The method and the device can ensure that the resource allocation scheme is accurately and effectively executed, resources can be accurately allocated to the corresponding block chain accounts, and the reliability of resource allocation is improved.

Description

Resource allocation method, device, equipment and storage medium based on intelligent contract
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for resource allocation based on an intelligent contract, a blockchain link point device, and a computer-readable storage medium.
Background
With the development of information processing technology, computer devices such as personal computers, mobile terminals, and servers are connected via a network, so that users can improve the efficiency of information processing via the computer devices, and particularly, users can allocate various resources via the computer devices connected via the network.
However, resource allocation usually involves information interaction among multiple parties, and the resource allocation scheme provided by the conventional technology is prone to situations of information asymmetry, information separation, difficulty in tracing and the like in the process of formulating the resource allocation scheme, so that the reliability of resource allocation by the technology is low.
Disclosure of Invention
In view of the above, it is necessary to provide a resource allocation method, apparatus, block link node device and computer readable storage medium based on an intelligent contract, for solving the technical problem of low reliability of resource allocation in the conventional technology.
A resource allocation method based on intelligent contracts is applied to block chain node equipment, and the method comprises the following steps:
acquiring a resource allocation instruction;
executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is deployed in the block chain node equipment in advance and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information;
sending the resource allocation amount and the account information to a resource allocation server;
receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server;
sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, so that the target terminal sends second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information matches the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account; and the target block chain account is a block chain account corresponding to the block chain account identification information.
An apparatus for resource allocation based on intelligent contracts, applied to a blockchain node device, the apparatus comprising:
the instruction acquisition module is used for acquiring a resource allocation instruction;
the contract execution module is used for executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is deployed in the block chain node equipment in advance and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information;
the information sending module is used for sending the resource allocation amount and the account information to a resource allocation server;
the information receiving module is used for receiving first resource allocation voucher information which is sent by the resource allocation server and corresponds to the account information;
a resource allocation module, configured to send the first resource allocation credential information to a target terminal corresponding to the terminal identification information, where the target terminal sends second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information matches the first resource allocation credential information, the resource allocation server allocates a resource corresponding to the resource allocation amount to a target block link account; and the target block chain account is a block chain account corresponding to the block chain account identification information.
A block link dot device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring a resource allocation instruction; executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is pre-deployed in the block link point device and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information; sending the resource allocation amount and the account information to a resource allocation server; receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server; sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, wherein the target terminal is used for sending second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information is matched with the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account; and the target block chain account is a block chain account corresponding to the block chain account identification information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a resource allocation instruction; executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is deployed in the block chain node equipment in advance and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information; sending the resource allocation amount and the account information to a resource allocation server; receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server; sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, wherein the target terminal is used for sending second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information is matched with the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account; and the target block chain account is the block chain account corresponding to the block chain account identification information.
According to the resource allocation method, the device, the equipment and the storage medium based on the intelligent contract, after receiving a resource allocation instruction, the block link point equipment can execute a corresponding intelligent contract and obtain the resource allocation amount output by the intelligent contract and corresponding account information, the intelligent contract is pre-deployed on the block link point equipment, so that the resource allocation amount and the account information corresponding to the resource allocation instruction can be ensured to be accurate and effective, then the block link node equipment sends the resource allocation amount and the account information to the resource allocation server and sends first resource allocation certificate information corresponding to the account information and fed back by the resource allocation server to the target terminal, the target terminal can send second resource allocation certificate information to the resource allocation server, if the two pieces of resource allocation certificate information are matched, the resource allocation server allocates resources corresponding to the resource allocation amount to the target block link account, the resource allocation scheme is ensured to be accurately and effectively executed by combining a block link technology and an intelligent contract, and the comparison and matching of the certificate information are used for ensuring that the corresponding resources can be accurately allocated to the corresponding account, and the reliability of the resource allocation chain is improved.
Drawings
FIG. 1 is a diagram of an application environment for a method for intelligent contract-based resource allocation in one embodiment;
FIG. 2 is a schematic flow diagram of a method for intelligent contract-based resource allocation in one embodiment;
FIG. 3 is a flow chart illustrating a resource allocation method based on intelligent contracts for an application example;
FIG. 4 is a block diagram of an apparatus for allocating resources based on smart contracts in one embodiment;
fig. 5 is an internal structural view of a block link point device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The resource allocation method based on the intelligent contract provided by the present application may be applied to an application environment shown in fig. 1, where fig. 1 is an application environment diagram of the resource allocation method based on the intelligent contract in an embodiment, the application environment may include a block-link point device 110, a resource allocation server 120, and a target terminal 130, the block-link point device 110 may communicate with the resource allocation server 120 and the target terminal 130 through a network, the resource allocation server 120 may also communicate with the target terminal 130 through the network, and the block-link point device 110, the resource allocation server 120, and the target terminal 130 may also be connected to the same block chain.
Specifically, the block link point device 110 obtains a resource allocation instruction, and executes a corresponding intelligent contract according to the resource allocation instruction, so as to obtain a resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the smart contract may be pre-deployed on a block chain where the block-link point device 110 is located, and may be executed by the block-link point device 110. The intelligent contract is mainly used for determining a resource allocation amount and account information according to a resource allocation instruction received by the blockchain device 110, where the account information may include terminal identification information and blockchain account identification information. Then, the block-link point device 110 may send the obtained resource allocation amount and account information to the resource allocation server 120, the resource allocation server 120 may generate corresponding first resource allocation credential information according to the account information, and feed back the first resource allocation credential information to the block-link point device 110, the block-link point device 110 receives the first resource allocation credential information corresponding to the account information sent by the resource allocation server 120 and sends the first resource allocation credential information to the target terminal 130 corresponding to the terminal identification information, and the target terminal 130 sends second resource allocation credential information to the resource allocation server 120, so that when the second resource allocation credential information matches the first resource allocation credential information, the resource allocation server 120 allocates the resource corresponding to the resource allocation amount to a target block chain account, where the target block chain account is a block chain account corresponding to the block chain account identification information, so that after receiving the resource allocation instruction, the corresponding resource is allocated to the corresponding block chain account.
The block-link node device 110 and the target terminal 130 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the resource allocation server 120 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, fig. 2 is a flowchart illustrating a resource allocation method based on a smart contract in an embodiment, which is described by taking the method as an example for being applied to the block-linked node device 110 in fig. 1, and includes the following steps:
in step S201, a resource allocation instruction is acquired.
In this step, the blockchain link point device 110 may obtain a resource allocation instruction, which may be used to transfer the corresponding resource to some accounts of the blockchain. The resource allocation instruction may be a resource allocation instruction triggered when a certain condition is met, taking a commodity transaction scenario as an example, when a commodity is traded (that is, a transaction event is generated), transaction information corresponding to a barcode of the commodity may be acquired by a barcode scanning gun of a supermarket, the transaction information may be recorded by a cashier system, and the block link node device 110 may generate the resource allocation instruction according to the transaction information after detecting that the transaction event is triggered. The transaction information may also be synchronously uploaded to the blockchain for storage after being acquired by the blockchain node device 110, so as to implement resource allocation traceability. In addition to triggering generation of a resource allocation instruction in the form of detection of an associated specific event (such as the above-mentioned transaction event), the resource allocation instruction may also be triggered to be generated at a specific time, such as (each of 8 am, 20 pm, and 00 pm triggers a resource allocation instruction).
Step S202, executing the corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and the account information corresponding to the resource allocation amount.
In this step, after acquiring the resource allocation command, the block link point device 110 may execute the corresponding intelligent contract according to the resource allocation command. The intelligent contracts may be pre-deployed in the blockchain and automatically executed on the blockchain node device 110, and the intelligent contracts deployed in the blockchain may include multiple intelligent contracts, where the intelligent contracts are executed when different resource allocation instructions are received and correspond to different resource allocation instructions. Taking a commodity transaction scenario as an example, different commodities can generate different transaction information when being transacted, and the block link node device 110 can generate corresponding resource allocation instructions according to the different transaction information, so as to execute different intelligent contracts according to the different resource allocation instructions. Specifically, the intelligent contract is mainly used for determining the resource allocation amount and the account information according to the resource allocation instruction, that is, for determining different allocation proportions and account information corresponding to the different allocation proportions according to the specific resource allocation instruction. The account information may include terminal identification information and blockchain account identification information, where the terminal identification information is used to identify the target terminal 130 shown in fig. 1, and the blockchain account identification information is used to identify a corresponding account on the blockchain.
Step S203, sending the resource allocation amount and the account information to a resource allocation server;
in this step, the blockchain link point device 110 needs to send the resource allocation amount and the account information (including the blockchain account information and the terminal identification information) to the resource allocation server 120. After receiving the resource allocation amount and the account information, the resource allocation server 120 may divide the stored resources to be allocated according to the resource allocation amount, and obtain the resources corresponding to the resource allocation amount. Meanwhile, the resource allocation server 120 further generates first resource allocation credential information according to the terminal identification information in the account information, where the first resource allocation credential information is mainly used to verify the identity of the target terminal 130, so as to verify that the user requesting resource allocation through the target terminal 130 is the same user as the blockchain account corresponding to the blockchain account identification information, and in a specific implementation, the first resource allocation credential information may be a short message credential code, question and answer verification information, and the like.
Step S204, receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server.
The block link node device 110 receives the first resource allocation credential information corresponding to the account information fed back by the resource allocation server 120.
Step S205, sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information.
In this step, after receiving the first resource allocation credential information, the blockchain node device 110 sends the first resource allocation credential information to the target terminal 130 corresponding to the terminal identification information, so that the target terminal 130 may generate corresponding second resource allocation credential information according to the first resource allocation credential information, and send the second resource allocation credential information to the resource allocation server 120, so as to request the resource allocation server 120 to send the corresponding resource to the target blockchain account. Specifically, when the first resource allocation credential information matches the second resource allocation credential information, the resource allocation server 120 may determine that the user requesting resource allocation through the target terminal 130 is the same user as the blockchain account corresponding to the blockchain account identification information, so that the resource corresponding to the resource allocation amount may be allocated to the target blockchain account, where the target blockchain account is the blockchain account corresponding to the blockchain account identification information, and complete the process of allocating the resource in a specific proportion to the corresponding blockchain account.
According to the resource allocation method based on the intelligent contract, after receiving a resource allocation instruction, a block link point device can execute a corresponding intelligent contract and acquire a resource allocation amount and corresponding account information output by the intelligent contract, the intelligent contract is pre-deployed on the block link point device, so that the resource allocation amount and the account information corresponding to the resource allocation instruction can be ensured to be accurate and effective, then the block link node device sends the resource allocation amount and the account information to a resource allocation server, first resource allocation credential information corresponding to the account information and fed back by the resource allocation server is sent to a target terminal, the target terminal can send second resource allocation credential information to the resource allocation server, if the two pieces of resource allocation credential information are matched, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block link account, accurate and effective execution of a resource allocation scheme is ensured by combining a block link technology and an intelligent contract, and the corresponding resources can be accurately allocated to the corresponding block link account by contrast matching of the credential information, and the reliability of resource allocation is improved.
In one embodiment, the method for allocating resources based on intelligent contracts may further include the following steps:
acquiring an initial intelligent contract set by an authorized blockchain account; and if the instruction number of the authorization instructions received by the block chain node point equipment is the same as the total number of the accounts of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as an intelligent contract to the block chain node point equipment.
The embodiment can set the intelligent contracts deployed on the blockchain by authorizing the blockchain accounts. Specifically, the block-link point device 110 may obtain an initial intelligent contract set by an authorized block-chain account, the authorized block-chain accounts on the block chain may include multiple authorized blocks, the authorized account initiating the initial intelligent contract may be one of the authorized accounts, and the initial intelligent contract received by the block-link point device 110 cannot be deployed first and needs to wait for authorization verification of each authorized block-chain account. The blockchain node device 110 may wait for an authorization instruction of each authorized blockchain account for the initial intelligent contract within a set time range. Each authorized block chain account can generate an authorization instruction for an initial intelligent contract and send the authorization instruction to the block chain node device 110, the block chain node device 110 receives the authorization instruction sent by each authorized block chain account within a set time range, counts the instruction number of the received authorization instruction, and if the instruction number is the same as the total number of accounts with which the account is blocked by the authorized library, deploys the initial intelligent contract as an intelligent contract on the block chain node device 110, and waits for the resource allocation instruction to be automatically triggered and executed. When the intelligent contract is deployed, authorization verification of each authorization blockchain account is required, so that the reliability of resource allocation can be further improved through the intelligent contract determined in the form.
In one embodiment, the step of obtaining the initial intelligent contract set by the authorized blockchain account may further include:
determining a candidate resource allocation scheme selected by an authorized blockchain account from a plurality of base resource allocation schemes corresponding to resources to be allocated; acquiring scheme correction information of the candidate resource allocation scheme by the authorized blockchain account; the scheme correction information is set by the authorized block chain account according to the resource allocation scene of the resource to be allocated; correcting the candidate resource allocation scheme according to the scheme correction information to obtain an initial intelligent contract; the initial intelligent contract comprises the resource allocation amount of the resource to be allocated and account information corresponding to the resource allocation amount.
The embodiment mainly provides a mode for generating the initial intelligent contract. In this embodiment, the blockchain node device 110 may first determine a candidate resource allocation scheme selected from a plurality of basic resource allocation schemes corresponding to resources to be allocated by the authorized blockchain account. The multiple basic resource allocation schemes for the resources to be allocated may be provided to each authorized blockchain account in advance, so that the authorized blockchain accounts may select one of the multiple basic resource allocation schemes as a candidate resource allocation scheme, thereby improving the efficiency of generating the initial intelligent contract, and after determining the candidate resource allocation scheme, the blockchain node device 110 may further obtain scheme modification information of the authorized blockchain accounts on the candidate resource allocation scheme, where the scheme modification information may be set by the authorized blockchain accounts according to a resource allocation scenario of the resources to be allocated, that is, a scheme modification function may be provided for the authorized blockchain accounts, so that the authorized blockchain accounts may be modified based on the candidate resource allocation scheme, and there is no need to reformulate a resource allocation scheme when the scheme does not meet actual requirements, so as to improve the efficiency of generating the intelligent contract. Then, the block-node device 110 may modify the candidate resource allocation scheme according to the scheme modification information, and further use the modified candidate resource allocation scheme as the initial intelligent contract.
In one embodiment, the executing the corresponding intelligent contract according to the resource allocation instruction in step S202 may include:
and determining the corresponding contract execution time according to the resource allocation instruction, and executing the intelligent contract if the current time is the same as the contract execution time.
In this embodiment, after receiving the resource allocation command, the block link point device 110 may determine a corresponding contract execution time according to the resource allocation command. Wherein, the contract execution time may be preset, for example, for all resource allocation instructions set to 8 m.m. or 20 m.m. 00, then if the current time is 8 m.m. or 20 m.m. 00; in addition, the contract execution time can be set according to different resource allocation instructions, so that corresponding intelligent contracts can be executed at different times, and the resource allocation is more flexible.
In one embodiment, the sending of the first resource allocation credential information to the target terminal corresponding to the terminal identification information in step S205 may be further configured to: the target terminal carries out digital signature on the first resource allocation certificate information by using a private key of the target block chain account to obtain second resource allocation certificate information and sends the second resource allocation certificate information to the resource allocation server; the second resource allocation credential information may be used for the resource allocation server to determine whether the second resource allocation credential information matches the first resource allocation credential by using the public key of the target block link account.
In this embodiment, after the block chain node device 110 sends the first resource allocation credential information to the target terminal 130, the target terminal 130 needs to perform a digital signature on the first resource allocation credential information by using a private key of the target block chain account, so as to further ensure that the user corresponding to the target terminal 130 and the user corresponding to the target block chain account belong to the same user, and ensure reliability of resource allocation. Then, the target terminal 130 needs to send the second resource allocation credential information obtained by digitally signing the first resource allocation credential information with the private key of the target block chain account to the resource allocation server 120, the resource allocation server 120 may determine whether the second resource allocation credential information matches the first resource allocation credential with the public key of the target block chain account, if the second resource allocation credential information matches the first resource allocation credential, the corresponding resource may be allocated to the target block chain account, and if the second resource allocation credential information does not match the first resource allocation credential, the resource may not be allocated to the target block chain account.
In some further embodiments, the first resource allocation credential information may include questioning information associated with resource attributes of the resource; the sending of the first resource allocation credential information to the target terminal corresponding to the terminal identification information in step S205 may be further configured to: the target terminal obtains answer information corresponding to the question information, obtains second resource allocation certificate information according to the answer information, and sends the second resource allocation certificate information to the resource allocation server, so that the resource allocation server judges whether the second resource allocation certificate information is matched with the first resource allocation certificate or not according to the answer information and the question information.
The embodiment mainly provides a mode of information question answering associated with the resource attribute so as to ensure the reliability of resource allocation. Specifically, the first resource allocation credential information generated by the resource allocation server 120 may include question information associated with a resource attribute of the resource, for example, question information associated with a resource attribute such as a resource size and a resource type of the resource, and the resource allocation server 120 may use the question information as the first resource allocation credential information. Then, the blockchain link point device 110 sends the first resource allocation credential information to the target terminal 130, the user of the target terminal 130 can answer the question information, the target terminal 130 can obtain the answer information of the question information from the user, and send the answer information as second resource allocation credential information to the resource allocation server 120, the resource allocation server 120 can compare the standard answer corresponding to the question information with the answer information, so as to determine whether the second resource allocation credential information matches the first resource allocation credential, if the answer information is the same as the standard answer, the second resource allocation credential information may be considered to match the first resource allocation credential, and the resource allocation server 120 allocates the corresponding resource to the target blockchain account, and if not, the resource allocation server 120 may not allocate the resource to the target blockchain account.
In an embodiment, the intelligent contract may be further configured to determine a corresponding resource allocation time limit according to the resource allocation instruction; the resource allocation method based on the intelligent contract further comprises the following steps:
acquiring resource allocation time limit output by an intelligent contract; and sending the resource allocation time limit to a resource allocation server.
In this embodiment, the resource allocation time limit may be preset on the intelligent contract, and different resource allocation instructions may correspond to different resource allocation time limits. The resource allocation time limit is used to indicate that, if the resource allocation server receives the second resource allocation credential information sent by the target terminal 130 within the resource allocation time limit, the resource may be allocated to the target blockchain account when the second resource allocation credential information matches the first resource allocation credential information. The resource allocation time limit may be further configured to indicate that, if the resource allocation server 130 receives the second resource allocation credential information outside the resource allocation time limit, the resource allocation server 130 may set the second resource allocation credential information as invalid credential information, and in this case, since the second resource allocation information is the invalid credential information, even though the second resource allocation information and the first resource allocation information may be matched with each other, the resource allocation server 130 may not allocate the resource to the target block chain account since the resource allocation time limit specified by the smart contract is exceeded, so as to improve the reliability of resource allocation from the viewpoint of limiting the resource extraction time.
The following describes the application of the above-mentioned resource allocation method based on intelligent contracts to online diversity scenarios. The method comprises the following steps of dividing profits into various interest relevant parties in real time after a transaction is completed, and applying a block chain to combine intelligent contracts, wherein resources can be reliably and timely distributed to various block chain accounts corresponding to the interest relevant parties, as shown in fig. 3, fig. 3 is a flow diagram of a resource distribution method of an application example based on the intelligent contracts, and the main idea of the application example is to adopt the intelligent contracts as a supporting technology, one of the characteristics of the intelligent contracts is to require to compile rules for defining the intelligent contracts before application, a dividing and lubricating mechanism is defined in the intelligent contracts, and the dividing and lubricating mechanism can be actually adjusted according to application scenes, but mainly comprises a fixed proportion distribution rule, a step-type distribution rule and an accumulative distribution rule.
The method mainly comprises the following steps:
step s1, an intelligent contract for the divided moistening is created. The intelligent contract comprises basic functions, such as functions of inquiring, calling, transferring and the like.
And step s2, setting the execution condition of the intelligent contract. Namely, the condition setting triggering the execution of the intelligent contract, including event triggering (after each transaction is completed), time triggering (each execution of 8 am and 00 pm and 20 pm every day).
And step s3, setting an execution process of the intelligent contract. When the intelligent contract is triggered to be executed, acquiring input values (transaction amount, transaction commodity type, price and quantity qualification, obtained according to commodity types, and the like) of one or more transactions, acquiring a run-out rule, acquiring right-of-interest information (account), and executing profit distribution, wherein the run-out rule can be as follows:
1. and (3) fixed proportion distribution: the profit that right beneficiary A can divide = (total transaction amount-total cost-total tax amount) × A is corresponding profit proportion, which can be expressed by a formula:
total profit P = revenue-cost-tcx
P A =P×ratio A
If a total of n beneficiaries, their profit totals no more than 100%, i.e. they share
Figure BDA0002353235310000121
The reason that it may be less than 100% is that a portion of the net profit may be cycled into business, development, or as a pool of incentives, etc., based on the negotiation of the rights beneficiary.
2. Stepwise distribution, can be
Figure BDA0002353235310000122
Or the following steps:
Figure BDA0002353235310000123
3. cumulative allocation.
According to the profit allotment C that the right beneficiary A (in the current year or month) has accumulated to gain A And (4) performing calculation.
Figure BDA0002353235310000124
Wherein the percentage and the interval of 2 and 3 can be adjusted according to the actual scene.
And step s4, the rightful persons apply the intelligent contract after passing the scheme. In principle, once the intelligent contract is compiled and run, it is troublesome to change the function, and a new intelligent contract is generally established after the intelligent contract is cancelled. The intelligent contracts are officially run online should pass consent of the interest-related parties (e.g., multiple sign-up verification) and require them to provide relevant blockchain account information in order to distribute profits to the corresponding accounts.
And step s5, automatically executing the divide-moisten intelligent contract.
In the present application example, the specific form of the profit resource may be credit, legal currency, or virtual currency. The stakeholders may differ from transaction to transaction. For example, ABC participates in the moisture distribution of commodity 1, ACD participates in the moisture distribution of commodity 2, and the block chain system can automatically perform matching according to the transaction.
The application example can realize reliable and real-time distribution of trading profit resources, and by means of the block chain and the intelligent contract technology, the profit resources are faster and more transparent among the block chain accounts corresponding to the interest parties, so that the cost of mutual information interaction is saved, and the reliability of resource distribution is improved.
It should be understood that although the steps in the flowcharts of fig. 2 to 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, fig. 4 is a block diagram of a resource allocation apparatus based on an intelligent contract according to an embodiment, and provides a resource allocation apparatus based on an intelligent contract, which is applied to a block-node point device, and includes:
an instruction obtaining module 401, configured to obtain a resource allocation instruction;
a contract execution module 402, configured to execute a corresponding intelligent contract according to the resource allocation instruction, and obtain a resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is pre-deployed in the block link point equipment and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information;
an information sending module 403, configured to send the resource allocation amount and the account information to the resource allocation server;
an information receiving module 404, configured to receive first resource allocation credential information corresponding to account information sent by a resource allocation server;
a resource allocation module 405, configured to send the first resource allocation credential information to a target terminal corresponding to the terminal identification information, and to send the second resource allocation credential information to the resource allocation server by the target terminal, so that when the second resource allocation credential information matches the first resource allocation credential information, the resource allocation server allocates the resource corresponding to the resource allocation amount to the target block chain account; and the target block chain account is the block chain account corresponding to the block chain account identification information.
In one embodiment, the apparatus may further include:
the contract generating module is used for acquiring an initial intelligent contract set by the authorized blockchain account; if the instruction number of the authorization instructions received by the block chain node point equipment is the same as the total number of the accounts of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as an intelligent contract to the block chain node point equipment; the authorization instructions are generated for an initial intelligent contract for an authorization blockchain account.
In one embodiment, the contract generation module is further configured to determine a candidate resource allocation scheme selected by the authorized blockchain account from a plurality of base resource allocation schemes corresponding to resources to be allocated; acquiring scheme correction information of the candidate resource allocation scheme by the authorized blockchain account; the scheme correction information is set by the authorized block chain account according to the resource allocation scene of the resource to be allocated; correcting the candidate resource allocation scheme according to the scheme correction information to obtain an initial intelligent contract; the initial intelligent contract comprises the resource distribution amount of the resource to be distributed and account information corresponding to the resource distribution amount.
In one embodiment, the contract execution module 402 is further configured to: determining corresponding contract execution time according to the resource allocation instruction; and if the current time is the same as the contract execution time, executing the intelligent contract.
In one embodiment, the resource allocation module 405 is further configured to: the target terminal carries out digital signature on the first resource allocation certificate information by using a private key of the target block chain account to obtain second resource allocation certificate information and sends the second resource allocation certificate information to the resource allocation server; and the second resource allocation certificate information is used for the resource allocation server to judge whether the second resource allocation certificate information is matched with the first resource allocation certificate by using the public key of the target block link account.
In one embodiment, the first resource allocation credential information comprises challenge information associated with a resource attribute of the resource; a resource allocation module 405, further configured to: the target terminal obtains answer information corresponding to the question information, obtains second resource allocation certificate information according to the answer information, and sends the second resource allocation certificate information to the resource allocation server, so that the resource allocation server judges whether the second resource allocation certificate information is matched with the first resource allocation certificate or not according to the answer information and the question information.
In one embodiment, the intelligent contract is further configured to determine a corresponding resource allocation time limit according to the resource allocation instruction; the above apparatus may further include:
the time limit processing module is used for acquiring the resource allocation time limit output by the intelligent contract; sending the resource allocation time limit to a resource allocation server; the resource allocation time limit is used for indicating that if the resource allocation server receives second resource allocation certificate information within the resource allocation time limit, the resource is allocated to the target block chain account when the second resource allocation certificate information is matched with the first resource allocation certificate information; and the resource allocation time limit is also used for indicating that if the resource allocation server receives the second resource allocation certificate information outside the resource allocation time limit, the second resource allocation certificate information is set as invalid certificate information.
For specific definition of the resource allocation device based on the intelligent contract, reference may be made to the definition of the resource allocation method based on the intelligent contract, and details are not described here. The modules in the resource allocation device based on the intelligent contract can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a block link point device is provided, and the block link point device may be a terminal or a server, and its internal structure diagram may be as shown in fig. 5, and fig. 5 is an internal structure diagram of the block link point device in one embodiment. The block link node device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the block-linked dot device is configured to provide computational and control capabilities. The memory of the block chain link point device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the block link node device is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a method of resource allocation based on an intelligent contract.
Those skilled in the art will appreciate that the structure shown in fig. 5 is a block diagram of only a portion of the structure relevant to the present teachings and does not constitute a limitation on the block chain node devices to which the present teachings are applied, and that a particular block chain node device may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a block link dot device comprising a memory having a computer program stored therein and a processor which when executing the computer program performs the steps of:
acquiring a resource allocation instruction; executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is deployed in the block chain node equipment in advance and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information; sending the resource allocation amount and the account information to a resource allocation server; receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server; sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, wherein the target terminal is used for sending second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information is matched with the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account; and the target block chain account is the block chain account corresponding to the block chain account identification information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an initial intelligent contract set by an authorized block chain account; if the instruction number of the authorization instructions received by the block chain node equipment is the same as the total account number of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as the intelligent contract to the block chain node equipment; the authorization instructions are generated by the authorization blockchain account for the initial smart contract.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a candidate resource allocation scheme selected by the grant blockchain account from a plurality of base resource allocation schemes corresponding to resources to be allocated; acquiring scheme correction information of the candidate resource allocation scheme by the authorized blockchain account; the scheme correction information is set by the authorized blockchain account according to the resource allocation scene of the resource to be allocated; correcting the candidate resource allocation scheme according to the scheme correction information to obtain the initial intelligent contract; the initial intelligent contract comprises the resource allocation amount of the resource to be allocated and account information corresponding to the resource allocation amount.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining corresponding contract execution time according to the resource allocation instruction; and if the current time is the same as the contract execution time, executing the intelligent contract.
In an embodiment, the sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information is further configured to: the target terminal carries out digital signature on the first resource allocation certificate information by using a private key of the target block chain account to obtain second resource allocation certificate information and sends the second resource allocation certificate information to the resource allocation server; the second resource allocation credential information is used for the resource allocation server to determine whether the second resource allocation credential information matches the first resource allocation credential by using the public key of the target block link account.
In one embodiment, the first resource allocation credential information comprises challenge information associated with a resource attribute of the resource; the sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information is further configured to: and the target terminal acquires answer information corresponding to the question information, acquires the second resource allocation certificate information according to the answer information, and sends the second resource allocation certificate information to the resource allocation server so that the resource allocation server judges whether the second resource allocation certificate information is matched with the first resource allocation certificate or not according to the answer information and the question information.
In one embodiment, the intelligent contract is further configured to determine a corresponding resource allocation time limit according to the resource allocation instruction; the processor, when executing the computer program, further performs the steps of:
acquiring the resource allocation time limit output by the intelligent contract; sending the resource allocation time limit to the resource allocation server; wherein the resource allocation time limit is used to indicate that, if the resource allocation server receives the second resource allocation credential information within the resource allocation time limit, the resource is to be allocated to a target block chain account when the second resource allocation credential information matches the first resource allocation credential information; the resource allocation time limit is further configured to indicate that, if the resource allocation server receives the second resource allocation credential information outside the resource allocation time limit, the second resource allocation credential information is set as invalid credential information.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
acquiring a resource allocation instruction; executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is pre-deployed in the block link point device and used for determining the resource allocation amount and the account information according to the resource allocation instruction; the account information comprises terminal identification information and block chain account identification information; sending the resource allocation amount and the account information to a resource allocation server; receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server; sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, so that the target terminal sends second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information matches the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account; and the target block chain account is a block chain account corresponding to the block chain account identification information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring an initial intelligent contract set by an authorized block chain account; if the instruction number of the authorization instructions received by the block chain node equipment is the same as the total account number of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as the intelligent contract to the block chain node equipment; the authorization instructions are generated by the authorization blockchain account for the initial intelligent contract.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a candidate resource allocation scheme selected by the grant blockchain account from a plurality of base resource allocation schemes corresponding to resources to be allocated; acquiring scheme correction information of the candidate resource allocation scheme by the authorized blockchain account; the scheme correction information is set by the authorized blockchain account according to the resource allocation scene of the resource to be allocated; correcting the candidate resource allocation scheme according to the scheme correction information to obtain the initial intelligent contract; the initial intelligent contract comprises the resource allocation amount of the resource to be allocated and account information corresponding to the resource allocation amount.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining corresponding contract execution time according to the resource allocation instruction; and if the current time is the same as the contract execution time, executing the intelligent contract.
In an embodiment, the sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information is further configured to: the target terminal carries out digital signature on the first resource allocation certificate information by using a private key of the target block chain account to obtain second resource allocation certificate information and sends the second resource allocation certificate information to the resource allocation server; the second resource allocation credential information is used for the resource allocation server to determine whether the second resource allocation credential information matches the first resource allocation credential by using the public key of the target block link account.
In one embodiment, the first resource allocation credential information comprises quiz information associated with a resource attribute of the resource; the sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information is further configured to: and the target terminal acquires answer information corresponding to the question information, acquires the second resource allocation certificate information according to the answer information and sends the second resource allocation certificate information to the resource allocation server so that the resource allocation server judges whether the second resource allocation certificate information is matched with the first resource allocation certificate or not according to the answer information and the question information.
In one embodiment, the intelligent contract is further configured to determine a corresponding resource allocation time limit according to the resource allocation instruction; the computer program when executed by the processor further realizes the steps of:
acquiring the resource allocation time limit output by the intelligent contract; sending the resource allocation time limit to the resource allocation server; wherein the resource allocation time limit is used to indicate that, if the resource allocation server receives the second resource allocation credential information within the resource allocation time limit, the resource is allocated to a target blockchain account when the second resource allocation credential information matches the first resource allocation credential information; the resource allocation time limit is further configured to indicate that, if the resource allocation server receives the second resource allocation credential information outside the resource allocation time limit, the second resource allocation credential information is set as invalid credential information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A resource allocation method based on intelligent contracts is applied to a block chain node device, and the method comprises the following steps:
acquiring a resource allocation instruction;
executing a corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation amount output by the intelligent contract and account information corresponding to the resource allocation amount; the intelligent contract is deployed in the block link point device in advance, and is used for determining the resource allocation amount and the account information according to the resource allocation instruction, specifically for acquiring the total number of resources and the account information, determining the resource allocation proportion of the account information according to the total number of the resources, and determining the resource allocation amount of the account information according to the product of the total number of the resources and the resource allocation proportion; the size of the resource allocation proportion is inversely proportional to the total number of the resources; the account information comprises terminal identification information and block chain account identification information;
sending the resource allocation amount and the account information to a resource allocation server;
receiving first resource allocation credential information corresponding to the account information sent by the resource allocation server; the first resource allocation credential information comprises questioning information associated with resource attributes of the resource;
sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, wherein the target terminal is used for sending second resource allocation credential information to the resource allocation server, so that when the second resource allocation credential information is matched with the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account, and is further used for acquiring answer information corresponding to the question information by the target terminal, obtaining the second resource allocation credential information according to the answer information, and sending the second resource allocation credential information to the resource allocation server, so that the resource allocation server judges whether the second resource allocation credential information is matched with the first resource allocation credential or not according to the answer information and the question information; and the target block chain account is the block chain account corresponding to the block chain account identification information.
2. The method of claim 1, further comprising:
acquiring an initial intelligent contract set by an authorized block chain account;
if the instruction number of the authorization instructions received by the block chain node equipment is the same as the total account number of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as the intelligent contract to the block chain node equipment; the authorization instructions are generated by the authorization blockchain account for the initial smart contract.
3. The method of claim 2, wherein obtaining an initial intelligent contract authorizing a blockchain account setting comprises:
determining a candidate resource allocation scheme selected by the grant blockchain account from a plurality of base resource allocation schemes corresponding to resources to be allocated;
acquiring scheme correction information of the candidate resource allocation scheme by the authorized blockchain account; the scheme correction information is set by the authorized blockchain account according to the resource allocation scene of the resource to be allocated;
correcting the candidate resource allocation scheme according to the scheme correction information to obtain the initial intelligent contract; the initial intelligent contract comprises the resource allocation amount of the resource to be allocated and account information corresponding to the resource allocation amount.
4. The method of claim 1, wherein executing the corresponding intelligent contract according to the resource allocation instruction comprises:
determining corresponding contract execution time according to the resource allocation instruction;
and if the current time is the same as the contract execution time, executing the intelligent contract.
5. The method of claim 1, wherein the sending the first resource allocation credential information to the target terminal corresponding to the terminal identification information is further configured to: the target terminal carries out digital signature on the first resource allocation certificate information by using a private key of the target block chain account to obtain second resource allocation certificate information and sends the second resource allocation certificate information to the resource allocation server; the second resource allocation credential information is used for the resource allocation server to determine whether the second resource allocation credential information matches the first resource allocation credential by using the public key of the target block chain account.
6. The method of claim 1, wherein the intelligent contract is further configured to determine a corresponding resource allocation time limit in accordance with the resource allocation instructions; further comprising:
acquiring the resource allocation time limit output by the intelligent contract;
sending the resource allocation time limit to the resource allocation server; the resource allocation time limit is used for indicating that if the resource allocation server receives the second resource allocation credential information within the resource allocation time limit, the resource is allocated to a target block chain account when the second resource allocation credential information is matched with the first resource allocation credential information; the resource allocation time limit is further configured to indicate that, if the resource allocation server receives the second resource allocation credential information outside the resource allocation time limit, the second resource allocation credential information is set as invalid credential information.
7. An apparatus for allocating resources based on intelligent contracts, the apparatus being applied to a blockchain node device, the apparatus comprising:
the instruction acquisition module is used for acquiring a resource allocation instruction;
the contract execution module is used for executing the corresponding intelligent contract according to the resource allocation instruction, and acquiring the resource allocation quantity output by the intelligent contract and account information corresponding to the resource allocation quantity; the intelligent contract is deployed in the block link point device in advance, and is used for determining the resource allocation amount and the account information according to the resource allocation instruction, specifically for acquiring the total number of resources and the account information, determining the resource allocation proportion of the account information according to the total number of the resources, and determining the resource allocation amount of the account information according to the product of the total number of the resources and the resource allocation proportion; the size of the resource allocation proportion is inversely proportional to the total number of the resources; the account information comprises terminal identification information and block chain account identification information;
the information sending module is used for sending the resource allocation amount and the account information to a resource allocation server;
the information receiving module is used for receiving first resource allocation credential information which is sent by the resource allocation server and corresponds to the account information; the first resource allocation credential information comprises challenge information associated with a resource attribute of the resource;
the resource allocation module is used for sending the first resource allocation credential information to a target terminal corresponding to the terminal identification information, sending second resource allocation credential information to the resource allocation server by the target terminal, so that when the second resource allocation credential information is matched with the first resource allocation credential information, the resource allocation server allocates resources corresponding to the resource allocation amount to a target block chain account, further obtaining answer information corresponding to the question information by the target terminal, obtaining the second resource allocation credential information according to the answer information, and sending the second resource allocation credential information to the resource allocation server, so that the resource allocation server judges whether the second resource allocation credential information is matched with the first resource allocation credential according to the answer information and the question information; and the target block chain account is a block chain account corresponding to the block chain account identification information.
8. The apparatus of claim 7, further comprising: a contract generation module to:
acquiring an initial intelligent contract set by an authorized blockchain account;
if the instruction number of the authorization instructions received by the block chain node equipment is the same as the total account number of the authorized block chain accounts within the set time range, deploying the initial intelligent contract serving as the intelligent contract to the block chain node equipment; the authorization instructions are generated by the authorization blockchain account for the initial intelligent contract.
9. A block link point device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201911424676.2A 2019-12-31 2019-12-31 Resource allocation method, device, equipment and storage medium based on intelligent contract Active CN111209113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911424676.2A CN111209113B (en) 2019-12-31 2019-12-31 Resource allocation method, device, equipment and storage medium based on intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911424676.2A CN111209113B (en) 2019-12-31 2019-12-31 Resource allocation method, device, equipment and storage medium based on intelligent contract

Publications (2)

Publication Number Publication Date
CN111209113A CN111209113A (en) 2020-05-29
CN111209113B true CN111209113B (en) 2022-12-13

Family

ID=70787467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911424676.2A Active CN111209113B (en) 2019-12-31 2019-12-31 Resource allocation method, device, equipment and storage medium based on intelligent contract

Country Status (1)

Country Link
CN (1) CN111209113B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111638963A (en) * 2020-06-08 2020-09-08 杭州复杂美科技有限公司 Transaction pool dynamic control method, device and storage medium
CN111541554B (en) * 2020-07-13 2020-11-03 卓尔智联(武汉)研究院有限公司 Block chain data processing method and device and electronic equipment
CN112508578B (en) * 2021-02-04 2021-06-04 支付宝(杭州)信息技术有限公司 Resource transfer request verification and sending method and device based on block chain
CN113254264B (en) * 2021-04-14 2023-06-09 卓尔智联(武汉)研究院有限公司 Data backup method and device for blockchain and storage medium
CN113205249B (en) * 2021-04-28 2023-01-20 广东电网有限责任公司 Virtual power plant resource allocation method, device, equipment and medium based on intelligent contracts
CN115037752B (en) * 2022-04-22 2024-03-22 网易(杭州)网络有限公司 Resource allocation method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943580A (en) * 2017-11-13 2018-04-20 上海点融信息科技有限责任公司 For managing the method and equipment of user's intelligence contract at block chain link point
CN110069908A (en) * 2019-04-11 2019-07-30 深圳前海微众银行股份有限公司 A kind of authority control method and device of block chain
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070124156A1 (en) * 2005-11-29 2007-05-31 The Boeing Company Representing business transactions
WO2019169039A1 (en) * 2018-02-28 2019-09-06 Northrup Charles System and method for a thing machine to perform models

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943580A (en) * 2017-11-13 2018-04-20 上海点融信息科技有限责任公司 For managing the method and equipment of user's intelligence contract at block chain link point
CN110069908A (en) * 2019-04-11 2019-07-30 深圳前海微众银行股份有限公司 A kind of authority control method and device of block chain
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment

Also Published As

Publication number Publication date
CN111209113A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN111209113B (en) Resource allocation method, device, equipment and storage medium based on intelligent contract
CN107993053B (en) Claims data auditing method and device, computer equipment and storage medium
US11443307B2 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN108833413B (en) Account management method of tourist user, server, electronic equipment and storage medium
CN111507717B (en) Data processing method, device, block node and computer readable storage medium
CN104616142B (en) Data transfer method, server, mobile terminal and system
CN113656499B (en) Value transfer method and device based on block chain
CN108765175A (en) Declaration form saves information processing method, device, computer equipment and storage medium from damage
CN109118291B (en) User authentication method and device in advertisement task popularization and computer equipment
CN109492856B (en) Service request processing method, device, computer equipment and storage medium
CN112533209A (en) Black product identification method and black product identification device
CN111488626A (en) Data processing method, device, equipment and medium based on block chain
CN111178830B (en) Cost accounting method, cost accounting device, computer equipment and storage medium
CN110838041B (en) Virtual resource activity processing method and device, computer equipment and storage medium
CN112991023A (en) Order data processing method and device, computer equipment and storage medium
CN110827142A (en) User credit evaluation method, system, server and storage medium
CN110768956A (en) Data service providing method, device, computer equipment and storage medium
CN111355800B (en) Service processing method, device, equipment and storage medium
CN111007975B (en) Method and device for realizing calculation formula in document, computer equipment and storage medium
CN111311102A (en) Resource ratio adjusting method, device, equipment and computer readable storage medium
CN109919767B (en) Transaction risk management method, device and equipment
CN113687800A (en) File printing processing method and device, computer equipment and storage medium
CN109445758B (en) Data processing method, device, computer equipment and storage medium
CN110852864A (en) Method and device for processing digital resource amount and storage medium

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
GR01 Patent grant
GR01 Patent grant