CN113094427A - Data management method and device based on block chain - Google Patents

Data management method and device based on block chain Download PDF

Info

Publication number
CN113094427A
CN113094427A CN202110260311.1A CN202110260311A CN113094427A CN 113094427 A CN113094427 A CN 113094427A CN 202110260311 A CN202110260311 A CN 202110260311A CN 113094427 A CN113094427 A CN 113094427A
Authority
CN
China
Prior art keywords
data
uplink
block
block chain
request
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
CN202110260311.1A
Other languages
Chinese (zh)
Other versions
CN113094427B (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110260311.1A priority Critical patent/CN113094427B/en
Publication of CN113094427A publication Critical patent/CN113094427A/en
Application granted granted Critical
Publication of CN113094427B publication Critical patent/CN113094427B/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/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a data management method and device based on a block chain, wherein the method comprises the following steps: determining a block chain node, and acquiring initial configuration information corresponding to the block chain node; initializing and configuring the block link points according to the initial configuration information; if receiving an incoming link invitation message sent by a management node, packaging data to be linked into blocks, and acquiring resource cataloging information corresponding to the data to be linked; generating a block uplink request according to the block and the resource catalog information, sending the block uplink request to a management node to trigger the management node, and auditing the block uplink request by combining a data coding contract and an authorization contract; and if the audit confirmation message sent by the management node is received, writing the block into the block chain corresponding to the block chain link after the initial configuration on the line. According to the scheme of the application, the uplink of the data is realized, the data interaction efficiency and the data interaction safety are improved, and the accuracy of the data coding information is ensured.

Description

Data management method and device based on block chain
Technical Field
The present application relates to the field of big data technologies, and in particular, to a block chain-based data management method and apparatus.
Background
The information resource is a general term of various data reflecting business work and related things, the information resource is managed by each unit in the area, and in business activities, the management of the information resource and the interaction of data among the units are very important.
In order to meet the requirements of large data aggregation integration and interactive application work, a scheme for managing data codes of data resources is needed, and the requirements on data interaction efficiency, data safety and data coding information accuracy are difficult to meet by the conventional data resource code management scheme.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the application provides a data management method and device based on a block chain.
An embodiment of a first aspect of the present application provides a data management method based on a block chain, including:
determining a block chain node, and acquiring initial configuration information corresponding to the block chain node;
performing initialization configuration on the block chain nodes according to the initial configuration information;
if receiving an incoming chain invitation message sent by a management node, packaging data to be uplink into a block, and acquiring resource cataloging information corresponding to the data to be uplink, wherein the resource cataloging information is used for describing a data coding membership relationship between the data to be uplink and the cataloged data in an uplink block chain;
generating a block uplink request according to the block and the resource catalog information, sending the block uplink request to the management node to trigger the management node, and auditing the block uplink request by combining a preset data coding contract and an authorization contract; and
and if the audit confirmation message sent by the management node is received, writing the block into a block chain corresponding to the block chain link point after the initial configuration on the line.
An embodiment of a second aspect of the present application provides a data management apparatus based on a block chain, including:
the determining module is used for determining the block chain nodes and acquiring initial configuration information corresponding to the block chain nodes;
the configuration module is used for carrying out initialization configuration on the block chain nodes according to the initial configuration information;
an obtaining module, configured to pack data to be uplink into a block and obtain resource catalog information corresponding to the data to be uplink if an incoming link invitation message sent by a management node is received, where the resource catalog information is used to describe a data coding membership relationship between the data to be uplink and cataloged data in an uplink block chain;
a generating module, configured to generate a block uplink request according to the block and the resource catalog information, and send the block uplink request to the management node to trigger the management node, and audit the block uplink request by combining a preset data coding contract and an authorization contract; and
and the writing module is used for writing the block into a block chain corresponding to the block chain link point after the initial configuration on the line if the audit confirmation message sent by the management node is received.
The embodiment of the third aspect of the present application provides an electronic device, which includes at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for block chain based data management as described in the embodiment of the first aspect.
A fourth aspect of the present application is directed to a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for block chain based data management according to the first aspect.
One embodiment in the above application has the following advantages or benefits: according to the scheme of the application, data can be packaged into blocks and written into the block chain, so that the data can be chained, a data coding chain system is realized, the interaction of the data is supported, the data interaction efficiency and the data safety are improved, the accuracy of data coding information is ensured, and the requirements of distributed management, unified viewing, non-tampering, dynamic authorization and management and control on resource data coding are met.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flowchart of a data management method based on a block chain according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data management apparatus based on a block chain according to an embodiment of the present disclosure.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The block chain-based data management method in the embodiment of the application can be applied to data management of a data coding chain, including a unit entering chain flow, a data coding changing flow, a data application flow, a data access flow and a unit leaving chain flow.
Fig. 1 is a schematic flowchart of a block chain-based data management method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
step 101, determining a block chain node, and acquiring initial configuration information corresponding to the block chain node.
In the embodiment of the present application, the block chain may be a data coding chain. The data coding chain can be used for managing and controlling interaction and change of data coding, each area unit is a node on the chain, the problems of identity authentication and credit can be solved by introducing a block chain technology into the information resource interaction platform, real-time collection of information resources, credible interaction and clear authority can be realized by data affirmation, namely by data coding rules and data privacy management rules which are restricted to access by intelligent contracts, random tampering after data chaining is ensured, and rapid deployment of service application is supported.
In this embodiment, the block chain includes at least one block chain node, and the block chain node is used for storing a corresponding block. In practical application, each block chain node may correspond to a unit, and when a unit is added to a block chain for the first time, the block chain node may be determined and initial configuration information corresponding to the block chain node may be acquired.
As an example, the initial configuration information includes a data encoding chain local node, a certificate, and the like.
And 102, performing initialization configuration on the block link points according to the initial configuration information.
In this embodiment, taking a data coding chain as an example, when a unit system first joins the data coding chain, the data coding chain nodes are deployed, and the data coding chain nodes are initially configured according to initial configuration information such as a local node of the data coding chain and a certificate.
Step 103, if receiving the link-in invitation message sent by the management node, packaging the data to be linked into blocks, and acquiring the resource catalog information corresponding to the data to be linked.
In this embodiment, the blockchain further includes at least one management node.
As an example, the number of the management nodes is 3, for example, the core unit X, the core unit Y, and the core unit Z correspond to one management node, respectively, and a federation type data coding chain is established by using the core unit X, the core unit Y, and the core unit Z as a manager. It should be noted that the above management node is only an example, and is not limited herein.
In this embodiment, the management node sends an incoming chain invitation message through the data coding chain system, and when the unit receives the incoming chain invitation message through the data coding chain system, the unit acquires and packages data to be uplink, and acquires resource catalog information corresponding to the data to be uplink, where the unit performs data coding editing on the data according to preset metadata to generate the resource catalog information.
The resource catalog information is used for describing a data coding membership relation between data to be uplink and the cataloged data in the uplink block chain.
The data includes, for example, information resources of each unit. The data items of different types, such as a structured database, a structured file, a picture, audio and video, of each unit are cataloged by using a related resource cataloging function according to related definition standards.
And 104, generating a block uplink request according to the block and the resource catalog information, sending the block uplink request to the management node to trigger the management node, and auditing the block uplink request by combining a preset data coding contract and an authorization contract.
In this embodiment, the block uplink request is generated according to the block and the resource catalog information, and the block uplink request is sent to the management node through the data coding chain system. And after receiving the block uplink request, the management node triggers a preset data coding contract and an authorization contract so as to audit the resource cataloging information and the authority.
In one embodiment of the present application, the data to be uplink has a corresponding data coding status, which includes, for example, an available status and an unavailable status, to indicate whether the data to be uplink is available.
When the data coding state is set to be the available state, the uplink data to be transmitted is indicated to be not accessible online by other units.
In this embodiment, the block uplink request is checked, and the data coding state of the data to be uplink is determined according to the checking result. After a block uplink request is generated according to the block and the resource catalog information and sent to the management node, the data coding state of the data to be uplink is set to be an unavailable state.
And 105, if the audit confirmation message sent by the management node is received, writing the block into a block chain corresponding to the block chain link point after the initial configuration on the line.
In this embodiment, the management node performs audit on the block uplink request, if the audit is passed and the audit contract is triggered to complete the audit, the management node sends an audit confirmation message, receives the audit confirmation message through the data coding chain system, and writes the block into the block chain corresponding to the block chain link after the initial configuration on the line, so as to realize uplink of the data to be uplink. And if the audit is not passed, the management node sends an audit failure message, receives the audit failure message through the data coding chain system, and does not execute writing the block into the block chain corresponding to the block chain link point after the initial configuration on the line.
Optionally, if an audit confirmation message sent by the management node is received and the block is written into the block chain corresponding to the block chain link after the initial configuration, the data coding state of the to-be-uplink data is set to an available state, so that the to-be-uplink data can be currently accessed by other units online.
According to the data management method based on the block chain, the block chain nodes are determined, and initial configuration information corresponding to the block chain nodes is obtained; initializing and configuring the block link points according to the initial configuration information; if receiving an incoming link invitation message sent by a management node, packaging data to be linked into blocks, and acquiring resource cataloging information corresponding to the data to be linked; generating a block uplink request according to the block and the resource catalog information, sending the block uplink request to a management node to trigger the management node, and auditing the block uplink request by combining a data coding contract and an authorization contract; and if the audit confirmation message sent by the management node is received, writing the block into the block chain corresponding to the block chain link after the initial configuration on the line. According to the scheme of the application, data can be packaged into blocks and written into a block chain, and uplink of the data is achieved, so that a data coding chain system for achieving data coding management, resource authorization and exchange control is provided, interaction of the data is supported, data interaction efficiency and data safety are improved, accuracy of data coding information is guaranteed, requirements of distributed management, unified viewing, non-tampering, dynamic authorization, management and control and the like of resource data coding are met, and expandability is considered.
The following description is made in conjunction with a data encoding change process.
Fig. 2 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present disclosure, and as shown in fig. 2, after writing a block into a block chain corresponding to a block link point after initial configuration on a block write line, the method further includes:
step 201, determining the change condition of the uplink data corresponding to the block.
Wherein, the change condition is used for indicating whether the uplink data is changed.
In this embodiment, the data provider may issue a change application according to the cataloging rule, and the data provider may, for example, be a unit that provides the uplink data, and may change the uplink data according to the change application.
In step 202, the access condition of the uplink data corresponding to the block is determined.
The access condition may include that the data is currently accessed by other data users, and the data is not accessed by other data users, such as other units. Different data change policies are implemented depending on whether the data is currently accessed by other data users.
Step 203, according to the change situation and the access situation, change management is performed on the uplink data in the uplink block chain.
In this embodiment, the corresponding changed data is acquired according to the change condition, and the change policy corresponding to the access condition is determined according to the access condition, so as to trigger the audit.
Next, the case that the access status indicates that the uplink data is not currently accessed by other units and the case that the access status indicates that the uplink data is currently accessed by other units will be described.
In an embodiment of the present application, performing change management on uplink data in an uplink block chain according to a change condition and an access condition, includes:
and acquiring corresponding changed data according to the change condition, if the access condition indicates that the uplink data is not currently accessed by other units, generating a data change request according to the changed data and the resource catalog information, and sending the data change request to the management node so as to trigger the management node to check the data change request by combining a data coding contract and an authorization contract. For example, if there are a plurality of management nodes, the plurality of management nodes check the data change request together, by invoking a check contract, the contract determines that the condition that meets the rule (for example, two approval conditions) completes the check, and if the check is passed, the management nodes send a check confirmation message.
And if receiving an audit confirmation message sent by the management node, performing change processing on the uplink data according to the changed data so as to change the uplink data into the changed data, and adjusting the data coding membership between the uplink data and the cataloged data in the uplink block chain according to the changed resource cataloging information corresponding to the changed data while performing the change processing.
In an embodiment of the present application, performing change management on uplink data in an uplink block chain according to a change condition and an access condition, includes:
and acquiring corresponding changed data according to the change condition, if the access condition indicates that the uplink data is currently accessed by other units, generating a data change request according to the changed data and the resource catalog information, and simultaneously sending the data change request to other units so as to trigger other units to audit the data change request based on a data coding contract and an authorization contract. For example, data is already used by multiple parties, and data change requires that a user commonly authorizes auditing, so that a data change request is sent to other units through a data encoding chain system, the other units complete auditing by calling an auditing contract, and the other units send auditing confirmation messages if the other units judge that the conditions meet the rules (for example, 51% approval) after the auditing contract is passed.
And if receiving audit confirmation messages sent by at least part of other units and audit confirmation messages sent by the management node, carrying out change processing on the uplink data according to the changed data.
Optionally, the data has a corresponding data encoding state, the data encoding state comprising an available state and an unavailable state. And optionally, setting the data coding state of the changed data to be an unavailable state, finishing authorization after the data coding state is approved, and setting the data coding state of the changed data to be an available state so that the changed data can be accessed online by other units currently.
According to the block chain-based data management method, the uplink data in the block chain on the line are subjected to change management according to the change condition and the access condition, the uplink data can be updated in time, and the real-time performance and the effectiveness of the data are guaranteed.
The following description is made in connection with the data application process.
Fig. 3 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application, and as shown in fig. 3, the method further includes:
step 301, receiving an authority application request sent by a target unit, wherein the target unit is any one of other units.
The method of the embodiment can be used for realizing the application of the authority under the condition that the data between the units is not opened to the user.
In the present embodiment, a plurality of units are taken as an example, some of the units are data providers, other units are units other than the data providers, and the target unit is any one of the other units. For the data of the data provider, the target unit may send an authority application request, where the authority application request may carry target resource inventory information corresponding to the data provider.
And step 302, analyzing the target resource cataloguing information carried by the authority application request, and judging whether to grant the authority to the target unit according to a preset authorization contract in combination with the authority application request.
In this embodiment, the authority application request is received by the target chain service system, and the application request is recorded into the chain and the target resource inventory information is acquired. Optionally, when determining whether to grant the authority to the target unit, the management node and/or the data provider may perform auditing, and perform consensus determination by invoking a contract, so as to determine whether to grant the authority to the target unit.
Step 303, if the granted target unit access right is confirmed, determining the resource inventory information corresponding to the target resource inventory information in the online block chain.
Step 304, granting the access right of the data related to the corresponding resource inventory information in the online block chain to the target unit.
In this embodiment, the target resource inventory information is information carried in the permission application request, and by determining the corresponding resource inventory information in the online block chain, the access permission of the data related to the resource inventory information is granted to the target unit, and the permission application result is written into the block chain.
According to the data management method based on the block chain, the authority is granted to the units through the authorization contract combined with the authority application request, the application of the data access authority among the units can be realized, and the security of data access is improved.
The following description is made in conjunction with the data access process.
Fig. 4 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application, and as shown in fig. 4, the method further includes:
in step 401, a data access request transmitted by a target unit is received, where the target unit is any one of other units.
The data access is a function mainly provided by a data coding chain, and comprises how to perform data coding query access, how to complete data intercommunication by matching with a data platform and the like.
In this embodiment, a plurality of units are taken as an example, some of the units are data providers, and the target unit is any one of the other units. For the data of the data provider, the target entity may send a data access request to access the data of the data provider.
Step 402, according to the data access request, determining target resource cataloging information from the preset data coding contract.
The target resource cataloging information is obtained by calling a data coding contract to read by a data user, and corresponding target data can be determined according to the target resource cataloging information.
And step 403, judging whether the target unit has the access right according to the data access request and a preset authorization contract.
In this embodiment, the access right of the target unit to the data may be recorded, and whether the target unit has the access right to the data to be accessed may be determined by querying.
It should be noted that, in the present embodiment, the order of the above steps 402 and 403 is not limited.
Step 404, if the target unit has the access right, acquiring the target data corresponding to the target resource inventory information in the online block chain, and providing the corresponding target data to the target unit.
In this embodiment, when the target unit has the access right, the data encoding chain system calls the data platform interface to trigger data scheduling, and determines the target data corresponding to the target resource inventory information through the data platform and provides the target data to the target unit, so that the target unit obtains the target data.
The exchange pre-exchange equipment is a function deployed in each unit and used for finishing data scheduling. In this embodiment, a data anchoring function is added to the switching pre-switch device, and is used for being driven by a contract to periodically query the change condition of the data coding structure and timely capturing whether a unit implements refreshing of data coding information. The data coding chain node is a newly added front exchange device and is used for deploying a data coding chain system based on a block chain. The data coding chain system comprises data coding information (block chain nodes), an interaction contract, a data coding management tool and an interface. The two types of front-end switching devices can be deployed according to different requirements, for example, the front-end switching devices can be deployed on the cloud, under the cloud or in a private network service system according to service requirements.
According to the data management method based on the block chain, data access based on the block chain can be achieved, and data interaction efficiency and safety are improved.
The following is a description of the unit chain unwinding process.
Fig. 5 is a schematic flowchart of another block chain-based data management method according to an embodiment of the present application, and as shown in fig. 5, the method further includes:
step 501, a chain exit request message is received.
The chain quitting request message is generated by the management node according to the data and the resource inventory information corresponding to the data when the evaluation result does not accord with the set condition.
As an example, an assessment contract may be set, and the assessment contract is periodically executed according to a preset time interval to evaluate the data interaction range and the data interaction quality. Optionally, the data interaction range may be determined according to the number of times that data is accessed and the number of other units having data access rights, and the data interaction quality may be determined according to the data update frequency and the number of data update contents, where the more the number of times that data is accessed and the number of other units having access rights, the greater the data update frequency and the more the data update contents, the higher the score of the evaluation result is, the evaluation result is determined to be not compliant with the setting condition by comparing the score with a preset score threshold, and if the score is smaller than the score threshold, the management node generates the chain quitting request message according to the data and the corresponding resource inventory information.
Step 502, according to the chain quitting request message, performing chain quitting processing on the data corresponding to the corresponding resource catalog information in the block chain on the line.
In this embodiment, the management node notifies the data provider to perform chain quitting, and in response to the chain quitting request message, the data provider triggers a chain quitting and authorization contract through the data encoding chain system, performs chain quitting processing on corresponding data, and cancels resource cataloging information.
Step 503, after the chain unwinding process, setting the data encoding state of the chain-unwound data to an unavailable state.
In this embodiment, the data has corresponding data coding states, which include, for example, an available state and an unavailable state, to indicate whether the data to be uplink is available. When the data coding state is set to be the available state, the uplink data to be transmitted is indicated to be not accessible online by other units.
According to the data management method based on the block chain, the evaluation can be carried out according to the data interaction range and the data interaction quality to obtain the evaluation result, the chain quitting request message is generated when the evaluation result does not accord with the set condition, and the chain quitting processing is carried out on the data which do not accord with the set condition, so that the data interaction mechanism and the interaction data quality are guaranteed.
For example, in the data coding chain in the embodiment of the present application, a core unit X, a core unit Y, and a core unit Z are used as managers to construct a data coding chain of a federation type, and all key service changes are audited by three parties. And each unit in the area is added into the data coding chain by invitation, access is carried out by deploying the preposed exchange equipment, and mapping from the base table data to the data coding chain is completed by a uniform rule of resource coding.
The data provider is responsible for planning and cataloging the data coding content of the unit information resource, registering, applying and issuing the data coding content, and maintaining the data coding; the management side: the system is responsible for the supervision of actions such as addition, deletion, modification, check and the like of the coded content of the information resource data, the establishment of authority rules and the establishment of incentive rules; the data user side: the information resource data encoding content may be queried.
Optionally, the data coding chain adopts three levels of data coding, including responsibility coding (primary data coding), data coding (secondary data coding), and library table coding (tertiary data coding).
Wherein, the responsibility code is a structured record after the responsibility of each service post is refined and decomposed, and the service post can be determined according to units. The responsibility data codes of the unit formed by the plurality of records of the unit are generated according to the responsibility data codes of each unit.
And the data coding is generated by mounting metadata under the data coding and governing through a data standard. The data coding is used for mapping fields in an actual base table structure according to a unified data standard through data governance to realize unification of different units on the same business meaning field in a standard layer, for example, identity card number data, a standard is established through a Chinese field (identity card number), an English field (idcard), a data type (varchar) and a length (18), and different descriptions of identity cards (certificate numbers, certificate numbers and the like) in different unit systems are unified externally through the same data standard.
The library table codes are used for bearing functions in the role data codes through an information system, the structured library table is used for recording the process of operating the functions, the function data codes point to the library table data codes under the condition that the data codes are incomplete, and the information items of a certain role in the role data codes correspond to the fields of a certain database table in the library table data codes.
In the example, the role data coding adopts capital Roman characters A-Z (except O, I, Z) as a primary role class, the expansion items, items and detailed items are divided into eight-bit mixed coding, and the main compiling principle is as follows: 2-bit characters are used for units, enterprises and communities, 2 is used for subordinate organization names, and 2-bit characters are used for responsibility data coding; the data coding adopts Arabic numerals 0-9 coding, and currently adopts 3-digit numbers.
In order to implement the foregoing embodiments, the present application further provides a data management apparatus based on a block chain.
Fig. 6 is a schematic structural diagram of a data management apparatus based on a block chain according to an embodiment of the present application, and as shown in fig. 6, the apparatus includes: the system comprises a determining module 10, a configuring module 20, an obtaining module 30, a generating module 40 and a writing module 50.
The determining module 10 is configured to determine a block link node, and acquire initial configuration information corresponding to the block link node;
a configuration module 20, configured to perform initialization configuration on the block chain node according to the initial configuration information;
an obtaining module 30, configured to, if an inbound invite message sent by a management node is received, package data to be uplink into a block, and obtain resource cataloging information corresponding to the data to be uplink, where the resource cataloging information is used to describe a data coding membership relationship between the data to be uplink and already cataloged data in an uplink block chain;
a generating module 40, configured to generate a block uplink request according to the block and the resource catalog information, and send the block uplink request to the management node to trigger the management node, and audit the block uplink request by combining a preset data coding contract and an authorization contract; and
a writing module 50, configured to write the block into a block chain corresponding to the block chain link after initialization configuration on a line if an audit confirmation message sent by the management node is received.
Optionally, the to-be-uplink data has a corresponding data coding state, and the apparatus further includes:
a first setting module, configured to set a data coding state of the to-be-uplink data to an unavailable state;
a second setting module, configured to set a data coding state of the to-be-uplink data to an available state if an audit confirmation message sent by the management node is received and the block has been written into a block chain corresponding to a block chain link after initialization configuration on a line;
when the data coding state is set to be the unavailable state, indicating that the to-be-uplink data cannot be accessed online by other units currently, and when the data coding state is set to be the available state, indicating that the to-be-uplink data can be accessed online by other units currently.
Optionally, the apparatus further comprises:
a change module for determining a change condition of the uplink data corresponding to the block;
determining access conditions of uplink data corresponding to the block;
and performing change management on the uplink data in the uplink block chain according to the change condition and the access condition.
Optionally, the changing module is specifically configured to:
acquiring corresponding changed data according to the change condition;
if the access condition indicates that the uplink data is not currently accessed by other units, generating a data change request according to the changed data and the resource catalog information;
sending the data change request to the management node to trigger the management node, and auditing the data change request by combining the data coding contract and the authorization contract;
if receiving the audit confirmation message sent by the management node, performing change processing on the uplink data according to the changed data; and
and adjusting the data coding membership between the uplink data and the cataloged data in the uplink block chain according to the changed resource cataloging information corresponding to the changed data while changing.
Optionally, the changing module is specifically configured to:
if the access condition indicates that the uplink data is currently accessed by other units, the data change request is sent to the other units while the data change request is generated according to the changed data and the resource inventory information, so as to trigger the other units to check the data change request based on the data coding contract and the authorization contract;
and if at least part of audit confirmation messages sent by other units and audit confirmation messages sent by the management node are received, carrying out change processing on the uplink data according to the changed data.
Optionally, the apparatus further comprises:
the authority application module is used for receiving an authority application request sent by a target unit, wherein the target unit is any one of the other units;
analyzing target resource cataloguing information carried by the authority application request, and judging whether to grant authority to the target unit or not according to the preset authorization contract in combination with the authority application request;
if the granted target unit access authority is confirmed, determining resource cataloging information corresponding to the target resource cataloging information in the online block chain; and
and granting the access right of the data related to the corresponding resource cataloging information in the online block chain to the target unit.
Optionally, the apparatus further comprises:
the access module is used for receiving a data access request sent by a target unit, wherein the target unit is any one of the other units;
determining target resource cataloging information from the preset data coding contract according to the data access request;
judging whether the target unit has an access right or not according to the data access request in combination with a preset authorization contract;
and if the target unit has the access authority, acquiring target data corresponding to the target resource cataloging information in the online block chain, and providing the corresponding target data to the target unit.
Optionally, the apparatus further comprises:
the chain quitting module is used for receiving a chain quitting request message, wherein the chain quitting request message is generated by the management node according to the data interaction range and the data interaction quality to obtain an evaluation result and the data and the resource cataloging information corresponding to the data when the evaluation result does not accord with the set condition;
performing chain quitting processing on the data corresponding to the corresponding resource catalog information in the block chain on the line according to the chain quitting request message;
after the chain unwinding processing, setting the data encoding state of the data of which the chain is unwound to the unavailable state.
The explanation of the data management method based on block chain in the foregoing embodiment is also applicable to the data management apparatus based on block chain in this embodiment, and is not repeated here.
The data management device based on the block chain can pack data into blocks and write the blocks into the block chain, and achieve chaining of the data, so that a data coding chain system for achieving data coding management, resource authorization and exchange control is provided, interaction of the data is supported, data interaction efficiency and data safety are improved, accuracy of data coding information is guaranteed, requirements for distributed management, unified viewing, non-tampering, dynamic authorization, management and control and the like of resource data coding are met, and expandability is considered.
In order to implement the foregoing embodiments, the present application further proposes a computer program product, wherein when the instructions in the computer program product are executed by a processor, the method for block chain-based data management as described in any of the foregoing embodiments is implemented.
There is also provided, in accordance with an embodiment of the present application, an electronic device, including at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of block chain based data management as in any preceding embodiment.
There is also provided, in accordance with an embodiment of the present application, a non-transitory computer-readable storage medium having stored thereon computer instructions for causing a computer to perform a method for blockchain-based data management as in any of the preceding embodiments.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (18)

1. A method for block chain based data management, the method comprising:
determining a block chain node, and acquiring initial configuration information corresponding to the block chain node;
performing initialization configuration on the block chain nodes according to the initial configuration information;
if receiving an incoming chain invitation message sent by a management node, packaging data to be uplink into a block, and acquiring resource cataloging information corresponding to the data to be uplink, wherein the resource cataloging information is used for describing a data coding membership relationship between the data to be uplink and the cataloged data in an uplink block chain;
generating a block uplink request according to the block and the resource catalog information, sending the block uplink request to the management node to trigger the management node, and auditing the block uplink request by combining a preset data coding contract and an authorization contract; and
and if the audit confirmation message sent by the management node is received, writing the block into a block chain corresponding to the block chain link point after the initial configuration on the line.
2. The method of claim 1, wherein the data to be uplink transmitted has a corresponding data coding status, and further comprising, after the generating a block uplink request according to the block and the resource inventory information and sending the block uplink request to the management node:
setting the data coding state of the data to be uplink into an unavailable state;
the method further comprises the following steps:
if an audit confirmation message sent by the management node is received and the block is written into a block chain corresponding to a block chain link point after initialization configuration, setting the data coding state of the data to be uplink into an available state;
when the data coding state is set to be the unavailable state, indicating that the to-be-uplink data cannot be accessed online by other units currently, and when the data coding state is set to be the available state, indicating that the to-be-uplink data can be accessed online by other units currently.
3. The method of claim 1, wherein after said writing the block into a block chain on a line corresponding to an initially configured block link point, the method further comprises:
determining a change condition of the uplink data corresponding to the block;
determining access conditions of uplink data corresponding to the block;
and performing change management on the uplink data in the uplink block chain according to the change condition and the access condition.
4. The method of claim 3, wherein the performing change management on the uplink data in the uplink block chain according to the change condition and the access condition comprises:
acquiring corresponding changed data according to the change condition;
if the access condition indicates that the uplink data is not currently accessed by other units, generating a data change request according to the changed data and the resource catalog information;
sending the data change request to the management node to trigger the management node, and auditing the data change request by combining the data coding contract and the authorization contract;
if receiving the audit confirmation message sent by the management node, performing change processing on the uplink data according to the changed data; and
and adjusting the data coding membership between the uplink data and the cataloged data in the uplink block chain according to the changed resource cataloging information corresponding to the changed data while changing.
5. The method of claim 4, wherein the performing change management on the uplink data in the uplink block chain according to the change condition and the access condition comprises:
if the access condition indicates that the uplink data is currently accessed by other units, the data change request is sent to the other units while the data change request is generated according to the changed data and the resource inventory information, so as to trigger the other units to check the data change request based on the data coding contract and the authorization contract;
and if at least part of audit confirmation messages sent by other units and audit confirmation messages sent by the management node are received, carrying out change processing on the uplink data according to the changed data.
6. The method of claim 1, wherein the method further comprises:
receiving an authority application request sent by a target unit, wherein the target unit is any one of the other units;
analyzing target resource cataloguing information carried by the authority application request, and judging whether to grant authority to the target unit or not according to the preset authorization contract in combination with the authority application request;
if the granted target unit access authority is confirmed, determining resource cataloging information corresponding to the target resource cataloging information in the online block chain; and
and granting the access right of the data related to the corresponding resource cataloging information in the online block chain to the target unit.
7. The method of claim 1, wherein the method further comprises:
receiving a data access request transmitted by a target unit, wherein the target unit is any one of the other units;
determining target resource cataloging information from the preset data coding contract according to the data access request;
judging whether the target unit has an access right or not according to the data access request in combination with a preset authorization contract;
and if the target unit has the access authority, acquiring target data corresponding to the target resource cataloging information in the online block chain, and providing the corresponding target data to the target unit.
8. The method of claim 2, wherein the method further comprises:
receiving a chain quitting request message, wherein the chain quitting request message is generated by the management node according to data interaction range and data interaction quality to obtain an evaluation result and according to data and resource inventory information corresponding to the data when the evaluation result does not accord with a set condition;
performing chain quitting processing on the data corresponding to the corresponding resource catalog information in the block chain on the line according to the chain quitting request message;
after the chain unwinding processing, setting the data encoding state of the data of which the chain is unwound to the unavailable state.
9. A blockchain-based data management apparatus, comprising:
the determining module is used for determining the block chain nodes and acquiring initial configuration information corresponding to the block chain nodes;
the configuration module is used for carrying out initialization configuration on the block chain nodes according to the initial configuration information;
an obtaining module, configured to pack data to be uplink into a block and obtain resource catalog information corresponding to the data to be uplink if an incoming link invitation message sent by a management node is received, where the resource catalog information is used to describe a data coding membership relationship between the data to be uplink and cataloged data in an uplink block chain;
a generating module, configured to generate a block uplink request according to the block and the resource catalog information, and send the block uplink request to the management node to trigger the management node, and audit the block uplink request by combining a preset data coding contract and an authorization contract; and
and the writing module is used for writing the block into a block chain corresponding to the block chain link point after the initial configuration on the line if the audit confirmation message sent by the management node is received.
10. The apparatus of claim 9, wherein the data to be uplink has a corresponding data coding state, the apparatus further comprising:
a first setting module, configured to set a data coding state of the to-be-uplink data to an unavailable state;
a second setting module, configured to set a data coding state of the to-be-uplink data to an available state if an audit confirmation message sent by the management node is received and the block has been written into a block chain corresponding to a block chain link after initialization configuration on a line;
when the data coding state is set to be the unavailable state, indicating that the to-be-uplink data cannot be accessed online by other units currently, and when the data coding state is set to be the available state, indicating that the to-be-uplink data can be accessed online by other units currently.
11. The apparatus of claim 9, further comprising:
a change module for determining a change condition of the uplink data corresponding to the block;
determining access conditions of uplink data corresponding to the block;
and performing change management on the uplink data in the uplink block chain according to the change condition and the access condition.
12. The apparatus of claim 11, wherein the alteration module is specifically configured to:
acquiring corresponding changed data according to the change condition;
if the access condition indicates that the uplink data is not currently accessed by other units, generating a data change request according to the changed data and the resource catalog information;
sending the data change request to the management node to trigger the management node, and auditing the data change request by combining the data coding contract and the authorization contract;
if receiving the audit confirmation message sent by the management node, performing change processing on the uplink data according to the changed data; and
and adjusting the data coding membership between the uplink data and the cataloged data in the uplink block chain according to the changed resource cataloging information corresponding to the changed data while changing.
13. The apparatus of claim 12, wherein the alteration module is specifically configured to:
if the access condition indicates that the uplink data is currently accessed by other units, the data change request is sent to the other units while the data change request is generated according to the changed data and the resource inventory information, so as to trigger the other units to check the data change request based on the data coding contract and the authorization contract;
and if at least part of audit confirmation messages sent by other units and audit confirmation messages sent by the management node are received, carrying out change processing on the uplink data according to the changed data.
14. The apparatus of claim 9, further comprising:
the authority application module is used for receiving an authority application request sent by a target unit, wherein the target unit is any one of the other units;
analyzing target resource cataloguing information carried by the authority application request, and judging whether to grant authority to the target unit or not according to the preset authorization contract in combination with the authority application request;
if the granted target unit access authority is confirmed, determining resource cataloging information corresponding to the target resource cataloging information in the online block chain; and
and granting the access right of the data related to the corresponding resource cataloging information in the online block chain to the target unit.
15. The apparatus of claim 9, further comprising:
the access module is used for receiving a data access request sent by a target unit, wherein the target unit is any one of the other units;
determining target resource cataloging information from the preset data coding contract according to the data access request;
judging whether the target unit has an access right or not according to the data access request in combination with a preset authorization contract;
and if the target unit has the access authority, acquiring target data corresponding to the target resource cataloging information in the online block chain, and providing the corresponding target data to the target unit.
16. The apparatus of claim 10, further comprising:
the chain quitting module is used for receiving a chain quitting request message, wherein the chain quitting request message is generated by the management node according to the data interaction range and the data interaction quality to obtain an evaluation result and the data and the resource cataloging information corresponding to the data when the evaluation result does not accord with the set condition;
performing chain quitting processing on the data corresponding to the corresponding resource catalog information in the block chain on the line according to the chain quitting request message;
after the chain unwinding processing, setting the data encoding state of the data of which the chain is unwound to the unavailable state.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of blockchain based data management of any one of claims 1 to 8.
18. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the blockchain based data management method of any one of claims 1 to 8.
CN202110260311.1A 2021-03-10 2021-03-10 Data management method and device based on block chain Active CN113094427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110260311.1A CN113094427B (en) 2021-03-10 2021-03-10 Data management method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110260311.1A CN113094427B (en) 2021-03-10 2021-03-10 Data management method and device based on block chain

Publications (2)

Publication Number Publication Date
CN113094427A true CN113094427A (en) 2021-07-09
CN113094427B CN113094427B (en) 2023-12-19

Family

ID=76667787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110260311.1A Active CN113094427B (en) 2021-03-10 2021-03-10 Data management method and device based on block chain

Country Status (1)

Country Link
CN (1) CN113094427B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102759A (en) * 2022-06-21 2022-09-23 南京质子链科技有限公司 Interface backtracking system based on block chain
CN117097736A (en) * 2023-10-19 2023-11-21 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109858258A (en) * 2018-12-28 2019-06-07 北京市天元网络技术股份有限公司 Government data based on block chain exchanges method and device
CN110472886A (en) * 2019-08-22 2019-11-19 广州数知科技有限公司 A kind of data governing system based on block chain
CN110533429A (en) * 2019-08-30 2019-12-03 北京金山云网络技术有限公司 Transaction endorsement method, apparatus and block chain network in block chain
CN110601856A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data interaction method and device based on block chain network
US20200050613A1 (en) * 2018-03-13 2020-02-13 Blockpoint Systems Inc. Relational Blockchain Database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200050613A1 (en) * 2018-03-13 2020-02-13 Blockpoint Systems Inc. Relational Blockchain Database
CN109858258A (en) * 2018-12-28 2019-06-07 北京市天元网络技术股份有限公司 Government data based on block chain exchanges method and device
CN110472886A (en) * 2019-08-22 2019-11-19 广州数知科技有限公司 A kind of data governing system based on block chain
CN110533429A (en) * 2019-08-30 2019-12-03 北京金山云网络技术有限公司 Transaction endorsement method, apparatus and block chain network in block chain
CN110601856A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data interaction method and device based on block chain network

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115102759A (en) * 2022-06-21 2022-09-23 南京质子链科技有限公司 Interface backtracking system based on block chain
CN115102759B (en) * 2022-06-21 2023-09-12 南京质子链科技有限公司 Interface backtracking system based on block chain
CN117097736A (en) * 2023-10-19 2023-11-21 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium
CN117097736B (en) * 2023-10-19 2024-02-13 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113094427B (en) 2023-12-19

Similar Documents

Publication Publication Date Title
EP3422269A1 (en) Centralized consent management
CN109286676B (en) Electric power data safety information system based on block chain
CN112182619A (en) Service processing method and system based on user permission, electronic device and medium
CN105871914B (en) CRM system access control method
CN109670879A (en) A kind of distribution billing method and system
US8141160B2 (en) Mitigating and managing privacy risks using planning
CN102307185A (en) Data isolation method used in storage cloud
US11196627B1 (en) Managed remediation of non-compliant resources
CN113094427A (en) Data management method and device based on block chain
CN110032886A (en) The method and apparatus of access authorization for resource management
CN102307114A (en) Management method of network
US10812486B2 (en) Utilizing smart data tags to track and control secure enterprise data
CN110430180A (en) A kind of platform of internet of things and implementation method based on hot plug
CN114363352B (en) Cross-chain interaction method of Internet of things system based on block chain
CN109949432A (en) A kind of student's special electronic attendance system and method based on radio-frequency technique
CN115081001A (en) Data asset active management system, computing equipment and storage medium
US11212291B2 (en) Securing services and intra-service communications
CN115130124A (en) Data asset management method and data asset active management system
CN113255000A (en) Data access control method and device, electronic equipment and readable storage medium
CN111310151A (en) Distributed permission set-based permission management method, device and storage medium
CN110572279A (en) Security management system for privileged account
KR20200013573A (en) Integrated management mobile platform for enterprises and institutions
Arachchi et al. Literature Based Review–Risks in ERP Systems Including Asian Countries
CN106303593A (en) The safety certifying method of cloud storage service and system
Krym et al. Process business modeling of emerging security threats with BPMN extension

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