CN113535855A - Block chain-based master data management method, system, computer device, and medium - Google Patents

Block chain-based master data management method, system, computer device, and medium Download PDF

Info

Publication number
CN113535855A
CN113535855A CN202110858884.4A CN202110858884A CN113535855A CN 113535855 A CN113535855 A CN 113535855A CN 202110858884 A CN202110858884 A CN 202110858884A CN 113535855 A CN113535855 A CN 113535855A
Authority
CN
China
Prior art keywords
block
block chain
information
node
chain
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
CN202110858884.4A
Other languages
Chinese (zh)
Other versions
CN113535855B (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.)
Winning Health Technology Group Co Ltd
Original Assignee
Winning Health Technology Group 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 Winning Health Technology Group Co Ltd filed Critical Winning Health Technology Group Co Ltd
Priority to CN202110858884.4A priority Critical patent/CN113535855B/en
Publication of CN113535855A publication Critical patent/CN113535855A/en
Application granted granted Critical
Publication of CN113535855B publication Critical patent/CN113535855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/23Updating
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The scheme relates to a block chain-based main data management method. The method comprises the following steps: when the main application system maintains and changes the main data, the block chain link points corresponding to other application systems in the block chain are notified in a broadcast mode; receiving feedback information of each block chain node; and when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link points, the main data maintenance information is used as an account book to establish a block into the chain and broadcast the block into the chain, so that each block chain node performs block synchronization, and each block chain link point is issued to the application system database according to the main data change information. The block chain has the characteristics of decentralization, distribution management and the like, so that main data can be maintained by a plurality of service systems together, the block chain engine identifies the problem of maintenance conflict, data change is written into a block and added into the block chain, the data are traceable, and the data change recorded by the block chain is recorded, so that the data security can be improved.

Description

Block chain-based master data management method, system, computer device, and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, a computer device, and a medium for managing master data based on a block chain.
Background
With the development of computer technology, most data are collected, stored and processed by a computer. Because the information of hospitals is deepened continuously, medical information data is accumulated continuously, hospitals attach more and more importance to the mining and application of clinical data, and the standardization and normalization of basic data are more and more important. If the basic data can not be managed in a standardized and standardized way, the accuracy of data and indexes of a later application layer is difficult to guarantee, and therefore most hospitals generally manage main data. The management of the main data can be realized, so that the consistency, the accuracy and the integrity of information exchange among different systems or medical service providers can be ensured, and the difference of medical information in different occasions can be eliminated. To facilitate management of medical data in a hospital, hospitals typically use data dictionaries to perform data maintenance, where data dictionaries refer to defining and describing data items, data structures, data flows, data stores, processing logic, etc. of data.
However, the conventional data management method has the problems of high data management cost and low data security.
Disclosure of Invention
Based on this, in order to solve the above technical problem, a method, a system, a computer device, and a medium for managing master data based on a block chain are provided, which can improve security of master data management.
A method of blockchain based master data management, the method comprising:
when detecting that a main application system carries out main data maintenance change, taking a main block chain node corresponding to the main application system as a broadcast node, broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link nodes, taking main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block chain node performs block synchronization after receiving the broadcast message, and each block chain node issues the main data change information recorded in the block to an application system database.
In one embodiment, the method further comprises:
acquiring a block chain browsing instruction, and displaying block chain information according to the block chain browsing instruction; the block chain information comprises a block index, a block hash value, synchronization completion time and account book information;
and collecting a viewing instruction of the account book information, and displaying main data maintenance change information according to the viewing instruction.
In one embodiment, the method further comprises:
when data in a block is changed, recording data change information of the block by each block link point;
and when an event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
In one embodiment, creating blocks and entering a chain by using the main data maintenance information as an account book includes:
acquiring the creation time of each block on the private chain;
reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block;
and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into a block for chaining.
In one embodiment, the method further comprises:
when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the blocks, the whole network broadcasting is carried out;
and each block chain node broadcasts the synchronous block according to the whole network.
In one embodiment, writing the hash value of the newly added chunk, the timestamp information, and the newly added chunk index as a chunk header into the chunk for chaining comprises:
when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, broadcast communication is carried out on each block chain link point, and broadcast replies returned by each block chain link point are received;
and when the number of the block chain nodes which pass the reply exceeds half of the whole number of the nodes, creating an account book and packaging the blocks.
A blockchain based master data management system, the system comprising:
the data broadcasting module is used for taking a main block chain node corresponding to the main application system as a broadcasting node and broadcasting the broadcasting node when detecting that the main application system maintains and changes main data, and informing block chain link points corresponding to other application systems in a block chain;
the conflict judging module is used for receiving the feedback information of each block chain node through the broadcast node and judging whether each block chain node has a maintenance conflict according to the feedback information;
the block creating module is used for creating a block entering chain and broadcasting the main data maintenance information as an account book when the number of the maintenance-free conflicts of all the block chain nodes exceeds half of the total number of the block chain link nodes;
and the block synchronization module is used for carrying out block synchronization after each block link node receives the broadcast message, and each block link node issues the main data change information recorded in the block to an application system database.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when detecting that a main application system carries out main data maintenance change, taking a main block chain node corresponding to the main application system as a broadcast node, broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link nodes, taking main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block chain node performs block synchronization after receiving the broadcast message, and each block chain node issues the main data change information recorded in the block to an application system database.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when detecting that a main application system carries out main data maintenance change, taking a main block chain node corresponding to the main application system as a broadcast node, broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link nodes, taking main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block chain node performs block synchronization after receiving the broadcast message, and each block chain node issues the main data change information recorded in the block to an application system database.
According to the method, the system, the computer equipment and the medium for managing the main data based on the block chain, when the main application system is detected to maintain and change the main data, the main block chain node corresponding to the main application system is used as a broadcast node and is broadcasted, and the block chain link nodes corresponding to other application systems in the block chain are notified; receiving feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information; when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link nodes, taking main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain; and each block chain node performs block synchronization after receiving the broadcast message, and each block chain node issues the main data change information recorded in the block to an application system database. The block chain has the characteristics of decentralization, distribution management and the like, so that main data can be maintained by a plurality of service systems together, the block chain engine identifies the problem of maintenance conflict, data change is written into a block and added into the block chain, the data are traceable, and the data change recorded by the block chain is recorded, so that the data security can be improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for block chain based master data management in one embodiment;
FIG. 2 is a flowchart illustrating a method for block chain based master data management according to an embodiment;
FIG. 3 is a diagram of a blockchain information presentation interface in accordance with one embodiment;
FIG. 4 is a schematic diagram of a view log presentation interface in one embodiment;
FIG. 5 is a diagram illustrating storage of information in a target block in one embodiment;
FIG. 6 is a block diagram of a master data management system based on blockchains in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for managing master data based on a block chain provided by the embodiment of the application can be applied to the application environment shown in fig. 1. As shown in FIG. 1, the application environment includes a computer device 110. When detecting that the master application system is performing master data maintenance change, the computer device 110 may use a master block chain node corresponding to the master application system as a broadcast node and broadcast the node, and notify block chain link nodes corresponding to other application systems in a block chain; the computer device 110 may receive feedback information of each block link node through the broadcast node, and determine whether each block link node has a maintenance conflict according to the feedback information; when the number of non-maintenance conflicts of each block chain node exceeds half of the total number of block chain link nodes, the computer device 110 may create a block into a chain and broadcast the main data maintenance information as an account book; and each block link point carries out block synchronization after receiving the broadcast message, and each block link point issues the main data change information recorded in the block to the application system database. The computer device 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, robots, tablet computers, and other devices.
In one embodiment, as shown in fig. 2, there is provided a method for master data management based on block chains, including the following steps:
step 202, when detecting that the master application system is performing master data maintenance change, taking the master block chain node corresponding to the master application system as a broadcast node and broadcasting, and notifying the block chain link nodes corresponding to other application systems in the block chain.
The main data may be basic medical data of a hospital, and the medical data of the hospital may be maintained and managed in a data dictionary manner. Each service system may be set on the computer device, each service system may be used as a terminal, and each terminal may have a node corresponding thereto. Wherein, each terminal may correspond to an application system. In this embodiment, a node may serve as both a server and a client; when the node is used as a server, the node can be connected by other nodes; when a node acts as a client, it may be disconnected from other nodes. Where each node is equal.
The computer device can take one application system as a main application system and monitor data change in the main application system in real time. When the computer device detects that the master application system is performing master data maintenance change, the master blockchain node corresponding to the master application system can be used as a broadcast node and broadcast, and then the master blockchain node corresponding to other application systems in the blockchain is notified.
And 204, receiving the feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information.
The computer device can receive the feedback information of each block chain node through the broadcast node, wherein the feedback information can be used for the computer device to perform maintenance conflict verification on each block chain node, and the nodes without maintenance conflicts can achieve consensus. Specifically, the computer device may determine whether each block link node has a maintenance conflict according to the feedback information.
And step 206, when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link points, taking the main data maintenance information as an account book to perform block creation and link entering and broadcasting.
The computer device can calculate the number of the block chain nodes without the maintenance conflict according to the feedback information, and when the number of the maintenance-free conflict of each block chain node exceeds half of the total number of the block chain link points, the computer device can use the main data maintenance information as an account book to perform block creation and chaining and broadcasting.
And step 208, carrying out block synchronization after each block link point receives the broadcast message, and issuing each block link point to the application system database according to the main data change information recorded in the block.
In this embodiment, when it is detected that the master application system is performing master data maintenance change, the master blockchain node corresponding to the master application system is used as a broadcast node and is broadcasted, and the master blockchain node is notified to the blockchain link nodes corresponding to other application systems in the blockchain; receiving feedback information of each block chain node through a broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information; when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain node, taking the main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain; and each block link point carries out block synchronization after receiving the broadcast message, and each block link point issues the main data change information recorded in the block to the application system database. The block chain has the characteristics of decentralization, distribution management and the like, so that main data can be maintained by a plurality of service systems together, the block chain engine identifies the problem of maintenance conflict, data change is written into a block and added into the block chain, the data are traceable, and the data change recorded by the block chain is recorded, so that the data security can be improved.
In an embodiment, the provided method for managing master data based on a block chain may further include a process of displaying information, where the specific process includes: acquiring a block chain browsing instruction, and displaying block chain information according to the block chain browsing instruction; the block chain information comprises block indexes, block hash values, synchronous completion time and account book information; and collecting a viewing instruction of the account book information, and displaying the main data maintenance change information according to the viewing instruction.
The blockchain browsing instruction can be generated by clicking a control in a display interface of the computer device by a user. The computer device may present the blockchain information according to the blockchain browsing instruction, as shown in fig. 3, the blockchain information may include a blockchain index, a blockchain hash value, a synchronization completion time, and ledger information. Wherein, the block index can be used for recording the height of the block; the block hash value may include a hash value of the current block, a hash value of the previous block; the synchronization completion time may be used to indicate the time of the block creation or synchronization of the recording.
As shown in fig. 3, the viewing instruction may be generated by a user clicking a "viewing" control in a display interface of the computer device, and the computer device may open a detailed account book interface to display the main data maintenance change information according to the viewing information of the account book information.
In an embodiment, the provided method for managing master data based on a blockchain may further include a process of viewing an event, where the specific process includes: when the data in the block is changed, recording the data change information of the block by each block chain link point; and when the event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
When a user performs operations such as data addition, data modification, data deletion and the like through computer equipment, data in the block can be correspondingly changed, at the moment, each block link point can record data change information of the block, and a data change event is generated according to the data change information.
A user can view an event of a related block chain node through a display interface of the computer device, as shown in fig. 4, the user can input a start time and an end time of an event occurrence, click an "inquiry" control, and the computer device can display data change information of a block in the display interface.
In an embodiment, the provided method for managing master data based on a block chain may further include a process of creating a block, where the specific process includes: acquiring the creation time of each block on the private chain; reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block; and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into the block for chaining.
In this embodiment, the computer device may obtain the creation time of each block on the private chain, and find the newly added block, and the computer device may read the newly added block, obtain the hash value, the timestamp information, and the newly added block index of the newly added block, and write the hash value, the timestamp information, and the newly added block index of the newly added block as a block header into the block for entering the chain. In this embodiment, the block may further store a data change record, as shown in fig. 5.
In an embodiment, the provided method for managing master data based on a block chain may further include a process of node data synchronization, where the specific process includes: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, the whole network broadcasting is carried out; each node broadcasts the synchronization block according to the whole network.
In an embodiment, the provided method for managing master data based on a block chain may further include a process of performing a network-wide broadcast, where the specific process includes: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, broadcast communication is carried out on each block link point, and broadcast replies returned by each block link point are received; when the number of nodes that reply through exceeds half of the total number of nodes, an ledger is created and blocks are packed.
In this embodiment, the maintenance conflict verification can be performed on each block link point, and the block link points without the maintenance conflict can be identified. Specifically, broadcast communication is performed on each block link node, and broadcast replies of each block link node are received. The node number of the block chain nodes can be recorded in the computer equipment, the computer equipment can count the number of the block chain links passing the reply, and when the number of the block chain links passing the reply exceeds half of the whole number of the block chain nodes, an account book can be created and the blocks can be packaged.
In an embodiment, the provided method for managing master data based on a blockchain may further include a process of blockchain synchronization, where the specific process includes: each service system is used as a terminal, each terminal corresponds to a node, each node is a server and a client, the node is used as the server and is connected with other N-1 nodes, and the node is used as the client and is connected with the servers of other N-1 nodes. Each node is equal and can construct a main data block and then broadcast all over the network. Other nodes enter a Pre-Prepare state when receiving the block request, check basic information (including signature, time, hash, table operation authority and the like) of the block, enter the Prepare state after the check is passed, and broadcast the state in the whole network. And when the number of the nodes to be accumulated is more than 2f +1, entering a commit state and broadcasting the commit state all over the network. And when the quantity of Commit of each node to be accumulated is more than 2f +1, considering that consensus is achieved, adding the block into the block chain, then executing the sql statement in the block, and obtaining the main data information by each node.
In an embodiment, the provided method for managing master data based on a block chain may further include a process of admission management, where the specific process includes: maintaining IP, name and app _ id for each access node; the name field is used to represent a system name in a private chain, and the app _ id represents a server node under the system, which is generally in a one-to-one relationship. The visual maintenance interface on the computer equipment can perform the admittance identity authentication control of the block chain private chain, and prevent illegal use from invading to influence a consensus mechanism.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a master data management system based on a block chain, including: a data broadcasting module 610, a conflict judging module 620, a block creating module 630 and a block synchronizing module 640, wherein:
the data broadcasting module 610 is configured to, when it is detected that the master application system is performing master data maintenance change, take a master block chain node corresponding to the master application system as a broadcast node and broadcast the broadcast node, and notify a block chain link node corresponding to another application system in a block chain;
a conflict judging module 620, configured to receive feedback information of each block link node through the broadcast node, and judge whether each block link node has a maintenance conflict according to the feedback information;
the block creating module 630 is configured to, when the number of non-maintenance conflicts of each block chain node exceeds half of the total number of block chain link points, perform block creation and link entry with the master data maintenance information as an account book and perform broadcasting;
and the block synchronization module 640 is configured to perform block synchronization after each block link point receives the broadcast message, and each block link point issues the main data change information recorded in the block to the application system database.
In an embodiment, the provided master data management system based on a block chain further includes an information display module, configured to obtain a block chain browsing instruction, and display block chain information according to the block chain browsing instruction; the block chain information comprises block indexes, block hash values, synchronous completion time and account book information; and collecting a viewing instruction of the account book information, and displaying the main data maintenance change information according to the viewing instruction.
In one embodiment, the provided master data management system based on the block chain further comprises an event presentation module, configured to record data change information of the block at each block link point when data in the block changes; and when the event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
In one embodiment, the block creation module 630 is further configured to obtain creation time of each block on the private chain; reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block; and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into the block for chaining.
In one embodiment, the block synchronization module 640 is further configured to perform a broadcast over the internet when the hash value of the newly added block, the timestamp information, and the newly added block index are written into the block as a block header; each block link node broadcasts a synchronization block according to the whole network.
In one embodiment, the block synchronization module 640 is further configured to perform broadcast communication on each block link point and receive a broadcast reply returned by each block link point when the hash value of the newly added block, the timestamp information, and the newly added block index are written into the block as a block header; when the number of block link points which are replied through exceeds half of the whole number of the block link nodes, an account book is created and the blocks are packed.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of master data management based on blockchains. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
when detecting that the master application system is maintaining and changing master data, taking a master block chain node corresponding to the master application system as a broadcast node and broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through a broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain node, taking the main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block link point carries out block synchronization after receiving the broadcast message, and each block link point issues the main data change information recorded in the block to the application system database.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a block chain browsing instruction, and displaying block chain information according to the block chain browsing instruction; the block chain information comprises block indexes, block hash values, synchronous completion time and account book information; and collecting a viewing instruction of the account book information, and displaying the main data maintenance change information according to the viewing instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the data in the block is changed, recording the data change information of the block by each block chain link point; and when the event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the creation time of each block on the private chain; reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block; and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into the block for chaining.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, the whole network broadcasting is carried out; each block link node broadcasts a synchronization block according to the whole network.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, broadcast communication is carried out on each block link point, and broadcast replies returned by each block link point are received; when the number of block link points which are replied through exceeds half of the whole number of the block link nodes, an account book is created and the blocks are packed.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when detecting that the master application system is maintaining and changing master data, taking a master block chain node corresponding to the master application system as a broadcast node and broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through a broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain node, taking the main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block link point carries out block synchronization after receiving the broadcast message, and each block link point issues the main data change information recorded in the block to the application system database.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a block chain browsing instruction, and displaying block chain information according to the block chain browsing instruction; the block chain information comprises block indexes, block hash values, synchronous completion time and account book information; and collecting a viewing instruction of the account book information, and displaying the main data maintenance change information according to the viewing instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the data in the block is changed, recording the data change information of the block by each block chain link point; and when the event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the creation time of each block on the private chain; reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block; and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into the block for chaining.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, the whole network broadcasting is carried out; each block link node broadcasts a synchronization block according to the whole network.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, broadcast communication is carried out on each block link point, and broadcast replies returned by each block link point are received; when the number of block link points which are replied through exceeds half of the whole number of the block link nodes, an account book is created and the blocks are packed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A block chain-based master data management method is characterized in that the method comprises
When detecting that a main application system carries out main data maintenance change, taking a main block chain node corresponding to the main application system as a broadcast node, broadcasting, and informing block chain link points corresponding to other application systems in a block chain;
receiving feedback information of each block chain node through the broadcast node, and judging whether each block chain node has maintenance conflict according to the feedback information;
when the number of the non-maintenance conflicts of each block chain node exceeds half of the total number of the block chain link nodes, taking main data maintenance information as an account book to establish a block into a chain and broadcast the block into the chain;
and each block chain node performs block synchronization after receiving the broadcast message, and each block chain node issues the main data change information recorded in the block to an application system database.
2. The method of blockchain-based master data management according to claim 1, further comprising:
acquiring a block chain browsing instruction, and displaying block chain information according to the block chain browsing instruction; the block chain information comprises a block index, a block hash value, synchronization completion time and account book information;
and collecting a viewing instruction of the account book information, and displaying main data maintenance change information according to the viewing instruction.
3. The method of blockchain-based master data management according to claim 1, further comprising:
when data in a block is changed, recording data change information of the block by each block link point;
and when an event checking instruction is detected, displaying the data change information of the block according to the event checking instruction.
4. The method for managing master data based on a block chain according to claim 1, wherein performing block creation chaining on master data maintenance information as an account book comprises:
acquiring the creation time of each block on the private chain;
reading the newly added block according to the creation time and acquiring a hash value, timestamp information and a newly added block index of the newly added block;
and writing the hash value, the timestamp information and the newly added block index of the newly added block as a block head into a block for chaining.
5. The method of blockchain-based master data management according to claim 4, wherein the method further comprises:
when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the blocks, the whole network broadcasting is carried out;
and each block chain node broadcasts the synchronous block according to the whole network.
6. The method for master data management based on block chains according to claim 5, wherein writing the hash value of the newly added block, the timestamp information, and the newly added block index as a block header into the block chaining comprises:
when the hash value, the timestamp information and the newly added block index of the newly added block are used as block heads and written into the block, broadcast communication is carried out on each block chain link point, and broadcast replies returned by each block chain link point are received;
and when the number of the block chain nodes which pass the reply exceeds half of the whole number of the block chain nodes, creating an account book and packaging the blocks.
7. A blockchain-based master data management system, the system comprising:
the data broadcasting module is used for taking a main block chain node corresponding to the main application system as a broadcasting node and broadcasting the broadcasting node when detecting that the main application system maintains and changes main data, and informing block chain link points corresponding to other application systems in a block chain;
the conflict judging module is used for receiving the feedback information of each block chain node through the broadcast node and judging whether each block chain node has a maintenance conflict according to the feedback information;
the block creating module is used for creating a block entering chain and broadcasting the main data maintenance information as an account book when the number of the maintenance-free conflicts of all the block chain nodes exceeds half of the total number of the block chain link nodes;
and the block synchronization module is used for carrying out block synchronization after each block link node receives the broadcast message, and each block link node issues the main data change information recorded in the block to an application system database.
8. The blockchain-based master data management system of claim 7, further comprising: the information display module is used for acquiring a block chain browsing instruction and displaying block chain information according to the block chain browsing instruction; the block chain information comprises a block index, a block hash value, synchronization completion time and account book information; and collecting a viewing instruction of the account book information, and displaying main data maintenance change information according to the viewing instruction.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202110858884.4A 2021-07-28 2021-07-28 Main data management method, system, computer equipment and medium based on block chain Active CN113535855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110858884.4A CN113535855B (en) 2021-07-28 2021-07-28 Main data management method, system, computer equipment and medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110858884.4A CN113535855B (en) 2021-07-28 2021-07-28 Main data management method, system, computer equipment and medium based on block chain

Publications (2)

Publication Number Publication Date
CN113535855A true CN113535855A (en) 2021-10-22
CN113535855B CN113535855B (en) 2024-01-26

Family

ID=78089531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110858884.4A Active CN113535855B (en) 2021-07-28 2021-07-28 Main data management method, system, computer equipment and medium based on block chain

Country Status (1)

Country Link
CN (1) CN113535855B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961350A (en) * 2021-10-28 2022-01-21 建信金融科技有限责任公司 Method and device for determining accounting node in block chain

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109711839A (en) * 2018-12-13 2019-05-03 平安科技(深圳)有限公司 Block chain storage method, device, equipment and storage medium based on data compression
US20190158527A1 (en) * 2017-01-27 2019-05-23 International Business Machines Corporation Secured event monitoring leveraging blockchain
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain
CN109857751A (en) * 2019-01-23 2019-06-07 平安科技(深圳)有限公司 Cross-platform data update method, device and computer equipment based on block chain
CN109964446A (en) * 2018-06-08 2019-07-02 北京大学深圳研究生院 A kind of common recognition method based on ballot
CN110322352A (en) * 2019-07-09 2019-10-11 深圳市炳德区块链技术有限公司 A kind of account book foundation and querying method, electronic equipment based on block chain
CN110380860A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Shared resource data processing method and equipment based on block chain intelligence contract
CN110928923A (en) * 2019-11-28 2020-03-27 北京艾摩瑞策科技有限公司 Data storage method and system based on block chain
CN113066552A (en) * 2021-04-20 2021-07-02 江苏省人民医院(南京医科大学第一附属医院) Monitoring data management system and method based on block chain technology

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190158527A1 (en) * 2017-01-27 2019-05-23 International Business Machines Corporation Secured event monitoring leveraging blockchain
CN109964446A (en) * 2018-06-08 2019-07-02 北京大学深圳研究生院 A kind of common recognition method based on ballot
CN109711839A (en) * 2018-12-13 2019-05-03 平安科技(深圳)有限公司 Block chain storage method, device, equipment and storage medium based on data compression
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain
CN109857751A (en) * 2019-01-23 2019-06-07 平安科技(深圳)有限公司 Cross-platform data update method, device and computer equipment based on block chain
CN110380860A (en) * 2019-06-19 2019-10-25 深圳壹账通智能科技有限公司 Shared resource data processing method and equipment based on block chain intelligence contract
CN110322352A (en) * 2019-07-09 2019-10-11 深圳市炳德区块链技术有限公司 A kind of account book foundation and querying method, electronic equipment based on block chain
CN110928923A (en) * 2019-11-28 2020-03-27 北京艾摩瑞策科技有限公司 Data storage method and system based on block chain
CN113066552A (en) * 2021-04-20 2021-07-02 江苏省人民医院(南京医科大学第一附属医院) Monitoring data management system and method based on block chain technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DOMINIQUE BERNARD KANGA ET AL.: "Management and Monitoring of Blockchain Systems", 《PROCEDIA COMPUTER SCIENCE》, pages 605 - 612 *
辛嘉伟: "基于区块链的物联网安全技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, pages 136 - 260 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961350A (en) * 2021-10-28 2022-01-21 建信金融科技有限责任公司 Method and device for determining accounting node in block chain
CN113961350B (en) * 2021-10-28 2024-08-13 建信金融科技有限责任公司 Method and device for determining accounting nodes in blockchain

Also Published As

Publication number Publication date
CN113535855B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN110633323B (en) Service data storage method, device, storage medium and computer equipment
CN110647582B (en) Method, device, storage medium and computer equipment for block chain network consensus verification
CN109791591B (en) Method and system for identity and credential protection and verification via blockchain
Hasan et al. Preventing history forgery with secure provenance
CN111177302B (en) Service bill processing method, device, computer equipment and storage medium
CN107391758B (en) Database switching method, device and equipment
US11562812B2 (en) Computer implemented method for secure management of data generated in an EHR during an episode of care and a system therefor
US11907199B2 (en) Blockchain based distributed file systems
US10248674B2 (en) Method and apparatus for data quality management and control
CN109215771B (en) Medical mapping relation library establishment method, device, computer equipment and storage medium
EP3709568A1 (en) Deleting user data from a blockchain
CN110096551A (en) Credit data storage method, device, equipment and medium based on block chain
US20210124732A1 (en) Blockchain based distributed file systems
Marangappanavar et al. Inter-planetary file system enabled blockchain solution for securing healthcare records
CN112506481A (en) Service data interaction method and device, computer equipment and storage medium
CN106776795B (en) Data writing method and device based on Hbase database
CN111666205A (en) Data auditing method, system, computer equipment and storage medium
CN110471927A (en) Metadata acquisition method, apparatus, computer equipment and storage medium
CN113360548A (en) Data processing method, device, equipment and medium based on data asset analysis
CN113535855B (en) Main data management method, system, computer equipment and medium based on block chain
CN110941543A (en) Log processing method and device, computer equipment and storage medium
CN112463783A (en) Index data monitoring method and device, computer equipment and storage medium
CN110515970B (en) Service processing method, device, computer equipment and storage medium
CN109840250B (en) Method, device, equipment and storage medium for managing access authority of intermediate field
CN115687350A (en) Index construction method and device, computer equipment and storage medium

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