CN111461881A - Data management method and device, computer equipment and storage medium - Google Patents

Data management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111461881A
CN111461881A CN202010238073.XA CN202010238073A CN111461881A CN 111461881 A CN111461881 A CN 111461881A CN 202010238073 A CN202010238073 A CN 202010238073A CN 111461881 A CN111461881 A CN 111461881A
Authority
CN
China
Prior art keywords
block
node
data
nodes
transaction
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.)
Pending
Application number
CN202010238073.XA
Other languages
Chinese (zh)
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.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology 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 Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202010238073.XA priority Critical patent/CN111461881A/en
Publication of CN111461881A publication Critical patent/CN111461881A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The application relates to a data management method, a data management device, computer equipment and a storage medium, and relates to the technical field of information security. The method comprises the following steps: any node of at least two nodes in the block chain system asynchronously sends acquired transaction data from an upstream system through an information platform; carrying out validity check on the transaction data to generate a check result; and packaging the transaction data with the verification result indicating legality in a preset period to generate a block, and connecting the block to the same block chain configured by at least two nodes in the block chain system. By the method, each system node of the financial processing shares the same account book, so that the account checking process between systems is simplified.

Description

Data management method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of information security technologies, and in particular, to a data management method and apparatus, a computer device, and a storage medium.
Background
In a payment company, in order to ensure the safety of funds, a great deal of financial management work such as fund clearing, accounting, difference processing and the like is required for each successful payment transaction.
In the related technology, each system carries out related business function processing according to respective receipts, and the consistency and the accuracy of fund data in the checking process are ensured through multi-party reconciliation among the systems.
However, in the above related art, the reconciliation method adopted in the reconciliation between systems is mostly operated by human, which is high in cost and complexity, and cannot be traced back for a series of accounting documents generated in each stage of financial processing by one transaction, thereby easily causing problems such as data information loss and the like.
Disclosure of Invention
The application relates to a data management method, a data management system, computer equipment and a storage medium, which can enable all system nodes to share the same account book, simplify the account checking process among systems and realize the traceability of the finest transaction data process. The technical scheme is as follows:
in one aspect, a data management method is provided, where the method is used in a blockchain system, where the blockchain system includes at least two nodes, where the at least two nodes are used for data maintenance of the blockchain system, and the method is performed by a first node, where the first node is any one of the at least two nodes; the method comprises the following steps:
acquiring transaction data, wherein the transaction data is data from an upstream system and is asynchronously sent through an information platform;
carrying out validity check on the transaction data to generate a check result;
packaging the transaction data with the verification result indicating legality in a preset period to generate a block, wherein the header information of the block comprises the characteristic information of the block;
connecting the blocks into a first block chain, the first block chain being the same block chain of the at least two node arrangements in the block chain system.
In another aspect, a data management apparatus is provided, where the apparatus is used in a blockchain system, where the blockchain system includes at least two nodes, where the at least two nodes are used for data maintenance of the blockchain system, and the apparatus is used in a first node, where the first node is any one of the at least two nodes; the device comprises:
the acquisition module is used for acquiring transaction data, and the transaction data is data from an upstream system and is asynchronously sent through an information platform;
the verification module is used for verifying the legality of the transaction data to generate a verification result;
the block generation module is used for packaging the transaction data with the verification result indicating legality in a preset period to generate a block, and header information of the block comprises feature information of the block;
a block connection module, configured to connect the block to a first block chain, where the first block chain is a same block chain configured by the at least two nodes in the block chain system.
Optionally, the first node is preset with a corresponding intelligent contract, and the intelligent contract is used for linking the block to the header information of the block according to a preset logic, as the block specifying the feature information.
Optionally, the transaction data includes, but is not limited to, transaction amount, transaction time, classification code, transaction type, transaction subject, transaction currency, payment serial number, and service type.
Optionally, the feature information of the block includes the classification code, the payment serial number, and the generation time of the block.
Optionally, the apparatus further comprises:
a sharing module, configured to share the broadcast of the block to a second node, so that the second node checks the block, where the second node includes n nodes, and n is an integer greater than or equal to 2.
The block connecting module is configured to connect the block into the first block chain in response to a result of checking the block by more than 50% of the nodes in the second node indicating that the block is legal.
Optionally, the blockchain system includes at least two nodes including, but not limited to, a payment detail posting node, a fund flow node, a difference processing recording node, a credential management node, and a general ledger recording node.
Optionally, the apparatus further comprises:
and generating a transaction data report according to the intelligent contract corresponding to the first node and the first block chain.
In another aspect, a computer device is provided, which includes a processor and a memory, where 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 data management method provided in the embodiment of the present application.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the data management method provided in the embodiments of the present application.
The beneficial effect that technical scheme that this application provided brought includes at least:
the financial processing server is used as a node of the block chain system, the plurality of nodes are configured with the same block chain, each node can maintain the block chain based on the acquired transaction data, and the corresponding intelligent contracts are preset in each node to associate blocks generated by each node, so that the same transaction can be traced in each financial processing flow, the reconciliation flow among the systems is simplified, and the traceability of the finest-granularity transaction data flow is realized.
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 block diagram illustrating an exemplary chain of blocks provided by an exemplary embodiment of the present application;
fig. 2 is a system configuration diagram of a blockchain system to which various embodiments of the present application relate;
FIG. 3 illustrates a flow chart of a method of data management provided by an exemplary embodiment of the present application;
FIG. 4 illustrates a flow chart of a method of data management provided by an exemplary embodiment of the present application;
FIG. 5 is a block diagram of a data management device provided in an exemplary embodiment of the present application;
FIG. 6 illustrates a block diagram of a data management system provided by an exemplary embodiment of the present application;
FIG. 7 is a block diagram illustrating the structure of a computer device according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, the terms referred to in the embodiments of the present application will be briefly described:
1) block chain (Blockchain)
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The blockchain is essentially a decentralized database, which is a string of data blocks associated by using cryptography, each data block contains information of a batch of network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
Referring to fig. 1, which shows a schematic structural diagram of a block chain according to an exemplary embodiment of the present application, as shown in fig. 1, the block chain is composed of a plurality of blocks, 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.
2) Shared account book
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.
3) Intelligent contract
Intelligent contracts are a new technology that can automatically negotiate, fulfill and execute terms of an agreement in a blockchain environment. Smart contracts are digitized, stored in a blockchain, and use encrypted code to enforce a protocol, that is, smart contracts are software programs that, like all programs, execute exactly as they intended. The terms of a certain contract can be executed, the terms are realized by codes which are deployed on a shared account and are used for executing when certain conditions are met, and the codes are used for completing automated transactions according to actual business requirements, such as inquiring the logistics state of goods purchased by a buyer and transferring the electronic money of the buyer to the address of a merchant after the buyer signs the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
4) Consensus mechanism
Because higher network delay exists in a point-to-point network, the sequence of things observed by each node cannot be completely consistent, so a mechanism is designed in a block chain system, the sequence of transactions occurring in almost time can be identified, and the algorithm for achieving the identification of the sequence of the transactions in a time window is called an identification mechanism. All block chain consensus mechanisms now include PoW (Proof Of Work), PoS (Proof Of rights Of stick), DPoS (cleared Proof Of rights Of stick), and so on.
In a payment company, in order to ensure the safety of funds, a large amount of financial management work such as fund clearing, accounting, difference processing and the like is needed behind each successful payment transaction. The system comprises a plurality of systems, wherein each system is subjected to related business function processing according to respective receipts without a unified 'account book', the systems have the problems of data tampering or data inconsistency and the like, so that the consistency of upstream and downstream data is ensured by complicated multi-party account checking, and when data receiving and converting are carried out among the systems, data information is lost and cannot be traced along with continuous circulation of funds in the whole accounting processing process. In order to solve the above problems, the present application provides a data management method, which can enable each system node to share the same account book, simplify the reconciliation process between systems, and implement traceability of a transaction process. Referring to fig. 2, a system configuration diagram of a blockchain system according to various embodiments of the present application is shown, and as shown in fig. 2, the system includes a plurality of servers 210, a blockchain 220, and a terminal 230.
The servers may be servers of a plurality of financial processing applications, and the servers 210 may be configured with the same blockchain 220, that is, the servers may form a blockchain system, and each server 210 is a node in the blockchain system.
The user of each financial processing application may access the server of the financial processing application through the terminal 230, which may be a terminal device having a network link function and an interface display function, for example, the terminal 230 may be a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like.
The terminal 230 may have a plurality of financial processing applications supported by the server 210 installed therein.
Of course, for security authentication, rights management, etc. services. A CA center (Certificate Authority) 240 is configured in the blockchain system, and is used for storing the key of each financial processing application, and each server in the blockchain system can obtain the key of each financial processing application from the CA center to perform processes such as encryption and decryption of data.
The terminal 230 is connected to the server 210 through a communication network. Optionally, the honor network is a wired network or a wireless network.
Optionally, the system may further include a management device (not shown in fig. 2), which is connected to the server 210 through a communication network. Alternatively, the communication network may be a limited or wireless network.
The Network is typically the Internet, but may be any Network including, but not limited to, a local Area Network (L cal Area Network, L AN), a Metropolitan Area Network (Metropolisan Area Network, MAN), a Wide Area Network (WAN), a mobile, wireline, or wireless Network, a Private Network, or any combination of Virtual Private networks.
Referring to fig. 3, a flowchart of a data management method according to an exemplary embodiment of the present application is shown based on the implementation environment provided in fig. 2. The data management method may be used in a blockchain system, where the blockchain system includes at least two nodes that perform data maintenance on the blockchain system, and the method may be executed by a first node, where the first node is any one of the at least two nodes, where at least two of the nodes may be multiple servers in fig. 1, as shown in fig. 3, and the data management method may include the following steps:
at step 310, transaction data is obtained, the transaction data being data from an upstream system sent asynchronously by the information platform.
In the embodiment of the present application, asynchronous sending refers to that when an upstream system generates a fund change, the upstream system does not synchronously notify a downstream system in real time, but asynchronously and quasi-real-time sends the fund change information to the downstream system through a message platform, where the downstream system may be a accounting system.
And 320, carrying out validity check on the transaction data to generate a check result.
The validity check may be to check the validity of the transaction data according to a preset check rule to determine the validity of the transaction, and optionally, the validity check may be to determine whether the transaction data is complete.
For some fund change information in the transaction, an external interface needs to be called for validity check, for example, when a bank channel is involved in the fund change information, a gateway system needs to be called for validity check of the bank channel.
Step 330, packaging the transaction data with the verification result indicating validity in a preset period, and generating a block, wherein the header information of the block includes the characteristic information of the transaction data.
Alternatively, the transaction data may be streaming data, that is, a group of sequential, large-volume, fast, and continuous data sequences, and during the data management of the node, the blocks are timed out, so that a block period may be preset, for example, the block out time of a block is configured to be 1 minute or 30 seconds, and the transaction data generated in one block out period may be packed into the same block.
As shown in fig. 1, a block is divided into two parts, namely a block head and a block body, wherein the block head stores header information of the block, including hash value of the previous block, hash value of the block body, and timestamp, and the block body stores detailed data of the block, and the data includes a plurality of records, which may be transaction information or other information related to the transaction information.
In step 340, the block is connected to a first block chain, which is the same block chain configured by at least two nodes in the block chain system.
As shown in fig. 2, at least two nodes in the blockchain system are configured with the same blockchain, and each node can maintain the blockchain based on the input information received by the node during normal operation.
To sum up, in the data management method provided in this embodiment of the present application, the server for financial processing is used as a node of the blockchain system, and a plurality of nodes are configured with the same blockchain, and each node can maintain the blockchain based on the transaction data obtained by each node, and associates the blocks generated by each node by presetting a corresponding intelligent contract at each node, so that the same transaction can be traced back in each financial processing flow, thereby simplifying the reconciliation flow between systems, and realizing the traceability of the transaction data flow with the finest granularity.
Referring to fig. 4, a flowchart of a data management method according to an exemplary embodiment of the present application is shown. The data management method may be used in a blockchain system, where the blockchain system includes at least two nodes that perform data maintenance on the blockchain system, and the method may be executed by a first node, where the first node is any one of the at least two nodes, where at least two of the nodes may be multiple servers in fig. 1, as shown in fig. 4, and the data management method may include the following steps:
at step 410, transaction data is obtained, which is data from an upstream system sent asynchronously via the information platform.
Optionally, the transaction data includes, but is not limited to, transaction amount, transaction time, classification code, transaction type, transaction subject, transaction currency, payment serial number, transaction type, and the like.
The classification code is a minimum unit for accounting and can be mapped to corresponding specific subject information through configuration; the payment serial number is the unique identification of the payment document.
And step 420, carrying out validity check on the transaction data to generate a check result.
And step 430, packaging the transaction data with the verification result indicating legality in a preset period to generate a block, wherein the header information of the block comprises the characteristic information of the block.
When a block is generated, when a first node receives input information, namely transaction data is acquired, the input information is verified, if the verification is passed, the verification result indicates legal transaction data is stored in a memory pool, a hash tree used for recording the input information is updated, then an update timestamp is the time of receiving the input information, different random numbers are tried, and characteristic value calculation is performed for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_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.
Optionally, the block header of the block may include feature information of the block, and the feature information of the block may be a classification code, a payment serial number, and a block generation time corresponding to the transaction data.
The block generation time is a timestamp, the timestamp refers to a time sequence added by a node for each block, and the time sequence is generally accurate to seconds by adopting a Unix time counting mode. Due to the existence of the time stamp, the transaction information on the block cannot be changed and can be used as important information for transaction certification. The block chain ensures that each block is connected in turn by a time stamp.
In a possible case, transaction data corresponding to a plurality of transactions may be packaged in the same block, taking the case that transaction data corresponding to two transactions are packaged in the same block as an example, the block header corresponding to the block corresponds to feature information corresponding to two transaction data respectively, it should be noted that for the same node, that is, the same financial processing server, the input information correspondingly received by the same node has the same classification code, that is, if one block packaged by the same node in a preset period contains transaction data corresponding to two transactions, the block header of the block corresponds to one classification code, two payment serial numbers and the generation time of the block.
Step 440, the block broadcast is shared to a second node, so that the second node checks the block, where the second node includes n nodes, and n is an integer greater than or equal to 2.
Optionally, the blockchain system includes at least two nodes including, but not limited to, a payment detail entry node, a fund flow node, a difference processing record node, a credential management node, and a general ledger record node. Taking the example that the blockchain system includes the 5 nodes, the first node may be any one of the 5 nodes, and the second node is another node in the blockchain system except the first node. Assuming that the first node is a payment detail entry node, the second node is a fund flow node, a difference processing record node, a voucher management node and a general ledger record node, and when the payment detail entry node generates a block, the block is broadcast and shared to other 4 nodes, so that the other 4 nodes check the block.
Optionally, each node in the blockchain system has a node identifier corresponding thereto, and each node may store a node identifier of another node in the blockchain system, so that the generated block is broadcast to the another node in the blockchain system according to the node identifiers of the another node in the subsequent process.
In response to more than 50% of the nodes in the second node verifying that the block is valid, the block is connected to the first chain of blocks, step 450.
When more than 50% of the nodes in the second node check the block to indicate that the block is valid, it means that the block is recognized by most nodes and confirmed by multiple parties, i.e. the block can be connected to a block chain configured by multiple nodes.
Optionally, each node stores a second block chain, the second block chain is the same as the first block chain, and in response to a result that more than 50% of nodes in the second node check the block indicates that the block is legal, each node adds the block to the second block chain stored in each node.
Optionally, a transaction data report is generated according to the intelligent contract corresponding to the first node and the first block chain.
Optionally, the first node is preset with a corresponding intelligent contract, and the intelligent contract is used to indicate that the block is linked to the block whose header information is the specified characteristic information.
Optionally, the intelligent contracts may include, but are not limited to, payment statement posting contracts, fund flow posting contracts, difference processing posting contracts, credential management posting contracts, and general ledger contracts, corresponding to at least two nodes included in the blockchain system.
That is to say, the payment detail posting node corresponds to a payment detail posting contract, the fund flow node corresponds to a fund flow posting contract, the difference processing recording node corresponds to a difference processing posting contract, the voucher management node corresponds to a voucher management posting contract, and the general ledger recording node corresponds to a general ledger recording contract.
It should be noted that the types of the nodes in the blockchain system and the corresponding intelligent contracts thereof may be increased or decreased according to actual needs, which is not limited in the present application.
The intelligent contracts in the nodes can trigger corresponding intelligent contract operation according to different classification codes in block heads, and the blocks are linked to the blocks with the head information of the blocks as specified characteristic information, so that when a transaction data report is generated, the complete financial fund circulation records corresponding to each payment serial number are traced according to the chain relation among the blocks. The fund flow entry contract is used as an example, and when the account entry of the financial information is processed according to preset logic, the fund flow entry contract can indicate that a block is linked to a block chain with the last block header information as a specified upper-level classification code and the same payment flow number, so that a chain relation is formed, the requirement of processing and tracing the voucher from fine granularity to payment flow dimension is met, the voucher can automatically flow into subject account information corresponding to the classification code, and subsequent report output is facilitated.
Multiple fund changes may occur for the same payment run made by the user. For example, when the user successfully purchases take-out payment, the payment system sends the payment information to the accounting system through the message platform, the accounting system sends the classification code on the message identifier to the accounting system, the classification code is the amount to be cleared, the first data of the block chain is the data, after the account checking is completed with the unionpay, the account checking system sends the leveled account checking information to the accounting system again, at the moment, the upper classification code and the payment serial number preset according to the contract are linked to the corresponding block chain, and the fine-grained tracing is completed. Then, for the original payment pipelining, the following settlement and fund change messages generated by merchants are traced back to complete processing flows of clearing, accounting, reconciliation, settlement, difference processing and the like according to the original payment pipelining number.
That is to say, when the fund flow posting contract of the fund flow node indicates that the upper-level classification code of the classification code corresponding to the first block generated by the fund flow node is the classification code corresponding to the second block generated by the payment detail posting node, and when the fund flow record corresponding to the payment flow in the first block is traced, the requirement of processing and tracing the voucher from the fine granularity to the payment flow dimension can be realized according to the classification code and the payment flow number in the block header of the first block and corresponding to the block, which is consistent with the payment flow number of the first block, in the second block generated by the payment flow node, so that the whole-process fund change tracing of the payment transaction with the finest granularity is realized, and the financial work efficiency is improved.
Different block chain account book nodes are corresponding to different intelligent contracts, and according to a common identification mechanism, the 5 block chain link points and 5 types of intelligent contracts can participate in data management and storage in the block chain together. For example, the voucher management node is responsible for sequentially calculating the account receivable age and automatically generating an account age table; and the general ledger report automatically outputs account balance information according to the mapping relation between the classification codes and the accounts.
To sum up, in the data management method provided in this embodiment of the present application, the server for financial processing is used as a node of the blockchain system, and a plurality of nodes are configured with the same blockchain, and each node can maintain the blockchain based on the transaction data obtained by each node, and associates the blocks generated by each node by presetting a corresponding intelligent contract at each node, so that the same transaction can be traced back in each financial processing flow, thereby simplifying the reconciliation flow between systems, and realizing the traceability of the transaction data flow with the finest granularity.
Referring to fig. 5, a block diagram of a data management device according to an exemplary embodiment of the present application is shown. The device is used in a blockchain system, the blockchain system comprises at least two nodes, the at least two nodes are used for performing data maintenance on the blockchain system, the device is applied in a first node, and the first node is any one of the at least two nodes; the device comprises:
an obtaining module 510, configured to obtain transaction data, where the transaction data is data from an upstream system and is asynchronously sent through an information platform;
the verification module 520 is configured to perform validity verification on the transaction data to generate a verification result;
a block generating module 530, configured to pack, in a preset period, the transaction data whose verification result indicates validity, and generate a block, where header information of the block includes feature information of the block;
a block connecting module 540, configured to connect the block to a first block chain, where the first block chain is a same block chain configured by the at least two nodes in the block chain system.
Optionally, the first node is preset with a corresponding intelligent contract, and the intelligent contract is used for linking the block to the header information of the block according to a preset logic, as the block specifying the feature information.
Optionally, the transaction data includes, but is not limited to, transaction amount, transaction time, classification code, transaction type, transaction subject, transaction currency, payment serial number, and service type.
Optionally, the feature information of the block includes the classification code, the payment serial number, and the generation time of the block.
Optionally, the apparatus further comprises:
a sharing module, configured to share the broadcast of the block to a second node, so that the second node checks the block, where the second node includes n nodes, and n is an integer greater than or equal to 2.
The block connecting module is configured to connect the block into the first block chain in response to a result of checking the block by more than 50% of the nodes in the second node indicating that the block is legal.
Optionally, the blockchain system includes at least two nodes including, but not limited to, a payment detail posting node, a fund flow node, a difference processing recording node, a credential management node, and a general ledger recording node.
Optionally, the apparatus further comprises:
and generating a transaction data report according to the intelligent contract corresponding to the first node and the first block chain.
To sum up, the data management device that this application embodiment provided, through the node and a plurality of nodes configuration with financial processing's server as block chain system, each node can be maintained this block chain jointly based on the transaction data that obtains respectively, and through presetting corresponding intelligent contract at each node, the block that produces each node is correlated with, make same transaction traceable in each financial processing flow, thereby the reconciliation flow between the system has been simplified, realized the traceability of finest granularity transaction data flow.
An embodiment of the present application provides a data management system, including: the system comprises a data checking module, a block storage module, an intelligent contract module and a block chain account book module; referring to fig. 6, which shows a block diagram of a data management system provided in an exemplary embodiment of the present application, as shown in fig. 6, the data management system 600 includes a data checking module 610, a block storage module 620, an intelligent contract module 630, and a block chain ledger module 640.
The intelligent contract module 630 may include payment detail posting contracts, fund flow posting contracts, difference handling posting contracts, credential management posting contracts, and general ledger contracts; the blockchain ledger module 640 may include: the system comprises a payment detail posting node, a fund flow node, a difference processing recording node, a voucher management node and a general ledger recording node.
The data checking module is used for checking the legality of the transaction data;
the block storage module is used for packaging the transaction data with validity check results indicating validity in a preset period to generate a block;
the intelligent contract module is used for linking the block to the header information of the block according to preset logic, wherein the header information designates the block of the characteristic information;
and the block chain account book module is used for generating a transaction data report according to the intelligent contract corresponding to the first node and the first block chain.
To sum up, according to the data management system provided by the embodiment of the application, the server for financial processing is used as a node of the block chain system, and the plurality of nodes are configured with the same block chain, each node can maintain the block chain based on the transaction data acquired by each node, and associates the blocks generated by each node by presetting the corresponding intelligent contract at each node, and when a transaction data report is generated, the transaction flow tracing is completed according to the intelligent contract preset in the node, so that the same transaction can be traced in each financial processing flow, thereby simplifying the reconciliation flow between systems, and realizing the traceability of the transaction data flow with the finest granularity.
FIG. 7 is a block diagram illustrating the structure of a computer device 700 according to an example embodiment. The computer device may be implemented as a node in the above-described aspects of the present application. The computer device 700 includes a Central Processing Unit (CPU) 701, a system Memory 704 including a Random Access Memory (RAM) 702 and a Read-Only Memory (ROM) 703, and a system bus 705 connecting the system Memory 704 and the CPU 701. The computer device 700 also includes a basic Input/Output system (I/O system) 706, which facilitates transfer of information between devices within the computer, and a mass storage device 709 for storing an operating system 713, application programs 714, and other program modules 715.
The basic input/output system 706 comprises a display 708 for displaying information and an input device 707, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 708 and input device 707 are coupled to the central processing unit 701 through an input-output controller 710 coupled to the system bus 705. The basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 710 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 709 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 709 and its associated computer-readable media, provide non-volatile storage for the computer device 700. That is, the mass storage device 709 may include a computer-readable medium (not shown) such as a hard disk or Compact Disc-Only Memory (CD-ROM) drive.
Without loss of generality, the computer-readable media may comprise 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, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, Digital Versatile Disks (DVD), or other optical, 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 704 and mass storage device 709 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 700 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 700 may be connected to the network 712 through the network interface unit 711 connected to the system bus 705, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 711.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 701 implements all or part of the steps of the method shown in fig. 3 or fig. 4 by executing the one or more programs.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Embodiments of the present application further provide a computer-readable storage medium for storing 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 above-mentioned voice endpoint detection method. For example, the computer readable storage medium may be a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present application is intended to cover various modifications, alternatives, and equivalents, which may be included within the spirit and scope of the present application.

Claims (10)

1. A data management method, wherein the method is used in a blockchain system, wherein the blockchain system comprises at least two nodes, and the at least two nodes are used for performing data maintenance on the blockchain system, and the method is performed by a first node, and the first node is any one of the at least two nodes; the method comprises the following steps:
acquiring transaction data, wherein the transaction data is data from an upstream system and is asynchronously sent through an information platform;
carrying out validity check on the transaction data to generate a check result;
packaging the transaction data with the verification result indicating legality in a preset period to generate a block, wherein the header information of the block comprises the characteristic information of the block;
connecting the blocks into a first block chain, the first block chain being the same block chain of the at least two node arrangements in the block chain system.
2. The method according to claim 1, wherein a corresponding intelligent contract is preset in the first node, and the intelligent contract is used for linking the block to header information of the block according to preset logic as the block specifying the characteristic information.
3. The method of claim 1, wherein the transaction data includes, but is not limited to, transaction amount, transaction time, classification code, transaction type, transaction subject, transaction currency, payment serial number, transaction type.
4. The method of claim 3, wherein the characteristic information of the tile comprises the classification code, the payment serial number, and a generation time of the tile.
5. The method of claim 1, wherein after the transaction data with the verification result indicating validity is packaged at a preset period and a block is generated, the method further comprises:
sharing the tile broadcast to a second node such that the second node checks the tile, the second node comprising n nodes, n being an integer greater than or equal to 2;
the connecting the blocks into a first chain of blocks comprises:
connecting the block into the first blockchain in response to more than 50% of nodes in the second node having check results for the block indicating that the block is legitimate.
6. The method of claim 1, wherein the blockchain system comprises at least two nodes including, but not limited to, a payment detail entry node, a funds flow node, a difference processing record node, a credential management node, and a general ledger record node.
7. The method of claim 1, further comprising:
and generating a transaction data report according to the intelligent contract corresponding to the first node and the first block chain.
8. A data management apparatus, wherein the apparatus is used in a blockchain system, the blockchain system comprises at least two nodes, the at least two nodes are used for performing data maintenance on the blockchain system, the apparatus is applied in a first node, and the first node is any one of the at least two nodes; the device comprises:
the acquisition module is used for acquiring transaction data, and the transaction data is data from an upstream system and is asynchronously sent through an information platform;
the verification module is used for verifying the legality of the transaction data to generate a verification result;
the block generation module is used for packaging the transaction data with the verification result indicating legality in a preset period to generate a block, and header information of the block comprises feature information of the block;
a block connection module, configured to connect the block to a first block chain, where the first block chain is a same block chain configured by the at least two nodes in the block chain system.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or 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 a data management method according to any one of claims 1 to 8.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement a data management method according to any one of claims 1 to 8.
CN202010238073.XA 2020-03-30 2020-03-30 Data management method and device, computer equipment and storage medium Pending CN111461881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010238073.XA CN111461881A (en) 2020-03-30 2020-03-30 Data management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010238073.XA CN111461881A (en) 2020-03-30 2020-03-30 Data management method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111461881A true CN111461881A (en) 2020-07-28

Family

ID=71683429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010238073.XA Pending CN111461881A (en) 2020-03-30 2020-03-30 Data management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111461881A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932255A (en) * 2020-08-12 2020-11-13 中国工商银行股份有限公司 Method and device for realizing transaction reconciliation based on cryptocurrency
CN111950245A (en) * 2020-08-25 2020-11-17 深圳市新系区块链技术有限公司 Financial statement generation method, device, equipment and medium based on block chain
CN112632096A (en) * 2021-03-09 2021-04-09 中航信移动科技有限公司 Stroke list data processing system based on block chain
CN112949278A (en) * 2021-02-24 2021-06-11 深圳壹账通智能科技有限公司 Data checking method and device, electronic equipment and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111932255A (en) * 2020-08-12 2020-11-13 中国工商银行股份有限公司 Method and device for realizing transaction reconciliation based on cryptocurrency
CN111932255B (en) * 2020-08-12 2023-11-03 中国人民银行数字货币研究所 Method and device for realizing transaction reconciliation based on encrypted currency
CN111950245A (en) * 2020-08-25 2020-11-17 深圳市新系区块链技术有限公司 Financial statement generation method, device, equipment and medium based on block chain
CN112949278A (en) * 2021-02-24 2021-06-11 深圳壹账通智能科技有限公司 Data checking method and device, electronic equipment and readable storage medium
CN112632096A (en) * 2021-03-09 2021-04-09 中航信移动科技有限公司 Stroke list data processing system based on block chain

Similar Documents

Publication Publication Date Title
CN108833081B (en) Block chain-based equipment networking authentication method
KR102527854B1 (en) Secure exchange of cryptographically signed records
CN106559211B (en) Privacy protection intelligent contract method in block chain
CN108604344B (en) Method and system for creating trusted digital asset transfers using digital signatures
KR101950912B1 (en) Verification system and method for transaction based block chain
CN111464518B (en) Method and device for sending and verifying cross-link communication data
CN111062805B (en) Financial service management platform for supply chain
CN110766406B (en) Resource transfer method, resource transfer device, storage medium and electronic equipment
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN109711836A (en) A kind of storage method of transaction, storage network and electronic equipment
CN110378755B (en) Electronic invoice generation method and device, computer equipment and storage medium
JP2020035436A (en) Traceability system for pet food
KR20180115768A (en) Encryption method and system for secure extraction of data from a block chain
CN111080295A (en) Block chain-based electronic contract processing method and equipment
US11803823B2 (en) Systems and methods for blockchain-based payment transactions, alerts, and dispute settlement, using a blockchain interface server
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN110633963A (en) Electronic bill processing method, electronic bill processing device, computer-readable storage medium and equipment
CN110245522B (en) Data processing method, terminal and medium in block chain fund settlement system
US20210350458A1 (en) Blockchain settlement network
CN113947394A (en) Block chain-based fair payment method for deletable duplicate data in cloud storage
CN115526617A (en) Block chain-based digital RMB payment method, system, medium and equipment
CN111274597B (en) Data processing method and device
KR20200114324A (en) Block chain based money transfer processing system using cryptocurrency
CN112150299B (en) Annuity data processing method, annuity data processing device, medium and electronic equipment
CN114066451A (en) Method and system for managing fund transaction and electronic equipment

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