CN113626456A - File data consistency maintaining system and method based on block chain technology - Google Patents

File data consistency maintaining system and method based on block chain technology Download PDF

Info

Publication number
CN113626456A
CN113626456A CN202110948220.7A CN202110948220A CN113626456A CN 113626456 A CN113626456 A CN 113626456A CN 202110948220 A CN202110948220 A CN 202110948220A CN 113626456 A CN113626456 A CN 113626456A
Authority
CN
China
Prior art keywords
block chain
file
data
user
layer
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
CN202110948220.7A
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.)
ANHUI BAOHULU INFORMATION TECHNOLOGY GROUP CO LTD
Original Assignee
ANHUI BAOHULU INFORMATION TECHNOLOGY GROUP CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ANHUI BAOHULU INFORMATION TECHNOLOGY GROUP CO LTD filed Critical ANHUI BAOHULU INFORMATION TECHNOLOGY GROUP CO LTD
Priority to CN202110948220.7A priority Critical patent/CN113626456A/en
Publication of CN113626456A publication Critical patent/CN113626456A/en
Pending legal-status Critical Current

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/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a block chain technology-based archive data consistency maintaining system, which comprises: the user layer comprises two users, namely a common user and an administrator; the application layer is integrated with the service processing unit and simultaneously establishes data interaction with other layers; the data layer is used for storing data required by the application layer and providing reading operation for the application layer; the system and the method for keeping the consistency of the file data are based on the characteristics of non-falsification, decentralization, openness and transparency, distributed storage and the like of a block chain, a mode that the block chain and a distributed database store electronic files together is adopted, the unit encrypts the electronic files by self and stores the electronic files in the database, and the block chain stores hash values of the electronic files and corresponding access control strategies to prevent the electronic file data from being falsified and leaked.

Description

File data consistency maintaining system and method based on block chain technology
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a system and a method for keeping file data consistency based on a block chain technology.
Background
Blockchains are a term of art in information technology. In essence, the system is a shared database, and the data or information stored in the shared database has the characteristics of 'unforgeability', 'whole-course trace', 'traceability', 'public transparency', 'collective maintenance', and the like. Based on the characteristics, the block chain technology lays a solid 'trust' foundation, creates a reliable 'cooperation' mechanism and has wide application prospect.
Under the background of the current big data era, data leakage events occur frequently, data tampering and random transaction violate laws and regulations for data property right protection, but the mobility of data brings great difficulty to data management and protection, the file management systems in all units use centralized technical schemes at present, a user stores all file information of a certain unit in a server of the unit, different units manage the file information which is in charge of the user, data related to files stored by other file centers cannot exist, namely the data of different file management centers are independent, the storage process of the files is opaque, and the data exchange can take a large amount of time to carry out authority application, identity examination and data verification; since all files must be uploaded and saved by a centralized file management center, the relevant file manager will have the read/write authority of the corresponding file, which may cause the possibility that the file is modified at any time. In addition, in such a relatively independent and centralized mode, even if the archive is modified, the user cannot find that the own archive is modified, and since there is no information capable of verifying the integrity of the archive, the integrity of the archive cannot be guaranteed, and the trust of the user on the archive is also reduced. .
Disclosure of Invention
The invention aims to solve the problems in the background art and provide a system and a method for keeping the consistency of archive data based on a block chain technology.
The purpose of the invention is realized as follows:
an archive data consistency maintenance system based on a blockchain technique, comprising:
the user layer comprises two users, namely a common user and an administrator, and is an entrance of the system, and the two users log in the system through a webpage;
the application layer is integrated with the service processing unit and simultaneously establishes data interaction with other layers, the application layer consists of intelligent contracts, and the application layer specifies the operation which can be carried out by the user layer and other actions generated by the operation;
the block chain layer comprises a storage unit and a viewing module and is responsible for encrypted information storage and encrypted information viewing functions, the block chain layer is constructed by taking an intelligent contract deployed on a private chain as a center, the block chain layer can be accessed to the private chain from different nodes, and the private chain provides an interface for the block chain layer;
the data layer is composed of an IPFS (internet protocol file system) and a Mysql database, Hash encryption is carried out on information generated by the application layer through the IPFS, the information is stored in a private storage network of the IPFS, and the IPFS establishes a mapping relation between source electronic data and an encrypted Hash value, wherein the mapping relation is used for addressing the source electronic data.
Preferably, the service processing unit includes:
the file information module: the extracted basic information of the file is transmitted to a block chain contract to complete the creation of an electronic file, and the basic information of the file is synchronized to a Mongo DB through an event in an intelligent contract after data is stored in the block chain;
the file management module: when inquiring the non-user profile information, the user only has a viewing function and can not perform addition and deletion operations;
a history recording module: all operation records of the archives are packaged into a block chain, and the source-tracing query of the historical operation records is directly extracted from a block chain database through an intelligent contract;
a user migration module: when the unit block chain node point server to which the common user belongs fails, the administrator of the higher unit of the unit authorizes the administrator of the unit with the failure point to access the unit node with stable operation at the same level, and then the administrator of the unit authorizes other common users of the unit to rapidly migrate to the stable unit node, so that the normal use of the system is ensured;
the data checking module: and displaying the digital fingerprint corresponding to each page of the file below each page, comparing the digital fingerprints corresponding to the electronic file pages recorded in the historical operation records, wherein if the digital fingerprints are consistent with each other, the data is not changed, and if the digital fingerprints are inconsistent with each other, the digital fingerprints stored in the Mongo DB are proved to be falsified.
Preferably, the common user can only create and query the file, but cannot operate the user and the management of the block chain nodes, and in the user layer, an administrator can create the user, modify the user information, delete the user, and allocate the block chain account to the common user.
Preferably, in the user layer, the IP addresses of the common users are limited, and each common user can only access the block chain node server corresponding to its own IP.
Preferably, when the blockchain layer stores the archive data, the key is used to asymmetrically encrypt the archive database operation log, and the encrypted transaction is stored in the private chain of the blockchain network layer.
Preferably, the storage unit of the block chain layer comprises a data extraction module, a transaction log storage module and an electronic file storage module, the size of the electronic archive file is divided, the electronic file with small granularity is directly stored on the alliance block chain, and the electronic file with large granularity is stored in the private IPFS network in a distributed manner.
A method for maintaining the consistency of archival data based on a block chain technology comprises the following steps:
s1, collecting input user layer and application layer information;
s2, uploading the electronic data of the file to the IPFS, and acquiring an IPFS digital fingerprint corresponding to the uploaded data;
s3, calling an intelligent file contract to store file information and IPFS digital fingerprints in a block chain layer, and triggering an automatic execution event when the intelligent contract stores the file into the block chain, wherein the event covers all content information of the file;
s4, the server is responsible for monitoring the event of the block chain of the Ether house, and when the event is automatically triggered by the intelligent contract of the file, the server acquires the content of the event and writes the relevant information of the file into the Mongo DB database.
Preferably, in the checking module of the block chain layer, when a user requests file information inquiry, an administrator verifies the authority of the user through request information generated by a common user, after the verification is passed, the administrator calculates an agent key of the user and transmits the agent key and a file ciphertext to the block chain layer through a secure channel, corresponding nodes in the block chain layer convert the file ciphertext through the agent key, and the converted file re-encrypted ciphertext can be directly decrypted by a private key of the common user so as to obtain original file information.
Preferably, when the unit A shares the file with other units, the unit AiRandomly setting a polynomial algorithm:
fi(x)=ai0+ai1x+……+ai(N-1)xN-1
in the unit A to another unit AiTransmitting a secret value component sij=fi(j) At the same time, other units AiAlso calculates B by itselfik=gaik(mod q) (k is 0,1, … …, N-1), and is transmitted to the present unit a, and the other units aiReceive sijPost-verification formula gsij=∏(Bjk)ik(mod q) is true, if true, the received secret value component is valid, otherwise, the received secret value component is invalid, and the unit A returns to other units AiError indication, other units AiNeed to send new sijUp to sijUntil equation is satisfied, the last principal unitA and other units AiThe established master key is: s ═ Σ ai0(mod q), with the master public key y ═ gs
Preferably, the system selects a bilinear map e: g1×G1→GTWherein G is1Is G, GTOf order q, another Hash function H1:{0,1}*→G1,H2:GT→G1If N units are set, then there is a common parameter P: p ═ G (G)1,GT,e,g,H1,H2And N), after the system sets the security parameters, outputting the public parameters and producing the system master key.
Preferably, the nodes of the block chain layer are identified by public parameters and identities IDi. Producing a private key sk corresponding to an identityIDi=H1(IDi)s
Preferably, the Hash value h of the archive is calculatedm=H256(m) at ZqRandomly selecting r, encrypting the file by using a public key to obtain a ciphertext: c. CIDi=[gr,m·e(gs,H1(IDi)r)]The unit packs the relevant data of the file into transaction T ═ hm,desc,acp,sigskIDi(hmDesc, acp), where desc is the ID number and description of the unit to the file, acp is the read-write permission of the electronic file, sigskIDi(hmDesc, acp) is a signature of the transaction to indicate the correctness and validity of related data, the unit issues the transaction to a blockchain network, one node receives the transaction request, the other nodes verify the transaction, after the verification is successful, all nodes update data, and finally the transaction is recorded on the blockchain.
Preferably, the identity is an IDjWhen the ordinary user browses the related data on the block chain, if the ordinary user wants to acquire the file of the unit, a message msg of one data request is generated, wherein the message msg is { h ═ hm,req,sigskIDj(hmReq) to the administrator, wherein req is the specific content of the request, and the administrator receives the common useAfter the user's message, first verifying whether the signature is legal, then confirming whether the ordinary user has the read authority of the requested data, if the two verifications are passed, the administrator calculates the proxy re-encryption key for the ordinary user: rkIDi→IDj={gr,X·e[gs,H1(IDi)r],skIDi -1·H2(X), then sending the proxy re-encryption key and the requested file ciphertext to the proxy node, and if the proxy node receives the proxy re-encryption key and the file ciphertext, calculating the re-encryption ciphertext by using a re-encryption algorithm: c. CIDj={c1,[c2·e(c1,R3)],R1,R2}。
Preferably, the proxy node sends the re-encrypted ciphertext to the data user, and since the ciphertext is converted, the ordinary user directly uses the private key to decrypt and obtain the original plaintext data m, and the decryption step includes:
(1) first decryption calculation: xj=c4/e(c3,skIDj);
(2) And (3) decryption calculation for the second time: xj=c2/e[c1,H2(Xj)]。
Compared with the prior art, the invention has the beneficial effects that:
1. the invention provides a system and a method for keeping archive data consistency based on a block chain technology, which are based on the characteristics of non-falsification, decentralization, public transparency, distributed storage and the like of a block chain, adopt a mode that the block chain and a distributed database store electronic archives together, encrypt the electronic archives by a unit and store the electronic archives on the database, and store hash values and corresponding access control strategies of the electronic archives by the block chain so as to prevent the electronic archive data from being falsified and leaked.
2. According to the archive data consistency maintaining system and method based on the block chain technology, through limitation of the IP addresses of the users, each user can only access the block chain link point server corresponding to the IP of the user, it is guaranteed that each node server in a block chain cluster can package transaction data in a block chain by making an electronic file through the user, and the phenomenon that the nodes are overloaded and single-point faults occur due to the fact that the user is excessively concentrated on a few nodes, and stable operation of the system is affected is avoided.
3. The invention provides a system and a method for keeping archive data consistency based on a block chain technology.
Drawings
FIG. 1 is a block chain technology-based file data consistency maintaining system and method according to the present invention.
FIG. 2 is a schematic diagram illustrating interaction between layers of a system and method for maintaining consistency of archival data based on blockchain technology according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, rather than all embodiments, and all other embodiments obtained by those skilled in the art without any creative work based on the embodiments of the present invention belong to the protection scope of the present invention.
Example 1
The block chain technology adopts distributed nodes, a P2P network and a consensus mechanism to ensure the consistency of data of each node and avoid data damage caused by single-point failure; the data is guaranteed to be untrustworthy, real and credible through a self chain type storage structure, a Hash algorithm, a Merkle tree, asymmetric encryption and other cryptography technologies, and meanwhile, the timestamp technology can help historical data to go back, so that a safe, decentralized and tamper-proof value transmission system is created by the block chain technology, and a brand-new mode related to data storage, transmission and display is formed.
Referring to fig. 1, a system for maintaining consistency of archive data based on blockchain technology includes: the user layer comprises two users, namely a common user and an administrator, and is an entrance of the system, and the two users log in the system through a webpage;
the application layer is integrated with the service processing unit and simultaneously establishes data interaction with other layers, the application layer consists of intelligent contracts, and the application layer specifies the operation which can be carried out by the user layer and other actions generated by the operation;
the block chain layer comprises a storage unit and a viewing module and is responsible for encrypted information storage and encrypted information viewing functions, the block chain layer is constructed by taking an intelligent contract deployed on a private chain as a center, the block chain layer can be accessed to the private chain from different nodes, and the private chain provides an interface for the block chain layer;
the data layer is composed of an IPFS (internet protocol file system) and a Mysql database, Hash encryption is carried out on information generated by the application layer through the IPFS, the information is stored in a private storage network of the IPFS, and the IPFS establishes a mapping relation between source electronic data and an encrypted Hash value, wherein the mapping relation is used for addressing the source electronic data.
The user layer is an entrance of the system, two users log in the system through a webpage, the application layer integrates all the service processing modules and establishes the connection with all the layers, the block chain layer is responsible for storing and checking the encrypted information, and the data layer stores the data required by the application layer and provides reading operation for the application layer.
The IPFS (Interplanetarium File System) is a point-to-point distributed File System, the initial aim is to connect all computing devices by using the same File System, the existing technologies of a Distributed Hash Table (DHT), a BitTorrent content distribution protocol, Git, a Self-verification File System (SFS) and the like are applied to the IPFS, and the IPFS has the characteristics of addressable storage files, untrustworthy content, decentralized and version control and the like.
The block chain has three types, namely a public chain, a alliance chain and a private chain, and the difference of the three types is the openness degree of the read-write authority. The public chain is opened to all people, the alliance chain is opened to the node which joins the alliance, the private chain is opened to a certain node, the invention chooses the private chain as the block chain storage mode, the access of the private chain node needs authorization confirmation, and the write-in and read authority of each node in the private chain has strict limitation, the characteristic of the private chain is that the transaction speed is fast, the privacy guarantee is good, the transaction cost is greatly reduced, and the security is higher.
The service processing unit comprises:
the file information module: the extracted basic information of the file is transmitted to a block chain contract to complete the creation of an electronic file, and the basic information of the file is synchronized to a Mongo DB through an event in an intelligent contract after data is stored in the block chain;
the file management module: when inquiring the non-user profile information, the user only has a viewing function and can not perform addition and deletion operations;
a history recording module: all operation records of the archives are packaged into a block chain, and the source-tracing query of the historical operation records is directly extracted from a block chain database through an intelligent contract;
a user migration module: when the unit block chain node point server to which the common user belongs fails, the administrator of the higher unit of the unit authorizes the administrator of the unit with the failure point to access the unit node with stable operation at the same level, and then the administrator of the unit authorizes other common users of the unit to rapidly migrate to the stable unit node, so that the normal use of the system is ensured;
the data checking module: and displaying the digital fingerprint corresponding to each page of the file below each page, comparing the digital fingerprints corresponding to the electronic file pages recorded in the historical operation records, wherein if the digital fingerprints are consistent with each other, the data is not changed, and if the digital fingerprints are inconsistent with each other, the digital fingerprints stored in the Mongo DB are proved to be falsified.
The user authority of the system administrator is highest, the administrator below the current level (including the current level) and the common user at the current level can be created, and the user information can be edited and deleted.
The whole process is automatically executed by an intelligent contract, the integrity and the authenticity of data on a chain are ensured, the consistency of archive information stored in a Mongo DB database and data information on the chain is also ensured, the possibility that data is maliciously distorted in the data synchronization process of the data on the chain and the data of a data base under the chain is avoided, the data synchronization storage of the data on the chain and the data base under the chain is ensured, all information data of an archive are stored in a block chain, the data are prevented from being maliciously distorted, the data safety is improved, the Mongo DB is adopted under the chain to only store archive basic information meeting the user query operation, the archive query result only displays the archive basic information in the Mongo DB of the data base under the chain, the specific archive information is queried, the data in an archive detail page is skipped to, and the data in the archive detail page is obtained by the block chain, so that the reliability and the authenticity of the user query data are ensured.
The intelligent contract comprises three parts: and the file basic information, the file detailed information and the historical record information function are used for simultaneously building an IPFS client on each block chain node server and building a private IPFS network. The communication with the nodes in the IPFS internet is cut off, the IPFS nodes in the private network can not synchronously transmit data to the internet environment, and all the nodes in the private IPFS network are communicated with each other to jointly construct a private cluster network. Therefore, a private IPFS network can be used for constructing a private network, and the proprietary data of the court is stored in the private network without causing external leakage of the data.
With reference to fig. 2, the storage unit of the block chain layer includes a data extraction module, a transaction log storage module, and an electronic file storage module, and divides the size of the electronic archive file, directly stores the electronic file with small granularity to the alliance block chain, and stores the electronic file with large granularity to the private IPFS network in a distributed manner. This feature of the EtherFang Smart contracts guarantees to some extent the fairness of the trade.
Example 2
A method for maintaining the consistency of archival data based on a block chain technology comprises the following steps:
s1, collecting input user layer and application layer information;
s2, uploading the electronic data of the file to the IPFS, and acquiring an IPFS digital fingerprint corresponding to the uploaded data;
s3, calling an intelligent file contract to store file information and IPFS digital fingerprints in a block chain layer, and triggering an automatic execution event when the intelligent contract stores the file into the block chain, wherein the event covers all content information of the file;
s4, the server is responsible for monitoring the event of the block chain of the Ether house, and when the event is automatically triggered by the intelligent contract of the file, the server acquires the content of the event and writes the relevant information of the file into the Mongo DB database.
Example 3
In the checking module of the block chain layer, when a user requests file information to inquire, an administrator verifies the authority of the user through request information generated by a common user, after the verification is passed, the administrator calculates an agent key of the user and transmits the agent key and a file ciphertext to the block chain layer through a secure channel, corresponding nodes in the block chain layer convert the file ciphertext through the agent key, and the converted file re-encrypted ciphertext can be directly decrypted by a private key of the common user so as to obtain original file information.
When the unit A shares the file with other units, the unit AiRandomly setting a polynomial algorithm: f. ofi(x)=ai0+ai1x+……+ai(N-1)xN-1
In the unit A to another unit AiTransmitting a secret value component sij=fi(j) At the same time, other units AiAlso calculates B by itselfik=gaik(mod q) (k is 0,1, … …, N-1), and is transmitted to the present unit a, and the other units aiReceive sijPost-verification formula gsij=∏(Bjk)ik(mod q) is true, if true, the received secret value component is valid, otherwise, the received secret value component is invalid, and the unit A returns to other units AiError indication, other units AiNeed to send new sijUp to sijUntil the equation is satisfied, the last unit A and the other units AiThe established master key is: s ═ Σ ai0(mod q), with the master public key y ═ gs
The system selects a bilinear map e: g1×G1→GTWherein G is1Is G, GTOf order q, another Hash function H1:{0,1}*→G1,H2:GT→G1If N units are set, then there is a common parameter P: p ═ G (G)1,GT,e,g,H1,H2And N), after the system sets the security parameters, outputting the public parameters and producing the system master key.
And the nodes of the block chain layer are identified by the public parameters and the identity IDi. Producing a private key sk corresponding to an identityIDi=H1(IDi)s
Calculating the Hash value h of the filem=H256(m) at ZqRandomly selecting r, encrypting the file by using a public key to obtain a ciphertext: c. CIDi=[gr,m·e(gs,H1(IDi)r)]The unit packs the relevant data of the file into transaction T ═ hm,desc,acp,sigskIDi(hmDesc, acp), where desc is the ID number and description of the unit to the file, acp is the read-write permission of the electronic file, sigskIDi(hmDesc, acp) is a signature of the transaction to indicate the correctness and validity of related data, the unit issues the transaction to a blockchain network, one node receives the transaction request, the other nodes verify the transaction, after the verification is successful, all nodes update data, and finally the transaction is recorded on the blockchain.
The identity is IDjWhen the ordinary user browses the related data on the block chain, if the ordinary user wants to acquire the file of the unit, a message msg of one data request is generated, wherein the message msg is { h ═ hm,req,sigskIDj(hmReq) to the administrator, wherein req is the specific content of the request, and after receiving the message of the ordinary user, the administrator first verifies whether the signature is legal, and then confirms the signatureWhether the ordinary user has the read authority of the requested data or not is judged, and if the two verifications are passed, the administrator calculates an agent re-encryption key for the ordinary user: rkIDi→IDj={gr,X·e[gs,H1(IDi)r],skIDi -1·H2(X), then sending the proxy re-encryption key and the requested file ciphertext to the proxy node, and if the proxy node receives the proxy re-encryption key and the file ciphertext, calculating the re-encryption ciphertext by using a re-encryption algorithm: c. CIDj={c1,[c2·e(c1,R3)],R1,R2}。
The proxy node sends the re-encrypted ciphertext to the data user, and as the ciphertext is converted, the ordinary user directly uses the private key to decrypt and obtain the original plaintext data m, and the decryption step comprises the following steps:
(1) first decryption calculation: xj=c4/e(c3,skIDj);
(2) And (3) decryption calculation for the second time: xj=c2/e[c1,H2(Xj)]。
The private key of each user can be generated by negotiation of all users, and the security of the private key can be guaranteed even if a single user is attacked maliciously.
Through the limitation of the IP address of the user, each user can only access the block chain link point server corresponding to the IP of the user, and the point obtained by uploading the file is issued by the node server, so that the advantage of ensuring that each node server in the block chain cluster can package transaction data in the block chain by making an electronic file by the user and actively participate in a consensus mechanism of the block chain is realized, and the phenomenon that the nodes are overloaded and have single-point faults due to the fact that the user is excessively concentrated on a few nodes and the stable operation of the system is influenced is avoided.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalents and substitutions made within the scope of the present invention should be included.

Claims (7)

1. A block chain technology-based archive data consistency maintaining system is characterized in that: the method comprises the following steps:
the user layer comprises two users, namely a common user and an administrator, and is an entrance of the system, and the two users log in the system through a webpage;
the application layer is integrated with the service processing unit and simultaneously establishes data interaction with other layers, the application layer consists of intelligent contracts, and the application layer specifies the operation which can be carried out by the user layer and other actions generated by the operation;
the block chain layer comprises a storage unit and a viewing module and is responsible for encrypted information storage and encrypted information viewing functions, the block chain layer is constructed by taking an intelligent contract deployed on a private chain as a center, the block chain layer can be accessed to the private chain from different nodes, and the private chain provides an interface for the block chain layer;
the data layer is composed of an IPFS (internet protocol file system) and a Mysql database, Hash encryption is carried out on information generated by the application layer through the IPFS, the information is stored in a private storage network of the IPFS, and the IPFS establishes a mapping relation between source electronic data and an encrypted Hash value, wherein the mapping relation is used for addressing the source electronic data.
2. The system according to claim 1, wherein the archive data consistency maintenance system based on the blockchain technique comprises: the service processing unit comprises:
the file information module: the extracted basic information of the file is transmitted to a block chain contract to complete the creation of an electronic file, and the basic information of the file is synchronized to a Mongo DB through an event in an intelligent contract after data is stored in the block chain;
the file management module: when inquiring the non-user profile information, the user only has a viewing function and can not perform addition and deletion operations;
a history recording module: all operation records of the archives are packaged into a block chain, and the source-tracing query of the historical operation records is directly extracted from a block chain database through an intelligent contract;
a user migration module: when the unit block chain node point server to which the common user belongs fails, the administrator of the higher unit of the unit authorizes the administrator of the unit with the failure point to access the unit node with stable operation at the same level, and then the administrator of the unit authorizes other common users of the unit to rapidly migrate to the stable unit node, so that the normal use of the system is ensured;
the data checking module: and displaying the digital fingerprint corresponding to each page of the file below each page, comparing the digital fingerprints corresponding to the electronic file pages recorded in the historical operation records, wherein if the digital fingerprints are consistent with each other, the data is not changed, and if the digital fingerprints are inconsistent with each other, the digital fingerprints stored in the Mongo DB are proved to be falsified.
3. The system according to claim 1, wherein the archive data consistency maintenance system based on the blockchain technique comprises: the common user can only create and inquire the file, but can not operate the user and the management of the block chain link points, and in a user layer, an administrator can create the user, modify the user information, delete the user and allocate the block chain account for the common user.
4. The system and method for maintaining consistency of archival data based on blockchain technology as claimed in claim 1, wherein: in the user layer, the IP addresses of the ordinary users are limited, and each ordinary user can only access the block chain link point server corresponding to the IP of the ordinary user.
5. The system according to claim 1, wherein the archive data consistency maintenance system based on the blockchain technique comprises: and when the block chain layer stores the archive data, the key is used for asymmetrically encrypting the operation log of the archive database, and the encrypted transaction is stored into a private chain of the block chain network layer.
6. The system according to claim 5, wherein the archive data consistency maintenance system comprises: the storage unit of the block chain layer comprises a data extraction module, a transaction log storage module and an electronic file storage module, the size of the electronic archive file is divided, the electronic file with small granularity is directly stored on the alliance block chain, and the electronic file with large granularity is stored in a private IPFS network in a distributed mode.
7. A method for maintaining consistency of archival data based on blockchain technology as claimed in any one of claims 1-6, characterized in that: the method comprises the following steps:
s1, collecting input user layer and application layer information;
s2, uploading the electronic data of the file to the IPFS, and acquiring an IPFS digital fingerprint corresponding to the uploaded data;
s3, calling an intelligent file contract to store file information and IPFS digital fingerprints in a block chain layer, and triggering an automatic execution event when the intelligent contract stores the file into the block chain, wherein the event covers all content information of the file;
s4, the server is responsible for monitoring the event of the block chain of the Ether house, and when the event is automatically triggered by the intelligent contract of the file, the server acquires the content of the event and writes the relevant information of the file into the Mongo DB database.
CN202110948220.7A 2021-08-18 2021-08-18 File data consistency maintaining system and method based on block chain technology Pending CN113626456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110948220.7A CN113626456A (en) 2021-08-18 2021-08-18 File data consistency maintaining system and method based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110948220.7A CN113626456A (en) 2021-08-18 2021-08-18 File data consistency maintaining system and method based on block chain technology

Publications (1)

Publication Number Publication Date
CN113626456A true CN113626456A (en) 2021-11-09

Family

ID=78386371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110948220.7A Pending CN113626456A (en) 2021-08-18 2021-08-18 File data consistency maintaining system and method based on block chain technology

Country Status (1)

Country Link
CN (1) CN113626456A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297009A (en) * 2022-07-08 2022-11-04 中电信数智科技有限公司 Block chain-based distributed network digital encryption consistency optimization method
CN115941452A (en) * 2022-11-09 2023-04-07 北京工业大学 Decentralized power grid fault tracing system based on Internet of things and block chain technology
CN116561813A (en) * 2023-07-12 2023-08-08 中汇丰(北京)科技有限公司 Safety management system applied to archive information

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694654A (en) * 2012-05-25 2012-09-26 孙华 Identity-based threshold ring signcryption method
CN107947922A (en) * 2017-11-29 2018-04-20 中国科学院合肥物质科学研究院 A kind of digital archives management method and system based on block chain technology
CN109255251A (en) * 2018-10-31 2019-01-22 安徽中科智链信息科技有限公司 File data based on block chain technology protects system and method
CN111193590A (en) * 2019-12-31 2020-05-22 重庆邮电大学 Key authorization method for dynamic change of support nodes of alliance chain
CN111343001A (en) * 2020-02-07 2020-06-26 复旦大学 Social data sharing system based on block chain
CN112434281A (en) * 2020-11-17 2021-03-02 重庆邮电大学 Multi-factor identity authentication method oriented to alliance chain
CN112540957A (en) * 2020-12-03 2021-03-23 齐鲁工业大学 File secure storage and sharing system based on mixed block chain and implementation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694654A (en) * 2012-05-25 2012-09-26 孙华 Identity-based threshold ring signcryption method
CN107947922A (en) * 2017-11-29 2018-04-20 中国科学院合肥物质科学研究院 A kind of digital archives management method and system based on block chain technology
CN109255251A (en) * 2018-10-31 2019-01-22 安徽中科智链信息科技有限公司 File data based on block chain technology protects system and method
CN111193590A (en) * 2019-12-31 2020-05-22 重庆邮电大学 Key authorization method for dynamic change of support nodes of alliance chain
CN111343001A (en) * 2020-02-07 2020-06-26 复旦大学 Social data sharing system based on block chain
CN112434281A (en) * 2020-11-17 2021-03-02 重庆邮电大学 Multi-factor identity authentication method oriented to alliance chain
CN112540957A (en) * 2020-12-03 2021-03-23 齐鲁工业大学 File secure storage and sharing system based on mixed block chain and implementation method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《计算机技术与应用进展》编委会编: "《计算机技术与应用进展》", 31 December 2008 *
唐飞等: "基于属性的多授权中心身份认证方案", 《通信学报》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115297009A (en) * 2022-07-08 2022-11-04 中电信数智科技有限公司 Block chain-based distributed network digital encryption consistency optimization method
CN115297009B (en) * 2022-07-08 2023-11-17 中电信数智科技有限公司 Digital encryption consistency optimization method based on blockchain distributed network
CN115941452A (en) * 2022-11-09 2023-04-07 北京工业大学 Decentralized power grid fault tracing system based on Internet of things and block chain technology
CN116561813A (en) * 2023-07-12 2023-08-08 中汇丰(北京)科技有限公司 Safety management system applied to archive information
CN116561813B (en) * 2023-07-12 2023-09-26 中汇丰(北京)科技有限公司 Safety management system applied to archive information

Similar Documents

Publication Publication Date Title
CN108259169B (en) File secure sharing method and system based on block chain cloud storage
CN109120639B (en) Data cloud storage encryption method and system based on block chain
CN108768988B (en) Block chain access control method, block chain access control equipment and computer readable storage medium
CN107508812B (en) Industrial control network data storage method, calling method and system
CN113626456A (en) File data consistency maintaining system and method based on block chain technology
US9785491B2 (en) Processing a certificate signing request in a dispersed storage network
WO2019237570A1 (en) Electronic contract signing method, device and server
US8824674B2 (en) Information distribution system and program for the same
KR20190012969A (en) Data access management system based on blockchain and method thereof
CN105103488A (en) Policy enforcement with associated data
CN105516110A (en) Mobile equipment secure data transmission method
CN110309197B (en) Project data verification method and device
CN112615847B (en) Data sharing and privacy protection method based on block chain
CN115567312B (en) Alliance chain data authority management system and method capable of meeting various scenes
CN110866261A (en) Data processing method and device based on block chain and storage medium
CN111212026A (en) Data processing method and device based on block chain and computer equipment
CN113014394B (en) Electronic data certification method and system based on alliance chain
CN113326529A (en) Decentralized architecture unifying method based on trusted computing
CN116436708A (en) Trusted data sharing method and system based on blockchain technology
WO2022252356A1 (en) Data processing method and apparatus, electronic device, and medium
CN109413200A (en) A kind of method, client, MES and electronic equipment that resource imports
CN115604014A (en) Data integrity auditing method, equipment and storage medium
CN110532786A (en) Using the block chain blacklist sharing method of Hash desensitization process
CN113783846A (en) Trusted data transmission system and method
CN113239376A (en) Data sharing method, request method and device based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211109