Accounting method, platform, product and equipment for profit sharing, and storage medium
By configuring preset interfaces and contracts on the blockchain, data interaction between user blockchain and bank blockchain is achieved, and the problem of unsupervised accounting dividing process in the traditional profit sharing process is solved, and the capability of profit sharing process is improved Reliability and transparency.
Patent Information
- Application Number
- CN202411642858.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2024-12-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the traditional process of profit sharing, due to the high centralization of the banking system, the profit sharing party cannot supervise the accounting sharing process, resulting in a decrease in the credibility and transparency of the profit sharing information.
By configuring a preset interface between the user blockchain and the bank blockchain, using the preset target accounting contract and the accounting sub-record contract for data interaction, the accounting sub-record operation is realized, and the accounting sub-record results are stored in the user blockchain to ensure the distribution of profits The information can be verified.
It improves the credibility and transparency of the lubrication process, enables the lubrication side to verify the lubrication information on its own, and enhances the transparency and reliability of the lubrication process.
Smart Images

Figure CN119151666A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to an accounting method, platform, product, device and storage medium for profit sharing. Background Art
[0002] Profit sharing refers to a business model in which multiple profit-sharing parties distribute profits according to the distribution ratio. The traditional profit-sharing process is that the initiator of the profit-sharing project submits the profit-sharing information to the bank system, so that the bank system divides the accounts according to the distribution ratio in the profit-sharing information, thereby completing the payment to each profit-sharing party. However, due to the high degree of centralization of the banking system, the profit-sharing party cannot supervise the bank system's account-sharing process. The profit-sharing party can only know the specific amount of its own profit through the bank system's payment records, and it is unknown whether the profit-sharing information received by the bank system, such as the distribution ratio, total profit amount, and profit frequency, has been tampered with, which reduces the credibility and transparency of the profit-sharing process. Summary of the invention
[0003] In view of the above problems, this application provides a bookkeeping method, platform, product, device and storage medium for profit sharing, so as to achieve the purpose of improving the credibility and transparency of the profit sharing process. The specific plan is as follows: The first aspect of the present application provides a bookkeeping method for profit sharing, comprising: The preset target accounting contract in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier of the preset target accounting contract, the project identifier and the profit sharing information to the bank blockchain through a preset interface; The preset target account-splitting contract in the bank blockchain sends the second address identifier of the preset target account-splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and the preset target account-splitting contract has a corresponding relationship with the project identifier; performs an account-splitting operation according to the profit-sharing information, and sends the account-splitting result to the preset target accounting contract through the preset interface, and the account-splitting result includes a list of profit-sharing parties and a list of profit-sharing amounts; The preset target accounting contract stores the account splitting result, the project identifier and the second address identifier in the user blockchain.
[0004] In a possible implementation, the user blockchain includes a contract block, a first storage block, a second storage block, and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store the profit-sharing information, and the second storage block is used to store the account splitting result, the project identifier, the second address identifier and their association.
[0005] In a possible implementation, the preset target accounting contract in the user blockchain extracts profit information corresponding to the project identifier in the profit request from the user blockchain in response to the profit request, including: In response to the profit sharing request, each of the preset accounting contracts in the contract block identifies the project identifier in the profit sharing request; The preset target accounting contract extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the first storage block, and the preset target accounting contract is the preset accounting contract whose accounting contract identifier is compatible with the project identifier.
[0006] In a possible implementation, performing an account splitting operation according to the profit sharing information and sending the account splitting result to the preset target accounting contract through the preset interface includes: The preset target account-sharing contract completes the account-sharing operation for each profit-sharing party according to the total profit-sharing amount, profit-sharing party identifier, profit-sharing party account identifier, and distribution ratio in the profit-sharing information, obtains the profit-sharing party list including the identifiers of each profit-sharing party, and obtains the profit-sharing amount list including the identifiers of each profit-sharing party and the profit-sharing amount corresponding to each profit-sharing party identifier; The preset target account-sharing contract sends the account-sharing result including the profit-sharing party list and the profit-sharing amount list to the preset target accounting contract according to the first address identifier.
[0007] In a possible implementation, the method further includes: The preset target accounting contract responds to the ledger result query request sent by the profit sharing party block, and searches the second storage block for the ledger result having the association relationship with the query verification identifier according to the query verification identifier in the ledger result query request, where the query verification identifier is the project identifier or the second address identifier.
[0008] The second aspect of the present application provides an accounting platform for profit sharing, including a preset target accounting contract deployed in a user blockchain, and a preset target account splitting contract deployed in a bank blockchain. The preset target accounting contract in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier of the preset target accounting contract, the project identifier and the profit sharing information to the bank blockchain through a preset interface; The preset target account-splitting contract in the bank blockchain sends the second address identifier of the preset target account-splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and the preset target account-splitting contract has a corresponding relationship with the project identifier; performs an account-splitting operation according to the profit-sharing information, and sends the account-splitting result to the preset target accounting contract through the preset interface, and the account-splitting result includes a list of profit-sharing parties and a list of profit-sharing amounts; The preset target accounting contract stores the account splitting result, the project identifier and the second address identifier in the user blockchain.
[0009] In a possible implementation, the user blockchain includes a contract block, a first storage block, a second storage block, and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store the profit-sharing information, and the second storage block is used to store the account splitting result, the project identifier, the second address identifier and their association.
[0010] In a possible implementation, the preset target accounting contract in the user blockchain is set to: In response to the profit sharing request, each of the preset accounting contracts in the contract block identifies the project identifier in the profit sharing request; The preset target accounting contract extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the first storage block, and the preset target accounting contract is the preset accounting contract whose accounting contract identifier is compatible with the project identifier.
[0011] In a possible implementation, when the preset target account-sharing contract performs an account-sharing operation according to the profit-sharing information and sends the account-sharing result to the preset target accounting contract through the preset interface, it is set to: The preset target account-sharing contract completes the account-sharing operation for each profit-sharing party according to the total profit-sharing amount, profit-sharing party identifier, profit-sharing party account identifier, and distribution ratio in the profit-sharing information, obtains the profit-sharing party list including the identifiers of each profit-sharing party, and obtains the profit-sharing amount list including the identifiers of each profit-sharing party and the profit-sharing amount corresponding to each profit-sharing party identifier; The preset target account-sharing contract sends the account-sharing result including the profit-sharing party list and the profit-sharing amount list to the preset target accounting contract according to the first address identifier.
[0012] In a possible implementation, the preset target accounting contract is further set to: The preset target accounting contract responds to the ledger result query request sent by the profit sharing party block, and searches the second storage block for the ledger result having the association relationship with the query verification identifier according to the query verification identifier in the ledger result query request, where the query verification identifier is the project identifier or the second address identifier.
[0013] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the accounting method for profit sharing according to the above-mentioned first aspect or any implementation method of the first aspect.
[0014] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the accounting method for profit sharing according to the above-mentioned first aspect or any implementation method of the first aspect.
[0015] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the accounting method for profit sharing according to the above-mentioned first aspect or any implementation of the first aspect.
[0016] By means of the above technical solution, the present application provides an accounting method, platform, product, device and storage medium for profit sharing, which realizes data interaction between the user blockchain and the bank blockchain by configuring a preset interface. In addition, by configuring a preset target account splitting contract that has a corresponding relationship with the project identifier, the account splitting operation is performed according to the profit sharing information, and the account splitting result is sent to the preset accounting contract through the preset interface, thereby realizing the collection of the account splitting results in the bank blockchain. Subsequently, by configuring the preset target account splitting contract, the account splitting result, project identifier and account splitting contract identifier are associated and stored in the user blockchain, so that the profit sharing party verifies the information in the profit sharing list and the profit sharing amount list through the profit sharing information stored in the user blockchain, thereby improving the credibility and transparency of the profit sharing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0018] Figure 1 A flowchart of a profit-sharing accounting method provided for this application; Figure 2 A schematic diagram of the implementation process of a bookkeeping method for profit sharing provided in this application; Figure 3 A flowchart of a preset target account splitting contract provided in this application to complete the account splitting operation and obtain the account splitting result; Figure 4 A flowchart of a preset target accounting contract provided in this application to find the split account results associated with the query verification identifier; Figure 5 A signaling diagram of a profit-sharing accounting method provided for this application; Figure 6 A block diagram of a bookkeeping platform for profit sharing provided for this application; Figure 7 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0019] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0020] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0021] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0022] The first aspect of the present application provides a bookkeeping method for profit sharing, such as Figure 1 As shown, the bookkeeping method for profit sharing includes: S101. The preset target accounting contract in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier, project identifier and profit sharing information of the preset target accounting contract to the bank blockchain through a preset interface.
[0023] It should be noted that in actual application scenarios, the user blockchain mentioned above can be a consortium chain built by the profit-sharing project initiator and participated by the profit-sharing project initiator and multiple profit-sharing parties. Since blockchain has the characteristics of decentralization, anonymity, traceability and immutability. Therefore, by configuring the user blockchain mentioned above to store profit-sharing information and storing the account splitting results in subsequent steps, while preventing the account splitting results from being tampered with, all participants in the user blockchain can query the account splitting results through the user blockchain, thereby improving the credibility and transparency of the profit-sharing process.
[0024] It should be noted that, in actual application scenarios, the above-mentioned preset target accounting contract is a smart contract formulated based on the accounting needs of the target profit-sharing project. By deploying the above-mentioned preset target accounting contract in the above-mentioned user blockchain, it is realized that when a profit-sharing request is generated, the preset target accounting contract automatically executes the accounting operation of the corresponding target profit-sharing project, thereby improving the execution efficiency of profit-sharing accounting. At the same time, since the smart contract is visible to all participants in the blockchain, the risk of information tampering is avoided, and the transparency and credibility of accounting are improved. This application does not make too many restrictions and redundant descriptions on the specific construction process of the above-mentioned preset target accounting contract.
[0025] In a possible implementation, the profit-sharing request may be a request sent by a participant of a profit-sharing project to a preset target accounting contract. The participant of the profit-sharing project may be the initiator of the profit-sharing project or the profit-sharing party.
[0026] In another possible implementation, the above profit sharing request can be triggered and executed by a scheduled task pre-set in a preset target accounting contract. Specifically: when the scheduled task in the preset target accounting contract detects that the current moment is the profit sharing moment, it automatically triggers the generation of a profit sharing request including a project identifier, so that the preset target accounting contract in the user blockchain responds to the profit sharing request and extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain.
[0027] It should be noted that in actual application scenarios, the above profit-sharing information can be stored in the user blockchain and is the information required for the bank blockchain to perform account splitting operations. The parameters in the above profit-sharing information include but are not limited to: project identification, total profit-sharing amount, number of profit-sharing parties, application time, single amount, profit-sharing party receiving account, profit-sharing ratio, etc. This application stores the profit-sharing information in the user blockchain through configuration, so that the participants of the user blockchain can query the above profit-sharing information through the user blockchain, avoiding the risk of data used for account splitting operations being tampered with.
[0028] It should be noted that in actual application scenarios, the above-mentioned first address identifier is used to mark the identifier of the specific location of the preset target contract in the user blockchain. Since the same user blockchain can support multiple profit-sharing projects, and different profit-sharing projects have different accounting requirements, multiple preset accounting contracts serving different profit-sharing projects can be deployed simultaneously in the user blockchain. This application configures the first address identifier of the above-mentioned target accounting contract to be sent to the bank blockchain, so that the preset target account-sharing contract in the bank blockchain accurately feeds back the account-sharing results to the preset target accounting contract, avoids errors in accounting information, and improves accounting accuracy.
[0029] In a possible implementation, in order to avoid the trust risk caused by the failure of the bank blockchain to complete the account division, which results in the inability of the participants of the user blockchain to query the account division results, after the first address identifier, project identifier and profit sharing information of the preset target accounting contract are sent to the bank blockchain through the preset interface, the preset target accounting contract can add the content of the project identifier in the profit sharing request as an execution status tag to be divided, so as to realize the execution status reminder to the profit sharing party of the user blockchain.
[0030] In one possible implementation, in order to facilitate data management and avoid the risks of data leakage and query difficulties, the above-mentioned preset target accounting contract can merge the first address identifier, project identifier and profit information of the preset target accounting contract into a profit bill before sending the first address identifier, project identifier and profit information of the preset target accounting contract to the bank blockchain through the preset interface, and configure the profit bill with a profit bill ID that can uniquely identify a profit bill.
[0031] S102. The preset target account-splitting contract in the bank blockchain sends the second address identifier of the preset target account-splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and the preset target account-splitting contract has a corresponding relationship with the project identifier; the account-splitting operation is performed according to the profit-sharing information, and the account-splitting result is sent to the preset target accounting contract through the preset interface, and the account-splitting result includes a list of profit-sharing parties and a list of profit-sharing amounts.
[0032] It should be noted that in actual application scenarios, the above-mentioned bank blockchain can be a private chain built by a bank for executing banking business.
[0033] It should be noted that, in actual application scenarios, the above-mentioned preset interface can be an interface pair deployed in the above-mentioned preset target sub-account contract and the preset target accounting contract. Since the above-mentioned preset interface is only used to realize the data interaction between the above-mentioned preset target sub-account contract and the preset target accounting contract, the preset target sub-account contract and the preset target accounting contract cannot access the information in the blockchain deployed by the other party through the preset interface, thereby avoiding the risk of blockchain information being tampered with due to the interoperability protocol in cross-chain verification on the operability of both blockchains.
[0034] It should be noted that in actual application scenarios, the above-mentioned preset target account splitting contract can be a smart contract constructed by the initiator of the profit-sharing project according to the account splitting rules of the profit-sharing project and approved by the bank blockchain. The above-mentioned preset target account splitting contract is only used to send the received profit-sharing information and account splitting rules to the account splitting block in the bank blockchain, and send the account splitting results fed back by the account splitting block to the preset target accounting contract. By configuring the above-mentioned preset target account splitting contract, this application achieves the collection of account splitting results while avoiding data security risks to the bank blockchain.
[0035] In a possible implementation, in order to avoid the trust risk caused by the inability of the participants of the user blockchain to query the account splitting results due to the failure of the bank blockchain to complete the account splitting, the preset target account splitting contract sends the second address identifier of the preset target account splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and configures the preset target accounting contract to update the content of the execution status tag of the project identifier in the profit sharing request from pending account splitting to account splitting, so as to realize the execution status reminder to the profit sharing party of the user blockchain.
[0036] S103. The preset target accounting contract stores the account splitting result, project identifier and second address identifier in the user blockchain.
[0037] It should be noted that in actual application scenarios, the above-mentioned profit-sharing party list is a data table including the identifiers of multiple profit-sharing parties, and the above-mentioned profit-sharing amount list is a data table recording the profit-sharing amount of each profit-sharing party. This application stores the account-sharing results, project identifiers, and second address identifiers in the user blockchain by configuring a preset target accounting contract, so that the profit-sharing parties of the user blockchain can verify the account-sharing process by themselves according to the profit-sharing party list and profit-sharing amount list in the account-sharing results, as well as the profit-sharing information in the user blockchain, thereby improving the credibility and transparency of the profit-sharing process.
[0038] In a possible implementation, in order to avoid the trust risk caused by the failure of the bank blockchain to complete the account splitting, resulting in the inability of the participants of the user blockchain to query the account splitting results, after the preset target accounting contract stores the account splitting results, project identifiers and second address identifiers in the user blockchain, the target accounting contract can also be configured to update the content of the execution status tag of the project identifier in the profit sharing request from the account splitting to account splitting success or account splitting failure according to the account splitting results, so as to realize the execution status reminder to the profit sharing party of the user blockchain.
[0039] This application realizes data interaction between the user blockchain and the bank blockchain by configuring a preset interface. In addition, by configuring a preset target split-account contract that has a corresponding relationship with the project identifier, the split-account operation is performed according to the profit-sharing information, and the split-account result is sent to the preset accounting contract through the preset interface, thereby realizing the collection of the split-account result in the bank blockchain. Subsequently, by configuring the preset target split-account contract, the split-account result, project identifier and split-account contract identifier are associated and stored in the user blockchain, so that the profit-sharing party verifies the information in the profit-sharing list and the profit-sharing amount list through the profit-sharing information stored in the user blockchain, thereby improving the credibility and transparency of the profit-sharing process.
[0040] In order to facilitate the above Figure 1 The understanding of the implementation process of the bookkeeping method for profit sharing shown is explained here in conjunction with a possible implementation of the present application: like Figure 2 The figure shows a schematic diagram of the implementation process of a bookkeeping method for profit sharing.
[0041] During the creation phase of the profit-sharing project, the project initiator builds the user blockchain and completes the project information configuration, account splitting rule configuration, construction of preset accounting contracts, construction of preset account splitting contracts, project share casting and other processes in the user blockchain, and launches the profit-sharing project. Subsequently, each profit-sharing party in the user blockchain determines the profit-sharing ratio through airdrops, transfers, purchases, etc. Subsequently, each profit-sharing party operates the profit-sharing project through the user blockchain.
[0042] During the account splitting task creation phase, the profit splitting project initiator determines the correspondence between the project ID and the preset account splitting contract, and configures account splitting-related information and rules.
[0043] During the review stage, the project initiator will send the project ID and its corresponding preset account, as well as the information and rules related to the account to the financial department for review. After the review, the bank blockchain will deploy the preset account contract on the chain.
[0044] During the accounting stage, the preset target accounting contract sends the first address identifier, project identifier and profit sharing information to the preset target accounting contract through the preset interface.
[0045] During the account splitting stage, the preset target account splitting contract will send the profit sharing information to the account splitting block of the bank blockchain, and will sort out the account splitting results generated by the account splitting block and return them to the preset target accounting contract.
[0046] During the accounting stage, the preset target accounting contract stores the accounting results in the user blockchain and modifies the execution status tag content of the project identifier of the profit-sharing project.
[0047] At the end of the account splitting stage, the profit-sharing party of the user's blockchain can query the account splitting results stored in the user's blockchain through the APP or blockchain browser.
[0048] In one possible implementation, the user blockchain includes a contract block, a first storage block, a second storage block, and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store profit-sharing information, and the second storage block is used to store account splitting results, project identifiers, second address identifiers and their associations.
[0049] It should be noted that in actual application scenarios, since the information of each block in the blockchain is visible to other blocks, the profit sharing block in the user blockchain can access the contract block, the first storage block and the second storage block, so that the profit sharing block can verify the preset accounting contract, profit sharing information and account sharing results, thereby improving the transparency and credibility of the account sharing process.
[0050] In one possible implementation, the preset target accounting contract in the user blockchain responds to the profit sharing request and extracts profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, including: In response to the profit sharing request, each preset accounting contract in the contract block identifies the project identifier in the profit sharing request; The preset target accounting contract extracts profit information corresponding to the project identifier in the profit sharing request from the first storage block. The preset target accounting contract is a preset accounting contract whose accounting contract identifier is compatible with the project identifier.
[0051] It should be noted that, this application realizes accurate calling of the preset accounting contract and improves the accuracy of account division by configuring the preset target accounting contract to be a preset accounting contract whose accounting contract identifier is compatible with the project identifier.
[0052] In a possible implementation, the account splitting operation is performed according to the profit sharing information, and the account splitting result is sent to the preset target accounting contract through the preset interface, including: The preset target account splitting contract completes the account splitting operation for each profit sharing party according to the total profit sharing amount, profit sharing party ID, profit sharing party account ID, and distribution ratio in the profit sharing information, obtains a profit sharing party list including the profit sharing party ID, and obtains a profit sharing amount list including the profit sharing party ID and the profit sharing amount corresponding to each profit sharing party ID; The preset target account splitting contract sends the account splitting result including the list of profit sharing parties and the list of profit sharing amounts to the preset target accounting contract according to the first address identifier.
[0053] It should be noted that in actual application scenarios, there are many specific implementation methods for the above-mentioned preset target account splitting contract to complete the account splitting operation and obtain the account splitting result. Here is an exemplary implementation method: like Figure 3 The figure below is a flowchart of how to complete the account splitting operation and obtain the account splitting result by setting the target account splitting contract. The specific operation steps are as follows: Step A1: The preset target profit-sharing contract establishes a mapping relationship between the profit-sharing party ID, the profit-sharing party account ID and the distribution ratio, and triggers step A2.
[0054] Step A2: The preset target account-sharing contract converts the total profit sharing amount, profit sharing party ID, profit sharing party account ID, distribution ratio and the mapping relationship established in the above step A1 from the recognizable format of the user blockchain to the recognizable format of the bank blockchain, and triggers step A3.
[0055] In step A3, the preset target account splitting contract sends the converted total profit sharing amount, profit sharing party ID, profit sharing party account ID, distribution ratio and the above mapping relationship established in step A1 to the account splitting block in the bank blockchain, and triggers step A4.
[0056] Step A4: The preset target account splitting contract receives the initial account splitting result fed back by the account splitting block, and converts the initial account splitting result from the recognizable format of the bank blockchain to the recognizable format of the user blockchain, and triggers step A5.
[0057] Step A5: The preset target account splitting contract extracts data from the format-converted initial account splitting result, obtains a list of profit splitters including the identifiers of each profit splitter, and obtains an account splitting result including a list of profit splitters and a list of profit splitting amounts, wherein the list of profit splitters includes the identifiers of each profit splitter involved in this account splitting operation, and the list of profit splitting amounts includes the identifiers of each profit splitter involved in this account splitting operation, as well as the profit splitting amounts corresponding to each profit splitter identifier.
[0058] In a possible implementation, since a large number of profit sharing parties are involved in a split account operation, in order to reduce the calculation pressure of the split account block in the bank blockchain and improve the accuracy of split account, the above Figure 3 The specific implementation of step A3 shown in the figure may be a subordinate step A31, as described above. Figure 3 The specific implementation of step A4 shown can be the following step A41: Step A31, the preset target account splitting contract presets the upper limit of a single processing, divides the profit sharing party identifier into multiple batches, and adds a unified batch ID to the profit sharing party identifiers of each batch. The preset target account splitting contract sends the total profit sharing amount after format conversion, the profit sharing party identifiers of each batch, the profit sharing party account identifiers, the distribution ratio, and the mapping relationship established in the above step A1 to the account splitting block in the bank blockchain. And trigger step A41.
[0059] Step A41: The preset target account splitting contract receives the initial account splitting results corresponding to each batch ID fed back by the account splitting block, and converts the initial account splitting results from a recognizable format of the bank blockchain to a recognizable format of the user blockchain, and triggers step A5.
[0060] In one possible implementation, the above Figure 1 The bookkeeping methods shown for profit sharing also include: The preset target accounting contract responds to the ledger result query request sent by the profit sharing party block, and searches the second storage block for the ledger result associated with the query verification identifier in the ledger result query request, where the query verification identifier is the project identifier or the second address identifier.
[0061] In a possible implementation, the above-mentioned method of searching for the account splitting result associated with the query verification identifier may include the following: Figure 4 Steps B1 to B4 are shown.
[0062] Step B1: The profit sharing party block searches the user blockchain for the first address identifier of the preset target accounting contract that matches the project identifier according to the project identifier, and triggers step B2.
[0063] Step B2: The profit sharing party block sends a query request for the split account result including the query verification identifier to the preset target accounting contract according to the first address identifier, and triggers step B3.
[0064] Step B3: The preset target accounting contract searches the second storage block for the ledger result associated with the query verification identifier in the ledger result query request, and triggers step B4.
[0065] Step B4: The preset target accounting contract feeds back the found accounting results to the profit sharing party block.
[0066] It should be noted that, in actual application scenarios, there are multiple implementation methods of the accounting method for profit sharing provided by the first aspect of the present application and any one of the first aspects, and one exemplary implementation is provided here: like Figure 5 As shown in the figure, it is a signaling diagram of the bookkeeping method for profit sharing. The preset target bookkeeping contract is deployed in the user blockchain, and the preset target account splitting contract is deployed in the bank blockchain. The specific operation steps are as follows: Step S501: The preset target accounting contract responds to the profit sharing request and extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and triggers step S502.
[0067] Step S502: The preset target accounting contract sends the first address identifier, project identifier and profit sharing information of the preset target accounting contract to the bank blockchain through the preset interface, and triggers steps S503 and S504.
[0068] Step S503: The preset target account-sharing contract establishes a mapping relationship between the profit-sharing party identifier, the profit-sharing party account identifier, and the distribution ratio in the profit-sharing information, and triggers steps S505 and S506.
[0069] Step S504: The preset target accounting contract adds an execution status tag to the project identifier that indicates the amount to be allocated.
[0070] Step S505: The preset target account-sharing contract converts the total profit sharing amount, profit sharing party identifier, profit sharing party account identifier, distribution ratio, and the mapping relationship established in the above steps from the recognizable format of the user blockchain to the recognizable format of the bank blockchain, and triggers step S507.
[0071] Step S506: The preset target sub-account contract sends the second address identifier of the preset target sub-account contract to the preset target accounting contract in the user blockchain through the preset interface, and triggers step S508.
[0072] Step S507: The preset target account splitting contract sends the converted total profit sharing amount, profit sharing party ID, profit sharing party account ID, distribution ratio and mapping relationship to the account splitting block in the bank blockchain, and triggers step S509.
[0073] Step S508: The preset target accounting contract updates the content of the execution status tag of the project identifier from "to be distributed" to "in distribution".
[0074] Step S509: The preset target account splitting contract receives the initial account splitting result fed back by the account splitting block, and converts the initial account splitting result from a recognizable format of the bank blockchain into a recognizable format of the user blockchain, and triggers step S510.
[0075] Step S510: The preset target account splitting contract extracts data from the format-converted initial account splitting result to obtain the account splitting result, and triggers step S511.
[0076] Step S511: The preset target account splitting contract sends the account splitting result to the preset target account contract in the user blockchain, and triggers step S512.
[0077] In step S512, the preset target accounting contract updates the content of the execution status tag of the project identifier from pending account splitting to account splitting completed, and associates and stores the account splitting result, the project identifier and the second address identifier in the second storage block of the user blockchain.
[0078] Step S513: the preset target accounting contract responds to the account splitting result query request sent by the profit sharing party block, and searches the second storage block for the account splitting result associated with the query verification identifier in the account splitting result query request.
[0079] It should be noted that in actual application scenarios, the above Figure 5 Steps S501 and S502 are shown as follows: Figure 1 A possible implementation of step S101 is shown in FIG. Figure 5 Steps S503 to S507, and steps S509 to S511 are as shown in FIG. Figure 1 A possible implementation of step S102 is shown in FIG. Figure 5 Step S512 shown is as follows Figure 1 A possible implementation of step S103 is shown.
[0080] The second aspect of the present application provides a bookkeeping platform for profit sharing, such as Figure 6 As shown, it includes a preset target accounting contract 601 deployed in the user blockchain and a preset target sub-account contract 602 deployed in the bank blockchain. The preset target accounting contract 601 in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier, project identifier and profit sharing information of the preset target accounting contract 601 to the bank blockchain through the preset interface; The preset target account splitting contract 602 in the bank blockchain sends the second address identifier of the preset target account splitting contract 602 to the preset target accounting contract 601 through the preset interface according to the first address identifier, and the preset target account splitting contract 602 has a corresponding relationship with the project identifier; the account splitting operation is performed according to the profit sharing information, and the account splitting result is sent to the preset target accounting contract 601 through the preset interface, and the account splitting result includes a list of profit sharing parties and a list of profit sharing amounts; The preset target accounting contract 601 stores the account splitting result, project identifier and second address identifier in the user blockchain.
[0081] In one possible implementation, the user blockchain includes a contract block, a first storage block, a second storage block, and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store profit-sharing information, and the second storage block is used to store account splitting results, project identifiers, second address identifiers and their associations.
[0082] In one possible implementation, the preset target accounting contract 601 in the user blockchain is set to: In response to the profit sharing request, each preset accounting contract in the contract block identifies the project identifier in the profit sharing request; The preset target accounting contract 601 extracts profit sharing information corresponding to the project identifier in the profit sharing request from the first storage block. The preset target accounting contract is a preset accounting contract whose accounting contract identifier is compatible with the project identifier.
[0083] In a possible implementation, the preset target account splitting contract 602 is set to: The preset target account splitting contract 602 completes the account splitting operation for each profit sharing party according to the profit sharing party ID, profit sharing party account ID, and distribution ratio in the profit sharing information, obtains a profit sharing party list including the profit sharing party ID, and obtains a profit sharing amount list including the profit sharing party ID and the profit sharing amount corresponding to each profit sharing party ID; The preset target account splitting contract 602 sends the account splitting result including the list of profit sharing parties and the list of profit sharing amounts to the preset target accounting contract 601 according to the first address identifier.
[0084] In a possible implementation, the preset target accounting contract 601 is further configured as: The preset target accounting contract 601 responds to the ledger result query request sent by the profit sharing party block, and searches the second storage block for the ledger result associated with the query verification identifier in the ledger result query request, where the query verification identifier is the project identifier or the second address identifier.
[0085] The third aspect of the present application provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the accounting method for profit sharing according to the above-mentioned first aspect or any implementation method of the first aspect.
[0086] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute a computer program so that the electronic device can implement the accounting method for profit sharing according to the above-mentioned first aspect or any implementation method of the first aspect.
[0087] A structural schematic diagram of an electronic device provided in the fourth aspect of the present application is as follows Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0088] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 to a random access memory (RAM) 703. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0089] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a memory card, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0090] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the accounting method for profit sharing according to the above-mentioned first aspect or any implementation method of the first aspect.
[0091] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0092] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0093] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0094] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A bookkeeping method for profit sharing, characterized in that: include: The preset target accounting contract in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier of the preset target accounting contract, the project identifier and the profit sharing information to the bank blockchain through a preset interface; The preset target account-splitting contract in the bank blockchain sends the second address identifier of the preset target account-splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and the preset target account-splitting contract has a corresponding relationship with the project identifier; performs an account-splitting operation according to the profit-sharing information, and sends the account-splitting result to the preset target accounting contract through the preset interface, and the account-splitting result includes a list of profit-sharing parties and a list of profit-sharing amounts; The preset target accounting contract stores the account splitting result, the project identifier and the second address identifier in the user blockchain.
2. The accounting method for profit sharing according to claim 1, characterized in that: The user blockchain includes a contract block, a first storage block, a second storage block and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store the profit-sharing information, and the second storage block is used to store the account splitting result, the project identifier, the second address identifier and their association.
3. The bookkeeping method for profit sharing according to claim 2, characterized in that: The preset target accounting contract in the user blockchain responds to the profit sharing request and extracts profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, including: In response to the profit sharing request, each of the preset accounting contracts in the contract block identifies the project identifier in the profit sharing request; The preset target accounting contract extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the first storage block, and the preset target accounting contract is the preset accounting contract whose accounting contract identifier is compatible with the project identifier.
4. The accounting method for profit sharing according to claim 1, characterized in that: The performing of the account splitting operation according to the profit sharing information and sending the account splitting result to the preset target accounting contract through the preset interface includes: The preset target account-sharing contract completes the account-sharing operation for each profit-sharing party according to the total profit-sharing amount, profit-sharing party identifier, profit-sharing party account identifier, and distribution ratio in the profit-sharing information, obtains the profit-sharing party list including the identifiers of each profit-sharing party, and obtains the profit-sharing amount list including the identifiers of each profit-sharing party and the profit-sharing amount corresponding to each profit-sharing party identifier; The preset target account-sharing contract sends the account-sharing result including the profit-sharing party list and the profit-sharing amount list to the preset target accounting contract according to the first address identifier.
5. The bookkeeping method for profit sharing according to claim 2, characterized in that: The method further comprises: The preset target accounting contract responds to the ledger result query request sent by the profit sharing party block, and searches the second storage block for the ledger result having the association relationship with the query verification identifier according to the query verification identifier in the ledger result query request, where the query verification identifier is the project identifier or the second address identifier.
6. A bookkeeping platform for profit sharing, characterized in that: Including the preset target accounting contract deployed in the user blockchain and the preset target sub-account contract deployed in the bank blockchain. The preset target accounting contract in the user blockchain responds to the profit sharing request, extracts the profit sharing information corresponding to the project identifier in the profit sharing request from the user blockchain, and sends the first address identifier of the preset target accounting contract, the project identifier and the profit sharing information to the bank blockchain through a preset interface; The preset target account-splitting contract in the bank blockchain sends the second address identifier of the preset target account-splitting contract to the preset target accounting contract through the preset interface according to the first address identifier, and the preset target account-splitting contract has a corresponding relationship with the project identifier; performs an account-splitting operation according to the profit-sharing information, and sends the account-splitting result to the preset target accounting contract through the preset interface, and the account-splitting result includes a list of profit-sharing parties and a list of profit-sharing amounts; The preset target accounting contract stores the account splitting result, the project identifier and the second address identifier in the user blockchain.
7. The profit-sharing accounting platform according to claim 6, characterized in that: The user blockchain includes a contract block, a first storage block, a second storage block and a profit-sharing party block corresponding to each profit-sharing party. The contract block is used to deploy multiple preset accounting contracts, the first storage block is used to store the profit-sharing information, and the second storage block is used to store the account splitting result, the project identifier, the second address identifier and their association.
8. A computer program product, characterized in that It comprises computer-readable instructions, which, when executed on an electronic device, enable the electronic device to implement the accounting method for profit sharing as described in any one of claims 1 to 5.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the accounting method for profit sharing as described in any one of claims 1 to 5.
10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, which, when executed by an electronic device, enable the electronic device to implement the accounting method for profit sharing as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Transaction processing method, device, equipment and system
CN112232795A
Account dividing method and device based on alliance chain and electronic equipment
CN115271696A
Agricultural product e-commerce platform real-time payment sub-account method and system based on block chain
CN118278933A
Data processing method and device based on block chain network, and related equipment
CN118590505A
Cited By
Block chain-driven accounting data management system and method
CN120707312A
Blockchain-driven revenue share data management system and method
CN120707312B
