CN110968883A - Data management method and device based on block chain technology and storage medium - Google Patents

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

Info

Publication number
CN110968883A
CN110968883A CN201911231130.5A CN201911231130A CN110968883A CN 110968883 A CN110968883 A CN 110968883A CN 201911231130 A CN201911231130 A CN 201911231130A CN 110968883 A CN110968883 A CN 110968883A
Authority
CN
China
Prior art keywords
data
enterprise
target data
block chain
management system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911231130.5A
Other languages
Chinese (zh)
Inventor
韩欣蕊
朱宇
李俊杰
汤蕊
黄深华
简丽萍
梁绍翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CSSC Huangpu Wenchong Shipbuilding Co Ltd
Original Assignee
CSSC Huangpu Wenchong Shipbuilding 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 CSSC Huangpu Wenchong Shipbuilding Co Ltd filed Critical CSSC Huangpu Wenchong Shipbuilding Co Ltd
Priority to CN201911231130.5A priority Critical patent/CN110968883A/en
Publication of CN110968883A publication Critical patent/CN110968883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/602Providing cryptographic facilities or services
    • 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

Abstract

The invention discloses a data management method and device based on a block chain technology and a storage medium. The method comprises the following steps: establishing a data management system according to a block chain technology; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1; preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering; and writing the target data into the corresponding enterprise block chain, encrypting the target data, and sharing the encrypted target data to the rest enterprise block chains. The invention can establish a data management system for a plurality of enterprise terminals, and realize data sharing among different enterprises.

Description

Data management method and device based on block chain technology and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data management method and apparatus based on a block chain technology, and a storage medium.
Background
At present, data management is usually realized by adopting a centralized database, that is, only a single party is allowed to perform data management, and the data in the database cannot be acquired by other parties. Depending on the existing data management method, data cannot be shared among different enterprises, organizations, business departments and production sites, so that a large amount of data is collected and dispersed to form a seat data isolated island. When different data owners need to share data, the data owners are difficult to completely trust the data in the database, and the data owners need to reconstruct a database storing the data of the data owners, and the difference between the databases introduces complicated manual work, which restricts the development level of the industry.
Disclosure of Invention
The invention provides a data management method, a data management device and a storage medium based on a block chain technology, which can be used for establishing a data management system facing a plurality of enterprise terminals and realizing data sharing among different enterprises.
In order to solve the above technical problem, an embodiment of the present invention provides a data management method based on a block chain technique, including:
establishing a data management system according to a block chain technology; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1;
preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering;
and writing the target data into the corresponding enterprise block chain, encrypting the target data, and sharing the encrypted target data to the rest enterprise block chains.
Further, the establishing of the data management system according to the block chain technique specifically includes:
and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing the data management system.
Further, after the preprocessing is performed on the production data acquired by each enterprise terminal to obtain corresponding target data, before the writing of the target data into the corresponding enterprise block chain, the method further includes:
and authorizing the target data, and writing the target data into the corresponding enterprise block chain if the authorization is successful.
Further, the encrypting the target data specifically includes:
and encrypting the target data by adopting an ELGamal digital signature algorithm.
Another embodiment of the present invention provides a data management apparatus based on a block chain technique, including:
the data management system establishing module is used for establishing a data management system according to the block chain technology; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1;
the target data acquisition module is used for preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering;
and the target data sharing module is used for writing the target data into the corresponding enterprise block chain, encrypting the target data and sharing the encrypted target data to the rest enterprise block chains.
Further, the establishing of the data management system according to the block chain technique specifically includes:
and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing the data management system.
Further, the data management apparatus based on the blockchain technique further includes:
and the target data authorization module is used for authorizing the target data before writing the target data into the corresponding enterprise block chain after preprocessing the production data acquired by each enterprise terminal to obtain the corresponding target data, and writing the target data into the corresponding enterprise block chain if the authorization is successful.
Further, the encrypting the target data specifically includes:
and encrypting the target data by adopting an ELGamal digital signature algorithm.
Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the data management method based on the blockchain technique as described above.
The embodiment of the invention has the following beneficial effects:
according to the block chain technology, a data management system containing enterprise block chains corresponding to different enterprise terminals is established, so that when one enterprise terminal obtains production data, the production data obtained by the enterprise terminal can be preprocessed to obtain corresponding target data, the target data is written into the enterprise block chain corresponding to the enterprise terminal, and the target data is shared to other enterprise block chains through the data management system. According to the invention, through establishing the data management system, which is equivalent to establishing a data sharing channel between different enterprise terminals, if a certain enterprise terminal needs to share data to other enterprise terminals, the data of the enterprise terminal can be written into the corresponding enterprise block chain, so that the data can be shared to other enterprise terminals through the data management system, and if the certain enterprise terminal needs to acquire the data of other enterprise terminals, the data of other enterprise terminals can be acquired through the data management system. The invention can establish a data management system for a plurality of enterprise terminals, and realize data sharing among different enterprises.
Drawings
Fig. 1 is a flowchart illustrating a data management method based on a block chain technique according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a blockchain network according to a first embodiment of the present invention;
FIG. 3 is a block chain structure diagram according to a first embodiment of the present invention;
FIG. 4 is a schematic flow chart of a preferred embodiment of the first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data management apparatus based on a blockchain technique according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, the step numbers in the text are only for convenience of explanation of the specific embodiments, and do not serve to limit the execution sequence of the steps. The method provided by the embodiment can be executed by the relevant server, and the server is taken as an example for explanation below.
Please refer to fig. 1-4.
As shown in fig. 1-2, a first embodiment provides a data management method based on the blockchain technique, which includes steps S1 to S3:
s1, establishing a data management system according to the block chain technology; the data management system comprises N enterprise block chains, each enterprise block chain corresponds to a different enterprise terminal, and N is larger than or equal to 1.
S2, preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering.
And S3, writing the target data into the corresponding enterprise block chain, encrypting the target data, and sharing the encrypted target data to other enterprise block chains.
According to the design of private chain requirements, respectively authorizing different mechanism block chains under the same enterprise, namely controlling write-in read permission, taking the mechanism block chain successfully authorized as a block/node to form a corresponding enterprise block chain, according to the design of alliance chain requirements, authorizing different enterprise block chains, taking the enterprise block chain successfully authorized as a block/node to form a block chain network, thereby establishing a data management system.
As shown in fig. 3, nodes in the block chain network are blocks, and form a chain structure with the blocks as units, each block is composed of a block head and a block body, the block head includes a hash value, a random number, and a timestamp of a previous block, and a plurality of transactions occurring since the previous block are stored in the block body, such as transaction details, actual transaction data, and a block size.
The blockchain network may be divided into a network layer, a consensus layer, a data layer, an intelligent contract layer, and an application layer. Wherein, the network layer adopts p2p network communication protocol or own communication protocol; the consensus layer adopts an optimized consensus mechanism algorithm PBFT; the data layer adopts an account-based data model, namely data can be stored in a file form or a database form, if the data is stored in the file form, additional operation in a log form is facilitated, and if the data is stored in the database form, data query and modification are facilitated; the intelligent contract layer defines transaction logic and business rules for accessing data, and operates in an isolated sandbox environment to ensure the security of the data.
By combining the private chain and the alliance chain, an account-based data model is established, and different node admission mechanisms, consensus mechanisms and intelligent contracts are selected from the inside of an enterprise block chain and the among the enterprise block chains, so that a data management system is established.
The block chain is a decentralized, non-falsifiable, traceable and multi-party commonly maintained distributed database, has a unique trust establishment mechanism, can integrate a plurality of isolated databases which are traditionally maintained by a single party and only relate to own services, and is stored on a plurality of nodes maintained by multiple parties together in a distributed manner, any party cannot completely control the data and only can update the data according to strict rules and common identification, so that the credible information sharing and supervision among multiple parties are realized.
According to the embodiment, the data management system is established according to the block chain technology, so that the data management system can be established for multiple enterprise terminals, data sharing among different enterprises is realized, and the data security is ensured.
In a preferred implementation of this embodiment, the data management system can be selectively built by combining blockchain partitioning and multi-channel techniques.
The method introduces a fragmentation technology according to the actual business requirements of enterprises, divides a blockchain network formed by a plurality of enterprise blockchain into a plurality of fragments, so that nodes of the whole blockchain network can process and store different transaction data in parallel, the transaction processing capacity of the whole blockchain network is not limited to a single node, the single node is not required to process and store all transaction data, and the method is favorable for solving the problems of performance expansibility and transaction privacy of a data management system.
The multi-channel technology is introduced according to the actual business requirements of enterprises, for example, the whole blockchain network is divided into a plurality of channels according to different product supply chains or certain type of production equipment, each node can join in the corresponding channel according to the transaction needing to participate, so that the blocks can be received and processed on a plurality of chains simultaneously, and the independent and concurrent processing of a plurality of transactions is facilitated.
In a preferred embodiment of the present invention, the enterprise terminal obtains the production data by applying internet of things technologies such as two-dimensional codes, radio frequency identification RFID, near field communication technology NFC, and the like.
It should be noted that the production data is all data related to the production processes of enterprises such as raw material supply, product manufacturing and processing, product logistics transportation and product sales.
The target data is obtained by preprocessing the production data acquired by the enterprise terminal, namely, data integration and data filtration, so that the target data can be written into the corresponding enterprise block chain, encrypted and shared to other enterprise block chains.
And integrating necessary production data according to the actual business requirements of enterprises, and filtering unnecessary production data. For example, production data of different suppliers, different products, different production batches and the like can be selectively integrated with production data of the same supplier, or production data of the same product and the like, and production data of different products, such as production numbers, arrival dates of the products and the like, can be selectively filtered.
According to the implementation, the production data acquired by the enterprise terminal is preprocessed, so that the problem of data redundancy of the data written into the enterprise block chain can be avoided, and the efficiency of data sharing is improved.
According to the block chain technology, a data management system containing enterprise block chains corresponding to different enterprise terminals is established, so that when one enterprise terminal obtains production data, the production data obtained by the enterprise terminal can be preprocessed to obtain corresponding target data, the target data is written into the enterprise block chain corresponding to the enterprise terminal, and the target data is shared to other enterprise block chains through the data management system.
In this embodiment, by establishing the data management system, it is equivalent to establishing a data sharing channel between different enterprise terminals, and if a certain enterprise terminal needs to share data to other enterprise terminals, data of the certain enterprise terminal can be written into a corresponding enterprise block chain, so that the data can be shared to other enterprise terminals through the data management system, and if a certain enterprise terminal needs to obtain data of other enterprise terminals, data of other enterprise terminals can be obtained through the data management system.
The embodiment can establish a data management system for a plurality of enterprise terminals, and realize data sharing among different enterprises.
In a preferred embodiment, the step S1 specifically includes: and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing a data management system.
And determining the connection relation between the enterprise block chain corresponding to the enterprise terminal and the rest of enterprise block chains according to the access request initiated by the enterprise terminal, so as to connect the enterprise block chain corresponding to the enterprise terminal with the rest of enterprise block chains according to the determined connection relation and establish a data management system.
As shown in fig. 4, in the preferred embodiment, after step S2, before step S3, step S4 is further included:
and S4, authorizing the target data, and writing the target data into the corresponding enterprise block chain if the authorization is successful.
And judging whether the target data is publicable data or not according to the actual business requirements of the enterprise, and authorizing the publicable target data. For example, the internal production operation plan and product completion condition of the enterprise can be authorized to be public data, but the detailed information and other non-public data in the production process of the product can not be authorized.
According to the implementation, target data are authorized, and data which cannot be exposed inside an enterprise can be prevented from being written into an enterprise block chain, so that the security of the data is guaranteed.
In a preferred embodiment, the encrypting the target data specifically includes: and encrypting the target data by adopting an ELGamal digital signature algorithm.
The ELGamal digital signature algorithm comprises the following steps:
first step, generating parameters and keys:
assuming a prime number P in the data set ZpFrom the data set Z, where it is difficult to solve discrete logarithmspOne generator g belongs to Zp,g<P, g is the root of P (g is the primitive element of P); selecting a random number x ∈ ZpX is a random integer in the range of 1<x<P-2; computing the public key y ═ gxmodP, i.e., public key is (y, g, P) and secret key is x.
Secondly, calculating a signature:
assuming that a message needing to be signed is m, m belongs to Z, selecting a secret random number k, wherein k is a random integer, and k belongs to Zp,1<k<P-2 and k is coprime to P-1, i.e. (k, P-1) ═ 1, calculate: r ═ gxmodP,s=(h(m)-xr)k-1mod (P-1), where r, s are the two integers that make up the signature, then the signature for m is (s, r), which can also be expressed as (m, s, r), where h is a Hash function.
Thirdly, verifying the accuracy:
given the public key as (y, g, P), after receiving the signature (s, r) of message m, h (m) can be computed, verifying the formula: y issrs=gh(m)modP, if the formula holds, the signature is valid, otherwise it is invalid.
Fourthly, safety analysis:
effective signatures can be obtained through the ELGamal digital signature algorithm, but the security of signatures obtained by different random numbers is different. Therefore, if the data has higher security requirement, dynamic optimization can be carried out from the aspects of security and block chain performance, and whether the signature is modified or not can be determined. The specific mode of security verification is as follows: and (3) solving the private key according to the known public key (y, g, P) and the signature (s, r) by using an attack signature method, wherein if the private key cannot be solved, the signature is safe.
Although the attack difficulty on the signature can be increased by controlling the write-in and read-out authority of the nodes in the data management system through the private chain, for different target data, the security requirements are different, an ELGamal digital signature algorithm is adopted to flexibly select random numbers, the security of the data and the performance of the block chain are dynamically optimized, and a more efficient, safe and reasonable encryption scheme can be obtained.
In this embodiment, the ELGamal digital signature algorithm is used to encrypt the target data, so that the target data can be encrypted according to the security requirements of different target data, thereby further ensuring the security of the data.
Please refer to fig. 5.
As shown in fig. 5, a second embodiment provides a data management device based on the blockchain technique, including: a data management system establishing module 21, configured to establish a data management system according to a block chain technique; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1; the target data acquisition module 22 is configured to pre-process the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering; and the target data sharing module 23 is configured to write the target data into the corresponding enterprise block chain, encrypt the target data, and share the encrypted target data with the other enterprise block chains.
The data management system establishing module 21 is used for respectively authorizing different mechanism block chains under the same enterprise according to the design of private chain requirements, namely controlling write-in read permission, taking the mechanism block chain successfully authorized as a block/node to form a corresponding enterprise block chain, authorizing different enterprise block chains according to the design of alliance chain requirements, taking the enterprise block chain successfully authorized as a block/node to form a block chain network, and thus establishing the data management system.
The nodes in the block chain network are blocks, a chain structure with the blocks as units is formed, each block is composed of a block head and a block body, the block head comprises a hash value, a random number and a time stamp of the previous block, and a plurality of transactions occurring after the previous block are stored in the block body, such as transaction details, actual transaction data, block size and the like.
The blockchain network may be divided into a network layer, a consensus layer, a data layer, an intelligent contract layer, and an application layer. Wherein, the network layer adopts p2p network communication protocol or own communication protocol; the consensus layer adopts an optimized consensus mechanism algorithm PBFT; the data layer adopts an account-based data model, namely data can be stored in a file form or a database form, if the data is stored in the file form, additional operation in a log form is facilitated, and if the data is stored in the database form, data query and modification are facilitated; the intelligent contract layer defines transaction logic and business rules for accessing data, and operates in an isolated sandbox environment to ensure the security of the data.
The data management system establishing module 21 establishes an account-based data model by combining the private chain and the alliance chain, and selects different node admission mechanisms, consensus mechanisms and intelligent contracts in the enterprise block chain and among the enterprise block chains, thereby establishing a data management system.
The block chain is a decentralized, non-falsifiable, traceable and multi-party commonly maintained distributed database, has a unique trust establishment mechanism, can integrate a plurality of isolated databases which are traditionally maintained by a single party and only relate to own services, and is stored on a plurality of nodes maintained by multiple parties together in a distributed manner, any party cannot completely control the data and only can update the data according to strict rules and common identification, so that the credible information sharing and supervision among multiple parties are realized.
In this embodiment, the data management system is established by the data management system establishing module 21 according to the block chain technology, so that the data management system can be established for multiple enterprise terminals, data sharing between different enterprises is realized, and data security is ensured.
In a preferred implementation manner of this embodiment, the data management system is established by the data management system establishing module 21, which may selectively combine the blockchain partitioning and multi-channel technologies.
The method introduces a fragmentation technology according to the actual business requirements of enterprises, divides a blockchain network formed by a plurality of enterprise blockchain into a plurality of fragments, so that nodes of the whole blockchain network can process and store different transaction data in parallel, the transaction processing capacity of the whole blockchain network is not limited to a single node, the single node is not required to process and store all transaction data, and the method is favorable for solving the problems of performance expansibility and transaction privacy of a data management system.
The multi-channel technology is introduced according to the actual business requirements of enterprises, for example, the whole blockchain network is divided into a plurality of channels according to different product supply chains or certain type of production equipment, each node can join in the corresponding channel according to the transaction needing to participate, so that the blocks can be received and processed on a plurality of chains simultaneously, and the independent and concurrent processing of a plurality of transactions is facilitated.
In a preferred embodiment of the present invention, the production data is obtained by the enterprise terminal by applying internet of things technologies such as two-dimensional codes, radio frequency identification RFID, and near field communication technology NFC.
It should be noted that the production data is all data related to the production processes of enterprises such as raw material supply, product manufacturing and processing, product logistics transportation and product sales.
The target data acquisition module 22 is used for preprocessing the production data acquired by the enterprise terminal, namely, data integration and data filtering are performed to obtain target data, so that the target data can be written into the corresponding enterprise block chain through the target data sharing module 23, the target data is encrypted, and the encrypted target data is shared to other enterprise block chains.
And integrating necessary production data according to the actual business requirements of enterprises, and filtering unnecessary production data. For example, production data of different suppliers, different products, different production batches and the like can be selectively integrated with production data of the same supplier, or production data of the same product and the like, and production data of different products, such as production numbers, arrival dates of the products and the like, can be selectively filtered.
According to the implementation, the target data acquisition module 22 is used for preprocessing the production data acquired by the enterprise terminal, so that the problem of data redundancy of the data written into the enterprise block chain can be avoided, and the efficiency of data sharing is improved.
Through the data management system establishing module 21, a data management system containing enterprise block chains corresponding to different enterprise terminals is established according to the block chain technology, so that when one enterprise terminal obtains production data, the production data obtained by the enterprise terminal is preprocessed through the target data obtaining module 22 to obtain corresponding target data, and then the target data is written into the enterprise block chain corresponding to the enterprise terminal through the target data sharing module 23, so that the target data is shared to other enterprise block chains through the data management system.
In this embodiment, a data management system is established through the data management system establishing module 21, which is equivalent to establishing a data sharing channel between different enterprise terminals, if a certain enterprise terminal needs to share data to other enterprise terminals, the data of the certain enterprise terminal can be written into the corresponding enterprise block chain through the target data obtaining module 22 and the target data sharing module 23, so that the data can be shared to other enterprise terminals through the data management system, and if the certain enterprise terminal needs to obtain data of other enterprise terminals, the data of other enterprise terminals can be obtained through the data management system.
The embodiment can establish a data management system for a plurality of enterprise terminals, and realize data sharing among different enterprises.
In this embodiment, the establishing a data management system according to the block chain technique specifically includes: and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing a data management system.
The data management system establishing module 21 determines the connection relationship between the enterprise blockchain corresponding to the enterprise terminal and the other enterprise blockchains according to the access request initiated by the enterprise terminal, so as to connect the enterprise blockchain corresponding to the enterprise terminal and the other enterprise blockchains according to the determined connection relationship, thereby establishing the data management system.
In this embodiment, the data management apparatus based on the blockchain technique further includes: and the target data authorization module 24 is configured to, after preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data, authorize the target data before writing the target data into the corresponding enterprise block chain, and if authorization is successful, write the target data into the corresponding enterprise block chain.
And judging whether the target data is publicable data or not according to the actual business requirements of the enterprise, and authorizing the publicable target data. For example, the internal production operation plan and product completion condition of the enterprise can be authorized to be public data, but the detailed information and other non-public data in the production process of the product can not be authorized.
In the implementation, the target data is authorized by the target data authorization module 24, so that data which cannot be disclosed inside an enterprise can be prevented from being written into an enterprise block chain, and the security of the data can be ensured.
In this embodiment, the encrypting the target data specifically includes: and encrypting the target data by adopting an ELGamal digital signature algorithm.
The ELGamal digital signature algorithm comprises the following steps:
first step, generating parameters and keys:
assuming a prime number P in the data set ZpFrom the data set Z, where it is difficult to solve discrete logarithmspOne generator g belongs to Zp,g<P, g is the root of P (g is the primitive element of P); selecting a random number x ∈ ZpX is a random integer in the range of 1<x<P-2; computing the public key y ═ gxmodP, i.e., public key is (y, g, P) and secret key is x.
Secondly, calculating a signature:
assuming that a message needing to be signed is m, m belongs to Z, selecting a secret random number k, wherein k is a random integer, and k belongs to Zp,1<k<P-2 and k is coprime to P-1, i.e. (k, P-1) ═ 1, calculate: r ═ gxmodP,s=(h(m)-xr)k-1mod (P-1), where r, s are the two integers that make up the signature, then the signature for m is (s, r), which can also be expressed as (m, s, r), where h is a Hash function.
Thirdly, verifying the accuracy:
given the public key as (y, g, P), after receiving the signature (s, r) of message m, h (m) can be computed, verifying the formula: y issrs=gh(m)modP, if the formula holds, the signature is valid, otherwise it is invalid.
Fourthly, safety analysis:
effective signatures can be obtained through the ELGamal digital signature algorithm, but the security of signatures obtained by different random numbers is different. Therefore, if the data has higher security requirement, dynamic optimization can be carried out from the aspects of security and block chain performance, and whether the signature is modified or not can be determined. The specific mode of security verification is as follows: and (3) solving the private key according to the known public key (y, g, P) and the signature (s, r) by using an attack signature method, wherein if the private key cannot be solved, the signature is safe.
Although the attack difficulty on the signature can be increased by controlling the write-in and read-out authority of the nodes in the data management system through the private chain, for different target data, the security requirements are different, an ELGamal digital signature algorithm is adopted to flexibly select random numbers, the security of the data and the performance of the block chain are dynamically optimized, and a more efficient, safe and reasonable encryption scheme can be obtained.
In this embodiment, the ELGamal digital signature algorithm is used to encrypt the target data, so that the target data can be encrypted according to the security requirements of different target data, thereby further ensuring the security of the data.
A third embodiment provides a computer-readable storage medium, which includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the data management method based on the block chain technique according to the first embodiment, and achieve the same beneficial effects.
In summary, the present embodiment has the following beneficial effects:
according to the block chain technology, a data management system containing enterprise block chains corresponding to different enterprise terminals is established, so that when one enterprise terminal obtains production data, the production data obtained by the enterprise terminal can be preprocessed to obtain corresponding target data, the target data is written into the enterprise block chain corresponding to the enterprise terminal, and the target data is shared to other enterprise block chains through the data management system. According to the invention, through establishing the data management system, which is equivalent to establishing a data sharing channel between different enterprise terminals, if a certain enterprise terminal needs to share data to other enterprise terminals, the data of the enterprise terminal can be written into the corresponding enterprise block chain, so that the data can be shared to other enterprise terminals through the data management system, and if the certain enterprise terminal needs to acquire the data of other enterprise terminals, the data of other enterprise terminals can be acquired through the data management system. The invention can establish a data management system for a plurality of enterprise terminals, and realize data sharing among different enterprises.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the above embodiments may be implemented by hardware related to instructions of a computer program, and the computer program may be stored in a computer readable storage medium, and when executed, may include the processes of the above embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (9)

1. A data management method based on block chain technology is characterized by comprising the following steps:
establishing a data management system according to a block chain technology; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1;
preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering;
and writing the target data into the corresponding enterprise block chain, encrypting the target data, and sharing the encrypted target data to the rest enterprise block chains.
2. The method according to claim 1, wherein the establishing of the data management system according to the blockchain technique comprises:
and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing the data management system.
3. The method for data management based on blockchain technology according to claim 1, wherein after the preprocessing of the production data acquired by each of the enterprise terminals to obtain the corresponding target data, before the writing of the target data into the corresponding enterprise blockchain, the method further comprises:
and authorizing the target data, and writing the target data into the corresponding enterprise block chain if the authorization is successful.
4. The method according to claim 1, wherein the encrypting the target data comprises:
and encrypting the target data by adopting an ELGamal digital signature algorithm.
5. A data management apparatus based on a block chain technique, comprising:
the data management system establishing module is used for establishing a data management system according to the block chain technology; the data management system comprises N enterprise block chains, wherein each enterprise block chain corresponds to a different enterprise terminal, and N is more than or equal to 1;
the target data acquisition module is used for preprocessing the production data acquired by each enterprise terminal to obtain corresponding target data; wherein the preprocessing comprises data integration and data filtering;
and the target data sharing module is used for writing the target data into the corresponding enterprise block chain, encrypting the target data and sharing the encrypted target data to the rest enterprise block chains.
6. The device according to claim 5, wherein the data management system is established according to the blockchain technique, and comprises:
and connecting the enterprise block chain corresponding to the enterprise terminal with the rest enterprise block chains according to the access request initiated by the enterprise terminal, and establishing the data management system.
7. The device for data management based on blockchain technique according to claim 5, further comprising:
and the target data authorization module is used for authorizing the target data before writing the target data into the corresponding enterprise block chain after preprocessing the production data acquired by each enterprise terminal to obtain the corresponding target data, and writing the target data into the corresponding enterprise block chain if the authorization is successful.
8. The device of claim 5, wherein the encrypting the target data comprises:
and encrypting the target data by adopting an ELGamal digital signature algorithm.
9. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the computer-readable storage medium controls an apparatus to execute the data management method based on the blockchain technology according to claims 1 to 4.
CN201911231130.5A 2019-12-04 2019-12-04 Data management method and device based on block chain technology and storage medium Pending CN110968883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911231130.5A CN110968883A (en) 2019-12-04 2019-12-04 Data management method and device based on block chain technology and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911231130.5A CN110968883A (en) 2019-12-04 2019-12-04 Data management method and device based on block chain technology and storage medium

Publications (1)

Publication Number Publication Date
CN110968883A true CN110968883A (en) 2020-04-07

Family

ID=70033179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911231130.5A Pending CN110968883A (en) 2019-12-04 2019-12-04 Data management method and device based on block chain technology and storage medium

Country Status (1)

Country Link
CN (1) CN110968883A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232819A (en) * 2020-10-28 2021-01-15 上海优扬新媒信息技术有限公司 Data processing method and block link point
CN112487094A (en) * 2020-12-08 2021-03-12 深圳供电局有限公司 Method and device for synchronizing energy block data, computer equipment and storage medium
CN113364590A (en) * 2021-06-07 2021-09-07 重庆高新技术产业研究院有限责任公司 Block chain encryption method for production process data of multiple types of enterprises

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109949882A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of medical treatment block chain data-storage system
CN109961826A (en) * 2018-12-12 2019-07-02 陕西医链区块链集团有限公司 A kind of health information management system and method based on medical block chain

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109949882A (en) * 2018-11-15 2019-06-28 陕西医链区块链集团有限公司 A kind of medical treatment block chain data-storage system
CN109961826A (en) * 2018-12-12 2019-07-02 陕西医链区块链集团有限公司 A kind of health information management system and method based on medical block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112232819A (en) * 2020-10-28 2021-01-15 上海优扬新媒信息技术有限公司 Data processing method and block link point
CN112487094A (en) * 2020-12-08 2021-03-12 深圳供电局有限公司 Method and device for synchronizing energy block data, computer equipment and storage medium
CN112487094B (en) * 2020-12-08 2024-01-19 深圳供电局有限公司 Method, device, computer equipment and storage medium for synchronizing energy block data
CN113364590A (en) * 2021-06-07 2021-09-07 重庆高新技术产业研究院有限责任公司 Block chain encryption method for production process data of multiple types of enterprises

Similar Documents

Publication Publication Date Title
US11721152B2 (en) Blockchain-based anonymized cryptologic ballot organization
CN107766542B (en) Partitioned block chain network and method for realizing partitioned query thereof
CN110769035B (en) Block chain asset issuing method, platform, service node and storage medium
US11297043B2 (en) Cryptographic datashare control for blockchain
CN110968883A (en) Data management method and device based on block chain technology and storage medium
EP3518188A1 (en) Blockchain-based anonymized cryptologic voting
CN112286872A (en) Medical image data sharing method and system based on block chain technology and interplanetary file system and readable storage medium
CN106326666A (en) Health record information management service system
CN111585946B (en) Cryptographic master profile control and transaction arbitration
Zhang et al. Industrial Internet federated learning driven by IoT equipment ID and blockchain
Kabulov et al. Systematic analysis of blockchain data storage and sharing technology
EP3518187A1 (en) Blockchain-based cryptologic ballot organization
CN113674072A (en) Enterprise financial management risk identification method based on financial big data
CN111861736A (en) Block chain-based government affair data processing method and device and computer equipment
Sarfaraz et al. Towards a scalable permissioned blockchain framework for supply chain management
Kukade et al. A two-way encryption for privacy preservation of outsourced transaction database for association rule mining
US11562352B1 (en) Data storage and management and methods of thereof
CN114268438B (en) Multiparty collaborative signature method, multiparty collaborative signature device, multiparty collaborative signature computer equipment and storage medium
CN115473642B (en) Block chain time lock encryption electronic voting system and method capable of supervising malicious voting
CN113269571B (en) Enterprise credit information processing method and device based on block chain
CN116938435A (en) Spinning machine application platform management system based on verifiable blockchain
CN115481384A (en) Electronic license management method and device based on alliance chain
CN117499416A (en) Space information management method and system based on block chain technology
CN115914263A (en) Information management method, device and editable block chain management system
CN116933328A (en) Data dynamic authorization system and method based on block chain private data set

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200407

RJ01 Rejection of invention patent application after publication