WO2022001715A1 - 基于区块链的资源分配方法及装置 - Google Patents

基于区块链的资源分配方法及装置 Download PDF

Info

Publication number
WO2022001715A1
WO2022001715A1 PCT/CN2021/101189 CN2021101189W WO2022001715A1 WO 2022001715 A1 WO2022001715 A1 WO 2022001715A1 CN 2021101189 W CN2021101189 W CN 2021101189W WO 2022001715 A1 WO2022001715 A1 WO 2022001715A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
requester
block
allocation
resources
Prior art date
Application number
PCT/CN2021/101189
Other languages
English (en)
French (fr)
Inventor
刘文婧
Original Assignee
京东科技信息技术有限公司
京东科技控股股份有限公司
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 京东科技信息技术有限公司, 京东科技控股股份有限公司 filed Critical 京东科技信息技术有限公司
Publication of WO2022001715A1 publication Critical patent/WO2022001715A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • 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/03Credit; Loans; Processing thereof
    • 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Definitions

  • the present disclosure generally relates to the technical field of blockchain, and more particularly, to a method and apparatus for resource allocation based on blockchain.
  • Internet finance expands the financial lending of traditional central institutions into networked financial transactions involving multiple entities, allowing multiple parties to complete information screening and matching through the Internet financial platform, greatly improving the efficiency of financial lending.
  • agriculture has not yet completed the digital transformation, most of the production, transaction and credit data have not yet been connected to the Internet, and they have not yet been able to enjoy the efficiency, convenience and low cost of Internet finance.
  • the existing technology realizes the digitization and chaining of the whole process of agriculture from production, to transaction, to financial credit, ensuring that the data cannot be tampered with, and solving the problems of "difficult loan” and "difficulty in loan” to a certain extent, but it has not changed the traditional business process.
  • Exchanges reduce transaction costs, improve efficiency and speed up rural economic development.
  • the present disclosure provides a blockchain-based resource allocation method, which includes:
  • the resource allocation request includes the requester qualification of the resource requester
  • the request operation includes: the resource requester initiates the resource allocation request.
  • the method further includes:
  • Corresponding resource repayment certificate data is generated according to the repayment of resources to the resource allocator, and the resource repayment certificate data is written into the resource allocation block.
  • the repayment of resources to the resource allocator according to the revenue resources generated by the resource requester through the virtual resources includes:
  • the repayment resources are the resources that need to be repaid after using the virtual resources;
  • the resource requester Determine the remaining resources allocated to the resource requester according to the first quantity of repayment resources and the second quantity of revenue resources, generate corresponding resource settlement certificate data, and write the first resource redemption certificate data into in the settlement block corresponding to the first resource exchange party;
  • the revenue resource is the second quantity of resources corresponding to the new type of resource;
  • the resource requester obtains the new types of resources;
  • the resource allocator After the resource allocator receives the redemption resource, it generates corresponding second resource redemption certificate data, and writes the second resource redemption certificate data into the resource allocation block.
  • the method further includes:
  • the obtaining supplementary resources supplemented by the resource supplementary party includes:
  • the second block is the block corresponding to the resource tracing party
  • the supplementary resource supplemented by the resource supplementer is acquired.
  • the method before the requesting party qualification of the resource requesting party is audited, the method further includes:
  • the third certificate data includes: identity information
  • the second The block is the block corresponding to the resource tracer
  • the whitelist information When the identity information exists in the whitelist information, query whether there is backup information corresponding to the resource requester in the fourth certificate data in the fourth block; the backup information is generated by the resource backup party and is writing into the fourth certificate data; and
  • triggering the resource allocator to perform an allocation operation corresponding to the resource allocation request including:
  • the redemption information triggers the resource allocator to allocate a fourth amount of paid resources corresponding to the resource allocation request to the second resource redemption party.
  • the present disclosure provides a blockchain-based resource allocation device, which includes:
  • an obtaining module configured to obtain a resource allocation request initiated by a resource requester and used for requesting allocation to obtain virtual resources; the resource allocation request includes the requester qualification of the resource requester;
  • an auditing module configured to audit the requester qualification of the resource requester, obtain an audit result, generate corresponding first resource allocation certificate data according to the audit result, and write the first resource allocation certificate data into the resource allocation block;
  • an allocation module configured to trigger a resource allocator to perform an allocation operation corresponding to the resource allocation request when the audit result meets a preset resource allocation requirement
  • a certificate storage module configured to generate corresponding second resource allocation certificate storage data according to the allocation operation and the request operation, and write the second resource allocation certificate storage data into the resource allocation block; the request operation Including: the resource requester initiates the resource allocation request.
  • the resource allocation apparatus further includes: a resource reimbursement module; the resource reimbursement module includes:
  • an allocating submodule configured to repay the resource allocator for resources according to the revenue resource generated by the resource requester through the virtual resource
  • the certificate deposit sub-module is configured to generate corresponding resource repayment certificate data according to the repayment of resources to the resource allocator, and write the resource repayment certificate data into the resource allocation block.
  • the distribution submodule includes:
  • the obtaining unit is configured to obtain the redemption resources returned by the first resource exchange party in place of the resource requester, and generate corresponding first resource redemption certificate data; the redemption resources are those that need to be paid back after using the virtual resources resource;
  • the remaining resource unit is configured to determine the remaining resources allocated to the resource requester according to the first quantity of repayment resources and the second quantity of revenue resources, generate corresponding resource settlement certificate data, and store the first resource
  • the repayment deposit certificate data is written into the settlement block corresponding to the first resource exchange party;
  • the income resource is a second quantity of resources corresponding to the new type of resource;
  • the resource requester performs pre-processing on the virtual resource. After setting the action, the new type of resource is obtained; and
  • a certificate depositing unit configured to generate the corresponding second resource redemption certificate data after the resource allocator receives the redemption resource, and write the second resource redemption certificate data into the resource allocation block middle.
  • the resource allocation apparatus further comprises: a resource supplement module; the resource supplement module comprises:
  • a first acquiring unit configured to acquire supplementary resources supplemented by a resource supplementer, generate corresponding first resource supplementary certificate storage data, and store it in a first block corresponding to the resource supplementer;
  • the supplementary resource returning unit is configured to return the supplementary resource to the resource allocator, generate the corresponding second resource supplementary certificate data, and store it in the allocation block.
  • the first acquisition unit includes:
  • the first obtaining subunit is configured to obtain resource conversion progress information obtained by the resource tracer collecting information on the conversion situation of the resource requester;
  • a determination subunit configured to obtain determination result information according to the resource conversion progress information and a preset determination condition
  • a certificate depositing subunit configured to write the resource conversion progress information and the judgment result information into the second depository data of the second block; the second block is the block corresponding to the resource tracing party; as well as
  • the second acquiring subunit is configured to acquire the supplementary resource supplemented by the resource supplementer when the determination result information meets a preset condition.
  • the resource allocation apparatus further includes: a verification module; the verification module includes:
  • the second obtaining unit is configured to obtain the third certificate deposit data of the resource requester from the third block; the third deposit certificate data includes: identity information;
  • a verification unit configured to verify the identity information according to the whitelist information in the second block, obtain a verification result, and write the verification result into the second certificate data of the second block in;
  • the second block is the block corresponding to the resource tracer;
  • a query unit configured to query whether there is backup information corresponding to the resource requester in the fourth certificate data in the fourth block when the identity information exists in the whitelist information; the backup information is determined by The resource backup party generates and writes the fourth certificate data;
  • the determination unit is configured to stop checking the qualification of the requester when there is no guarantee information corresponding to the resource requester in the fourth certificate data.
  • the present disclosure provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
  • the memory configured to store the computer program
  • the processor when configured to execute the computer program, implements the method described in the present disclosure.
  • the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the method steps described in the present disclosure.
  • the present disclosure provides a method and device for resource allocation based on blockchain, wherein the method includes: obtaining a resource allocation request initiated by a resource requester for requesting to allocate virtual resources; the resource allocation request includes the requester qualification of the resource requester ; examine the qualification of the requester of the resource requester, obtain an examination result, generate the corresponding first resource allocation certificate data according to the examination result, and write the first resource allocation certificate data into the resource allocation area In the block; when the audit result meets the preset resource allocation requirement, trigger the resource allocator to perform the allocation operation corresponding to the resource allocation request; and generate the corresponding second resource allocation storage according to the allocation operation and the request operation. and writing the second resource allocation certificate data into the resource allocation block; the request operation includes: the resource requester initiates the resource allocation request.
  • the characteristics of data transparency, data security, data traceability and data immutability in the resource allocation process can be effectively realized.
  • FIG. 1 is a schematic flowchart of a blockchain-based resource allocation method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for resource allocation based on blockchain provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for disclosing a blockchain-based resource allocation provided by an embodiment
  • FIG. 4 is a schematic flowchart of a method for disclosing a blockchain-based resource allocation provided by an embodiment
  • FIG. 5 is a block diagram of a block chain-based resource allocation apparatus provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a financial credit system for purchasing agricultural materials using the method in an embodiment of the present disclosure
  • FIG. 7 is an architectural diagram of an agricultural material procurement financial lending system architecture using methods according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 provides a blockchain-based resource allocation method according to an embodiment of the present disclosure, including steps S1 to S4 as described below.
  • Step S1. Obtain a resource allocation request initiated by a resource requester for requesting to allocate virtual resources; the resource allocation request includes the requester qualification of the resource requester.
  • the resource requester may initiate the request by logging in to a specific client at a terminal (eg, a computer, an intelligent mobile terminal, a handheld computer, etc.).
  • a terminal eg, a computer, an intelligent mobile terminal, a handheld computer, etc.
  • the resource requester can join the consortium chain implementing the method of this embodiment by running the client installation program on the terminal, or it can be the installation program of a certain blockchain node device in the consortium chain, and at the same time , the client can be used as a node device in the alliance chain to obtain the above-mentioned blocks synchronously when newly generated blocks or changed blocks in the backup blockchain; in addition, the client can be a The blockchain user client whose access is controlled to the alliance member node device, in this case, the client generally does not have the right to directly access the distributed database of the blockchain.
  • the alliance chain is only for members of a certain group and a limited number of third parties. Multiple pre-selected nodes are designated as bookkeepers. The generation of each block is jointly determined by all pre-selected nodes, and other access nodes can participate in transactions. , but does not ask about the accounting process, a blockchain that other third parties can make limited queries through the open API of the alliance chain.
  • the consortium chain has certain requirements for the configuration and network environment of consensus or verification nodes. With the access mechanism, it is easier to improve transaction performance and avoid some of the problems caused by uneven participants.
  • Blockchain is a term in the field of information technology. In essence, it is a shared database, and the data or information stored in it has the characteristics of "unforgeable”, “full traces”, “traceable”, “open and transparent” and “collective maintenance”.
  • the blockchain includes multiple blocks, and each block is linked by random hashing (also called hash algorithm), and the latter block contains the data digest (hash value) of the previous block.
  • hash algorithm also called hash algorithm
  • virtual resources may include resources required for the operation of computing devices; may also include forms of resources that can be characterized by digital information; for example: tokens, digital currencies within the blockchain; or outside the blockchain
  • the type of virtual resources can be selected according to specific usage scenarios.
  • the categories of information included in the requester's qualifications are generally uploaded according to the requirements for review.
  • the requester's qualifications may include: the identity information of the resource requester , collateral information and credit information, etc.
  • Step S2. Review the requester qualification of the resource requester, obtain the review result, generate the corresponding first resource allocation certificate data according to the review result, and write the first resource allocation certificate data into the resource allocation block.
  • the qualification of the requester of the resource requester may be reviewed by one or more parties.
  • the credit information may be reviewed by the credit reporting department, and the collateral information and the final review result may be obtained by The relevant financial company that issued the loan specifically.
  • the audit result can be a result used to determine whether the qualification of the requester is in line with the virtual resource allocation, for example: "Compliant” or “Not Compliant”; at the specific code level, it can be represented by “1” or "0".
  • the blockchain node of the executor that obtains the final audit result is the node in the alliance chain that implements the solution of the present disclosure. Therefore, the obtained audit result will generate the corresponding first resource allocation certificate data, and then write it into the resource allocation block for uploading on the chain, and finally, perform consensus to synchronize to each blockchain node in the alliance chain Medium; generally, the audit result includes the timestamp of the current audit.
  • Step S3 When the audit result meets the preset resource allocation requirement, trigger the resource allocator to perform the allocation operation corresponding to the resource allocation request.
  • resource allocation requirements may be requirements that define audit results that can trigger allocation operations.
  • Triggering the resource allocator to perform the allocation operation may be: triggering through a smart contract, wherein the triggering condition may be that the audit result satisfies the resource allocation requirement, and the action performed after the triggering may be to cause the resource allocator to allocate resources to the resource requester.
  • the implementation of the allocation operation can be: direct transmission of virtual resources through the respective terminals of the resource requester and the resource allocator. It is a blockchain token equivalent to virtual resources; in addition, it can also be that the resource distributor transfers virtual resources to the resource requester offline relative to the blockchain.
  • Step S4 Generate the corresponding second resource allocation certificate data according to the allocation operation and the request operation, and write the second resource allocation certificate data into the resource allocation block; the request operation includes: the resource requester initiates a resource allocation request.
  • the corresponding second resource allocation certificate data is generated according to the allocation operation and the request operation, which may be: information obtained after the allocation operation is performed (for example, the loan is issued successfully), and the information received after the resource allocation request is received.
  • Information for example: Zhang San requested a loan of 50,000 yuan
  • the information obtained after the allocation operation is performed includes the time stamp of the allocation operation.
  • the consensus process is generally controlled by each block chain node in the consortium chain; each block chain node in the consortium chain can have corresponding control objects, and each control object can operate one or more regions blockchain node.
  • the parties implementing this embodiment may perform initial registration in advance, complete real-name authentication through master data association, join the alliance chain, generate a digital certificate through the identity chain, and initialize the user ID into the blockchain ; After passing the real-name authentication, the blockchain is connected, and the digital certificate on the identity chain is given to each participant, and the identity certificate written on the data chain is performed to establish a general identity system for the entire system.
  • the process of allocating resources to each node can be stored on the chain to ensure data transparency, data security, and data traceability.
  • Step S5. Repay the resource to the resource allocator according to the revenue resource generated by the resource requester through the virtual resource.
  • the revenue resource may be a resource obtained after the virtual resource is processed according to a certain operating mode; and since the virtual resource is requested by the resource requester from the resource allocator, the resource needs to be reimbursed to the resource allocator.
  • the income resource can also be obtained after the resource requester performs production or investment according to the virtual resource, for example: after the resource requester purchases production materials through the virtual resource, the income resource is Income from products produced from means of production.
  • the quantity corresponding to the repayment resource is greater than the quantity of the virtual resource; for example: when the virtual resource is a loan, and the repayment resource is the repayment used to repay the loan, the amount corresponding to the repayment is greater than that of the loan. amount of money.
  • Step S6 Generate corresponding resource repayment certificate data according to the repayment of resources to the resource allocator, and write the resource repayment certificate data into the resource allocation block.
  • the repayment of resources to the resource allocator may include, but is not limited to, timestamp information for the repayment, information on the quantity of the repaid resources, etc.; therefore, the resource repayment evidence data may include the above information, and will According to the above information, the corresponding resource repayment certificate data is generated, and then written into the resource allocation block for uploading to the chain. Finally, consensus is performed to synchronize to each blockchain node in the alliance chain.
  • the step S5 repays the resource allocator for the resource according to the revenue resource generated by the resource requester through the virtual resource, including steps S51 to S53 as described below.
  • Step S51 Acquire the repayment resources returned by the first resource exchange party instead of the resource requester, and generate corresponding first resource repayment certificate data; the repayment resources are the resources that need to be repaid after using the virtual resources.
  • the first resource exchange party can exchange resources with the resource requester, so that both the first resource exchange party and the resource requester can obtain the resources they need.
  • the resource type of the repaid resource is consistent with the resource type of the virtual resource.
  • the first resource redemption certificate data includes the resource quantity for returning the redemption resource and the time stamp of the return.
  • the repayment resources returned by the first resource exchange party in place of the resource requester can be triggered through a smart contract, and the triggering condition of the smart contract can be: the resource exchange between the resource requester and the first resource exchange party is completed, optionally, complete
  • An embodiment of the exchange of resources may be that the trading platform receives a contract for exchange, and the contract may be written into the settlement block described below.
  • One of the optional implementations may be that, after the resource requester purchases production materials through virtual resources, the products obtained by processing (for example: processing, planting, etc.) The exchange, and after the exchange is completed, the relevant electronic contract may be generated by the first resource exchange party. Finally, to repay the resources, the number of virtual resources in the resource allocation request can be obtained by querying the blockchain, and according to the calculation strategy of the added value of the virtual resources (for example: the added value of the number of resources per unit of time), the virtual resources are allocated to Reimbursement resources that need to be repaid after the resource requester's use.
  • Step S52 Determine the remaining resources allocated to the resource requester according to the first quantity of repayment resources and the second quantity of revenue resources, generate corresponding resource settlement certificate data, and write the first resource repayment certificate data with the first resource.
  • the revenue resource is the second quantity of resources corresponding to the new type of resource; the resource requester obtains the new type of resource after performing a preset action on the virtual resource.
  • the resource type of the redemption resource is the same as the virtual resource; and the redemption resource is a part of the revenue resource, so the resource type of the revenue resource and the redemption resource is also the same; when the redemption resource is less than the revenue resource, the excess The remaining resources need to be transferred to the resource requester, and the first resource exchange party will generate the corresponding first resource repayment certificate data after executing the resource allocation or after completing the resource allocation, to record the above behavior, and write In the stage block; generally, the resource settlement certificate data includes: the time stamp of allocating the remaining resources to the resource requester.
  • the resource requester performing a preset action on the virtual resource may be: processing the virtual resource to obtain another form of resource (ie, a new type of resource).
  • Step S53 After the resource allocator receives the redemption resource, it generates the corresponding second resource redemption certificate data, and writes the second resource redemption certificate data into the resource allocation block.
  • the resource allocator after the resource allocator receives the redemption resource repaid by the first resource exchange party on behalf of the resource requester, it can generate the corresponding second resource redemption certificate data according to the received redemption resource or the received action , the second resource redemption certificate data is used to represent that the resource requester has completed the resource redemption, and includes the time stamp when the redemption resource is received; and the second resource redemption certificate data will be written into the resource allocation block; generally, Consensus will be made on the updated resource allocation block to synchronize the information in it to other blockchain nodes.
  • the first resource exchange party can directly perform transfer operations such as resource repayment with the resource allocator, which improves processing efficiency.
  • Step S7 Acquire the supplementary resources supplemented by the resource supplementer, generate the corresponding first resource supplementary certificate storage data, and store the data in the first block corresponding to the resource supplementer.
  • an unexpected situation occurs when the resource requester performs resource type conversion on the virtual resource, and the execution is triggered when the new type of resource cannot be obtained normally. Smart contract to trigger.
  • the corresponding first resource supplementary certificate data can be generated according to the execution result (for example: the number of supplementary resources, time stamp, resource requester information, etc.), and stored in the first resource supplementer corresponding to the in the block.
  • each blockchain node in the consortium chain will reach a consensus on the first block, so as to synchronize the information in it to other blockchain nodes.
  • Step S8 Return the supplementary resource to the resource allocator, generate the corresponding supplementary certificate data for the second resource, and store it in the allocation block.
  • the resource allocator after the resource allocator receives the supplementary resource from the resource supplementer, it can generate the corresponding second resource supplementary certificate data according to the received supplementary resource or the received action, and the second resource supplementary certificate
  • the data is used to indicate that the resource supplementary party has completed the resource repayment on behalf of the resource requester, and generally includes the time stamp when the supplementary resource is received; and the second resource supplementary certificate data will be written into the resource allocation block; generally, it will be Consensus is made on the updated resource allocation block to synchronize the information in it to other blockchain nodes.
  • the step S7 obtains the supplementary resources supplemented by the resource supplementer, including steps S71 to S74 as described below.
  • Step S71 Obtain resource conversion progress information obtained by the resource tracer collecting information on the conversion situation of the resource requester.
  • the resource conversion progress information may be parameter information used to characterize the resource conversion process (for example, it may be failure condition information of a computing device performing resource conversion, or may be processing equipment or climate during production).
  • Step S72 Obtain judgment result information according to resource conversion progress information and preset judgment conditions.
  • the judgment condition may be a set of one or more judgment conditions for judging whether the resource conversion progress information is normal.
  • the judgment result is the result of the overall evaluation of the resource conversion progress information, and can be used to judge whether it is necessary to replace the resource requester for resource repayment.
  • Step S73 Write the resource conversion progress information and the judgment result information into the second certificate data of the second block; the second block is the block corresponding to the resource tracing party.
  • the data traceability of the resource requester's conversion can be achieved, preventing the resource requester from performing operations on the allocated virtual resources in order to avoid it. In the case of information falsification due to reimbursement.
  • the judgment result information is written into the second certificate data of the second block, and based on the shared characteristics of the blockchain, the resource supplementer can obtain the basis for judging whether to supplement the resource to the resource allocator.
  • Step S74 When it is determined that the result information meets the preset condition, obtain the supplementary resource supplemented by the resource supplementer.
  • the preset condition is used to judge whether the judgment result satisfies the condition for the resource supplementer to provide supplementary resources; generally, the preset condition and the judgment result information are set correspondingly; for example: when the judgment result information can be When the "conversion situation is abnormal" and the “conversion situation is normal", in order to accurately identify the judgment result information, the preset condition may be "the transition situation is abnormal".
  • the supplementary resource supplemented by the resource supplementer is obtained.
  • step S2 before step S2 audits the requester qualification of the resource requester, it further includes steps T1 to T4.
  • Step T1 Obtain third certificate data of the resource requester from the third block; the third certificate data includes: identity information.
  • the third block is used to record the certificate data of the resource requester (that is, the third certificate data), and the third certificate data includes the identity information of the resource requester; further, when When applied to credit, the resource requester's asset information (for example, real estate, land plot, etc.) may also be included to prove that the resource requester has the ability to repay.
  • the resource requester's asset information for example, real estate, land plot, etc.
  • Step T2. Verify the identity information according to the whitelist information in the second block, obtain the verification result, and write the verification result in the second certificate data of the second block; the second block is the same as the resource.
  • the whitelist information includes identity information of multiple different entities (for example, natural persons or enterprises, etc.), and the identity information in the whitelist may be the identity information of entities with good credit, and the verification result is used for The result information of judging whether the resource requester is a credit compliance entity based on whether there is identity information in the whitelist.
  • Step T3 When there is identity information in the whitelist information, query whether there is backup information corresponding to the resource requester in the fourth deposit certificate data in the fourth block; the backup information is generated by the resource backup party and written into the fourth depository. in the certificate data;
  • the backup information may be guarantee information; the fourth certificate data in the fourth block may be obtained by the guarantee personnel (ie: the resource backup party) of the corresponding entity after uploading the data to the chain through the client,
  • the reason for querying the guarantee information is to ensure that the resource requester is unable to repay the resource, so that the guarantor can repay it, and at the same time, it also provides a further basis for evaluating the credit of the resource requester.
  • Step T4 When there is no guarantee information corresponding to the resource requester in the fourth certificate deposit data, stop checking the qualification of the requester.
  • the subsequent step S2 is performed only when there is guarantee information corresponding to the resource requester in the fourth deposit certificate data of the fourth block, otherwise the resource requester is not satisfied.
  • step S3 triggers the resource allocator to perform an allocation operation corresponding to the resource allocation request when the audit result meets the preset resource allocation requirement, which specifically includes:
  • the resource allocation is triggered.
  • the recipe allocates a fourth amount of paid-for resources corresponding to the resource allocation request to the second resource exchange party.
  • the resource exchange information is written into the fifth certificate data by the second resource exchange party according to the resource exchange result. That is to say, the subsequent steps are performed only when the guarantee information corresponding to the resource requester exists in the fourth deposit certificate data of the fourth block; optional: when the fifth client writes the purchase record information When the fifth deposit data is entered, the resource allocator is triggered to allocate a fourth quantity of payment resources corresponding to the resource allocation request to the fifth client through a preset smart contract.
  • Each enterprise organization ie: resource distributor, first resource exchange party, second resource exchange party, resource replenisher, resource tracer, resource backup party and resource requester
  • Authentication join the alliance chain to generate a digital certificate through the identity chain, and initialize the user ID to the blockchain.
  • the purchase and storage enterprise ie: the first resource exchange party signs a predetermined purchase and storage order with the farmer, and all operations can be operated through the agricultural product trading platform. , and upload the data to the chain to achieve non-tamperable witness.
  • farmers purchase seeds, fertilizers, agricultural services and other products from agricultural materials and agricultural service companies (ie: the second resource exchange party) through the agricultural materials procurement platform. Trigger the payment behavior of financial institutions to agricultural materials and agricultural service enterprises, complete the payment, and upload the payment data to the chain.
  • the preliminary preparation stage mainly includes the preliminary preparation stage (ie: steps 1 to 4), the breeding and production stage (ie: steps 5 and 6), and the purchase and storage stage (ie: steps 7 and 8) three phases.
  • the preliminary preparations include signing purchase and storage reservation orders, purchasing agricultural insurance, applying for financial loans, and completing third-party guarantees;
  • the planting and breeding production stage includes purchasing agricultural materials and agricultural services, making capital advances according to financial loan orders, and participating in the production process through the Internet of Things traceability platform.
  • the real-time upload of data to the chain monitors the production process of agricultural products corresponding to the procurement of agricultural materials and agricultural services and financial loans, which is also an important basis for applying for agricultural insurance compensation. Repayment, and pay the farmers the amount after the split account.
  • the present disclosure also provides a blockchain-based resource allocation device, which includes:
  • the obtaining module 1 is configured to obtain a resource allocation request initiated by a resource requester for requesting to allocate virtual resources; the resource allocation request includes the requester qualification of the resource requester;
  • the auditing module 2 is configured to audit the qualification of the resource requester, obtain the audit result, generate the corresponding first resource allocation certificate data according to the audit result, and write the first resource allocation certificate data into the resource allocation block middle;
  • the allocation module 3 is configured to trigger the resource allocator to perform the allocation operation corresponding to the resource allocation request when the audit result meets the preset resource allocation requirement;
  • the certificate storage module 4 is configured to generate the corresponding second resource allocation certificate storage data according to the allocation operation and the request operation, and write the second resource allocation certificate storage data into the resource allocation block; the request operation includes: the resource requester initiates the resource Assignment request.
  • the apparatus further includes: a resource reimbursement module; the resource reimbursement module includes:
  • an allocating submodule configured to repay the resource allocator for resources according to the revenue resource generated by the resource requester through the virtual resource
  • the certificate deposit sub-module is configured to generate corresponding resource repayment certificate data according to the repayment of resources to the resource allocator, and write the resource repayment certificate data into the resource allocation block.
  • the distribution submodule includes:
  • the obtaining unit is configured to obtain the redemption resources returned by the first resource exchange party in place of the resource requester, and generate corresponding first resource redemption certificate data; the redemption resources are those that need to be paid back after using the virtual resources resource;
  • the remaining resource unit is configured to determine the remaining resources allocated to the resource requester according to the first quantity of repayment resources and the second quantity of revenue resources, generate corresponding resource settlement certificate data, and store the first resource
  • the repayment deposit certificate data is written into the settlement block corresponding to the first resource exchange party;
  • the income resource is a second quantity of resources corresponding to the new type of resource;
  • the resource requester performs pre-processing on the virtual resource. After setting the action, the new type of resource is obtained; and
  • a certificate depositing unit configured to generate the corresponding second resource redemption certificate data after the resource allocator receives the redemption resource, and write the second resource redemption certificate data into the resource allocation block middle.
  • the apparatus further comprises: a resource supplementation module; the resource supplementation module comprises:
  • a first acquiring unit configured to acquire supplementary resources supplemented by a resource supplementer, generate corresponding first resource supplementary certificate storage data, and store it in a first block corresponding to the resource supplementer;
  • the supplementary resource returning unit is configured to return the supplementary resource to the resource allocator, generate the corresponding second resource supplementary certificate data, and store it in the allocation block.
  • the first acquisition unit includes:
  • the first obtaining subunit is configured to obtain resource conversion progress information obtained by the resource tracer collecting information on the conversion situation of the resource requester;
  • a determination subunit configured to obtain determination result information according to the resource conversion progress information and a preset determination condition
  • a certificate depositing subunit configured to write the resource conversion progress information and the judgment result information into the second depository data of the second block; the second block is the block corresponding to the resource tracing party; as well as
  • the second acquiring subunit is configured to acquire the supplementary resource supplemented by the resource supplementer when the determination result information meets a preset condition.
  • the apparatus further includes: a verification module; the verification module includes:
  • the second obtaining unit is configured to obtain the third certificate deposit data of the resource requester from the third block; the third deposit certificate data includes: identity information;
  • a verification unit configured to verify the identity information according to the whitelist information in the second block, obtain a verification result, and write the verification result into the second certificate data of the second block in;
  • the second block is the block corresponding to the resource tracer;
  • a query unit configured to query whether there is backup information corresponding to the resource requester in the fourth certificate data in the fourth block when the identity information exists in the whitelist information; the backup information is determined by The resource backup party generates and writes the fourth certificate data;
  • the determination unit is configured to stop checking the qualification of the requester when there is no guarantee information corresponding to the resource requester in the fourth certificate data.
  • the blockchain agricultural material procurement financial credit system applying the device of the present disclosure may include three layers: the bottom layer is the blockchain layer built by the blockchain BaaS platform; the middle is the business management application layer platform, including the main Data management, IoT traceability platform, agricultural materials procurement platform, agricultural product trading platform, financial credit platform; the top layer is the supervisory layer, including credit system rule setting, black and white list entry and exit standards, big data monitoring reports and other monitoring methods .
  • Master data system establish a unified master data system for the whole system, including cooperative certification, farmer certification, land plot certification, purchasing and storage enterprise certification, agricultural material and agricultural service enterprise certification, and financial institution certification participating in agriculture, etc.
  • the block chain gives each participant a digital certificate on the identity chain, and performs the identity certificate written on the data chain to establish a general identity system for the entire system.
  • Internet of Things traceability platform It is mainly responsible for collecting production process information through Internet of Things equipment and monitoring the health status of crops based on the farmer number and crop traceability code, as the basis for judging agricultural insurance compensation, and based on the transaction of agricultural materials and agricultural services on the alliance chain, Agricultural product transaction information, showing the credit status of farmers on the black and white list for regulatory agencies.
  • Agricultural materials procurement platform It mainly serves farmers and sellers of agricultural materials and agricultural services, and realizes online purchase and data traces of agricultural materials and agricultural services.
  • Agricultural product trading platform It mainly serves farmers and purchase and storage enterprises. According to the plots, planting plans and output estimates recorded in the farmers’ traceability platform, online purchase and storage orders are signed, and the purchase and storage orders are based on the completion of crop production. Purchase performance status Perform online data logging.
  • Financial credit platform It mainly serves the capital flow of farmers, guarantee enterprises/institutions, financial institutions, agricultural materials and agricultural service institutions and purchase and storage institutions. , pay for farmers' purchase orders of agricultural materials and agricultural services, realize automatic payment according to smart contracts, and after the purchase and storage is completed, according to the performance transaction volume of the purchase and storage orders, realize automatic repayment for the corresponding lending financial institutions.
  • Blockchain (BaaS platform): It is mainly responsible for incorporating the blockchain nodes of each participating unit into the same alliance chain, jointly maintaining the ledger data, and using the HTTPS protocol during the data transmission process of the blockchain chain of each node to ensure data integrity. Confidentiality and Integrity. Realize the record, traceability and non-tampering of traceability data of agricultural products from production, to transaction, to financial credit.
  • Each application platform is deployed in SaaS, establishes an industry consensus mechanism according to the type of application, realizes the data collection and synchronization of multi-node entities with blockchain technology, and triggers business operations according to smart contracts, and provides industry big data analysis reports for regulators, government supervision report etc.
  • the architecture of the financial lending system for the purchase of agricultural materials may include: a government supervision layer, an application user layer, an interface layer, a business application layer, a blockchain (BaaS) layer, and a resource layer.
  • Government supervision layer mainly include the Agricultural Bureau, the Commerce Bureau, the Big Data Bureau, the Modern Agricultural Development Center and other regulatory departments, helping the government regulatory agencies to strengthen the whole process of information supervision, the formulation of credit and black and white list rules, and to display big data reports;
  • User layer mainly the nodes in the financial lending business of agricultural materials procurement, including: cooperatives, guarantee organizations, purchasing and storage enterprises, agricultural materials/agricultural service enterprises, insurance institutions, financial institutions, and third-party traceability agencies, among which cooperatives can use lightweight By joining in the form of level nodes, there is no need to deploy blockchain nodes, but the data is written and read on the chain through the nodes attached to the traceability system.
  • Interface layer Support each user node, enterprise and institution to connect to the agricultural material procurement financial lending system on demand, mainly including SDK&API and WEB.
  • SDK&API interface Through the SDK&API interface, it can directly help the existing data of enterprises and institutions to quickly connect to the relevant application systems and upload the data to the chain; WEB mode can implement different languages and platforms, and realize the data operations of various enterprises and institutions on the application platform through standardized XML or Excel. Upload data to the chain.
  • Business application layer mainly for the SaaS system functions used by the nodes of various enterprises and institutions, such as the IoT traceability platform used by cooperatives and farmers, and the agricultural materials procurement platform used by farmers and agricultural materials and agricultural service enterprises.
  • Block layer The block chain (BaaS platform) can flexibly manage the block chain nodes of each participant, configure smart contracts, and store and query on-chain data.
  • Resource layer Support privatization deployment, various public cloud deployments, help enterprises and institutions to easily and quickly create SaaS applications for each node, improve storage efficiency, read and write efficiency, concurrent access capabilities, etc. to serve the demands of agricultural materials procurement financial lending systems .
  • the present disclosure also provides an electronic device, including: as shown in FIG. 8 , the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 pass through the communication bus 1504 completes the mutual communication.
  • memory 1503 configured to store computer programs
  • the processor 1501 is configured to implement the steps of the foregoing method embodiments when executing the program stored in the memory 1503 .
  • the bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above electronic device and other devices.
  • the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • RAM Random Access Memory
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the present disclosure also provides a non-transitory computer-readable storage medium that stores computer instructions that cause a computer to perform the methods of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Tourism & Hospitality (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Mining & Mineral Resources (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Primary Health Care (AREA)
  • Animal Husbandry (AREA)
  • Educational Administration (AREA)
  • Agronomy & Crop Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioethics (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

公开了基于区块链的资源分配方法及装置。该方法包括:获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;对资源请求方的请求方资质进行审核,得到审核结果,根据审核结果生成对应的第一资源分配存证数据,并将第一资源分配存证数据写入资源分配区块中;在审核结果满足预设的资源分配要求时,触发资源分配方执行与资源分配请求对应的分配操作;以及根据分配操作以及请求操作生成对应的第二资源分配存证数据,并将第二资源分配存证数据写入资源分配区块中。

Description

基于区块链的资源分配方法及装置
相关申请的引用
本公开要求于2020年6月30日向中华人民共和国国家知识产权局提交的申请号为202010621220.1,发明名称为“一种基于区块链的资源分配方法及装置”的发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开中。
领域
本公开大体上涉及区块链技术领域,更具体地涉及基于区块链的资源分配方法及装置。
背景
中央连续14年的一号文件,让三农问题成为最首要的国民问题,而三农问题中最关键的则是农村经济发展问题。“难贷款”和“贷款难”可以说是农村经济发展的一个“老大难”问题,一边是银行业金融机构“难贷款”,有钱放不出去;一边是农村“贷款难”,想贷款贷不到,究其原因是散户小农经济情况下,农民抵押物少、农民征信记录少、农业风险大、农业缺乏监管、农业金融机构贷款核验及放贷成本高导致。
互联网金融通过将传统中心机构的金融借贷,拓展为网络化多主体参与的金融交易,让资金多方通过互联网金融平台自行完成信息甄别和匹配,大大提高了金融借贷效率。但是因为农业尚未完成数字化转型,大部分生产、交易、信用数据尚未连网,仍未能享受到互联网金融的高效、便捷和低成本。
随着区块链和物联网技术的兴起和应用,市场中已经出现通过技术建立农村信用体系的方案,例如主要通过农业信息云平台、农业信息监管云平台、农源供应链平台、区块链平台、农村供应链端信贷体系平台,打破传统的信息孤岛,解决经营主体贷款难的问题。这是实现农业数字化的第一步,进一步提升农村金融的效率还需要通过区块链智能合约的方式,升级原有业务模式,例如农资贷款由金融机构在符合申请条件下 自动支付给农资销售商,并在农作物收储后由收储机构自动归还金融机构贷款,真正的将农民从贷款的繁琐流程中解放,精力聚焦在提升生产效率上,从而促进农业经济的快速发展。
然而,现有技术实现将农业从生产、到交易、到金融信贷的全过程数字化和上链,确保数据不可篡改,一定程度上解决“难贷款”和“贷款难”的问题,但是尚未改变传统的业务流程。要想更进一步提升农业信贷效率,为农民减负,还可以通过区块链智能合约实现农业金融自动化交易,取消农民在资金流转方面的参与,由金融机构和农资销售商、收储企业完成资金往来,降低交易成本,提高效益效率,加快农村经济发展。
概述
第一方面,本公开提供了基于区块链的资源分配方法,其包括:
获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;所述资源分配请求包括资源请求方的请求方资质;
对所述资源请求方的请求方资质进行审核,得到审核结果,根据所述审核结果生成对应的第一资源分配存证数据,并将所述第一资源分配存证数据写入资源分配区块中;
在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作;以及
根据所述分配操作以及请求操作生成对应的第二资源分配存证数据,并将所述第二资源分配存证数据写入所述资源分配区块中;所述请求操作包括:资源请求方发起所述资源分配请求。
在某些实施方案中,在所述触发资源分配方执行与所述资源分配请求对应的分配操作之后,还包括:
根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源;以及
根据所述向所述资源分配方偿还资源生成对应的资源偿还存证数据,并将所述资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,所述根据所述资源请求方通过所述虚拟资源产 生的收益资源,向所述资源分配方偿还资源,包括:
获取第一资源兑换方代替所述资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;所述偿还资源为对所述虚拟资源使用后所需偿还的资源;
根据所述偿还资源的第一数量以及收益资源的第二数量确定向所述资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将所述第一资源偿还存证数据写入与所述第一资源兑换方对应的结算区块中;所述收益资源是与新类型资源对应的第二数量的资源;所述资源请求方对所述虚拟资源执行预设动作后得到所述新类型资源;以及
在所述资源分配方收到所述偿还资源后,生成对应的第二资源偿还存证数据,并将所述第二资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,在所述将所述第二资源请求存证数据写入所述资源分配区块中之后,还包括:
获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于所述资源补充方对应的第一区块中;以及
将所述补充资源归还至所述资源分配方,生成对应的第二资源补充存证数据,并存储于所述分配区块中。
在某些实施方案中,所述获取资源补充方补充的补充资源,包括:
获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息;
根据所述资源转换进度信息以及预设的判定条件得到判定结果信息;
将所述资源转换进度信息以及判定结果信息写入第二区块的第二存证数据中;所述第二区块是与所述资源追溯方对应的区块;以及
在所述判定结果信息符合预设条件时,获取所述资源补充方补充的所述补充资源。
在某些实施方案中,在对所述资源请求方的请求方资质进行审核之前,还包括:
从第三区块中获取所述资源请求方的第三存证数据;所述第三存证数据包括:身份信息;
根据第二区块中的白名单信息对所述身份信息进行校验,得到校验结果,将所述校验结果写入所述第二区块的第二存证数据中;所述第二区块是与资源追溯方对应的区块;
当所述白名单信息中存在所述身份信息时,在第四区块的第四存证数据中查询是否存在与所述资源请求方对应的备份信息;所述备份信息由资源备份方生成并写入所述第四存证数据中;以及
在所述第四存证数据中不存在与所述资源请求方对应的担保信息时,停止对所述请求方资质进行审核。
在某些实施方案中,所述在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作,包括:
在所述第四存证数据中存在与所述资源请求方对应的担保信息时,根据第五区块的第五存证数据中获取的所述资源请求方与第二资源兑换方进行的资源兑换信息,触发资源分配方分配与所述资源分配请求对应的第四数量的代付资源至第二资源兑换方。
第二方面,本公开提供了基于区块链的资源分配装置,其包括:
获取模块,配置为获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;所述资源分配请求包括资源请求方的请求方资质;
审核模块,配置为对所述资源请求方的请求方资质进行审核,得到审核结果,根据所述审核结果生成对应的第一资源分配存证数据,并将所述第一资源分配存证数据写入资源分配区块中;
分配模块,配置为在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作;以及
存证模块,配置为根据所述分配操作以及请求操作生成对应的第二资源分配存证数据,并将所述第二资源分配存证数据写入所述资源分配区块中;所述请求操作包括:资源请求方发起所述资源分配请求。
在某些实施方案中,所述资源分配装置还包括:资源偿还模块;所述资源偿还模块包括:
分配子模块,配置为根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源;以及
存证子模块,配置为根据所述向所述资源分配方偿还资源生成对应 的资源偿还存证数据,并将所述资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,所述分配子模块包括:
获取单元,配置为获取第一资源兑换方代替所述资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;所述偿还资源为对所述虚拟资源使用后所需偿还的资源;
剩余资源单元,配置为根据所述偿还资源的第一数量以及收益资源的第二数量确定向所述资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将所述第一资源偿还存证数据写入与所述第一资源兑换方对应的结算区块中;所述收益资源是与新类型资源对应的第二数量的资源;所述资源请求方对所述虚拟资源执行预设动作后得到所述新类型资源;以及
存证单元,配置为在所述资源分配方收到所述偿还资源后,生成对应的第二资源偿还存证数据,并将所述第二资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,所述资源分配装置还包括:资源补充模块;所述资源补充模块包括:
第一获取单元,配置为获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于所述资源补充方对应的第一区块中;以及
补充资源归还单元,配置为将所述补充资源归还至所述资源分配方,生成对应的第二资源补充存证数据,并存储于所述分配区块中。
在某些实施方案中,所述第一获取单元包括:
第一获取子单元,配置为获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息;
判定子单元,配置为根据所述资源转换进度信息以及预设的判定条件得到判定结果信息;
存证子单元,配置为将所述资源转换进度信息以及判定结果信息写入第二区块的第二存证数据中;所述第二区块是与所述资源追溯方对应的区块;以及
第二获取子单元,配置为在所述判定结果信息符合预设条件时,获取所述资源补充方补充的所述补充资源。
在某些实施方案中,所述资源分配装置还包括:校验模块;所述校验模块包括:
第二获取单元,配置为从第三区块中获取所述资源请求方的第三存证数据;所述第三存证数据包括:身份信息;
校验单元,配置为根据第二区块中的白名单信息对所述身份信息进行校验,得到校验结果,将所述校验结果写入所述第二区块的第二存证数据中;所述第二区块是与资源追溯方对应的区块;
查询单元,配置为当所述白名单信息中存在所述身份信息时,在第四区块的第四存证数据中查询是否存在与所述资源请求方对应的备份信息;所述备份信息由资源备份方生成并写入所述第四存证数据中;以及
判定单元,配置为在所述第四存证数据中不存在与所述资源请求方对应的担保信息时,停止对所述请求方资质进行审核。
第三方面,本公开提供了电子设备,包括:处理器、通信接口、存储器和通信总线,其中,所述处理器、通信接口和存储器通过通信总线完成相互间的通信;
所述存储器,配置为存放计算机程序;以及
所述处理器,配置为执行所述计算机程序时,实现本公开所述的方法。
第四方面,本公开提供了非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行本公开所述的方法步骤。
本公开提供了基于区块链的资源分配方法及装置,其中方法包括:获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;所述资源分配请求包括资源请求方的请求方资质;对所述资源请求方的请求方资质进行审核,得到审核结果,根据所述审核结果生成对应的第一资源分配存证数据,并将所述第一资源分配存证数据写入资源分配区块中;在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作;以及根据所述分配操作以及请求 操作生成对应的第二资源分配存证数据,并将所述第二资源分配存证数据写入所述资源分配区块中;所述请求操作包括:资源请求方发起所述资源分配请求。
在某些实施方案中,基于区块链分布式账本技术,可以有效实现资源分配过程中数据透明、数据安全、数据可追溯以及数据不可篡改的特性。
附图简要说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
为了更清楚地说明本公开的技术方案,下面将对本公开中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开一实施例提供的基于区块链的资源分配方法的流程示意图;
图2为本公开一实施例提供的基于区块链的资源分配方法的流程示意图;
图3为公开一实施例提供的基于区块链的资源分配方法的流程示意图;
图4为公开一实施例提供的基于区块链的资源分配方法的流程示意图;
图5为本公开一实施例提供的基于区块链的资源分配装置的框图;
图6为应用本公开一实施例中方法的农资采购金融信贷系统的示意图;
图7为应用本公开一实施例种方法的农资采购金融借贷系统架构的架构图;以及
图8为本公开一实施例提供的电子设备的结构示意图。
详述
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合 本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。
图1为本公开实施例提供的基于区块链的资源分配方法,包括如下所述步骤S1至S4。
步骤S1.获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;资源分配请求包括资源请求方的请求方资质。
在某些实施方案中,资源请求方可以是通过在终端(例如:计算机、智能移动终端、掌上电脑等等)登录特定客户端以进行请求的发起。
在某些实施方案中,资源请求方可以通过在终端运行客户端安装程序加入到实现本实施例方法的联盟链中来,也可以为联盟链中某一区块链节点设备的安装程序,同时,该客户端可作为联盟链中的节点设备,以在备份区块链的中新生成区块或发生变更的区块时,同步得到上述区块;此外客户端可以是与联盟链中的一联盟成员节点设备连接的,被控制访问的区块链用户客户端,在该情况下,该客户端一般不具备直接访问区块链的分布式数据库的权限。
联盟链,是只针对特定某个群体的成员和有限的第三方,内部指定多个预选的节点为记账人,每个块的生成由所有的预选节点共同决定,其他接入节点可以参与交易,但不过问记账过程,其他第三方可以通过该联盟链开放的API进行限定查询的一种区块链。为了获得更好的性能,联盟链对于共识或验证节点的配置和网络环境有一定要求。有了准入机制,可以使得交易性能更容易提高,避免由参差不齐的参与者产生的一些问题。
区块链是一个信息技术领域的术语。从本质上讲,它是一个共享数据库,存储于其中的数据或信息,具有“不可伪造”“全程留痕”“可以追溯”“公开透明”“集体维护”等特征。区块链中包括多个区块,各个区块之间通过随机散列(也称哈希算法)实现链接,后一个区块包含前一个区块的数据摘要(哈希值),随着信息交流的扩大,各个节点下的区块按照产生时间,前后区块相继接续,形成的结果即为区块链。
在某些实施方案中,虚拟资源可以包括计算设备运行所需要的资源;还可以包括可以通过数字信息进行表征的资源形式;例如:区块链内的代币、数字货币;或区块链外的资金、股票、代金券等形式的数据,此外,可以根据具体使用场景对虚拟资源的类型进行选择。
在某些实施方案中,请求方资质中包括的信息类别一般是按照进行审核的要求进行上传的,举例来说,当用于进行贷款申请时,请求方资质可以包括:资源请求方的身份信息、抵押物信息以及信用信息等等。
步骤S2.对资源请求方的请求方资质进行审核,得到审核结果,根据审核结果生成对应的第一资源分配存证数据,并将第一资源分配存证数据写入资源分配区块中。
在某些实施方案中,对资源请求方的请求方资质进行进行审核可以由一方或多方进行,举例的,信用信息可以通过征信部门进行审核,抵押物信息以及最终审核结果的得出可以由具体发放贷款的相关金融公司进行。
审核结果可以是用于判定请求方资质是否符合对其进行虚拟资源分配的结果,例如:“符合”或“不符合”;在具体的代码层面,可以通过“1”或“0”进行表征。
得到最终审核结果的执行方的区块链节点为实现本公开方案的联盟链中的节点。因此,得到的审核结果会生成对应的第一资源分配存证数据,然后将其写入资源分配区块中,以进行上链,最后,进行共识以同步至联盟链中的各个区块链节点中;一般的,审核结果中包括当前审核的时间戳。
步骤S3.在审核结果满足预设的资源分配要求时,触发资源分配方执行与资源分配请求对应的分配操作。
在某些实施方案中,资源分配要求可以是用于限定能够对触发分配操作的审核结果的要求。
触发资源分配方执行分配操作可以是:通过智能合约进行触发,其中,触发条件可以是审核结果满足资源分配要求,触发后执行的动作可以是,使资源分配方对资源请求方进行资源分配。
分配操作的实现方式可以是:通过资源请求方与资源分配方各自的 终端进行虚拟资源的直接传输,例如在联盟链中从资源分配方直接向资源请求方执行转账交易,且转账交易的对象可以是与虚拟资源等值的区块链代币;此外,也可以是在相对于区块链的线下,资源分配方将虚拟资源转移至资源请求方。
步骤S4.根据分配操作以及请求操作生成对应的第二资源分配存证数据,并将第二资源分配存证数据写入资源分配区块中;请求操作包括:资源请求方发起资源分配请求。
在某些实施方案中,根据分配操作以及请求操作生成对应的第二资源分配存证数据,可以是:将分配操作执行后得到的信息(例如:贷款发放成功),以及资源分配请求接收到的信息(例如:张三请求贷款5万元),生成第二资源分配存证数据,然后将其写入资源分配区块中,以进行上链,最后,进行共识以同步至联盟链中的各个区块链节点中;一般的,分配操作执行后得到的信息中包括执行分配操作的时间戳。
在某些实施方案中,共识过程一般由联盟链中的各个区块链节点控制;联盟链中各个区块链节点都可以有对应的管控对象,且每个管控对象可以操作一个或多个区块链节点。
在某些实施方案中,实现本实施例的各方可以事先进行初始化注册,通过主数据关联,完成实名认证,加入联盟链中,并通过身份链生成数字证书,初始化用户标识到区块链中;在通过实名认证后连通区块链,为各参与方赋予身份链上的数字证书,进行数据上链写入的身份证明,以建立整套系统的通用身份体系。
综上所述,采用本实施例中的方法,可以将资源分配各个节点的过程上链进行存储,保证数据透明、数据安全、数据可追溯。
如图2所示,在某些实施方案中,如前述的方法,在触发资源分配方执行与资源分配请求对应的分配操作之后,还包括如下所述步骤S5和S6。
步骤S5.根据资源请求方通过虚拟资源产生的收益资源,向资源分配方偿还资源。
在某些实施方案中,收益资源可以是虚拟资源按照某一运行方式处理后到的资源;并且由于虚拟资源是资源请求方从资源分配方请求得到 的,因此,需要向资源分配方偿还资源。
在某些实施方案中,收益资源还可以为;在资源请求方根据虚拟资源进行生产或投资等行为后得到,举例的:当资源请求方通过虚拟资源进行生产资料的购置之后,收益资源则为根据生产资料生产得到的产品产生的收益。
一般情况下,偿还资源对应的数量大于虚拟资源的数量;举例的:当虚拟资源为贷款时,偿还资源为用于对该贷款进行偿还的还款,则还款对应的金额数量是大于贷款的金额数量的。
步骤S6.根据向资源分配方偿还资源生成对应的资源偿还存证数据,并将资源偿还存证数据写入资源分配区块中。
在某些实施方案中,向资源分配方偿还资源可以包括但不限于:进行偿还的时间戳信息,偿还的资源的数量信息等等;因此,资源偿还存证数据可以包括上述信息,并且,会根据上述信息生成对应的资源偿还存证数据,然后将其写入资源分配区块中,以进行上链,最后,进行共识以同步至联盟链中的各个区块链节点中。
如图3所示,在某些实施方案中,如前述的方法,所述步骤S5根据资源请求方通过虚拟资源产生的收益资源,向资源分配方偿还资源,包括如下所述步骤S51至S53。
步骤S51.获取第一资源兑换方代替资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;偿还资源为对虚拟资源使用后所需偿还的资源。
在某些实施方案中,资源的类型可以存在多种,因此第一资源兑换方可以与资源请求方进行资源的兑换;以使第一资源兑换方与资源请求方都能够获取各自需要的资源。
由于偿还资源是由第一资源兑换方带体资源请求方偿还给资源分配方的资源,因此该偿还资源的资源类型与虚拟资源的资源类型一致。一般的,第一资源偿还存证数据中包括归还偿还资源的资源数量以及归还的时间戳。
可以通过智能合约触发第一资源兑换方代替资源请求方归还的偿还资源,且该智能合约的触发条件可以是:资源请求方与第一资源兑换方 之间完成资源的兑换,可选的,完成资源的兑换的体现形式可以是交易平台接收到进行兑换的合同,并且该合同可以写入下述的结算区块中。
其中一种可选的实现方式可以是,可以当资源请求方通过虚拟资源进行生产资料的购置之后,将根据生产资料处理(例如:加工、种植等等)得到的产品与第一资源兑换方进行交换,并且在完成交换之后,可以由第一资源兑换方生成相关的电子合同。最后,偿还资源可以在区块链中查询得到资源分配请求中的虚拟资源的数量,以及根据虚拟资源的增加值计算策略(例如:每单位时长单位资源数量的增加值),得到虚拟资源分配给资源请求方的使用后所需偿还的偿还资源。
步骤S52.根据偿还资源的第一数量以及收益资源的第二数量确定向资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将第一资源偿还存证数据写入与第一资源兑换方对应的结算区块中;收益资源为与新类型资源对应的第二数量的资源;资源请求方对虚拟资源执行预设动作后得到新类型资源。
在某些实施方案中,偿还资源的资源类型与虚拟资源一致;而偿还资源是收益资源的一部分,因此收益资源与偿还资源的资源类型也是一致的;当偿还资源小于收益资源时,则多余的剩余资源需要转移至资源请求方,并且,第一资源兑换方在执行资源的分配,或完成资源分配之后,会生成对应的第一资源偿还存证数据,以对上述行为进行记录,并写入阶段区块中;一般的,资源结算存证数据中包括:向资源请求方分配剩余资源的时间戳。
资源请求方对虚拟资源执行预设动作可以是:对虚拟资源进行处理,得到另一种形式的资源(即:新类型资源)。
步骤S53.在资源分配方收到偿还资源后,生成对应的第二资源偿还存证数据,并将第二资源偿还存证数据写入资源分配区块中。
在某些实施方案中,当资源分配方收到第一资源兑换方代替资源请求方偿还的偿还资源之后,可以根据接收得到的偿还资源或者接收的动作,生成对应的第二资源偿还存证数据,第二资源偿还存证数据用于表征资源请求方已完成资源偿还,并且包括接收得到偿还资源的时间戳;并且会将第二资源偿还存证数据写入资源分配区块中;一般的,会对更 新后的资源分配区块进行共识,以将其中的信息同步至其它区块链节点中的。
通过本实施例中的方法,可以通过第一资源兑换方直接与资源分配方进行资源偿还等转移操作,提高了处理效率。
如图4所示,在某些实施方案中,如前述的方法,在将第二资源请求存证数据写入资源分配区块中之后,还包括如下所述步骤S7和S8:
步骤S7.获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于资源补充方对应的第一区块中。
在某些实施方案中,资源补充方进行补充资源的补充可以在资源请求方对虚拟资源进行资源类型转换时,出现意外情况,无法正常得到新类型资源时触发执行,可选的,也可采用智能合约进行触发。
在执行后,可以根据执行的结果(例如:补充资源的数量、时间戳、资源请求方的信息等等),生成对应的第一资源补充存证数据,并存储于资源补充方对应的第一区块中。
在某些实施方案中,联盟链中各个区块链节点会对第一区块进行共识,以将其中的信息同步至其它区块链节点中的。
步骤S8.将补充资源归还至资源分配方,生成对应的第二资源补充存证数据,并存储于分配区块中。
在某些实施方案中,当资源分配方收到资源补充方的补充资源之后,可以根据接收得到的补充资源或者接收的动作,生成对应的第二资源补充存证数据,第二资源补充存证数据用于表征资源补充方已代替资源请求方完成资源偿还,一般情况下包括接收到补充资源的时间戳;并且会将第二资源补充存证数据写入资源分配区块中;一般的,会对更新后的资源分配区块进行共识,以将其中的信息同步至其它区块链节点中的。
在某些实施方案中,如前述的方法,所述步骤S7获取资源补充方补充的补充资源,包括如下所述步骤S71至S74。
步骤S71.获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息。
在某些实施方案中,资源转换进度信息可以是用于表征资源转换过程中的参数信息(举例的:可以是执行资源转换的计算设备的故障情况信 息,还可以是进行生产时加工设备或气候环境的异常信息等等,一般每个采集得到的信息都有对应的时间戳);资源追溯方可以实时获取资源请求方的转换情况,并且对得到的资源转换进度信息进行上链。
步骤S72.根据资源转换进度信息以及预设的判定条件得到判定结果信息。
在某些实施方案中,判定条件可以是用于判定资源转换进度信息是否正常的一个或多个评判条件的集合。
判定结果是对资源转换进度信息进行整体评价的结果,可用于评判是否需要代替资源请求方进行资源偿还。
步骤S73.将资源转换进度信息以及判定结果信息写入第二区块的第二存证数据中;第二区块是与资源追溯方对应的区块。
通过采集资源转换进度信息,并写入第二区块的第二存证数据中,可以使资源请求方的转换情况具备数据可追溯性,防止资源请求方为了免于对分配得到的虚拟资源进行偿还而进行信息伪造的情况。
将判定结果信息写入第二区块的第二存证数据中,基于区块链的共享的特性,可以使资源补充方得到用于判断是否向资源分配方进行资源补充的依据。
步骤S74.在判定结果信息符合预设条件时,获取资源补充方补充的补充资源。
在某些实施方案中,预设条件时用于判断判定结果是否满足资源补充方提供补充资源的条件;一般的,预设条件与判定结果信息为对应设置;举例的:当判定结果信息可以为“转换情况异常”和“转换情况正常”时,为了能够准确对判定结果信息进行识别,预设条件则可以是“转换情况异常”。
在识别到判定结果信息与预设条件一致时,则获取资源补充方补充的补充资源。
在某些实施方案中,如前述的方法,在步骤S2对资源请求方的请求方资质进行审核之前,还包括步骤T1至T4。
步骤T1.从第三区块中获取资源请求方的第三存证数据;第三存证数据包括:身份信息。
在某些实施方案中,第三区块用于记录资源请求方的存证数据(即:第三存证数据),且第三存证数据中包括资源请求方的身份信息;进一步的,当应用于信贷时,还可以包括资源请求方的资产信息(例如:房产、地块等等),以证明资源请求方具备偿还能力。
步骤T2.根据第二区块中的白名单信息对身份信息进行校验,得到校验结果,将校验结果写入第二区块的第二存证数据中;第二区块是与资源追溯方对应的区块。
在某些实施方案中,白名单信息中包括多个不同实体(例如:自然人或企业等)身份信息,且白名单中的身份信息可以是信用良好的实体的身份信息,校验结果是用于通过白名单中是否存在身份信息判断资源请求方是否是信用合规实体的结果信息。
步骤T3.当白名单信息中存在身份信息时,在第四区块的第四存证数据中查询是否存在与资源请求方对应的备份信息;备份信息由资源备份方生成并写入第四存证数据中;
在某些实施方案中,备份信息可以是担保信息;第四区块中的第四存证数据可以是对应的实体的担保人员(即:资源备份方)通过客户端将数据上链后得到,之所以查询担保信息,是为了保障资源请求方无法对资源进行偿还的情况下,使担保人员为其偿还,同时也是对资源请求方的信用提供进一步的评价依据。
步骤T4.在第四存证数据中不存在与资源请求方对应的担保信息时,停止对请求方资质进行审核。
也就是说,只有当第四区块的第四存证数据中存在与资源请求方对应的担保信息的时候,才执行后续进行的步骤S2,否则该资源请求方不满足。
在某些实施方案中,如前述的方法,步骤S3在审核结果满足预设的资源分配要求时,触发资源分配方执行与资源分配请求对应的分配操作,具体包括:
在第四存证数据中存在与资源请求方对应的担保信息时,根据第五区块的第五存证数据中获取的资源请求方与第二资源兑换方进行的资源兑换信息,触发资源分配方分配与资源分配请求对应的第四数量的代付 资源至第二资源兑换方。
在某些实施方案中,资源兑换信息由第二资源兑换方根据资源兑换结果写入第五存证数据中。也就是说,只有当第四区块的第四存证数据中存在与资源请求方对应的担保信息的时候,才执行后续进行的步骤;可选的:当第五客户端将购买记录信息写入第五存证数据时,通过预设的智能合约触发资源分配方分配与资源分配请求对应的第四数量的代付资源至第五客户端。
应用前述任一实施例中方法的应用例为:
1、各企业机构(即:资源分配方、第一资源兑换方、第二资源兑换方、资源补充方、资源追溯方、资源备份方以及资源请求方)初始化注册,通过主数据关联,完成实名认证,加入联盟链中通过身份链生成数字证书,初始化用户标识到区块链中。
2、根据农户(即:资源请求方)的认证地块,种养殖计划,收储企业(即:第一资源兑换方)与农户签订预定收储订单,所有操作可以通过农产品交易平台操作留痕,并将数据上链实现不可篡改见证。
3、对所计划的种养殖计划在保险公司(即:资源补充方)在线购买农业保险,在完成保险够买之后,保险公司对保险购买记录和保单进行区块链数据存证。
4、农户通过金融信贷平台向金融机构(即:资源请求方)申请贷款,并由担保组织(即:资源备份方,可以是地方政府、或者知名第三方企业提供担保服务)担保,金融机构通过区块链上农户的信用分值、追溯平台(即:资源追溯方)的白名单状态进行授信额度审批,申请记录和审批结果上链存证。
5、农户通过农资采购平台向农资农服公司(即:第二资源兑换方)采购种子、化肥、农业服务等产品,采购交易自动上链存证,并在采购订单提交后通过智能合约触发金融机构向农资农服企业的付款行为,完成打款,支付数据上链存证。
6、农产品种养殖过程,通过物联网追溯平台(即:资源追溯方)进行数据的实时采集,并同步上链存证,此数据为农业保险的理赔提供决策依据。
7、在农作物种养殖完成后,按照收储预定订单的约定,进行农产品收储,交粮入库点价,此过程在农产品交易平台完成线上操作,记录交易数据和金额,并通过平台进行上链存证。
8、在农产品交易平台的收储订单状态为完成时,自动触发面向金融机构的还款操作,将收储订单金额中的贷款部分,自动打到对应借款的金融机构账户中,收储交易的剩余金额部分支付到农户的账户,全过程数据上链存证。
综上所述,在整个业务流转过程中,主要包含前期准备阶段(即:步骤1至4)、种养殖生产阶段(即:步骤5和6)、收储阶段(即:步骤7和8)三个阶段。前期准备包含签署收储预定订单、购买农业保险、申请金融借款以及完成第三方担保;种养殖生产阶段包含购买农资农服,根据金融贷款订单进行资金垫付,通过物联网追溯平台参与进行生产过程数据的实时上链,对农资农服采购及金融借款对应的农产品生产过程进行监控,这也是申请农业保险赔付的重要依据;收储阶段包含交粮入库点价,根据交易结果向金融机构还款,并将分账后的金额支付农户。
如图5所示,本公开还提供了基于区块链的资源分配装置,其包括:
获取模块1,配置为获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;资源分配请求包括资源请求方的请求方资质;
审核模块2,配置为对资源请求方的请求方资质进行审核,得到审核结果,根据审核结果生成对应的第一资源分配存证数据,并将第一资源分配存证数据写入资源分配区块中;
分配模块3,配置为在审核结果满足预设的资源分配要求时,触发资源分配方执行与资源分配请求对应的分配操作;以及
存证模块4,配置为根据分配操作以及请求操作生成对应的第二资源分配存证数据,并将第二资源分配存证数据写入资源分配区块中;请求操作包括:资源请求方发起资源分配请求。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程可参见方法实施方案中的相关描述,此处不再赘述。
在某些实施方案中,所述装置还包括:资源偿还模块;所述资源偿还模块包括:
分配子模块,配置为根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源;以及
存证子模块,配置为根据所述向所述资源分配方偿还资源生成对应的资源偿还存证数据,并将所述资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程可参见方法实施例中的相关描述,此处不再赘述。
在某些实施方案中,所述分配子模块包括:
获取单元,配置为获取第一资源兑换方代替所述资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;所述偿还资源为对所述虚拟资源使用后所需偿还的资源;
剩余资源单元,配置为根据所述偿还资源的第一数量以及收益资源的第二数量确定向所述资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将所述第一资源偿还存证数据写入与所述第一资源兑换方对应的结算区块中;所述收益资源是与新类型资源对应的第二数量的资源;所述资源请求方对所述虚拟资源执行预设动作后得到所述新类型资源;以及
存证单元,配置为在所述资源分配方收到所述偿还资源后,生成对应的第二资源偿还存证数据,并将所述第二资源偿还存证数据写入所述资源分配区块中。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程可参见方法实施方案中的相关描述,此处不再赘述。
在某些实施方案中,所述装置还包括:资源补充模块;所述资源补充模块包括:
第一获取单元,配置为获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于所述资源补充方对应的第一区块中;以及
补充资源归还单元,配置为将所述补充资源归还至所述资源分配方,生成对应的第二资源补充存证数据,并存储于所述分配区块中。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程 可参见方法实施方案中的相关描述,此处不再赘述。
在某些实施方案中,所述第一获取单元包括:
第一获取子单元,配置为获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息;
判定子单元,配置为根据所述资源转换进度信息以及预设的判定条件得到判定结果信息;
存证子单元,配置为将所述资源转换进度信息以及判定结果信息写入第二区块的第二存证数据中;所述第二区块是与所述资源追溯方对应的区块;以及
第二获取子单元,配置为在所述判定结果信息符合预设条件时,获取所述资源补充方补充的所述补充资源。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程可参见方法实施方案中的相关描述,此处不再赘述。
在某些实施方案中,所述装置还包括:校验模块;所述校验模块包括:
第二获取单元,配置为从第三区块中获取所述资源请求方的第三存证数据;所述第三存证数据包括:身份信息;
校验单元,配置为根据第二区块中的白名单信息对所述身份信息进行校验,得到校验结果,将所述校验结果写入所述第二区块的第二存证数据中;所述第二区块是与资源追溯方对应的区块;
查询单元,配置为当所述白名单信息中存在所述身份信息时,在第四区块的第四存证数据中查询是否存在与所述资源请求方对应的备份信息;所述备份信息由资源备份方生成并写入所述第四存证数据中;以及
判定单元,配置为在所述第四存证数据中不存在与所述资源请求方对应的担保信息时,停止对所述请求方资质进行审核。
在某些实施方案中,本公开的装置中各模块实现其功能的具体过程可参见方法实施方案中的相关描述,此处不再赘述。
在某些实施方案中,应用本公开装置的区块链农资采购金融信贷系统可以包含三层:底层为区块链BaaS平台搭建的区块链层;中间为业务管理应用层平台,包含主数据的管理、物联网追溯平台、农资采购平台、 农产品交易平台、金融信贷平台;最上层为监管层,包含信用体系规则设置、黑白名单准入退出标准、大数据监控报表等多种监控方式。
如图6所示,可以包括:
(I)监管层:
面向政府监管部门例如农业局、商务局、大数据局、现代化农业发展中心等监管部门,通过可视化的操作界面进行农民信用体系评分规则配置、黑白名单标准配置、信用报告查阅、农业全程各项指标大数据分析等操作,进行农业行为监管。
(II)业务应用层:
主数据系统:为整套体系建立统一的主数据系统,包含合作社认证、农民认证、地块认证、收储企业认证、农资农服企业认证、参与农业的金融机构认证等,实名认证后连通区块链,为各参与方赋予身份链上的数字证书,进行数据上链写入的身份证明,以建立整套系统的通用身份体系。
物联网追溯平台:主要负责以农户编号和农作物追溯码为单位,通过物联网设备采集生产过程信息,监控农作物健康状况,作为农业保险赔付的判断依据,并且基于联盟链上农资农服交易、农产品交易信息,为监管机构展示农户黑白名单信用情况。
农资采购平台:主要服务于农户和农资农服销售商,实现农资农服的线上购买和数据留痕。
农产品交易平台:主要服务于农户和收储企业,根据农户追溯平台中记录的地块、种植计划和产量预估,在线签订收储订单,并在农作物生产完成后基于收储订单的采购履约情况进行线上数据记录。
金融信贷平台:主要服务于农户、担保企业\机构、金融机构、农资农服机构和收储机构的资金流转,在线受理农户的农资农服贷款需求、担保机构信息,根据预定收储订单,为农户的农资农服采购订单付款,实现根据智能合约完成自动化打款,并在收储完成后,根据收储订单的履约交易额,为对应贷款金融机构实现自动还款。
(III)区块链层:
区块链(BaaS平台):主要负责让各参与单位的区块链节点纳入同一 个联盟链中,共同维护账本数据,并在各节点区块链链数据传输过程中使用HTTPS协议,保证数据的机密性和完整性。实现农产品从生产、到交易、到金融信贷全程追溯数据的记录、可追溯、不可篡改。
各应用平台SaaS化部署,按应用类型建立行业共识机制,以区块链技术实现多节点主体的数据采集同步,和根据智能合约触发业务操作,并为监管层提供行业大数据分析报告,政府监管报告等。如图7所示,农资采购金融借贷系统架构可以包括:政府监管层、应用用户层、接口层、业务应用层、区块链(BaaS)层、资源层。
政府监管层:主要有农业局、商务局、大数据局、现代化农业发展中心等监管部门,帮助政府监管机构加强全程信息监管、信用及黑白名单规则制定,展示大数据报告;
用户层:主要为农资采购金融借贷业务中的节点,包括:合作社、担保组织、收储企业、农资/农服企业、保险机构、金融机构、第三方追溯机构,其中合作社可以以轻量级节点的形式加入,无需部署区块链节点,而是通过挂靠追溯系统的节点,进行数据的上链写入和读取。
接口层:支持各用户节点企业机构按需对接农资采购金融借贷系统,主要包含SDK&API、WEB。通过SDK&API接口可以直接帮助企业机构已有数据快速对接相关应用系统,进行数据上链;WEB方式可以实现不同语言和平台,通过标准化的XML、或Excel实现各企业机构在应用平台上的数据操作,进行数据上链。
业务应用层:主要为各企业机构节点所使用的SaaS化系统功能,比如合作社和农户用到的物联网追溯平台,农户和农资农服企业用到的农资采购平台。
区块层:区块链(BaaS平台)可以灵活的管理各参与方的区块链节点,配置智能合约,存储和查询上链数据。
资源层:支持私有化部署、各类公有云部署,帮助各企业机构方便快速创建各节点SaaS化应用,提升存储效率,读写效率、并发访问能力等方面来服务农资采购金融借贷系统的诉求。
本公开还提供电子设备,包括:如图8所示,电子设备可以包括:处理器1501、通信接口1502、存储器1503和通信总线1504,其中,处 理器1501,通信接口1502,存储器1503通过通信总线1504完成相互间的通信。
存储器1503,配置为存放计算机程序;以及
处理器1501,配置为执行存储器1503上所存放的程序时,实现上述方法实施例的步骤。
上述电子设备提到的总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述电子设备与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本公开还提供非暂态计算机可读存储介质,非暂态计算机可读存储介质存储计算机指令,计算机指令使计算机执行本公开的方法。
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由 语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (15)

  1. 基于区块链的资源分配方法,其包括:
    获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;所述资源分配请求包括资源请求方的请求方资质;
    对所述资源请求方的请求方资质进行审核,得到审核结果,根据所述审核结果生成对应的第一资源分配存证数据,并将所述第一资源分配存证数据写入资源分配区块中;
    在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作;以及
    根据所述分配操作以及请求操作生成对应的第二资源分配存证数据,并将所述第二资源分配存证数据写入所述资源分配区块中;所述请求操作包括:资源请求方发起所述资源分配请求。
  2. 如权利要求1所述的方法,其中,在所述触发资源分配方执行与所述资源分配请求对应的分配操作之后,还包括:
    根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源;以及
    根据所述向所述资源分配方偿还资源生成对应的资源偿还存证数据,并将所述资源偿还存证数据写入所述资源分配区块中。
  3. 如权利要求2所述的方法,其中,所述根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源,包括:
    获取第一资源兑换方代替所述资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;所述偿还资源为对所述虚拟资源使用后所需偿还的资源;
    根据所述偿还资源的第一数量以及收益资源的第二数量确定向所述资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将所述第一资源偿还存证数据写入与所述第一资源兑换方对应的结算区块中;所述收益资源是与新类型资源对应的第二数量的资源;所述资源请求方对所述虚拟资源执行预设动作后得到所述新类型资源;以及
    在所述资源分配方收到所述偿还资源后,生成对应的第二资源偿还存证数据,并将所述第二资源偿还存证数据写入所述资源分配区块中。
  4. 如权利要求3所述的方法,其中,在所述将所述第二资源请求存证数据写入所述资源分配区块中之后,还包括:
    获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于所述资源补充方对应的第一区块中;以及
    将所述补充资源归还至所述资源分配方,生成对应的第二资源补充存证数据,并存储于所述分配区块中。
  5. 如权利要求4所述的方法,其中,所述获取资源补充方补充的补充资源,包括:
    获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息;
    根据所述资源转换进度信息以及预设的判定条件得到判定结果信息;
    将所述资源转换进度信息以及判定结果信息写入第二区块的第二存证数据中;所述第二区块是与所述资源追溯方对应的区块;以及
    在所述判定结果信息符合预设条件时,获取所述资源补充方补充的所述补充资源。
  6. 如权利要求1至5中任一权利要求所述的方法,其中,在对所述资源请求方的请求方资质进行审核之前,还包括:
    从第三区块中获取所述资源请求方的第三存证数据;所述第三存证数据包括:身份信息;
    根据第二区块中的白名单信息对所述身份信息进行校验,得到校验结果,将所述校验结果写入所述第二区块的第二存证数据中;所述第二区块是与资源追溯方对应的区块;
    当所述白名单信息中存在所述身份信息时,在第四区块的第四存证数据中查询是否存在与所述资源请求方对应的备份信息;所述备份信息 由资源备份方生成并写入所述第四存证数据中;以及
    在所述第四存证数据中不存在与所述资源请求方对应的担保信息时,停止对所述请求方资质进行审核。
  7. 如权利要求6所述的方法,其中,所述在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作,包括:
    在所述第四存证数据中存在与所述资源请求方对应的担保信息时,根据第五区块的第五存证数据中获取的所述资源请求方与第二资源兑换方进行的资源兑换信息,触发资源分配方分配与所述资源分配请求对应的第四数量的代付资源至第二资源兑换方。
  8. 基于区块链的资源分配装置,其包括:
    获取模块,配置为获取资源请求方发起的用于请求分配得到虚拟资源的资源分配请求;所述资源分配请求包括资源请求方的请求方资质;
    审核模块,配置为对所述资源请求方的请求方资质进行审核,得到审核结果,根据所述审核结果生成对应的第一资源分配存证数据,并将所述第一资源分配存证数据写入资源分配区块中;
    分配模块,配置为在所述审核结果满足预设的资源分配要求时,触发资源分配方执行与所述资源分配请求对应的分配操作;以及
    存证模块,配置为根据所述分配操作以及请求操作生成对应的第二资源分配存证数据,并将所述第二资源分配存证数据写入所述资源分配区块中;所述请求操作包括:资源请求方发起所述资源分配请求。
  9. 如权利要求8所述的装置,其还包括:资源偿还模块;所述资源偿还模块包括:
    分配子模块,配置为根据所述资源请求方通过所述虚拟资源产生的收益资源,向所述资源分配方偿还资源;以及
    存证子模块,配置为根据所述向所述资源分配方偿还资源生成对应的资源偿还存证数据,并将所述资源偿还存证数据写入所述资源分配区 块中。
  10. 如权利要求9所述的装置,其中,所述分配子模块包括:
    获取单元,配置为获取第一资源兑换方代替所述资源请求方归还的偿还资源,并生成对应的第一资源偿还存证数据;所述偿还资源为对所述虚拟资源使用后所需偿还的资源;
    剩余资源单元,配置为根据所述偿还资源的第一数量以及收益资源的第二数量确定向所述资源请求方分配的剩余资源,生成对应的资源结算存证数据,并将所述第一资源偿还存证数据写入与所述第一资源兑换方对应的结算区块中;所述收益资源是与新类型资源对应的第二数量的资源;所述资源请求方对所述虚拟资源执行预设动作后得到所述新类型资源;以及
    存证单元,配置为在所述资源分配方收到所述偿还资源后,生成对应的第二资源偿还存证数据,并将所述第二资源偿还存证数据写入所述资源分配区块中。
  11. 如权利要求10所述的装置,其还包括:资源补充模块;所述资源补充模块包括:
    第一获取单元,配置为获取资源补充方补充的补充资源,生成对应的第一资源补充存证数据,并存储于所述资源补充方对应的第一区块中;以及
    补充资源归还单元,配置为将所述补充资源归还至所述资源分配方,生成对应的第二资源补充存证数据,并存储于所述分配区块中。
  12. 如权利要求11所述的装置,其中,所述第一获取单元包括:
    第一获取子单元,配置为获取资源追溯方对资源请求方的转换情况进行信息采集得到的资源转换进度信息;
    判定子单元,配置为根据所述资源转换进度信息以及预设的判定条件得到判定结果信息;
    存证子单元,配置为将所述资源转换进度信息以及判定结果信息写 入第二区块的第二存证数据中;所述第二区块是与所述资源追溯方对应的区块;以及
    第二获取子单元,配置为在所述判定结果信息符合预设条件时,获取所述资源补充方补充的所述补充资源。
  13. 如权利要求8至11中任一权利要求所述的装置,其还包括:校验模块;所述校验模块包括:
    第二获取单元,配置为从第三区块中获取所述资源请求方的第三存证数据;所述第三存证数据包括:身份信息;
    校验单元,配置为根据第二区块中的白名单信息对所述身份信息进行校验,得到校验结果,将所述校验结果写入所述第二区块的第二存证数据中;所述第二区块是与资源追溯方对应的区块;
    查询单元,配置为当所述白名单信息中存在所述身份信息时,在第四区块的第四存证数据中查询是否存在与所述资源请求方对应的备份信息;所述备份信息由资源备份方生成并写入所述第四存证数据中;以及
    判定单元,配置为在所述第四存证数据中不存在与所述资源请求方对应的担保信息时,停止对所述请求方资质进行审核。
  14. 电子设备,其包括:处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口和所述存储器通过所述通信总线完成相互间的通信;
    所述存储器,配置为存放计算机程序;以及
    所述处理器,配置为执行所述计算机程序时,实现权利要求1至7中任一权利要求所述的方法。
  15. 非暂态计算机可读存储介质,其中,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行权利要求1至7中任一权利要求所述的方法。
PCT/CN2021/101189 2020-06-30 2021-06-21 基于区块链的资源分配方法及装置 WO2022001715A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010621220.1A CN111783150A (zh) 2020-06-30 2020-06-30 一种基于区块链的资源分配方法及装置
CN202010621220.1 2020-06-30

Publications (1)

Publication Number Publication Date
WO2022001715A1 true WO2022001715A1 (zh) 2022-01-06

Family

ID=72760872

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/101189 WO2022001715A1 (zh) 2020-06-30 2021-06-21 基于区块链的资源分配方法及装置

Country Status (2)

Country Link
CN (1) CN111783150A (zh)
WO (1) WO2022001715A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111783150A (zh) * 2020-06-30 2020-10-16 北京海益同展信息科技有限公司 一种基于区块链的资源分配方法及装置
CN112035268B (zh) * 2020-11-04 2021-06-08 网络通信与安全紫金山实验室 计算资源的调度方法、装置、计算机设备及存储介质
CN112463265B (zh) * 2020-12-10 2023-11-14 南京知麦信息科技有限公司 一种基于联盟链的农产品物联网信息上链方法
CN112884374A (zh) * 2021-03-26 2021-06-01 重庆度小满优扬科技有限公司 基于区块链的数据处理方法以及分布式的数据处理系统
CN113076547A (zh) * 2021-03-31 2021-07-06 重庆风云际会智慧科技有限公司 基于区块链的违法证据追溯系统
CN113487404A (zh) * 2021-06-30 2021-10-08 浙江数秦科技有限公司 一种基于区块链的农业信贷融资担保业务平台
CN115037752B (zh) * 2022-04-22 2024-03-22 网易(杭州)网络有限公司 资源再分配方法、装置及电子设备
CN114971879B (zh) * 2022-06-17 2023-04-07 北京极致车网科技有限公司 信息处理系统及信息处理方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584043A (zh) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 基于区块链的贷款数据处理方法、装置、设备及存储介质
CN110096376A (zh) * 2019-04-03 2019-08-06 平安普惠企业管理有限公司 一种数据转移方法及相关设备
CN110333948A (zh) * 2019-06-11 2019-10-15 阿里巴巴集团控股有限公司 基于区块链的虚拟资源分配方法和装置
CN111783150A (zh) * 2020-06-30 2020-10-16 北京海益同展信息科技有限公司 一种基于区块链的资源分配方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111292180A (zh) * 2020-03-09 2020-06-16 江苏荣泽信息科技股份有限公司 基于区块链的银行借贷管理系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584043A (zh) * 2018-10-25 2019-04-05 平安科技(深圳)有限公司 基于区块链的贷款数据处理方法、装置、设备及存储介质
CN110096376A (zh) * 2019-04-03 2019-08-06 平安普惠企业管理有限公司 一种数据转移方法及相关设备
CN110333948A (zh) * 2019-06-11 2019-10-15 阿里巴巴集团控股有限公司 基于区块链的虚拟资源分配方法和装置
CN111783150A (zh) * 2020-06-30 2020-10-16 北京海益同展信息科技有限公司 一种基于区块链的资源分配方法及装置

Also Published As

Publication number Publication date
CN111783150A (zh) 2020-10-16

Similar Documents

Publication Publication Date Title
WO2022001715A1 (zh) 基于区块链的资源分配方法及装置
US11830094B2 (en) Data payment and authentication via a shared data structure
US11948194B1 (en) Blockchain instrument for transferable equity
US20200042989A1 (en) Asset-backed tokens
US11875407B1 (en) Blockchain instrument for transferable equity
TWI771604B (zh) 基於區塊鏈的商品購置方法和裝置
US20190012660A1 (en) Systems and methods for providing an architecture for an internet-based marketplace
CN109493196A (zh) 一种基于区块链的房地产存证和交易方法
US20190012663A1 (en) Systems and methods for providing an architecture for an internet-based marketplace
CN110210968A (zh) 智能服务交易系统
US20130159165A1 (en) Automated process guidance application and method for credit instrument origination, administration and fractionalization system
CN112632186A (zh) 区块链共识方法、计算机设备及区块链系统
CN115203320A (zh) 一种碳金融活动管理的方法、设备和计算机可读存储介质
CN113989040A (zh) 资产证券化管理方法及装置
CN115203321A (zh) 一种碳资产交易的方法、设备和区块链系统
Sandner et al. The Programmable Euro: Review and Outlook
KR102389514B1 (ko) 블록체인 기반 특허 크라우드펀딩 장치 및 방법
KR102262403B1 (ko) 글로벌 증권형 가상화폐를 이용한 부동산 개발투자방법
KR20220066786A (ko) 실물자산 투자방법
CN112651833A (zh) 证券处理方法、计算机设备及存储装置
CN111178826A (zh) 基于区块链的消费金融风险管理方法及云平台
KR20190123179A (ko) 블록체인을 이용한 신용자의 신용정보 거래 방법
US20240070795A1 (en) Data payment and authentication via a shared data structure
CN117437015A (zh) 基于区块链的贷款售卖交易管理方法、装置、设备和介质
CN115409624A (zh) 一种基于区块链的虚拟资源交易处理方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21834431

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21834431

Country of ref document: EP

Kind code of ref document: A1