CN111427869A - Log system based on block chain - Google Patents

Log system based on block chain Download PDF

Info

Publication number
CN111427869A
CN111427869A CN202010278881.9A CN202010278881A CN111427869A CN 111427869 A CN111427869 A CN 111427869A CN 202010278881 A CN202010278881 A CN 202010278881A CN 111427869 A CN111427869 A CN 111427869A
Authority
CN
China
Prior art keywords
database
operation instruction
feedback information
blockchain
data
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
CN202010278881.9A
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.)
Ketong Industrial Technology Shenzhen Co ltd
Original Assignee
Ketong Industrial Technology Shenzhen 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 Ketong Industrial Technology Shenzhen Co ltd filed Critical Ketong Industrial Technology Shenzhen Co ltd
Priority to CN202010278881.9A priority Critical patent/CN111427869A/en
Publication of CN111427869A publication Critical patent/CN111427869A/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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • 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

Abstract

The invention discloses a block chain-based log system, and belongs to the technical field of information. The system comprises: a front-end user interface, which is an interface for interaction between a user and a system; the display layer receives and transmits an operation instruction input by the front-end user interface, or transmits received feedback information to the front-end user interface; the business layer is used for carrying out classification management on the input operation instructions and the feedback information and then transmitting the operation instructions or the feedback information after the classification management; the data layer converts the received operation instruction into a data processing operation instruction and transmits the data processing operation instruction, or transmits the received feedback information to the service layer, and the design and the operation of the data layer adopt a block chain technology; the database is used for operating the stored data according to the received database operation instruction and generating feedback information; and the operation environment module is used for providing a stable environment for the operation of the log system. The invention establishes a multi-active database system which is not falsifiable, safe, consistent and low in cost.

Description

Log system based on block chain
Technical Field
The invention relates to the technical field of information, in particular to a block chain-based log system.
Background
With the development of computer technology and network communication technology, database technology has become an important technical means for organizing and managing a large amount of data in the information society and the foundation of enterprise information-based network systems. With the continuous concentration of enterprise data and IT resources, the current centralized database has many risks in the operation process: one is the data authenticity problem, and the centralized database is easily attacked by hackers or tampered by internal personnel, so that great economic loss is caused; secondly, the problem of data security exists, and the traditional main-standby mode disaster recovery scheme is incapable of switching system faults caused by data loss; thirdly, the data consistency problem, the data synchronization between the master and the multiple copies often generates conflict, and the database is damaged and cannot be repaired.
To resolve centralized database risks and reduce or eliminate the impact of downtime on business availability, enterprises generally build data centers in a "two-place-three-center" model. The mode improves the business continuity of enterprises to a certain extent, but with the improvement of disaster tolerance construction standards of the enterprises, the IT resources and capital investment are increased. Because the probability of a disaster is very low, the disaster recovery facilities are in an idle running state at ordinary times, and waste is caused. In addition, in the mode of 'two places and three centers', the standby center needs a long time to take over the main center, and the service processing is easily influenced. Because the problems cannot be effectively solved, the cross-central database clustering technology is not developed and matured, the cost for constructing the double-activity database is high, the maintenance is difficult, and the construction of the multi-activity database is still a recognized difficulty in the industry.
Disclosure of Invention
The invention mainly solves the technical problem of providing a log system based on a block chain, and establishing a multi-active database system which is not falsifiable, safe, consistent and low in cost.
In order to achieve the above purpose, the invention adopts a technical scheme that: a blockchain based log system, comprising: the front-end user interface is an interactive interface between a user and the log system, and receives an operation instruction input by the user or presents feedback information of the log system to the operation instruction to the user; the display layer receives and transmits an operation instruction input by the front-end user interface, or receives feedback information and transmits the feedback information to the front-end user interface; the business layer receives the operation instructions transmitted by the display layer and performs classified management on the operation instructions, the business layer transmits the operation instructions after the classified management, or the business layer receives the feedback information and performs the classified management on the feedback information, and the business layer transmits the feedback information after the classified management to the display layer; the data layer receives the managed operation instruction and converts the operation instruction into a data processing operation instruction, the data layer transmits the data processing operation instruction, the data layer receives feedback information and transmits the feedback information to the service layer, and the design and operation of the data layer adopt a block chain technology; the database is used for storing data, receiving a database operation instruction, operating the data in the database according to the database operation instruction to generate feedback information, and transmitting the feedback information to the data layer; and the running environment module is used for providing a stable environment for the running of the log system.
The invention has the beneficial effects that:
the application of the invention can establish a non-falsifiable, safe, consistent and low-cost multi-active database system, reduce IT resources and funds invested by enterprises and improve the operation efficiency of the database.
Drawings
FIG. 1 is a block chain-based log system structure diagram according to the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the invention easier to understand by those skilled in the art, and thus will clearly and clearly define the scope of the invention.
The principle of the invention is to combine the block chain technology and the traditional database technology and design a database application system based on the block chain technology. A blockchain is a chained data structure of distributed, decentralized storage. It is a distributed accounting book, all records are completed by a plurality of nodes together, and each node has a complete accounting book. The most significant features of the blockchain itself are distributed, decentralized, and information non-tamperable. But the data searching speed and the data formatting processing are inherently insufficient. A database is a repository built on computer storage devices that organizes, stores, and manages data according to certain data structures. The characteristics of the database comprise redundancy reduction of data, independence of the data and centralized control of the data.
The invention combines the block chain and the database, so that the database system not only has the characteristics of distribution, decentralization, information non-tampering and auditability of the block chain, but also has the characteristics of quick query and elegant data structure of the traditional database.
Fig. 1 shows a specific embodiment of a block chain-based log system structure according to the present invention, in which the log system mainly includes a front-end user interface, a presentation layer, a service layer, a data layer, a database, an operating environment module, a log recording module, and an authority control module.
In one embodiment of the present invention, the front-end user interface is an interface between a user and the log system of the present invention, on one hand, the user may input an operation instruction through the interface, for example, search for a certain data, input a new data, replace a new data, and the like, and on the other hand, the user may also obtain feedback information of the operation instruction sent by the log system through the interface, that is, the front-end user interface presents the feedback information of the operation instruction by the log system to the user.
In a specific embodiment of the present invention, the presentation layer is mainly used for effect rendering And data interaction of the front-end user interface, on one hand, the presentation layer receives an operation instruction transmitted by the front-end user interface, And then, the presentation layer transmits the operation instruction to the service layer, on the other hand, the presentation layer receives feedback information corresponding to the user operation instruction transmitted by the service layer, And then, the presentation layer transmits the feedback information to the front-end user interface, And on the third hand, the presentation layer also renders the front-end user interface.
In a specific embodiment of the present invention, the service layer mainly implements the service logic of log system management. On one hand, the service layer receives the user operation instruction transmitted by the display layer, and then the service layer performs classification management on the operation instruction and transmits the operation instruction after the classification management to the data layer. On the other hand, the service layer receives feedback information corresponding to the user operation instruction transmitted by the data layer, and then the service layer performs classification management on the feedback information and transmits the feedback information after the classification management to the display layer. Preferably, the classification management includes content management, user management, system setting, statistical reporting, system log management, and the like.
In an embodiment of the present invention, the data layer is located between the service layer and the database, and mainly processes the operation instruction of the front-end user and the data information transmitted by the database. On one hand, the data layer receives the operation instruction after the classification management transmitted by the service layer and converts the operation instruction into a data processing operation instruction. Then, the data layer transmits the processing operation instruction to the database so as to perform corresponding operation on the data information in the database. On the other hand, the data layer receives feedback information corresponding to the user operation instruction transmitted by the database, and then transmits the feedback information to the service layer. Preferably, the design and operation of the data layer adopt a block link technology, so that the privacy of information on the block link, the security of data and the non-tamper property are ensured.
The designer stores the operation instructions related to the database in the form of data on the block chain network formed by mutually linking all the nodes of the block chain, and any node in the block chain network can acquire the instructions related to the database operation. In the invention, each instruction for database operation is recorded into one transaction, namely one transaction corresponds to one database operation, and the blockchain network records all operations for the database in a transaction mode. In the nodes on the blockchain network, a part of nodes have a link relation with the database, and the nodes record the transaction and complete the operation on the database according to the related instruction. Preferably, there is at least one of these nodes. And the data layer transmits the data processing operation instruction to the database through the nodes, and in addition, the data layer also transmits feedback information corresponding to the user operation instruction by the database to the service layer through the nodes. There is no link relation between the other part of nodes in the block chain network and the database, and the nodes record the transaction only to the block of the node. Each node in the block chain network can search and acquire all transaction contents stored on the block chain network, and when a certain node is abnormal, information in the whole block chain network cannot be lost or changed, so that the completeness, safety and recoverability of the information are ensured.
In one embodiment of the invention, the logging module is interlinked with the business layer and the data layer. The method records the operation related to the classification management in the service layer, and arranges and stores the recorded result. In addition, the log recording module also records the related conversion operation of the user operation command related to the data layer and the transmission operation of the feedback information corresponding to the user operation command, and arranges and stores the recorded result.
In the process of data interaction between a user and a back-end database through the front-end interface, the Authority control module manages the Authority of the user, the Authority control module adopts a certificate Authority technology (Certification Authority), when the user sends a transaction request, the Authority control module carries information of a CA (certificate Authority) in the transaction request sent by a Chain L og API, and the certificate is verified through a Chain L og node program.
In a specific embodiment of the present invention, the database is used for storing data, on one hand, the database receives a database operation instruction transmitted by a block chain in a data layer, and operates the data in the database according to the database operation instruction, and preferably, the database can be subjected to operations of storing, adding, modifying, updating, searching, reading, writing and deleting data information.
In one embodiment of the invention, the operation environment module provides a stable environment for the operation of the log system. The whole set of system runs on an Ali cloud host server and adopts an independent server.
The invention adopts the block Chain technology, records all operation records of the database on the block Chain network, and does not change the record on the block Chain network when the database is changed independently, the irreplaceable modification of the block Chain network transaction determines that the Chain L og data can not be tampered.
The invention adopts the block chain technology to record the transaction record in the block chain network, ensures that the data information can not be falsified and forged, and effectively realizes the integrity of the assets, the authenticity of the contents and the performability of the digital assets.
The application of the invention establishes a non-falsifiable, safe, consistent and low-cost multi-active database system, reduces IT resources and funds invested by enterprises, and improves the operation efficiency of the database.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A blockchain based log system, comprising:
the system comprises a front-end user interface, a log system and a server, wherein the front-end user interface is an interface for interaction between a user and the log system, receives an operation instruction input by the user or presents feedback information of the log system to the operation instruction to the user;
the display layer receives and transmits the operation instruction input by the front-end user interface, or receives the feedback information and transmits the feedback information to the front-end user interface;
the business layer receives the operation instruction transmitted by the display layer and carries out classified management on the operation instruction, the business layer transmits the operation instruction after the classified management, or the business layer receives the feedback information and carries out the classified management on the feedback information, and the business layer transmits the feedback information after the classified management to the display layer;
the data layer receives the managed operation instruction and converts the operation instruction into a data processing operation instruction, the data layer transmits the data processing operation instruction, or the data layer receives the feedback information and transmits the feedback information to the service layer, and the design and the operation of the data layer adopt a block chain technology;
the database is used for storing data, receiving the database operation instruction, operating the data in the database according to the database operation instruction to generate the feedback information, and transmitting the feedback information to the data layer; and
and the running environment module is used for providing a stable environment for the running of the log system.
2. The blockchain-based log system of claim 1, wherein the nodes of the blockchain are linked to each other to form a blockchain network, the blockchain network stores the database operation related instructions in the form of data, and any one node of the blockchain can obtain the database operation related instructions.
3. The blockchain-based log system of claim 1, wherein the data layer transmits the data processing operation instructions or the feedback information through a node of a blockchain linked with the database.
4. The blockchain based log system of claim 3 wherein the database has at least one node to link with the blockchain.
5. The blockchain-based logging system of claim 1, further comprising a logging module that records operations related to the classification management in the service layer and related conversion operations of the operation instructions in the data layer, and sorts and stores the recorded results.
6. The blockchain-based log system of claim 1 further comprising an entitlement control module that manages user entitlements when the database interacts with the front end user interface.
7. The blockchain based log system of claim 6 wherein the entitlement control module manages the user entitlements using certificate authority technology.
8. The blockchain-based log system of claim 1 wherein the classification management in the business layer includes content management, user management, system settings, statement management, system log run state management.
9. The blockchain-based log system of claim 1, wherein the log system runs on an Ali cloud host server and employs a separate server.
10. The blockchain-based log system of claim 1 wherein the database includes MySQ L, SQ L ite, MongoDB, Oracle, DB2, HBase.
CN202010278881.9A 2020-04-10 2020-04-10 Log system based on block chain Pending CN111427869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010278881.9A CN111427869A (en) 2020-04-10 2020-04-10 Log system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010278881.9A CN111427869A (en) 2020-04-10 2020-04-10 Log system based on block chain

Publications (1)

Publication Number Publication Date
CN111427869A true CN111427869A (en) 2020-07-17

Family

ID=71552484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010278881.9A Pending CN111427869A (en) 2020-04-10 2020-04-10 Log system based on block chain

Country Status (1)

Country Link
CN (1) CN111427869A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667641A (en) * 2021-01-05 2021-04-16 中钞信用卡产业发展有限公司 Database system capable of recording addition, deletion and modification operations and implementation method
CN112732829A (en) * 2020-12-28 2021-04-30 中国科学院计算技术研究所 Data transaction system and method
CN114756902A (en) * 2022-04-11 2022-07-15 敏于行(北京)科技有限公司 Security audit method and device for efficient trusted structured database

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228344A (en) * 2016-07-28 2016-12-14 杭州云象网络技术有限公司 A kind of electronic government affairs system building method based on block chain technology
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107483446A (en) * 2017-08-23 2017-12-15 上海点融信息科技有限责任公司 Encryption method, equipment and system for block chain
CN108876380A (en) * 2018-08-07 2018-11-23 阿里巴巴集团控股有限公司 A kind of method of commerce and system for depositing card based on centralization clearing and block chain
CN109002527A (en) * 2018-07-13 2018-12-14 江苏开放大学(江苏城市职业学院) A method of its management online exam of network test system and utilization based on block chain
CN110781525A (en) * 2019-11-22 2020-02-11 中国科学院深圳先进技术研究院 File information security management system and method based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106228344A (en) * 2016-07-28 2016-12-14 杭州云象网络技术有限公司 A kind of electronic government affairs system building method based on block chain technology
CN107239479A (en) * 2017-03-28 2017-10-10 阿里巴巴集团控股有限公司 A kind of method and device of data storage and inquiry based on block chain
CN107483446A (en) * 2017-08-23 2017-12-15 上海点融信息科技有限责任公司 Encryption method, equipment and system for block chain
CN109002527A (en) * 2018-07-13 2018-12-14 江苏开放大学(江苏城市职业学院) A method of its management online exam of network test system and utilization based on block chain
CN108876380A (en) * 2018-08-07 2018-11-23 阿里巴巴集团控股有限公司 A kind of method of commerce and system for depositing card based on centralization clearing and block chain
CN110781525A (en) * 2019-11-22 2020-02-11 中国科学院深圳先进技术研究院 File information security management system and method based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732829A (en) * 2020-12-28 2021-04-30 中国科学院计算技术研究所 Data transaction system and method
CN112732829B (en) * 2020-12-28 2024-01-09 中国科学院计算技术研究所 Data transaction system and method
CN112667641A (en) * 2021-01-05 2021-04-16 中钞信用卡产业发展有限公司 Database system capable of recording addition, deletion and modification operations and implementation method
CN114756902A (en) * 2022-04-11 2022-07-15 敏于行(北京)科技有限公司 Security audit method and device for efficient trusted structured database

Similar Documents

Publication Publication Date Title
CN109492991B (en) Intelligent integrated management system for power distribution project construction
CN111427869A (en) Log system based on block chain
CN110134674B (en) Currency credit big data monitoring and analyzing system
CN103838847A (en) Data organization method oriented to sea-cloud collaboration network computing network
CN110278211A (en) A kind of data checking method and device based on block chain
CN105956029B (en) Mix the data access method under storage architecture
CN112270550A (en) New energy electric power source tracing method and system based on block chain
CN112687097A (en) Highway highway section level data center platform system
CN104657903A (en) Compressive guarantee system for equipment based on IETM
CN110110005B (en) Block chain-based key information basic data asset management and control method
CN107103448A (en) Data integrated system based on workflow
CN114218218A (en) Data processing method, device and equipment based on data warehouse and storage medium
CN104731596A (en) Classification compiling method supporting several persons to online compile XBRL
US20230344813A1 (en) Method and system for securing asset data in a computing environment
CN111444262A (en) Electric power data sharing system based on block chain
CN111144133B (en) System and method for modifying and tracing translation manuscript keyword based on block chain
CN112883413A (en) Intelligent management method for IT asset data in power grid enterprise
CN112150042A (en) Planning review management method and system based on micro application and micro service architecture
Chen Design of Computer Multimedia Intelligent Platform Using Big Data Analysis
CN110109949A (en) Social credibility information service platform
Haug Bad big data science
CN1988475A (en) Data integrating method for logic isomeric system in counterpart network
CN109739870A (en) A kind of inquiry system for the network information
CN210605805U (en) Industrial and commercial administrative management service platform system
Liu et al. Design of Data Interchange Platform for Digital Highway

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: 20200717