Data processing method based on blockchain and distributed data processing system

By introducing blockchain technology into the budget management platform, decentralized management between resource demand nodes and resource allocation nodes is achieved, budget data tampering is solved, and the reliability and accuracy of budget audits are improved.

CN112884374BActive Publication Date: 2024-11-15SHANGHAI YOUYANG XINMEI INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110327394.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-26
Publication Date
2024-11-15
Estimated Expiration
2041-03-26

AI Technical Summary

Technical Problem

The data of the existing budget management platform is vulnerable to attacks and tampered with, resulting in low security of budget data, which in turn affects the reliability of budget audits.

Method used

The blockchain-based data processing method is adopted to ensure the security of budget resources through decentralized management between resource demand nodes and resource allocation nodes, and realize reliable allocation and audit of budget data.

Benefits of technology

It improves the security of budget data and the reliability of audit results, and ensures effective control and accuracy of budget resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112884374B_ABST
    Figure CN112884374B_ABST
Patent Text Reader

Abstract

The present application provides a data processing method based on blockchain and a distributed data processing system. The method includes: a resource demand node obtains a budget application request from a resource demander, the budget application request is used to apply for a first resource from a budget resource, and the resource demand node sends a budget allocation request to a resource allocation node, the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander. The decentralized management of budget resources is achieved, the data security of budget data is guaranteed, and the analysis or audit results based on budget data can be made more reliable and accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based data processing method and a distributed data processing system. Background Art

[0002] Budget management is a series of organizational, regulatory, control, and supervisory activities to promote the standardized operation of resources. With the continuous development of electronic technology, budget management can be achieved through an electronic budget management platform to enhance the ability to control the budget.

[0003] Currently, budget preparation, budget consumption, and budget auditing based on the consumed budget are carried out through the budget management platform.

[0004] However, the data of the budget management platform in the prior art is vulnerable to attacks and tampering, resulting in low security of the budget data, and further, low reliability of the results obtained from budget audits, etc. Summary of the invention

[0005] The present application provides a blockchain-based data processing method and a distributed data processing system, which can manage budget resources in a decentralized manner to ensure the security of budget data and make the results of budget audits obtained based on budget data have higher reliability.

[0006] In a first aspect, an embodiment of the present application provides a blockchain-based data processing method, including: a resource demand node obtains a budget application request from a resource demander, wherein the budget application request is used to apply for a first resource from the budget resources; the resource demand node sends a budget allocation request to a resource allocation node, wherein the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resources to the resource demander.

[0007] In a second aspect, an embodiment of the present application provides a blockchain-based data processing method, including: a resource allocation node receives a budget allocation request sent by a resource demand node; and the resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request.

[0008] In a third aspect, an embodiment of the present application provides a distributed data processing system, comprising: a resource demand node and a resource allocation node; the resource demand node obtains a budget application request from a resource demander, and the budget application request is used to apply for a first resource from the budget resources; the resource demand node sends a budget allocation request to the resource allocation node, and the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander; the resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request.

[0009] In a fourth aspect, an embodiment of the present application provides a blockchain node, comprising: an acquisition unit, used to obtain a budget application request from a resource demander, wherein the budget application request is used to apply for a first resource from the budget resources; a transceiver unit, used to send a budget allocation request to a resource allocation node, wherein the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resources to the resource demander.

[0010] In a fifth aspect, an embodiment of the present application provides a blockchain node, comprising: a transceiver unit, used to receive a budget allocation request sent by a resource demand node; an allocation unit, used by the resource allocation node to allocate the first resource from the budget resource to the resource demander based on the budget allocation request.

[0011] In a sixth aspect, an embodiment of the present application provides a blockchain node, including: a memory and a processor;

[0012] The memory stores computer executable instructions;

[0013] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method in the first aspect, the second aspect or each implementation manner thereof.

[0014] In a seventh aspect, an embodiment of the present application provides a storage medium, comprising: a readable storage medium and a computer program, wherein the computer program is used to implement the method in the first aspect, the second aspect or each implementation manner thereof.

[0015] The embodiment of the present application is based on blockchain technology, and realizes decentralized management of budget resources by requesting the resource allocation node to allocate the first resource to the resource demander from the budget resources through the resource demand node, thereby ensuring the data security of the budget data, and thus making the analysis or audit results based on the budget data more reliable and accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0018] Figure 2 A schematic diagram of an interactive process of a blockchain-based data processing method 200 provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of an interactive process of a blockchain-based data processing method 300 provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of an interactive process of a blockchain-based data processing method 400 provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the structure of a blockchain node 500 provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of the structure of a blockchain node 600 provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the hardware structure of a node 700 of a blockchain provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0026] The underlying blockchain platform can include processing modules such as user management, basic services, smart contracts, and operation monitoring. Among them, the user management module is responsible for the identity information management of all blockchain participants, including maintaining public and private key generation (account management), key management, and the maintenance of the correspondence between the user's real identity and the blockchain address (authority management), etc., and, under authorization, supervises and audits the transactions of certain real identities and provides risk control rule configuration (risk control audit); the basic service module is deployed on all blockchain node devices to verify the validity of business requests, and records valid requests to storage after consensus is reached. For a new business request, the basic service first adapts the interface for parsing and authentication (interface adaptation), and then encrypts the business information through the consensus algorithm (consensus management). The smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define the contract logic in a programming language and publish it to the blockchain (contract registration). According to the logic of the contract terms, the key or other events are called to trigger the execution and complete the contract logic. It also provides the function of contract upgrade and cancellation. The operation monitoring module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation and real-time status visualization output of the product during the product release process, such as alarm, network monitoring, node equipment health monitoring, etc.

[0027] The platform product service layer provides the basic capabilities and implementation framework of typical applications. Developers can superimpose business features based on these basic capabilities to complete the blockchain implementation of business logic. The application service layer provides application services based on blockchain solutions for business participants to use.

[0028] For ease of understanding, the technical terms related to this application are explained below.

[0029] Budget resources: The overall plan for operating, capital, and financial revenues and expenditures over a period of time in the future.

[0030] Budget management elements: key control points in the operating process and operating chain, aimed at providing standard specifications and effectiveness evaluation for the operating process.

[0031] Public chain: A blockchain where anyone can read and send transactions, where transactions can be effectively confirmed, and where anyone can participate in the consensus process.

[0032] Consortium chain: a decentralized distributed blockchain network deployed in a specific network environment and only targeting members of a specific group.

[0033] Smart contract: A computer protocol designed to communicate, verify or execute contracts in an information-based manner. Smart contracts allow for trusted transactions without a third party, which are traceable and irreversible.

[0034] Participant Node: The blockchain network is a collectively shared peer-to-peer network operated by a group of identifiable and verifiable participants. Participants can be individuals or institutions. Participant nodes participate in blockchain network activities in the form of on-chain nodes.

[0035] At present, budget management platforms are often used to prepare budgets, consume budgets, and conduct budget audits based on the consumed budgets. However, in the prior art, the data of budget management platforms are vulnerable to attacks and tampering, resulting in low security of budget data, and thus low reliability of the results obtained from budget audits.

[0036] In view of the above problems, the embodiment of the present application provides a data processing method to achieve effective control of the budget. The data processing method of the embodiment of the present application is implemented based on blockchain. Blockchain has the characteristics of "unforgeable", "full trace", "traceable", "open and transparent", and "collective maintenance". Therefore, the data processing method implemented based on blockchain in the embodiment of the present application manages budget resources in a decentralized manner, ensures the security of budget data, and thus improves the reliability and accuracy of budget auditing.

[0037] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 As shown, the blockchain network 100 includes multiple blockchain nodes 110 and smart contracts 120.

[0038] Among them, the blockchain network 100 can be understood as a distributed data processing system 100.

[0039] The smart contract 120 can be deployed in a blockchain node 110, or the smart contract 120 can be deployed as a node in the blockchain network 100.

[0040] It should be understood that the blockchain network 100 also includes a blockchain 130, which is composed of multiple blocks connected together. The blockchain 130 is a distributed storage implemented by the blockchain network 100 through the blockchain ledger technology.

[0041] Exemplarily, the smart contract 120 includes at least one of the following contracts: a compilation contract, an execution contract, an adjustment contract, and a general contract. Different contracts can be different modules of a smart contract, or each contract can be an independent smart contract.

[0042] Optionally, multiple functional modules are deployed in each contract. For example, the preparation contract is deployed with a total budget module, departmental budget modules, and a cost control module; the execution contract is deployed with an application module, an advance withdrawal module, an allocation module, and a write-off module; the adjustment contract is deployed with a return module, an additional module, a suspension module, and a freeze module; the assessment contract is deployed with a process compliance module, a benefit module, and a financial audit model; and the general contract is deployed with a budget data query module. Optionally, each of the above modules corresponds to its own interface, and when the contract is called, the specific interface can be called to implement the corresponding function. It should be noted that any of the above contracts may include more or fewer modules, and the embodiments of the present application do not limit this.

[0043] It should be noted that among the multiple blockchain nodes 110, there are nodes that are only used for data synchronization, and there are also blockchain nodes associated with the participants. Among them, the blockchain node associated with the participant can log in to the account of the participant, and at this time, the blockchain node associated with the participant is deployed with a blockchain client, which provides the participant with an interface for interacting with the blockchain; or the blockchain node associated with the participant can be connected to the terminal device logged in with the account of the participant through a wired or wireless method, and at this time, the terminal device is deployed with a blockchain client.

[0044] Exemplarily, the participants include resource demanders, resource approvers, resource allocators, resource controllers, resource configuration parties, resource auditors, etc. Correspondingly, the blockchain nodes associated with the above participants can be resource demand nodes, resource approval nodes, resource allocation nodes, resource control nodes, resource configuration nodes, resource audit nodes, etc.

[0045] Optionally, the resource demander is an individual or organization that applies for the use of resources, for example, it can be an employee in an enterprise; the resource approving party confirms whether to approve the resource demander to use the applied resources, for example, it can be a manager in an enterprise; the resource allocating party allocates the applied resources to the resource demander, for example, it can be the finance department of an enterprise; the resource controlling party supervises the preparation and use of the budget, for example, it can be a shareholder in an enterprise; the resource allocating party prepares the budget, for example, it can be a manager in an enterprise; the resource auditing party audits the use of budget resources.

[0046] Exemplarily, the blockchain node 110 may include at least one of the following node types: a read-write node, a read-only node, and a light node.

[0047] Read-write nodes: support participants to deploy nodes and initiate read and write operations through the client. Blockchain nodes include functions such as calling smart contracts, initiating transactions, and synchronizing blockchain ledgers. Read-write nodes are used by the main participants of the blockchain network and all participants who initiate read and write operations.

[0048] Read nodes: They have basically the same functions as read-write nodes, but do not support initiating transactions or calling contract write operations. Read nodes are mainly used by participants who only need to perform supervision, such as shareholders, regulatory authorities, etc.

[0049] Light node: A light node is a node that only has a client deployed. It can initiate requests to the blockchain network, but the request must be delegated to other nodes to complete. Read and write operations depend on the permissions of the node being accessed.

[0050] The nodes of the participants are interconnected through the network to form a blockchain network. Each participant independently provides blockchain network node resources, and each blockchain node is independently maintained by each participant.

[0051] After the participants provide resources and control the nodes, they join the blockchain network through authentication. The authentication method is not limited, and can be through certificate CA authentication, smart contract permission authentication, or network IP / MAC address binding authentication, etc. This solution does not restrict this.

[0052] After each participant completes authentication and joins the blockchain network, an overall network relationship is formed, and the participants within the network can supervise and verify each other.

[0053] The present application is described below through several embodiments.

[0054] Figure 2 The following is a schematic diagram of an interactive process of a blockchain-based data processing method 200 provided in an embodiment of the present application. Figure 2 As shown, the method includes:

[0055] S201: The resource demand node obtains a budget application request from a resource demander, where the budget application request is used to apply for a first resource from budget resources;

[0056] S202: The resource demand node sends a budget allocation request to the resource allocation node, where the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander;

[0057] Accordingly, the resource allocation node receives the budget allocation request sent by the resource demand node;

[0058] S203: The resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request.

[0059] It should be noted that the resource demand node can obtain the budget application request based on the operation instructions input by the resource demander, such as receiving the operation instructions input by the resource demander on its operation interface; or, the resource demand node can receive the budget application request from the resource demander sent by a terminal device, on which the resource demander's account is logged in.

[0060] Optionally, the total amount of budget resources is pre-set, for example, synchronized to the blockchain network through the blockchain nodes corresponding to the participating parties, and the participating parties may be resource controllers, resource approvers, resource allocators, resource configuration parties, etc.

[0061] It should be understood that the resource demand node has the authority to apply for resources, and the resource allocation node has the authority to allocate budget resources.

[0062] In some embodiments, the authority of the resource demand node and the resource allocation node needs to be confirmed, for example, by a consensus algorithm of the blockchain.

[0063] It should be understood that any request sent in the above steps S201 to S203 is synchronized in the blockchain network and recorded in the blockchain ledger.

[0064] In an embodiment of the present application, based on blockchain technology, a resource demand node requests a resource allocation node to allocate a first resource from the budget resources to a resource demander, thereby achieving decentralized management of budget resources and ensuring the data security of budget data, thereby making the analysis or audit results based on budget data more reliable and accurate.

[0065] exist Figure 2 Based on the embodiment shown, in order to effectively supervise and manage the use of budget resources, the embodiment of the present application needs to ensure that the resource demander's application for the first resource has been approved before allocating the first resource to the resource demander. Figure 3 Provide explanation.

[0066] Figure 3 The following is a schematic diagram of an interactive process of a blockchain-based data processing method 300 provided in an embodiment of the present application. Figure 3 As shown, the method includes:

[0067] S201: A resource demand node obtains a budget application request from a resource demander, where the budget application request is used to apply for a first resource from budget resources.

[0068] S204: The resource demand node sends a budget approval request to the resource approval node, where the budget approval request is used to request the resource approval node to approve the application for the first resource.

[0069] S202: The resource demanding node sends a budget allocation request to the resource allocation node, where the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demanding party.

[0070] Correspondingly, the resource allocation node receives the budget allocation request sent by the resource demand node.

[0071] S205: The resource allocation node determines whether the first resource applied for by the resource demander has been approved by the resource approval node.

[0072] After the first resource applied for by the resource demander is approved by the resource approval node, step S203 is executed.

[0073] S203: The resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request.

[0074] This embodiment does not require the order of executing step S204 and step S202. In some embodiments, the two can be executed simultaneously.

[0075] Exemplarily, before allocating the first resource from the budget resources to the resource demander, the resource allocation node may read the approval result of the resource approval node on the first resource from the blockchain ledger. After the first resource applied for by the resource demander is approved by the resource approval node, in other words, after determining that the approval result of the resource approval node on the first resource applied for by the resource demander is approved, the resource allocation node allocates the first resource from the budget resources to the resource demander based on the budget allocation request.

[0076] In order to more clearly illustrate the above process, a non-limiting example is given below.

[0077] The resource demand node obtains the budget application request initiated by resource demander A, requesting to apply for a first resource with a quota of 10,000 from a budget resource with a quota of 2 million, for Internet Technology (IT) equipment procurement. Exemplarily, the budget application request includes the identity of the resource demander (same as participant below), such as an employee, manager, shareholder, etc., which can be an employee in this embodiment; the name of the resource demander (same as proposer below), such as name, organization name, etc., which can be A in this embodiment; budget transaction code (same as budget tx below), resource purpose (same as purpose below), the quota of the first resource (same as amount below) and application time (same as date below).

[0078] In some embodiments, the budget application request also includes an identifier of a sub-budget of the budget resource. It should be noted that the budget resource can be divided into multiple sub-budgets, for example, a corresponding sub-budget can be divided for each department in the enterprise, and the total amount of the sub-budgets is the total amount of the budget resource. When the budget application request includes an identifier of a sub-budget of the budget resource, the resource allocation node should allocate the first resource from the corresponding sub-budget to the resource demand node.

[0079] For example, a budget request might include the following:

[0080] Participant:Employee

[0081] Proposer:A

[0082] budget tx:9cc3ebeac9b2340159dbf40da0b0a01d

[0083] department:DepartA

[0084] purpose:IT equipment order

[0085] amount:10,000

[0086] date:xxxx-xx-xx

[0087] All the above contents are recorded in the blockchain ledger.

[0088] Exemplarily, the budget approval request sent by the resource demand node to the resource approval node and the budget allocation request sent by the resource demand node to the resource allocation node both contain the content of the above-mentioned budget application request, or the resource demand node synchronizes the budget application request to the blockchain network, and the resource approval node and the resource allocation node obtain the budget application request from the blockchain ledger and then approve and allocate the application.

[0089] In some embodiments, after receiving the budget approval request, the resource approval node obtains the approval processing request of the resource approver B. Exemplarily, the approval processing request includes: the name of the resource approver, such as a manager, shareholder, etc.; the name of the resource approver, such as name, organization name, etc., which may be B in this embodiment; the budget transaction code; and the processing time.

[0090] In some embodiments, after the first resource is approved by the resource approval node, the resource allocation node receives the budget allocation request and obtains the allocation processing request of the resource allocation party C. Exemplarily, the allocation processing request includes the name of the resource allocation party, such as finance; the name of the resource allocation party, such as name, organization name, etc., which may be C in this embodiment; the budget transaction code; and the processing time.

[0091] The above approval processing request and allocation processing request are recorded in the blockchain ledger.

[0092] It should be noted that after the resource allocation node completes resource allocation, the total amount of budget resources and the corresponding sub-budgets will change. For example, in this embodiment, after the first resource with an amount of 10,000 is allocated to the resource demander, the sub-budget of Department A (DepartA) changes from 500,000 to 490,000, and the total amount of budget resources changes from 2 million to 1.99 million. After the total amount of budget resources and the total amount of sub-budgets change, when the resource controller needs to query the budget resource data, the latest budget resource data can be returned.

[0093] Optionally, in addition to the sum of budget resources and the total amount of sub-budgets in the above embodiment, the budget resource data may also include the initial amount of budget resources and the initial amount of each sub-budget, and may also include procedural data of budget preparation, budget application, budget approval, budget allocation and other processes.

[0094] In some embodiments, the resource demand node can implement the following process in the above embodiment by calling the execution contract:

[0095] Obtain budget application requests from resource demanders;

[0096] Sending the budget allocation request to the resource allocation node;

[0097] Send the budget approval request to the resource approval node.

[0098] Exemplarily, the resource demand node may obtain a budget application request by calling an application interface in an execution contract.

[0099] In some embodiments, the resource allocation node may allocate the first resource in the budget resources to the resource demander by calling the execution contract. Exemplarily, the resource allocation node may allocate the first resource in the budget resources to the resource demander by calling the allocation interface of the execution contract.

[0100] On the basis of the above embodiments, in order to further ensure the security of resource use, the embodiment of the present application monitors the application of budget resources in real time, so as to handle the abnormality in time to avoid resource loss. Figure 4 The embodiments of the present application are described.

[0101] Figure 4 The following is a schematic diagram of an interactive process of a blockchain-based data processing method 400 provided in an embodiment of the present application. Figure 4 As shown, the method includes:

[0102] S401: The assessment contract determines whether there is any abnormality in the transaction data of the first resource recorded in the blockchain account book according to a preset trigger condition;

[0103] S402: When there is an abnormality in the transaction data of the first resource recorded in the blockchain account book, the assessment contract sends an alarm message to the resource allocation node, where the alarm message is used to prompt that there is an abnormality in the transaction data of the first resource recorded in the blockchain account book.

[0104] S403: The resource allocation node obtains a resource processing request from the resource allocation party in response to the alarm information;

[0105] S404: The resource allocation node performs a corresponding processing operation on the first resource based on the resource processing request.

[0106] It should be noted that the assessment contract may determine whether there is an abnormality in the transaction data of the first resource recorded in the blockchain account book according to the preset trigger condition, which may include at least one of the following implementation methods:

[0107] 1. The assessment contract determines whether there is any abnormality in the transaction data of the first resource recorded in the blockchain ledger according to a preset period. For example, only the blockchain ledger corresponding to the newly added block in the blockchain may be determined;

[0108] 2. The assessment contract determines whether there is any anomaly in the transaction data of the first resource recorded in the blockchain ledger corresponding to the newly added block each time a new block is added.

[0109] 3. When the total amount of budgeted resources is lower than the preset value, the assessment contract determines whether there is any abnormality in the transaction data of the first resource recorded in the blockchain ledger.

[0110] It should be noted that in this embodiment, whether there are any abnormalities in the transaction data of the first resource, including whether the amount of the first resource meets the requirements. For example, when the amount of the first resource is greater than the amount threshold, it is considered that the transaction data of the first resource is abnormal. It also includes whether there are any abnormalities in the transaction process of the first resource, for example, the first resource has not been approved by the resource approver and allocated to the resource demander.

[0111] Exemplarily, if there is an anomaly in the transaction data of the first resource, the resource allocation node obtains the resource processing request of the resource allocator after receiving the alarm information of the assessment contract. The resource processing request may include freezing the first resource, suspending the allocation of the first resource to the resource demander, etc.

[0112] Exemplarily, the resource allocation node may call the adjustment contract to perform corresponding processing operations on the first resource, such as freezing or suspending the allocation of the first resource to the resource demander, etc. Optionally, the resource allocation node may call the freeze interface in the adjustment contract to freeze the first resource, and the resource allocation node may call the pause interface in the adjustment contract to suspend the allocation of the first resource to the resource demander.

[0113] For example, if the assessment contract detects that the first resource has not been approved by the resource approval node and is directly allocated to the resource demander by the resource allocation node, then the transaction data of the first resource is abnormal. Since the blockchain account book records all the relevant data of the transaction process, when this non-compliant transaction is sent, the process compliance module of the assessment contract is triggered. The assessment contract immediately generates an alarm message and sends the alarm message to the resource allocator, so that the resource allocator can correct the abnormality as soon as possible. Optionally, the assessment contract can also send the alarm message to the resource audit node, which will freeze the first resource to avoid resource loss and ensure the safe use of resources.

[0114] In some embodiments, the resource audit node may obtain an online audit request from a resource auditor and audit the transaction data based on the audit request. Alternatively, the resource audit node may obtain an offline audit request from a resource auditor and export the transaction data in the blockchain ledger to a local device based on the offline audit request, so that the resource auditor can perform offline analysis on the transaction data.

[0115] In some embodiments, the budget resources are pre-configured by the resource configuration node through the programming contract.

[0116] Exemplarily, the resource configuration node obtains the resource configuration request of the first resource configuration party, and configures the total amount of the budget resources according to the resource configuration request. Exemplarily, the resource configuration node may call the compilation contract to configure the total amount of the budget resources. Optionally, the resource configuration node may call the total budget interface of the compilation contract to configure the total amount of the budget resources.

[0117] Optionally, the resource configuration node may obtain a resource configuration request from at least one second resource configuration party, and configure the total amount of the sub-budget according to the resource configuration request. It should be noted that the second resource configuration party may be the same as or different from the first resource configuration party, which is not required in this embodiment.

[0118] Exemplarily, the resource allocation node may call the budget interface of each department of the compilation contract to configure the total amount of the sub-budget.

[0119] For example, as a resource allocator, the company leadership sets the total amount of budget resources for the entire year, and the Chief Executive Officer (CEO) submits a resource allocation request. CEO A calls the total budget function of the compiled contract by calling the blockchain's Software Development Kit (SDK) or Application Programming Interface (API). The calling process indicates the identity of the participant, the operator is CEO A; the annual budget is 2 million yuan; the submission time, etc.

[0120] This is just an example to illustrate the problem. The compiled contract can support any calling operation. In addition to the above illustrative content, the resource allocation request can be added or deleted according to the actual situation. It is not mandatory to achieve the goal.

[0121] After receiving a call, the smart contract, including the compilation contract, will first complete the permission verification, and then initiate multi-party endorsement on the blockchain. The endorsement process is a common operation of the blockchain based on the consensus algorithm, which will not be repeated here.

[0122] After the endorsement is completed, a budget record space will be created on the blockchain, and the transaction will be recorded on the blockchain through the Hash algorithm.

[0123] After the budget space is created, the Chief Financial Officer (CFO) initiates the budget submission of each department. The submitter is CFO B. Optionally, when each department prepares a budget, the resource allocation request may include Department A = 50w, Department B = 50w, Department C = 100w, and the submission time is etc.

[0124] After the budget is submitted, it will be approved by the board of directors. The board of directors' approval form will formulate a budget application form that needs to be approved, and C of the board of directors initiated the approval.

[0125] In some embodiments, a resource control node obtains a budget query request from a resource controller, where the budget query request is used to request to view budget data, where the budget data includes at least one of a balance of budget resources, a total amount of budget resources, and used budget resources, and the resource control node calls a general contract to obtain the budget data based on the budget query request.

[0126] Exemplarily, the resource control node may call the budget data query interface of the general contract to obtain the budget query request of the resource controller.

[0127] For example, the CEO submits the annual budget, the CFO submits the budget for each department, and the board of directors completes the approval. These operations are transparent and visible to all regulators and shareholders. Regulators or shareholders can initiate queries to view the transaction data of all transactions on the blockchain.

[0128] If shareholder D initiates a budget query request, the budget query request at least includes a budget transaction code.

[0129] After receiving the budget, the blockchain network will return the budget data. If the budget is for the whole year, the total amount is 2 million.

[0130] In this embodiment, the preset value of the smart contract involved in any of the above embodiments can be realized. In actual application scenarios, the participants who write and approve smart contracts can be determined based on the stakeholders and responsible parties involved in different smart contracts.

[0131] After the smart contract is written, it needs to be submitted to the blockchain for archiving and execution. The smart contract is submitted by the participants and endorsed by multiple participants on the blockchain. The endorsement strategy depends on the consensus algorithm adopted by the blockchain. It can be endorsed by all participants, or by only a few major responsible parties, or by only the majority of the major responsible parties. This plan is not limited. When the smart contract is uploaded to the blockchain, it will be executed on the blockchain, can be called, can store data, and cannot be changed. The upload of the smart contract to the blockchain and the subsequent transactions that call the smart contract will leave traces on the blockchain network and will be visible to all blockchain participants (visible means that each participant can see that the network has initiated a transaction to call the smart contract, but cannot see the input and output data of the transaction. If you want to query the input, output, and ledger data, you need to call the general contract and pass the permission verification).

[0132] In some embodiments, a participant initiates a transaction process, taking the resource demander submitting a budget application request as an example:

[0133] First, the resource demander initiates a call, which can be made to the resource demand node through the blockchain client, SDK or API. At this time, the transaction will be pre-written into the block of the resource demand node, and then the consensus algorithm will be triggered. The blockchain consensus endorsement will be multicast or broadcast throughout the network.

[0134] After receiving the above transaction data, other participating nodes in the blockchain network will judge the transaction according to their own verification logic. If there is no abnormality, the endorsement will be completed; if there is an abnormality, it will be rejected.

[0135] After receiving the endorsement, if the endorsement is successful, the node will produce a block. If the endorsement fails, the node will fail to produce a block. For example, when 60% of the blockchain nodes endorse, if the consensus algorithm requires all blockchain nodes to endorse, the endorsement fails. If the consensus algorithm requires 1 / 2 nodes to endorse, the endorsement succeeds. After the endorsement is successful, the transaction will be written into the block, and the block will be synchronized in the blockchain network.

[0136] In the budget management process, the definition of participants can include the board of directors, shareholders, finance, audit, managers, etc. Each participant joins the blockchain network through their own node and participates in the budget management process.

[0137] According to the division of functions, some participants deploy read-write nodes, some deploy read-only nodes, and some only need to deploy light clients. Each blockchain node is deployed on the device resources of each participant, and synchronizes data and transactions through the blockchain network (generally using a peer-to-peer (P2P) network, or multicast or broadcast within a local area network), and records the synchronized data in the blockchain ledger.

[0138] After receiving the transaction request, the participating node can endorse the transaction. When the endorsement exceeds the required endorsement threshold, the transaction is completed, and the completed transaction will be recorded in the blockchain ledger and synchronized on the blockchain network. If the endorsement requirement cannot be met, the transaction will be rejected. This avoids single node malicious behavior, and realizes the compliance identification of transaction information and meets audit specifications.

[0139] Budget management relies on the division of responsibilities and powers of the entire enterprise, and can refine responsibilities to individuals. In this solution, each responsible person is called a participant, and each participant will access the blockchain network as an independent node (blockchain is not limited to public chains or alliance chains).

[0140] Participants can initiate read or write operations to the blockchain network through nodes in the form of SDK or API interface. After the read operation completes the basic permission verification, the data on the blockchain can be obtained. However, the write operation cannot be returned immediately after the call is initiated. This process requires the endorsement of the nodes of other participants on the blockchain.

[0141] The endorsement strategy depends on the consensus algorithm adopted by the blockchain. You can choose to have all participants endorse, or only a few major responsible parties endorse, or only the majority of the major responsible parties endorse. This solution is not limited and supports all.

[0142] For example, endorsement can be done by the board of directors, shareholders, and leadership, and not all parties involved. If the endorsement is passed, the write operation will be recorded on the blockchain. If the endorsement fails (generally, the failure is because the parties involved in the endorsement believe that there is a problem with the request and reject the transaction), the transaction fails and will not be written to the blockchain.

[0143] Figure 5 A schematic diagram of the structure of a blockchain node 500 provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the blockchain node 500 includes:

[0144] An acquisition unit 510 is used to acquire a budget application request from a resource demander, where the budget application request is used to apply for a first resource from the budget resources;

[0145] The transceiver unit 520 is used to send a budget allocation request to the resource allocation node, where the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander.

[0146] In some embodiments, the transceiver unit 520 is further used to: send a budget approval request to the resource approval node, where the budget approval request is used to request the resource approval node to approve the application for the first resource.

[0147] In some embodiments, the blockchain node 500 further includes a calling unit 530 for calling an execution contract; wherein the execution contract is used to indicate at least one of the following processes:

[0148] Obtain the budget application request from the resource demander;

[0149] Sending the budget allocation request to the resource allocation node;

[0150] The budget approval request is sent to the resource approval node.

[0151] In some embodiments, the budget resources are pre-configured by the resource configuration node through the programming contract.

[0152] In some embodiments, the acquisition unit 510 is also used to obtain a budget query request from a resource controller, where the budget query request is used to request to view budget data, where the budget data includes at least one of the balance of budget resources, the total amount of budget resources, and used budget resources; the calling unit 530 is also used to: call a general contract to obtain the budget data based on the budget query request.

[0153] A blockchain node provided in this embodiment can be used to implement the method in any of the above embodiments, and its implementation effect is similar to that of the method embodiment, which will not be repeated here.

[0154] Figure 6 A schematic diagram of the structure of a blockchain node 600 provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the blockchain node 600 includes:

[0155] The transceiver unit 610 is used to receive a budget allocation request sent by a resource demand node;

[0156] The allocation unit 620 is configured for the resource allocation node to allocate the first resource from the budget resource to the resource demander based on the budget allocation request.

[0157] In some embodiments, the blockchain node 600 also includes: a processing unit 630, which is used to: determine whether the first resource applied for by the resource demander has been approved by the resource approval node; after the first resource applied for by the resource demander has been approved by the resource approval node, execute the step of allocating the first resource from the budget resource to the resource demander based on the budget allocation request.

[0158] In some embodiments, the processing unit 630 is also used to: determine whether there is an abnormality in the transaction data of the first resource recorded in the blockchain ledger according to a preset trigger condition; when there is an abnormality in the transaction data of the first resource recorded in the blockchain ledger, the assessment contract sends an alarm message to the resource allocation node, and the alarm message is used to prompt that there is an abnormality in the transaction data of the first resource recorded in the blockchain ledger.

[0159] In some embodiments, the blockchain node 600 further includes an acquisition unit 640;

[0160] The acquisition unit 640 is used to: in response to the alarm information, acquire a resource processing request of the resource allocator;

[0161] The processing unit 630 is further configured to: cause the resource allocation node to perform a corresponding processing operation on the first resource based on the resource processing request.

[0162] A blockchain node provided in this embodiment can be used to implement the method in any of the above embodiments, and its implementation effect is similar to that of the method embodiment, which will not be repeated here.

[0163] Figure 7 Schematic diagram of the hardware structure of a node 700 of a blockchain provided in an embodiment of the present application. Figure 7 As shown, generally, a blockchain node 700 includes: a processor 701 and a memory 702.

[0164] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0165] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is used to be executed by the processor 701 to implement the method provided in the method embodiment of the present application.

[0166] Alternatively, if Figure 7 As shown, the blockchain node 700 may also include a transceiver 703, and the processor 701 may control the transceiver 703 to communicate with other devices. Specifically, it may send information or data to other devices, or receive information or data sent by other devices.

[0167] The transceiver 703 may include a transmitter and a receiver. The transceiver 703 may further include an antenna, and the number of antennas may be one or more.

[0168] Optionally, the blockchain node 700 can implement the corresponding processes in the various methods of the embodiments of the present application, which will not be described here for the sake of brevity.

[0169] Those skilled in the art will understand that Figure 7The structure shown in the figure does not constitute a limitation on the blockchain node 700, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0170] An embodiment of the present application also provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a node of the blockchain, the blockchain node is enabled to execute the credit assessment method of the electronic certificate provided in the above embodiment.

[0171] The computer-readable storage medium in this embodiment can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more available media integrated into it. The available media can be magnetic media (for example, floppy disks, hard disks, tapes), optical media (for example, DVDs), or semiconductor media (for example, SSDs), etc.

[0172] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0173] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the credit evaluation method for an electronic certificate provided in the above embodiment.

[0174] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0175] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: The resource demand node obtains a budget application request from a resource demander, where the budget application request is used to apply for a first resource from the budget resources; The resource demand node sends a budget allocation request to the resource allocation node, wherein the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander, Before allocating the first resource from the budget resources to the resource demander, the resource allocation node reads the approval result of the resource approval node on the first resource from the blockchain account book. After the first resource applied for by the resource demander is approved by the resource approval node, that is, after determining that the approval result of the resource approval node on the first resource applied for by the resource demander is approved, the resource allocation node allocates the first resource from the budget resources to the resource demander based on the budget allocation request. The budget application request also includes an identifier of a sub-budget of the budget resource, and the budget resource is divided into a plurality of sub-budgets. When the budget application request includes an identifier of a sub-budget of the budget resource, the resource allocation node shall allocate the first resource from the corresponding sub-budget to the resource demand node. After the resource allocation node completes resource allocation, the total amount of budget resources and the corresponding sub-budget will change. After the total amount of budget resources and the total amount of sub-budget change, when the resource controller needs to query the budget resource data, the latest budget resource data is returned; In addition to the total amount of budget resources and the total amount of sub-budgets, the budget resource data also includes the initial amount of budget resources and the initial amount of each sub-budget, as well as the procedural data of budget preparation, budget application, budget approval, and budget allocation.

2. The method according to claim 1, characterized in that The method further comprises: The resource demand node sends a budget approval request to the resource approval node, where the budget approval request is used to request the resource approval node to approve the application for the first resource.

3. The method according to claim 2, characterized in that The method further comprises: The resource demand node calls the execution contract; The execution contract is used to indicate at least one of the following processes: Obtaining a budget application request from the resource demander; Sending the budget allocation request to the resource allocation node; The budget approval request is sent to the resource approval node.

4. The method according to any one of claims 1 to 3, characterized in that: The budget resources are pre-configured by the resource configuration node through the compilation contract.

5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: The resource control node obtains a budget query request from the resource controller, where the budget query request is used to request to view budget data, where the budget data includes at least one of a balance of budget resources, a total amount of budget resources, and used budget resources; The resource control node calls a general contract to obtain the budget data based on the budget query request.

6. A data processing method based on blockchain, characterized in that: include: The resource allocation node receives the budget allocation request sent by the resource demand node; The resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request, Before allocating the first resource from the budget resources to the resource demander, the resource allocation node reads the approval result of the resource approval node on the first resource from the blockchain account book. After the first resource applied for by the resource demander is approved by the resource approval node, that is, after determining that the approval result of the resource approval node on the first resource applied for by the resource demander is approved, the resource allocation node allocates the first resource from the budget resources to the resource demander based on the budget allocation request. The budget application request also includes an identifier of a sub-budget of the budget resource, and the budget resource is divided into a plurality of sub-budgets. When the budget application request includes an identifier of a sub-budget of the budget resource, the resource allocation node shall allocate the first resource from the corresponding sub-budget to the resource demand node. After the resource allocation node completes resource allocation, the total amount of budget resources and the corresponding sub-budget will change. After the total amount of budget resources and the total amount of sub-budget change, when the resource controller needs to query the budget resource data, the latest budget resource data is returned; In addition to the total amount of budget resources and the total amount of sub-budgets, the budget resource data also includes the initial amount of budget resources and the initial amount of each sub-budget, as well as the procedural data of budget preparation, budget application, budget approval, and budget allocation.

7. The method according to claim 6, characterized in that Before the resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request, the method further includes: The resource allocation node determines whether the first resource applied for by the resource demander has been approved by the resource approval node; After the first resource applied for by the resource demander is approved by the resource approval node, the resource allocation node executes the step of allocating the first resource from the budget resource to the resource demander based on the budget allocation request.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: The assessment contract determines whether there is any abnormality in the transaction data of the first resource recorded in the blockchain account book according to the preset trigger conditions; When there is an abnormality in the transaction data of the first resource recorded in the blockchain account book, the assessment contract sends an alarm message to the resource allocation node, and the alarm message is used to prompt that there is an abnormality in the transaction data of the first resource recorded in the blockchain account book.

9. The method according to claim 8, characterized in that The method further comprises: The resource allocation node obtains a resource processing request of the resource allocation party in response to the alarm information; The resource allocation node performs a corresponding processing operation on the first resource based on the resource processing request.

10. A distributed data processing system, characterized in that: include: Resource demand nodes and resource allocation nodes; The resource demand node obtains a budget application request from a resource demander, where the budget application request is used to apply for a first resource from the budget resources; The resource demand node sends a budget allocation request to the resource allocation node, where the budget allocation request is used to request the resource allocation node to allocate the first resource from the budget resource to the resource demander; The resource allocation node allocates the first resource from the budget resource to the resource demander based on the budget allocation request, Before allocating the first resource from the budget resources to the resource demander, the resource allocation node reads the approval result of the resource approval node on the first resource from the blockchain account book. After the first resource applied for by the resource demander is approved by the resource approval node, that is, after determining that the approval result of the resource approval node on the first resource applied for by the resource demander is approved, the resource allocation node allocates the first resource from the budget resources to the resource demander based on the budget allocation request. The budget application request also includes an identifier of a sub-budget of the budget resource, and the budget resource is divided into a plurality of sub-budgets. When the budget application request includes an identifier of a sub-budget of the budget resource, the resource allocation node shall allocate the first resource from the corresponding sub-budget to the resource demand node. After the resource allocation node completes resource allocation, the total amount of budget resources and the corresponding sub-budget will change. After the total amount of budget resources and the total amount of sub-budget change, when the resource controller needs to query the budget resource data, the latest budget resource data is returned; In addition to the total amount of budget resources and the total amount of sub-budgets, the budget resource data also includes the initial amount of budget resources and the initial amount of each sub-budget, as well as the procedural data of budget preparation, budget application, budget approval, and budget allocation.

Citation Information

Patent Citations

  • Virtual resource allocation method and device based on block chain

    CN110333948A

  • Resource application method and device based on block chain, electronic equipment and storage medium

    CN110572457A

  • Resource allocation method and device based on block chain

    CN111783150A

  • Resource processing system, and approval method, apparatus and device for resource project declaration

    WO2020108127A1