CN110597919A - Data management method, device and equipment based on block chain and storage medium - Google Patents

Data management method, device and equipment based on block chain and storage medium Download PDF

Info

Publication number
CN110597919A
CN110597919A CN201910910864.XA CN201910910864A CN110597919A CN 110597919 A CN110597919 A CN 110597919A CN 201910910864 A CN201910910864 A CN 201910910864A CN 110597919 A CN110597919 A CN 110597919A
Authority
CN
China
Prior art keywords
resource transfer
block chain
record
account
transfer record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910910864.XA
Other languages
Chinese (zh)
Other versions
CN110597919B (en
Inventor
崔冉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910910864.XA priority Critical patent/CN110597919B/en
Publication of CN110597919A publication Critical patent/CN110597919A/en
Application granted granted Critical
Publication of CN110597919B publication Critical patent/CN110597919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6272Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database by registering files or documents with a third party
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a data management method based on a block chain, and belongs to the technical field of computers. The method is performed by a server, the method comprising: acquiring a resource transfer record of a first account in a block chain; and generating a resource transfer checking table according to the resource transfer record of the first account in the block chain, sending the resource transfer checking table to the target user, receiving a checking result of the target user on the resource transfer checking table, and storing the checking result into the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.

Description

Data management method, device and equipment based on block chain and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for data management based on a block chain.
Background
With the development of the computer field, various data are required to be stored and recorded in daily life. For example, transaction records of each bank account are stored in a banking system, and information of each policy is stored in an insurance system.
The related data generated by the reconciliation process of the enterprise in the bank system are stored in the respective servers of the enterprise and the bank. In addition, the reconciliation process of the enterprise still adopts a manual reconciliation mode at present, namely, when the enterprise needs to reconcile the bank account number of the enterprise, the paper reconciliation bill generated by the bank according to the transaction record stored by the enterprise is subjected to reconciliation processing (for example, information in the paper reconciliation bill is checked, an enterprise official seal is added, a financial seal is added and the like) by an enterprise operator, then the paper reconciliation bill is returned to the bank, and the paper reconciliation bill is stored by the bank again.
The transaction records generated by the bank account number of the enterprise are stored in the enterprise server and the bank server separately, the data stored by the enterprise and the data stored by the bank are not communicated, and the problems that the financial affairs of both parties are not transparent, the reliability of the data is low and the like exist.
Disclosure of Invention
The embodiment of the application provides a data management method, a device, equipment and a storage medium based on a block chain, which can improve the transparency between data stored by an enterprise and data stored by a bank and increase the reliability of the data. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a data management method based on a blockchain, where the method is executed by a server, and the method includes:
acquiring a resource transfer record of a first account in a block chain;
generating a resource transfer check table according to the resource transfer record of the first account, wherein the resource transfer check table comprises the resource transfer record of the first account;
sending the resource transfer check list to a target user, wherein the target user is a user to which the first account belongs;
and receiving a checking result of the target user on the resource transfer checking table, and storing the checking result into the block chain.
In another aspect, an embodiment of the present application provides a data management apparatus based on a block chain, where the apparatus is used in a server, and the apparatus includes:
the transfer record acquisition module is used for acquiring a resource transfer record of a first account in the block chain;
the system comprises an approval table generating module, a resource transfer approval table generating module and a resource transfer approval table generating module, wherein the approval table generating module is used for generating the resource transfer approval table according to a resource transfer record of a first account in a block chain, and the resource transfer approval table comprises the resource transfer record of the first account;
the resource transfer check table sending module is used for sending the resource transfer check table to a target user, wherein the target user is a user to which the first account belongs;
and the checking result storage module is used for receiving the checking result of the target user on the resource transfer checking table and storing the checking result into the block chain.
Optionally, the transfer record obtaining module is configured to obtain the resource transfer record in a first time period from the block chain when or after a preset time node arrives, where the first time period is any time period before the preset time node;
the resource transfer record generation module is configured to generate the resource transfer check table in the first time period according to the resource transfer record in the first time period.
Optionally, the apparatus further comprises:
and the record storage module is used for storing a first resource transfer record into the block chain through an intelligent contract when the first resource transfer record is generated aiming at the first account, wherein the first resource transfer record is generated when the first account is subjected to resource transfer at any time.
Optionally, the apparatus further comprises:
a first address storage module, configured to store a first record address on the block chain, where the first record address is an address where the first resource transfer record is stored in the block chain;
and the relation establishing module is used for establishing a binding relation between the first record address and the first resource transfer record and storing the binding relation on the block chain.
Optionally, the apparatus further comprises:
a second address storage module, configured to locally store the first recording address;
and the record query module is used for querying the first resource transfer record according to the first record address when querying the first resource transfer record.
Optionally, the apparatus further comprises:
and the data storage module is used for storing the resource transfer quantity, the resource residual quantity and the resource hash value of the resource transfer check table into the block chain.
Optionally, the first account number is a bank account number.
In yet another aspect, an embodiment of the present application further provides a computer device, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for managing data based on a blockchain as described above.
In yet another aspect, the present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for block chain based data management as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the method comprises the steps that a server obtains a resource transfer record of a first account in a block chain; and generating a resource transfer checking table according to the resource transfer record of the first account in the block chain, sending the resource transfer checking table to the target user, receiving a checking result of the target user on the resource transfer checking table, and storing the checking result into the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic structural diagram of a data sharing system according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of a blockchain according to an exemplary embodiment of the present application;
FIG. 3 is a diagram illustrating a new block generation process provided by an exemplary embodiment of the present application;
FIG. 4 is a flowchart of a method for block chain based data management according to an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method for block chain based data management according to an exemplary embodiment of the present application;
FIG. 6 is a block diagram illustrating a resource transfer core table according to an exemplary embodiment of the present application;
FIG. 7 is an interface diagram of a terminal verification interface according to an exemplary embodiment of the present application;
FIG. 8 is a flowchart of a method for block chain based data management according to an exemplary embodiment of the present application;
FIG. 9 is a structural schematic of a system frame of FIG. 8 in accordance with an exemplary embodiment of the present application;
fig. 10 is a block diagram illustrating an architecture of a data management apparatus based on a blockchain according to an exemplary embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The scheme provided by the application can be used for downloading or running the application program in the real scene by using the terminal in daily life of people. For ease of understanding, some noun terms and application scenarios are first briefly described below.
1) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
2) Intelligent contracts, computerized agreements, which can enforce the terms of a contract, are implemented by codes deployed on a shared ledger for execution when certain conditions are met, are used to complete automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to a merchant's address after the buyer signs for goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
3) A federation chain, also known as a community block chain (Consortium Blockchains), refers to a block chain whose consensus process is controlled by a preselected node. In the alliance chain, all or part of functions are opened only for the node members in the chain, and each block chain link point in the alliance chain can customize read-write permission, query permission and the like based on needs.
4) The shared account book is used for providing functions of operations such as storage, query and modification of account data, sending the record data of the operations on the account data to other nodes in the block chain system, and after the other nodes verify that the record data are valid, storing the record data into a temporary block as a response for acknowledging that the account data are valid, and also sending confirmation to the node initiating the operations.
Referring to fig. 1, a schematic structural diagram of a data sharing system according to an exemplary embodiment of the present application is shown. As shown in fig. 1, a data sharing system gateway 101 and a plurality of nodes 102 are included in a sharing system 100. The data sharing system 100 is a system for performing data sharing between nodes, the data sharing system gateway 101 may be configured to perform functions such as request conversion and address information verification, and the plurality of nodes 102 may be enterprise servers and financial institution servers in the data sharing system. Optionally, the server as each node may also be one server, or a plurality of servers, or a virtualization platform, or a cloud computing service center, etc.
Optionally, the data sharing system gateway 101 is configured to receive a service processing request, where the service processing request is generated according to a table structure provided by the data sharing system, and the service processing request may carry a service data record of a user; the data sharing system gateway can extract the service data of the user from the service processing request to generate a service data recording request of the data sharing system, wherein the service data recording request carries the service data of the user, and the data sharing system gateway sends the service data recording request to at least one node in the data sharing system; any one of the plurality of nodes is used for providing data services based on the received business data record request, such as writing a shared account book or inquiring account information.
The plurality of nodes 101 may refer to respective servers in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the nodes through the information connection. For example, when an arbitrary node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all the nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
TABLE 1
Each node in the data sharing system stores one identical blockchain. Referring to fig. 2, which shows a schematic structural diagram of a block chain provided in an exemplary embodiment of the present application, as shown in fig. 2, each block 202 is included in the block chain 201, as can be seen from fig. 2, the block chain 201 may be composed of a plurality of blocks 201, a starting block includes a block header and a block body, the block header stores an input information characteristic value, a version number, a timestamp, and a difficulty value, and the block body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When generating each block in the block chain, please refer to fig. 3, which shows a schematic diagram of a new block generation process provided in an exemplary embodiment of the present application, where a node where the block chain is located checks input information when receiving the input information, stores the input information in a memory pool after the check is completed, and updates a hash tree used for recording the input information; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(virsion+pre_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the data sharing system where the newly generated blocks are located according to the node identifications of the other nodes in the data sharing system, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
The embodiment of the present application provides a data management method based on a block chain, which may be applied to the data sharing system shown in fig. 1, so as to implement intercommunication of data of each server, and improve reliability of data storage. Referring to fig. 4, a flowchart of a method for block chain based data management according to an exemplary embodiment of the present application is shown, where the method may be applied to the data sharing system shown in fig. 1, and is executed by each node (server) operating in the system. As shown in fig. 4, the block chain-based data management method may include several steps as follows.
Step 401, acquiring a resource transfer record of a first account in a block chain.
The resource transfer record may be a resource transfer record of each node in the blockchain to the first account stored in the blockchain.
Step 402, according to the resource transfer record of the first account in the block chain, generating a resource transfer check table, where the resource transfer check table includes the resource transfer record of the first account.
The server serving as a node in the block chain may perform uplink storage on the resource transfer record of the first account, and when the resource transfer checking table needs to be generated, the server in the block chain may obtain the stored resource transfer record from the block chain, so as to generate the resource transfer checking table according to the obtained resource transfer record. The resource transfer check table may be a fixed-format resource transfer check table pre-agreed between the server manufacturer and the owner of the first account. For example, the server serving as a node in the block chain is a bank server, the owner of the first account is an enterprise, the bank and the enterprise may previously specify a format of the resource transfer check table, and the bank server may obtain the resource transfer record stored in the block chain and generate a corresponding resource transfer check table.
Step 403, sending the resource transfer check table to a target user, where the target user is a user to which the first account belongs.
Optionally, the server serving as a node in the blockchain may send the generated resource transfer check table to a target user, where the target user may be an enterprise user or an individual user. Correspondingly, the server can send the generated resource transfer checking table to a terminal of an account checking person in the enterprise user, and the terminal of the account checking person can display an interface of the resource transfer checking table, so that the account checking person operates in the interface to complete checking of the resource transfer checking table.
Step 404, receiving the checking result of the target user to the resource transfer checking table, and storing the checking result into the block chain.
Optionally, after the target user checks the received resource transfer check table, the target user may return the generated check result to the corresponding server, and after receiving the check result, the server may perform uplink storage on the check result, so that transparency of storing the check result may be achieved.
In summary, the resource transfer record of the first account in the block chain is acquired through the server, the resource transfer checklist is generated according to the resource transfer record of the first account in the block chain, the resource transfer checklist is sent to the target user, the checking result of the target user on the resource transfer checklist is received, and the checking result is stored in the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.
In a possible implementation manner, the blockchain may perform uplink storage on the resource transfer record generated by the server of the first account and related to the first account before the resource transfer checking table is generated, so as to describe the embodiment shown in fig. 4. Referring to fig. 5, a flowchart of a method for block chain based data management according to an exemplary embodiment of the present application is shown, where the method may be applied to the data sharing system shown in fig. 1, and is executed by each node (server) operating in the system. As shown in fig. 5, the block chain-based data management method may include several steps as follows.
Step 501, when a first resource transfer record is generated for a first account, the first resource transfer record is stored in a block chain through an intelligent contract.
The first resource transfer record is a resource transfer record generated when the first account performs resource transfer any time. Optionally, when the first account performs resource transfer, the server that generates and stores the first resource transfer record of the first account is used as one of the nodes of the block chain, and may store the first resource transfer record into the block chain through an intelligent contract, and store the first resource transfer record on the block chain. Optionally, the server may perform uplink transmission of the first resource transfer record in a desensitized uplink manner.
Optionally, when the first account is a bank account, and when a fund transfer occurs to the bank account, the fund transfer record generated by the bank server performs uplink storage. If the bank server is used as one of the nodes of the block chain, the bank server can link the generated fund transfer record through the intelligent contract. When the first resource transfer record is a fund transfer record of a bank account, the uplink data of the bank server may include fund information and transaction information of the bank account.
In a possible implementation manner, the blockchain related to the embodiment of the present application is a federation chain composed of different server nodes, and data synchronization is performed between each node based on a Peer-to-Peer (P2P, Peer to Peer) network characteristic of the blockchain. Optionally, the first resource transfer record generated by the current server may also be stored in each node in the block chain by performing bypass uplink through other nodes. For example, bank a may store its own first resource transfer record in the uplink via the server of bank B.
Step 502, storing a first record address on the block chain, where the first record address is an address where the first resource transfer record is stored in the block chain.
After the server links the first resource transfer record to the block chain, the block chain may generate a corresponding first record address corresponding to the current uplink content and information such as a timestamp, and the block chain may return the uplink address to the current uplink server, and the server may perform uplink storage on the first record address again through an intelligent contract, so that each node in the block chain may know the storage condition of the current first resource transfer record.
The server may also store the first record address locally, that is, the server may store the first record address returned by the blockchain locally, and when querying the first resource transfer record, the server may query the first resource transfer record according to the first record address.
Step 503, establishing a binding relationship between the first record address and the first resource transfer record, and storing the binding relationship on the block chain.
Optionally, after obtaining the first record address returned by the blockchain, the server may also establish a binding relationship between the first record address and the first resource transfer record locally, so as to facilitate subsequent call. Please refer to table 2, which shows a table of correspondence between the block chain addresses and the resource transfer records according to an embodiment of the present application.
Block chain address Resource transfer recording
Block chain address one Resource transfer record one
Block chain address two Resource transfer record two
Block chain address three Resource transfer record three
…… ……
TABLE 2
As shown in table 2, the correspondence between each block chain address and each resource transfer record is included, the server may establish a correspondence between the block chain address and the resource transfer record in the form of table 2 and store the correspondence locally, and perform uplink storage on the established correspondence through an intelligent contract, so that each node of the block chain may also obtain the correspondence.
Step 504, when or after the preset time node arrives, the resource transfer record in the first time period is obtained from the block chain.
The first time period is any time period before the preset time node.
Optionally, the preset time node and the first time period may be pre-stored in the server, for example, a fixed period value. Every other period (preset time node), the server can obtain the resource transfer record in the first time period from the blockchain. For example, the preset time node is the bottom of each month, and the first time period is one month before the time node, that is, every other month, the server may obtain the resource transfer record stored in the month from the blockchain.
Optionally, the manner in which the server obtains the resource transfer record stored in the month from the block chain may be to download, according to the block chain address stored locally, each resource transfer record corresponding to each block chain address from the block chain. In a possible implementation manner, the server may also obtain the resource transfer record stored in this month from table 2 stored in the server, which is not limited in this embodiment of the application. For example, when the first account number is a bank account number and the server is a bank server, the bank server may obtain each fund transfer record of the bank account number in the month according to the blockchain address of the fund transfer record of each transaction stored in the month.
And 505, generating a resource transfer check table in the first time period according to the resource transfer record in the first time period.
The server may generate the resource transfer check table in the first time period according to the resource transfer record in the first time period acquired from the blockchain. For example, according to the above-mentioned first time period being one month, the server may generate the resource transfer check table for the month according to each resource transfer record in the month acquired from the blockchain. Still taking the first account as a bank account and the server as a bank server as an example, the bank server obtains a fund transfer record of the bank account within a certain month, and generates a resource transfer checking list (also called a statement) of the bank account within the certain month.
Please refer to fig. 6, which illustrates a schematic structural diagram of a resource transfer check table according to an exemplary embodiment of the present application. As shown in fig. 6, each fund transfer record 601, balance information 602, and fund transfer time 603 for the month in which the first account number is included. The server may generate the resource transfer check table of the first account in the month as shown in fig. 6 according to each resource transfer record in the month in which the first account is acquired from the blockchain.
Optionally, the server may further perform uplink storage on the generated resource transfer check table, where the uplink storage includes storing the resource transfer number, the resource remaining number, and the resource hash value of the resource transfer check table into the block chain. If the resource transfer checking table shown in fig. 6 is used, the data stored in the uplink by the server may have the fund transfer details, the balance, the hash value of the data, and the like included in fig. 6. That is, the server performs uplink storage on the generated resource transfer check table, so that the resource transfer check table may also exist in the block chain, thereby implementing the transparency of the resource transfer check table. Optionally, the resource hash value may be calculated by referring to the description in fig. 3 of the merchant, which is not described herein again.
Optionally, the block chain may also return the storage address of the resource transfer check table to the server, and the server may store the storage address of the resource transfer check table in the server similarly to the above address storage of the resource transfer record, and the execution details may refer to the above storage of the address of the resource transfer record by the server, which is not described herein again. It should be noted that fig. 6 is only an example, the resource transfer check table in practical application may also include other information, and accordingly, the server may also uplink store the other information.
Step 506, the resource transfer check list is sent to the target user, and the target user is the user to which the first account belongs.
Optionally, the target user may establish, in the server in advance, demand information for obtaining the resource transfer check table, and the server may determine, according to the demand information, the target user to which the first account belongs, and send the generated resource transfer check table to the target user. Optionally, when the target user is an enterprise user and the first account is a bank account of the enterprise user, the server sends the generated resource transfer checklist to a terminal of a worker performing checking in the enterprise user, and the terminal of the worker can display an interface of the resource transfer checklist, so that the reconciliation worker operates in the interface to complete checking of the resource transfer checklist.
Optionally, the server of the first account may further send a prompt message to the enterprise user, where the prompt message may indicate that the resource transfer check table has been sent to the enterprise user, so as to remind the enterprise user to perform the check. For example, the bank may send a short message, a communication message, or the like to the enterprise user, or the bank staff may notify the enterprise user by telephone, thereby informing the enterprise user that the resource transfer check list has been sent by the enterprise user. Optionally, the staff of the bank can also perform uplink storage on the prompt message through the bank server, so that the transparency of the flow data is achieved.
Optionally, the server may also send the storage address of the original transfer check table to the target user. That is, the server may send the storage address of the stored resource transfer check table on the blockchain to the target client, for example, the prompt message sent by the server to the target user includes the storage address of the resource transfer check table generated at the certain time on the blockchain, and the target user may query the resource transfer check table through the address, check the resource transfer check table, formulate a corresponding check result, and return the check result and the storage address to the server together.
And 507, receiving the checking result of the target user to the resource transfer checking table, and storing the checking result into the block chain.
After the target user receives the resource transfer checklist, the resource transfer checklist may be checked. Please refer to fig. 7, which illustrates an interface diagram of a terminal verification interface according to an exemplary embodiment of the present application. As shown in fig. 7, the terminal interface 700 includes a resource transfer check table 701, a check control 702, a submission control 703, and a remark input box 704. The target user may view the resource transfer checklist table 701, select the check control 702, input relevant information (for example, no error, which of the tables has an error, and the like) in the remark input box 704, and finally click the submission control 703, so that the check result is returned to the server that sends the resource transfer checklist table, and the check is completed. After receiving the check result, the server may also perform uplink storage on the check result, and optionally, the uplink manner may refer to the related contents, which is not described herein again.
Optionally, corresponding to an optional implementation manner in the step 506, the server may also receive the check result including the storage address, and perform uplink storage on the received check result.
In summary, the resource transfer record of the first account in the block chain is acquired through the server, the resource transfer checklist is generated according to the resource transfer record of the first account in the block chain, the resource transfer checklist is sent to the target user, the checking result of the target user on the resource transfer checklist is received, and the checking result is stored in the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.
In a possible implementation manner, taking the first account as a bank account and the target user as an enterprise user as an example, please refer to fig. 8, which shows a flowchart of a method for a data management method based on a blockchain according to an exemplary embodiment of the present application. As shown in fig. 8, the block chain-based data management method may include several steps as follows.
At step 801, a payment transaction occurs for a business.
In daily life, enterprises can carry out modes such as online banking payment and loan exchange, so that payment transactions occur in own bank accounts, and the enterprises can store corresponding transaction information in the enterprises, such as the amount of the payment transactions and the running information of the transactions sent at this time.
At step 802, the bank server generates a transaction record.
The bank server may generate a transaction record for the bank account corresponding to the amount of money actually transferred out or in by the bank account of the enterprise, where the transaction record may include transaction flow and fund flow information.
In step 803, the bank server stores the transaction record in uplink.
The bank server can bypass uplink of the transaction record by calling the intelligent contract. Optionally, the uplink data may include the serial number, the service number, the transaction amount, and the like of the transaction.
At step 804, the blockchain stores the transaction record.
At step 805, the blockchain returns the address of the transaction record to the bank server.
That is, the blockchain returns the on-chain address of the noted transaction record, from which the bank server can query the stored transaction record.
Step 806, the bank server establishes a binding relationship for the address and the corresponding transaction record.
Namely, the bank server can bind the address returned by the blockchain with the previous transaction record, so that the later-stage tracing is facilitated.
The bank server generates a statement on a periodic basis, step 807.
The bank server can summarize monthly, quarterly, semi-annually and annually statement bills according to the information such as the transaction records of the enterprises, and the specific period can be determined between the enterprises and the banks, which is not limited in the application.
Step 808, the bank server performs uplink storage on the bill.
The bank server can uplink and store data such as transaction amount, balance and hash value of the data of the statement.
Step 809, the bank server sends the statement to the enterprise.
At step 810, the bank server sends notification information to the enterprise.
Optionally, the bank side may notify the operator of the enterprise to check the account by sending a notification message. Optionally, the notification information may be notified to the enterprise by a short message, a telephone, or the like.
Step 811, the enterprise performs reconciliation.
And carrying out online account checking by the staff of the enterprise. The enterprise staff can check the transaction records of the bank account number and the statement sent by the bank server one by one, and compile a bank deposit balance adjustment table to complete statement checking.
At step 812, the enterprise returns a reconciliation result to the bank server.
And the enterprise returns the check result to the bank server.
In step 813, the bank server performs uplink storage on the reconciliation result.
Optionally, the bank server may also store the reconciliation result in the blockchain through an intelligent contract.
In summary, the resource transfer record of the first account in the block chain is acquired through the server, the resource transfer checklist is generated according to the resource transfer record of the first account in the block chain, the resource transfer checklist is sent to the target user, the checking result of the target user on the resource transfer checklist is received, and the checking result is stored in the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.
In addition, the method and the device establish a public and transparent trust mechanism based on the characteristics of block chain decentralization, distributed storage, non-falsification and the like, optimize the account checking process of the bank and the enterprise, reduce the manpower and time cost of the bank and the enterprise, improve the timeliness and accuracy of account checking, and prevent the risk of communication and crime between the bank and the enterprise. The method lays a good foundation for digitalization and credibility of enterprise assets, and can finally solve the problems of difficult financing and expensive financing of small and medium enterprises.
Referring to fig. 9, a schematic structural diagram of a system framework related to fig. 8 according to an exemplary embodiment of the present application is shown. As shown in fig. 9, a user module 901, a bank service module 902, an intelligent contract 903 and a block chain 904 are included.
The user module 901 may be configured to store a transaction record and the like when a payment transaction occurs in a bank account of an enterprise, and the user module 901 may also be configured to receive a reconciliation bill sent by the bank service module 902, perform reconciliation processing, and return a reconciliation result to the bank service module 902.
The banking service module 902 may include an enterprise record module 902a and an enterprise reconciliation module 902b, where the enterprise record module 902a may record a transaction record of a payment transaction occurring with a bank account of an enterprise, and send an uplink storage request of the transaction record to the intelligent contract 903; the enterprise reconciliation module 902b can generate a reconciliation bill, send the generated reconciliation bill to the user module 901, receive a reconciliation result returned by the user module 901, and send an uplink storage request of the reconciliation result to the intelligent contract 903.
Smart contract 903 may include an accounting contract 903a and a reconciliation contract 903b, and banking service module 902 may invoke accounting contract 903a to chain up transaction records and banking service module 902 may invoke reconciliation contract 903b to chain up reconciliation results. The banking service module 902 may also store interactive data (e.g., notification information) required in the reconciliation process in uplink via the intelligent contract 903.
Blockchain 904 may be used to store smart contracts 903 invoked by banking service module 902, and return a storage address, etc. to banking service module 902.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 10 is a block diagram illustrating a structure of a data management apparatus based on a blockchain according to an exemplary embodiment of the present application. The block chain based data management device can be used in the server shown in fig. 1 to execute all or part of the steps in the method shown in the corresponding embodiment of fig. 4, fig. 5 or fig. 8. The block chain-based data management device can comprise the following modules:
a transfer record obtaining module 1001, configured to obtain a resource transfer record of a first account in a block chain;
a check table generating module 1002, configured to generate a resource transfer check table according to a resource transfer record of a first account in a block chain, where the resource transfer check table includes the resource transfer record of the first account;
an approval table sending module 1003, configured to send the resource transfer approval table to a target user, where the target user is a user to which the first account belongs;
a checking result storage module 1004, configured to receive a checking result of the target user on the resource transfer checking table, and store the checking result in the block chain.
Optionally, the transfer record obtaining module 1001 is configured to obtain the resource transfer record in a first time period from the block chain when or after a preset time node arrives, where the first time period is any time period before the preset time node;
the checklist generating module 1001 is configured to generate the resource transfer checklist in the first time period according to the resource transfer record in the first time period.
Optionally, the apparatus further comprises:
and the record storage module is used for storing a first resource transfer record into the block chain through an intelligent contract when the first resource transfer record is generated aiming at the first account, wherein the first resource transfer record is generated when the first account is subjected to resource transfer at any time.
Optionally, the apparatus further comprises:
a first address storage module, configured to store a first record address on the block chain, where the first record address is an address where the first resource transfer record is stored in the block chain;
and the relation establishing module is used for establishing a binding relation between the first record address and the first resource transfer record and storing the binding relation on the block chain.
Optionally, the apparatus further comprises:
a second address storage module, configured to locally store the first recording address;
and the record query module is used for querying the first resource transfer record according to the first record address when querying the first resource transfer record.
Optionally, the apparatus further comprises:
and the data storage module is used for storing the resource transfer quantity, the resource residual quantity and the resource hash value of the resource transfer check table into the block chain.
Optionally, the first account number is a bank account number.
In summary, the resource transfer record of the first account in the block chain is acquired through the server, the resource transfer checklist is generated according to the resource transfer record of the first account in the block chain, the resource transfer checklist is sent to the target user, the checking result of the target user on the resource transfer checklist is received, and the checking result is stored in the block chain. According to the method and the device, the resource transfer record of the first account is stored in the block chain through the use of the block chain, the resource transfer checking table is generated through the transfer record in the block chain, and the data checking result of the target user is stored in the block chain, so that the data of the target user can be shared by all nodes on the block chain, and the transparency and the reliability of the data of the target user are improved.
It should be noted that: in the device provided in the foregoing embodiment, when the above steps are executed, only the division of the above functional modules is taken as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus provided in the foregoing embodiment and the method embodiment of the data management method based on the block chain belong to the same concept, and specific implementation processes thereof are described in the method embodiment and are not described herein again.
Fig. 11 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application. The computer device 1100 includes a Central Processing Unit (CPU) 1101, a system memory 1104 including a Random Access Memory (RAM) 1102 and a Read Only Memory (ROM) 1103, and a system bus 1105 connecting the system memory 1104 and the CPU 1101. The computer device 1100 also includes a basic input/output system (I/O system) 1106, which facilitates transfer of information between devices within the computer, and a mass storage device 1107 for storing an operating system 1112, application programs 1113, and other program modules 1114.
The basic input/output system 1106 includes a display 1108 for displaying information and an input device 1109 such as a mouse, keyboard, etc. for user input of information. Wherein the display 1108 and input device 1109 are connected to the central processing unit 1101 through an input output controller 1110 connected to the system bus 1105. The basic input/output system 1106 may also include an input/output controller 1110 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1110 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1107 is connected to the central processing unit 1101 through a mass storage controller (not shown) that is connected to the system bus 1105. The mass storage device 1107 and its associated computer-readable media provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
The computer readable media may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM (Compact Disc Read-Only Memory), DVD (Digital Video Disc), or other optical, magnetic, tape, magnetic, or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 1104 and mass storage device 1107 described above may be collectively referred to as memory.
The computer device 1100 may connect to the internet or other network devices through the network interface unit 1111 that is connected to the system bus 1105.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 1101 implements all or part of the steps executed by the server in the methods provided by the above embodiments of the present application by executing the one or more programs.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising computer programs (instructions), executable by a processor of a computer device to perform all or part of the steps of the methods shown in the various embodiments of the present application, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for blockchain-based data management, the method being performed by a server, the method comprising:
acquiring a resource transfer record of a first account in a block chain;
generating a resource transfer check list according to the resource transfer record of the first account; the resource transfer check table comprises a resource transfer record of the first account;
sending the resource transfer check list to a target user, wherein the target user is a user to which the first account belongs;
and receiving a checking result of the target user on the resource transfer checking table, and storing the checking result into the block chain.
2. The method according to claim 1, wherein the obtaining a resource transfer record of a first account in a block chain comprises:
when or after a preset time node arrives, acquiring the resource transfer record in a first time period from the block chain, wherein the first time period is any time period before the preset time node;
generating a resource transfer check table according to the resource transfer record of the first account in the block chain, including:
and generating the resource transfer check table in the first time period according to the resource transfer record in the first time period.
3. The method of claim 1, further comprising:
when a first resource transfer record is generated for the first account, the first resource transfer record is stored in the block chain through an intelligent contract, and the first resource transfer record is generated when the first account is subjected to resource transfer at any time.
4. The method of claim 3, further comprising:
storing a first record address on the block chain, the first record address being an address at which the first resource transfer record is stored in the block chain;
and establishing a binding relationship between the first record address and the first resource transfer record, and storing the binding relationship on the block chain.
5. The method of claim 4, further comprising:
locally storing the first recording address;
and when the first resource transfer record is inquired, inquiring the first resource transfer record according to the first record address.
6. The method of claim 1, further comprising:
and storing the resource transfer quantity, the resource residual quantity and the resource hash value of the resource transfer check table into the block chain.
7. The method of any one of claims 1 to 6, wherein the first account number is a bank account number.
8. An apparatus for block chain based data management, the apparatus being used in a server, the apparatus comprising:
the transfer record acquisition module is used for acquiring a resource transfer record of a first account in the block chain;
the resource transfer check table generation module is used for generating a resource transfer check table according to the resource transfer record of the first account, and the resource transfer check table comprises the resource transfer record of the first account;
the resource transfer check table sending module is used for sending the resource transfer check table to a target user, wherein the target user is a user to which the first account belongs;
and the checking result storage module is used for receiving the checking result of the target user on the resource transfer checking table and storing the checking result into the block chain.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the method of blockchain based data management according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of blockchain based data management according to any one of claims 1 to 7.
CN201910910864.XA 2019-09-25 2019-09-25 Block chain-based data management method, device, equipment and storage medium Active CN110597919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910910864.XA CN110597919B (en) 2019-09-25 2019-09-25 Block chain-based data management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910910864.XA CN110597919B (en) 2019-09-25 2019-09-25 Block chain-based data management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110597919A true CN110597919A (en) 2019-12-20
CN110597919B CN110597919B (en) 2023-09-01

Family

ID=68863223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910910864.XA Active CN110597919B (en) 2019-09-25 2019-09-25 Block chain-based data management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110597919B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858776A (en) * 2020-08-10 2020-10-30 杭州复杂美科技有限公司 Fire fighting equipment inspection and supervision method, equipment and storage medium
CN113656499A (en) * 2021-08-16 2021-11-16 工银科技有限公司 Block chain-based value transfer method and device
CN114520813A (en) * 2021-12-29 2022-05-20 浙江中环瑞蓝科技发展有限公司 Pollution source management and control system based on block chain
CN114638604A (en) * 2022-03-22 2022-06-17 成都质数斯达克科技有限公司 Financial service charging method and device based on block chain
CN115186301A (en) * 2022-09-09 2022-10-14 平安银行股份有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003175A (en) * 2018-07-06 2018-12-14 国网汇通金财(北京)信息科技有限公司 A kind of account checking method and system based on block chain
CN109118360A (en) * 2018-07-19 2019-01-01 中国联合网络通信集团有限公司 Block chain account checking method, device, equipment and storage medium
CN110009350A (en) * 2019-03-26 2019-07-12 阿里巴巴集团控股有限公司 A kind of operation note checking method and device based on block chain intelligence contract

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109003175A (en) * 2018-07-06 2018-12-14 国网汇通金财(北京)信息科技有限公司 A kind of account checking method and system based on block chain
CN109118360A (en) * 2018-07-19 2019-01-01 中国联合网络通信集团有限公司 Block chain account checking method, device, equipment and storage medium
CN110009350A (en) * 2019-03-26 2019-07-12 阿里巴巴集团控股有限公司 A kind of operation note checking method and device based on block chain intelligence contract

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858776A (en) * 2020-08-10 2020-10-30 杭州复杂美科技有限公司 Fire fighting equipment inspection and supervision method, equipment and storage medium
CN113656499A (en) * 2021-08-16 2021-11-16 工银科技有限公司 Block chain-based value transfer method and device
CN113656499B (en) * 2021-08-16 2024-04-02 工银科技有限公司 Value transfer method and device based on block chain
CN114520813A (en) * 2021-12-29 2022-05-20 浙江中环瑞蓝科技发展有限公司 Pollution source management and control system based on block chain
CN114520813B (en) * 2021-12-29 2023-09-01 浙江中环瑞蓝科技发展有限公司 Pollution source management and control system based on block chain
CN114638604A (en) * 2022-03-22 2022-06-17 成都质数斯达克科技有限公司 Financial service charging method and device based on block chain
CN115186301A (en) * 2022-09-09 2022-10-14 平安银行股份有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN115186301B (en) * 2022-09-09 2022-12-16 平安银行股份有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110597919B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US11789933B2 (en) System and method for a hybrid contract execution environment
CN110597919B (en) Block chain-based data management method, device, equipment and storage medium
CN110363665B (en) Credit right data processing method, device, equipment and medium
CN108537667B (en) Financial asset anti-money laundering control method and device based on block chain and storage medium
CN110599181B (en) Data processing method, device and equipment based on block chain and storage medium
US10937111B2 (en) Managing energy purchase agreements on a blockchain
US20190303926A1 (en) Blockchain loan transaction systems and methods
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN110599182A (en) Resource management method and device
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN110009501B (en) Financing method, system, computing device and storage medium based on blockchain
US8112329B2 (en) Consolidating leads received from potential renters for billing a lister
CN111311277B (en) Bill processing method and device based on block chain network and related equipment
CN110659993A (en) Resource management method and device based on block chain network
CN111640002A (en) Block chain-based mortgage loan method and device
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN111429250A (en) Data management method and device in escort scene
CN113095825B (en) Asset management method and device based on block chain and electronic equipment
CN114219342A (en) Carbon asset management method and device based on non-homogeneous evidence
CN111242782A (en) Service processing method, device and equipment based on block chain and readable medium
CN111882436B (en) Data processing method, device and equipment based on block chain
CN113177772A (en) Service data processing method, device and system
CN103914512A (en) Method and system for managing data services
CN111209337A (en) Financial report generation system, method, device, equipment and medium based on block chain
CN111737729A (en) Evaluation data storage method and system based on service data block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant