Disclosure of Invention
In order to solve the problem that distribution and submission information reported by a payment platform is not authentic, embodiments of the present specification provide a method and a system for processing an account receipt record based on a block chain intelligent contract, where the technical scheme is as follows:
according to the 1 st aspect of the embodiments of the present specification, there is provided a method for processing a charge receipt record based on a blockchain intelligent contract, where a service node serving at least one service party and a management node serving at least one management party exist in a plurality of nodes constituting a blockchain network, the method including:
the service node acquires the receipt and release transaction constructed by any service party and broadcasts the receipt and release transaction to the block chain network; the transaction of the charge-receiving and issuing comprises a charge-receiving record generated by the business party according to the monitored merchant charge-receiving event;
the nodes call a pre-deployed intelligent contract and execute distribution and withdrawal logic recorded in the intelligent contract according to the receipt record in the receipt and issue transaction to obtain a distribution and withdrawal amount;
the plurality of nodes write the distribution extracted amount into an execution result corresponding to the receipt and issue transaction;
and the plurality of nodes write the receipt and issue transaction and the execution result corresponding to the receipt and issue transaction into a block chain so that the at least one management party can look up the receipt and issue transaction through the management nodes.
According to the 2 nd aspect of the embodiments of the present specification, there is provided a method for processing a charge receipt record based on a blockchain intelligent contract, where a service node serving at least one service party and a management node serving at least one management party exist in a plurality of nodes constituting a blockchain network, the method including:
the business nodes acquire the receipt and issue transaction which is constructed by any business party and comprises a receipt record generated by the business party according to the monitored merchant receipt event, the receipt and issue transaction is broadcast to the blockchain network, so that the multiple nodes call pre-deployed intelligent contracts, distribution and submission logics recorded in the intelligent contracts are executed according to the receipt record in the receipt and issue transaction, distribution and submission amounts are obtained, the distribution and submission amounts are written into execution results corresponding to the receipt and issue transaction by the multiple nodes, and finally the multiple nodes write the execution results corresponding to the receipt and issue transaction and the receipt and issue transaction into a blockchain, so that the at least one management party can look up the execution results through the management nodes.
According to the 3 rd aspect of the embodiments of the present specification, there is provided a method for processing a charge receipt record based on a blockchain intelligent contract, where a service node serving at least one service party and a management node serving at least one management party exist in a plurality of nodes constituting a blockchain network, the method including:
the nodes call a pre-deployed intelligent contract and execute distribution pull-up logic recorded in the intelligent contract according to an account receipt record in an account receipt and release transaction to obtain a distribution pull-up amount; the transaction of the receipt and issuance is obtained by the service node and broadcasted to the block chain network, the transaction of the receipt and issuance is constructed by any service party, and the transaction of the receipt and issuance comprises a receipt record generated by the service party according to the monitored merchant receipt event;
writing the distribution extracted amount into an execution result corresponding to the receipt and issue transaction;
and writing the execution results corresponding to the receipt and issue transaction and the receipt and issue transaction into a block chain so that the at least one management party can look up the execution results through the management node.
According to the 4 th aspect of the embodiments of the present specification, there is provided an accounting record processing system based on a blockchain intelligent contract, including a blockchain network composed of a plurality of nodes, among which there are a service node serving at least one service party and a management node serving at least one management party;
the service node acquires the receipt and release transaction constructed by any service party and broadcasts the receipt and release transaction to the block chain network; the transaction of the charge-receiving and issuing comprises a charge-receiving record generated by the business party according to the monitored merchant charge-receiving event;
the plurality of nodes call a pre-deployed intelligent contract, and execute distribution and withdrawal logic recorded in the intelligent contract according to the receipt record in the receipt and issue transaction to obtain a distribution and withdrawal amount; writing the distribution extracted amount into an execution result corresponding to the receipt and issue transaction; and writing the execution results corresponding to the receipt and issue transaction and the receipt and issue transaction into a block chain so that the at least one management party can look up the execution results through the management node.
According to the 5 th aspect of the embodiments of the present specification, there is provided an accounting record processing apparatus based on a blockchain intelligent contract, in which there are a service node serving at least one service party and a management node serving at least one management party in a plurality of the apparatuses constituting a blockchain network, the apparatus including:
the acquisition module is used for acquiring the charge-receiving and issuing transaction which is constructed by any business party and comprises the charge-receiving record generated by the business party according to the monitored merchant charge-receiving event, and broadcasting the charge-receiving and issuing transaction to the block chain network when the device is a business node;
the execution module calls a pre-deployed intelligent contract and executes distribution pull-up logic recorded in the intelligent contract according to an account receipt record in the account receipt and release transaction to obtain a distribution pull-up amount; the transaction of the receipt and issuance is obtained by the service node and broadcasted to the block chain network, the transaction of the receipt and issuance is constructed by any service party, and the transaction of the receipt and issuance comprises a receipt record generated by the service party according to the monitored merchant receipt event;
the evidence storing module is used for writing the distribution extracted amount into an execution result corresponding to the receipt and issue transaction;
and the block chain writing module is used for writing the receipt and issue transaction and an execution result corresponding to the receipt and issue transaction into the block chain so that the at least one manager can look up the transaction through the management node.
According to the technical scheme provided by the embodiment of the specification, a business node serving at least one business party (such as a payment platform) and a management node serving at least one management party (such as a central row) are introduced into a blockchain network, the payment platform can submit an accounting record of a merchant to the blockchain network, each node in the blockchain network determines a distribution withdrawal amount related to the accounting record based on a pre-deployed intelligent contract, and the accounting record and the corresponding distribution withdrawal amount are written into the blockchain for evidence.
The following effects can be achieved in this way:
1. each node in the blockchain network executes the distribution and withdrawal logic which is explicitly recorded in the intelligent contract in a distributed mode, and the distribution and withdrawal amount which is calculated aiming at the same accounting record can be ensured to be consistent and credible.
2. Because each receipt record and corresponding distribution withdrawal sum are stored in the blockchain, the management party can consult the blockchain at any time through the management node. That is, through this specification embodiment, can satisfy the management demand for distribution withdrawal in a more timely, more reliable manner.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Detailed Description
In the existing method for processing the receipt records, the payment platform is responsible for calculating the distribution withdrawal amount which should be issued for the distributor related to the receipt records aiming at each receipt record, and then reporting the receipt records and the associated distribution withdrawal amount to the management institution. However, this method has the following disadvantages:
1. the payment platform reports the receipt records and the corresponding distribution and withdrawal amounts to the management mechanism, which often lags behind, and the management mechanism is difficult to timely know each receipt record and the distribution and withdrawal amount associated with each receipt record.
2. Since the distribution credit is determined by the payment platform, the distribution credit reported by the payment platform is not necessarily credible. For example, the payment platform may falsify a distribution associated with an invoice record to an amount, but may not actually release the funds in the falsified portion to the distributor, but move the funds for other purposes. Assuming that the amount of the receipt in a certain receipt record is 100 yuan, according to the rule (the commission charge is 0.1% of the receipt amount, and the distribution promotion amount is 10% of the commission charge), the commission charge that the payment platform should receive is 0.1 yuan, and the distribution promotion amount that the payment platform further needs to distribute to the distributor is 0.01 yuan. However, the payment platform may false-report the distribution associated with the receipt to the administrator for an amount of 0.05 dollars, and move the portion of the false-report (0.04 dollars) for other uses, such as for investing in stocks, which is in fact non-compliant.
To this end, in one or more embodiments of the present specification, the receipt record processing is performed in a decentralized manner, and specifically, the receipt record is broadcasted to each node in the blockchain network, where each node includes a service node (e.g., a payment platform) serving a service party and a management node serving a management party. Each node in the blockchain network can independently execute distribution and withdrawal logic in a distributed mode according to the intelligent contract which is deployed in advance, and the credible distribution and withdrawal amount is calculated. And each node writes the receipt records and the distribution and contribution amounts associated with the receipt records into the block chain for evidence deposit, that is, the management node always deposits each receipt record and the credible distribution and contribution amounts into the local area at the first time, so that a manager can look up the records at any time.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
The technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a method for processing a charge receipt record based on a blockchain intelligent contract according to an embodiment of the present specification, where the method includes the following steps:
s100: and the service node in the block chain network acquires the receipt and release transaction constructed by any service party and broadcasts the receipt and release transaction to the block chain network.
In the embodiment of the present specification, the blockchain network may specifically be a federation chain network (or a public chain network), which is composed of a plurality of nodes. When the blockchain network is a alliance-chain network, at least one service node serving at least one service party and at least one management node serving at least one management party are included in the network. The business party may be a payment platform or other mechanism for operating an online checkout business, and the management party may be a financial supervision mechanism (e.g., a central bank) or other management mechanism.
In practical application, a merchant needs to register an account at a business party and adopt an account-taking tool (such as an account-taking two-dimensional code, a code-scanning gun, an account-taking client and the like) provided by the business party to take an account. Once the business side monitors the merchant account-receiving event, an account-receiving record is generated according to the monitored merchant account-receiving event. The charge record generally includes, but is not limited to, the following information: merchant identification, account amount, account time and payer identification of the merchant.
And when the business party generates an account-receiving record, the business party constructs an account-receiving and issuing transaction containing the account-receiving record and submits the account-receiving and issuing transaction to the business node in the blockchain network.
It should be noted that the transaction (transaction) described in this specification refers to a piece of data that is created by a client of the blockchain and needs to be finally published to the distributed database of the blockchain. The transaction is a data structure agreed in the blockchain protocol, and a piece of data needs to be encapsulated into the transaction when being stored in the blockchain.
S102: and calling a pre-deployed intelligent contract by a plurality of nodes forming the block chain network, and executing distribution pull-up logic recorded in the intelligent contract according to the receipt record in the receipt and issue transaction to obtain a distribution pull-up amount.
In the embodiment of the present specification, it is necessary to deploy an intelligent contract on each node in the block chain network in advance, and the intelligent contract needs to record at least code logic (which will be referred to herein as distribution promotion logic) for generating a distribution promotion amount associated with one business record from the business record.
Since the intelligent contracts deployed on each node in the blockchain network are consistent, for the same business record, the distribution and withdrawal amount associated with the business record obtained by each node executing the distribution and withdrawal logic recorded by the intelligent contract is also consistent, and it is difficult for any node to falsify the distribution and withdrawal amount.
It should be noted that, in this document, the plurality of nodes perform the XX operation, which actually means that each node in the plurality of nodes performs the XX operation respectively.
S104: and a plurality of nodes forming the block chain network write the distribution lifting amount into an execution result corresponding to the receipt and issue transaction.
S106: and a plurality of nodes forming the block chain network write the receipt and issue transaction and the execution result corresponding to the receipt and issue transaction into the block chain.
In the field of blockchain, it is well known that, assuming that a transaction needs to call at least one code logic in an intelligent contract, it means that, taking the transaction as an input of the intelligent contract, each node executes at least one code logic in the intelligent contract to obtain at least one output (or return value) which is an execution result corresponding to the transaction. The execution result corresponding to the transaction is also written into the blockchain along with the transaction for evidence storage.
In this embodiment of the present specification, each node needs to write the calculated distribution lifting amount into an execution result corresponding to the receipt issuance transaction, and then write the distribution lifting transaction and the execution result corresponding to the distribution lifting transaction into a blockchain, so that at least one manager served by the management node refers to the execution result corresponding to the distribution lifting transaction, that is, refers to the receipt record and the distribution lifting amount associated with the receipt record, through the management node.
By the method shown in fig. 1, the following effects can be achieved:
1. each node in the blockchain network executes the distribution and withdrawal logic which is explicitly recorded in the intelligent contract in a distributed mode, and the distribution and withdrawal amount which is calculated aiming at the same accounting record can be ensured to be consistent and credible.
2. Because each receipt record and corresponding distribution withdrawal sum are stored in the blockchain, the management party can consult the blockchain at any time through the management node. That is, through this specification embodiment, can satisfy the management demand for distribution withdrawal in a more timely, more reliable manner.
In this embodiment of the present specification, the intelligent contract may further record a distributor identifier acquiring logic, configured to acquire, according to a certain business record, a distributor identifier of a distributor to be issued, which is a distribution extraction associated with the business record. In this way, before writing the execution result corresponding to the receipt and issue transaction into the blockchain, the plurality of nodes execute the distributor identifier acquisition logic recorded in the intelligent contract according to the receipt record in the receipt and issue transaction so as to acquire the distributor identifier of the distributor which should receive the distribution proposed amount, and write the distributor identifier into the execution result corresponding to the receipt and issue transaction. In this way, the execution result corresponding to the receipt issuance transaction includes not only the distribution withdrawal amount associated with the receipt record, but also the distributor identifier of the distributor to which the distribution withdrawal amount should be issued.
Specifically, the means for acquiring the distributor identifier of the distributor which should receive the distribution quote amount includes, but is not limited to, the following two ways:
1. the correspondence between a plurality of sets of merchants and distributors can be locally stored in each node of the blockchain network in advance. For a certain merchant, the distributor corresponding to the merchant is actually the distributor for developing the account registered by the merchant on the payment platform. When executing distributor identification obtaining logic in the intelligent contract, the node queries the corresponding relation between local merchants and distributors according to the merchant identifications recorded in the receipt record, and obtains distributor identifications corresponding to the merchant identifications recorded in the receipt record.
2. A blockchain predictive technology (Oracle) may be employed, and the node obtains, from outside the chain, the distributor identification of the distributor that is stored by the payment platform and that is due to the distribution quote amount, while executing the distributor identification obtaining logic in the intelligent contract.
In addition, in the embodiment of the specification, after writing the execution result corresponding to the receipt and posting transaction into the block chain, the management node sends a receipt and posting message to at least one management party for prompting. For example, the receipt and issue message sent by the management node to the manager may be "payment platform a submits a receipt record, the receipt amount is 100 yuan, and the associated distribution is 0.01 yuan".
In practice, the payment platform sometimes not only promotes the portion of the commission to be issued to the distributor as distribution, but also returns the portion of the commission to the merchant as merchant rebate. For example, it may be specified that for any charge, the commission of the payment platform is 0.1% of the charge amount, the distribution promotion amount is 0.1% of the commission, and the merchant rebate amount is 0.05% of the commission, so assuming that the charge amount is 100 yuan, the commission is 0.1 yuan, the distribution promotion amount is 0.01 yuan, and the merchant rebate amount is 0.005 yuan. Then, the payment platform obtains 0.1-0.01-0.005-0.085 yuan, the distributor obtains 0.1 yuan, and the merchant obtains 100-0.1+ 0.005-99.905 yuan.
For this purpose, the intelligent contract can also record merchant rebate logic. The merchant rebate logic is code logic for generating merchant rebate amount associated with a business record according to the business record. In this way, before writing the execution result corresponding to the receipt and issuance transaction into the block chain, the plurality of nodes execute the merchant rebate logic recorded in the intelligent contract according to the receipt record in the receipt and issuance transaction to obtain the merchant rebate amount, and write the merchant rebate amount into the execution result corresponding to the receipt and issuance transaction. As can be seen, the execution result corresponding to the receipt and issue transaction may include not only the distribution and withdrawal amount, but also the merchant rebate amount.
Furthermore, the intelligent contract can also record commission logic, and the commission logic is code logic for generating commission amount associated with a business record according to the business record. As such, the execution result corresponding to the receipt and issue transaction may further include a commission amount.
In addition, in this embodiment of the present specification, the following two ways may be used by the management party to query the receipt and posting transaction and the execution result corresponding to the receipt and posting transaction through the management node:
mode 1: any management party can send a management query request to a management node, the management query request comprises a query condition specified by the management party, and the management node can directly return an account receipt and release transaction meeting the query condition and/or an execution result corresponding to the account receipt and release transaction to the management party according to the query condition.
Mode 2: the management node acquires a management query transaction constructed by any management party and broadcasts the management query transaction to the block chain network, wherein the management query transaction comprises a query condition specified by the management party; the nodes call a pre-deployed intelligent contract and execute an inquiry logic recorded in the intelligent contract according to an inquiry condition in the management inquiry transaction so as to determine an accounting issue transaction and/or an execution result corresponding to the accounting issue transaction which meets the inquiry condition in the management inquiry transaction in a block chain; and the management node returns the query result to the management party.
In mode 2, by querying through the smart contract, the administrator query event can be certified in the blockchain in the form of an administration query transaction. In addition, since the execution process of the code logic in the smart contract is usually written into the blockchain in the form of a log, it is equivalent to also storing a process of querying according to the query condition specified by the administrator in the blockchain.
In this specification embodiment, the plurality of nodes of the blockchain network may further include a merchant node serving at least one merchant. The merchant can receive the account-receiving and issuing message through the merchant node and inquire the account-receiving record through the merchant node to check the account.
Specifically, after writing the execution result corresponding to the receipt and issuance transaction into the block chain, the merchant node sends a receipt and issuance message to at least one merchant for prompting.
Similar to the manager, there are two ways for the merchant to query the transaction and the execution result corresponding to the transaction through the merchant node. The method for inquiring through the intelligent contract comprises the following steps:
the merchant node can acquire merchant inquiry transaction constructed by any merchant and broadcast the merchant inquiry transaction to the block chain network; the merchant inquiry transaction comprises inquiry conditions specified by the merchant; the nodes call a pre-deployed intelligent contract and execute an inquiry logic recorded in the intelligent contract according to an inquiry condition in the merchant inquiry transaction so as to determine an accounting issue transaction and/or an execution result corresponding to the accounting issue transaction which meets the inquiry condition in the merchant inquiry transaction in a block chain; and the merchant node returns the query result to the merchant.
The query is carried out through the intelligent contract, the merchant query event can be stored in the block chain in the form of merchant query transaction, and the process of querying according to the query condition specified by the merchant can also be stored in the block chain.
In addition, the plurality of nodes of the blockchain network may further include a distribution node serving at least one distributor. Similarly, the distributor may receive the ledger issue message through the distribution node, and query the distribution credit associated with the ledger record through the distribution node.
Specifically, after writing an execution result corresponding to the receipt and issue transaction into the blockchain, the distribution node sends a receipt and issue message to at least one distributor for prompting.
With respect to queries, the distribution node may take distribution query transactions constructed by any distributor and broadcast the distribution query transactions to the blockchain network; the distribution inquiry transaction comprises inquiry conditions specified by the distributor; the nodes call a pre-deployed intelligent contract and execute an inquiry logic recorded in the intelligent contract according to an inquiry condition in the distribution inquiry transaction so as to determine an accounting issue transaction and/or an execution result corresponding to the accounting issue transaction which meets the inquiry condition in the distribution inquiry transaction in a blockchain; and the merchant node returns the query result to the distributor.
In this embodiment, the distributor may also apply for distribution withdrawal corresponding to itself through the distribution node to settle. Specifically, the distribution node may acquire a settlement application transaction constructed by any distributor and broadcast the settlement application transaction to the blockchain network; the plurality of nodes can call a pre-deployed intelligent contract and execute a settlement checking logic recorded in the intelligent contract according to the settlement application transaction so as to check the settlement issuing transaction specified by the settlement application transaction; if the verification is passed, the business party with the cooperative relationship between the node instructions and the distributor settles the account to the distributor according to the settlement application transaction, and the settlement application transaction is written into the block chain.
The following cases are explained here:
case 1: the settlement application transaction may include a settlement period specified by the distributor. For example, the settlement period may be from 2019 month 1 to 2019 month 3. The distributor submits settlement application transaction to the distribution node, which is equivalent to the distributor applying payment platform issuing the distribution associated with the self-related receipt and issue transaction established in the settlement period to itself in the amount.
In case 1, the settlement period in the settlement application transaction corresponds to a receipt and issue transaction in which settlement is specified. The method is used for verifying the designated receipt and release transaction of the settlement application transaction, and is specifically realized as follows:
determining the receipt and issue transaction of which the creation time falls into the settlement period and the corresponding execution result comprises the distributor identification of the distributor; judging whether the distribution withdrawal amount contained in the execution result corresponding to each confirmed receipt and issue transaction is not settled; if yes, the check is passed; if not, the check is failed.
Case 2: at least one transaction hash specified by the distributor may be included in the settlement application transaction. The method is used for verifying the designated receipt and release transaction of the settlement application transaction, and is specifically realized as follows:
for each transaction hash included in the settlement application transaction, determining a receipt and release transaction corresponding to the transaction hash; judging whether the execution results corresponding to the confirmed receipt and release transactions respectively contain the distributor identification of the distributor or not; if not, the verification is not passed; if yes, further judging whether the distribution withdrawal amount contained in the execution result corresponding to each confirmed receipt and issue transaction is not settled, if yes, checking to be passed, and if not, checking not to be passed.
That is, in case 2, if a distributor designates several ledger transactions to be settled, it should first be checked whether these ledger transactions designated by the distributor are really related to the distributor. If both are relevant, further verification is required as to whether the check-out transactions have been settled.
Case 3: after the plurality of nodes instruct the business party with the cooperative relationship with the distributor to settle accounts to the distributor according to the settlement application transaction, if the settlement is completed, the payment platform can submit the settlement completion transaction to the blockchain network for deposit. The settlement completion transaction is used to characterize that settlement has been completed to the distributor in accordance with the settlement application transaction. In this way, the distributor is prevented from repeatedly requiring settlement for a certain checkout transaction.
Specifically, the business node acquires a settlement completion transaction constructed by a business party having a cooperative relationship with the distributor, and broadcasts the settlement application transaction to the blockchain network; the plurality of nodes write the settlement completion transaction into a blockchain.
Case 4: in order to prevent the distributor from repeatedly requesting settlement for a certain receipt and issue transaction, the plurality of nodes may need to obtain the result of completion of settlement fed back by the payment platform before writing the settlement application transaction into the blockchain, otherwise, the settlement application transaction is not written into the blockchain.
Specifically, the plurality of nodes write the settlement application transaction into a blockchain when it is determined that a business party having a cooperative relationship with the distributor has completed settlement to the distributor according to the settlement application transaction.
In summary, for the way of applying for settlement by the distributor, the following combinations can be performed on the above 4 cases to obtain specific embodiments: (case 1 or case 2) + (case 3 or case 4).
Fig. 2 is a schematic structural diagram of an accounting record processing system based on a blockchain intelligent contract according to an embodiment of the present specification. As shown in fig. 2, a blockchain network is included that is composed of a plurality of nodes, among which there are a service node serving at least one service party and a management node serving at least one management party;
the service node acquires the receipt and release transaction constructed by any service party and broadcasts the receipt and release transaction to the block chain network; the transaction of the charge-receiving and issuing comprises a charge-receiving record generated by the business party according to the monitored merchant charge-receiving event;
the plurality of nodes call a pre-deployed intelligent contract, and execute distribution and withdrawal logic recorded in the intelligent contract according to the receipt record in the receipt and issue transaction to obtain a distribution and withdrawal amount; writing the distribution extracted amount into an execution result corresponding to the receipt and issue transaction; and writing the execution results corresponding to the receipt and issue transaction and the receipt and issue transaction into a block chain so that the at least one management party can look up the execution results through the management node.
Fig. 3 is a schematic structural diagram of another system for processing a charge receipt record based on a blockchain intelligent contract according to an embodiment of the present disclosure. In the system shown in fig. 3, in addition to the business node and the management node, a merchant node serving a merchant and a distribution node serving a distributor exist in the blockchain network.
An embodiment of the present specification further provides an accounting record processing apparatus based on a blockchain intelligent contract, where a service node serving at least one service party and a management node serving at least one management party exist in a plurality of apparatuses forming a blockchain network, as shown in fig. 4, the apparatus includes:
an obtaining module 401, configured to, when the apparatus is a business node, obtain an account receipt and release transaction, which is constructed by any business party and includes an account receipt record generated by the business party according to a monitored merchant account receipt event, and broadcast the account receipt and release transaction to the blockchain network;
the execution module 402 calls a pre-deployed intelligent contract, and executes distribution pull-up logic recorded in the intelligent contract according to an account receipt record in an account receipt and release transaction to obtain a distribution pull-up amount; the transaction of the receipt and issuance is obtained by the service node and broadcasted to the block chain network, the transaction of the receipt and issuance is constructed by any service party, and the transaction of the receipt and issuance comprises a receipt record generated by the service party according to the monitored merchant receipt event;
the evidence depositing module 403 is used for writing the distribution extracted amount into the execution result corresponding to the receipt and issue transaction;
the blockchain writing module 404 writes the receipt and issue transaction and the execution result corresponding to the receipt and issue transaction into a blockchain, so that the at least one management party can refer through the management node.
Embodiments of the present specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the functions of the method shown in fig. 1 when executing the program.
Fig. 5 is a schematic diagram illustrating a more specific hardware structure of a computing device according to an embodiment of the present disclosure, where the computing device may include: a processor 1410, a memory 1420, an input/output interface 1430, a communication interface 1440, and a bus 1450. Wherein the processor 1410, memory 1420, input/output interface 1430, and communication interface 1440 enable communication connections within the device with each other via bus 1450.
The processor 1410 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 1420 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1420 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1420 and called to be executed by the processor 1410.
The input/output interface 1430 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1440 is used for connecting a communication module (not shown in the drawings) to enable the device to interact with other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1450 includes a pathway to transfer information between various components of the device, such as processor 1410, memory 1420, input/output interfaces 1430, and communication interfaces 1440.
It should be noted that although the above-described apparatus shows only a processor 1410, a memory 1420, an input/output interface 1430, a communication interface 1440, and a bus 1450, in a specific implementation, the apparatus may also include other components necessary for proper operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present description also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the functions of the method shown in fig. 1.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, methods, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the method and apparatus embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related areas. The above-described method embodiments are merely illustrative, wherein the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present specification. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.