CN112835985B - Spatial data sharing system and method based on distributed account book - Google Patents

Spatial data sharing system and method based on distributed account book Download PDF

Info

Publication number
CN112835985B
CN112835985B CN202110269302.9A CN202110269302A CN112835985B CN 112835985 B CN112835985 B CN 112835985B CN 202110269302 A CN202110269302 A CN 202110269302A CN 112835985 B CN112835985 B CN 112835985B
Authority
CN
China
Prior art keywords
data
user
management module
information
database
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.)
Active
Application number
CN202110269302.9A
Other languages
Chinese (zh)
Other versions
CN112835985A (en
Inventor
耿江屹
高晨婧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hubei Xingdi Intelligent Chain Technology Co ltd
Original Assignee
Hubei Xingdi Intelligent Chain Technology 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 Hubei Xingdi Intelligent Chain Technology Co ltd filed Critical Hubei Xingdi Intelligent Chain Technology Co ltd
Priority to CN202110269302.9A priority Critical patent/CN112835985B/en
Publication of CN112835985A publication Critical patent/CN112835985A/en
Application granted granted Critical
Publication of CN112835985B publication Critical patent/CN112835985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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

Abstract

The invention belongs to the technical field of spatial information storage, and discloses a spatial data sharing system and a method based on a distributed account book, wherein the spatial data sharing system based on the distributed account book comprises the following components: the system function module of the system application layer and the service layer and the data storage module of the data storage access layer; the system function module comprises: the system comprises an account information management module, a block chain network management module, a transaction record management module and a data quality management module. The invention adopts a method of combining a block chain technology and spatial data sharing to realize a distributed storage system integrating spatial data distribution, sharing and recording; the authenticity and the safety of space data sharing records are guaranteed by the aid of the characteristic that block chain account book data cannot be tampered; the transparency of data flow is increased by utilizing the distributed technical characteristics, the authenticity and the safety of data distribution, sharing and recording are realized, and the problems of single-point failure, data tampering and data tracing in the past are solved.

Description

Spatial data sharing system and method based on distributed account book
Technical Field
The invention belongs to the technical field of spatial information storage, and particularly relates to a spatial data sharing system and method based on a distributed account book.
Background
At present, the rise of the internet industry has brought human beings into an unprecedented information age. The 21 st century is most valuable not only for technology but also for data. The method is characterized in that the human beings explore massive geographic spatial data related to ecological geography, earth science, human life and the like through a day-to-day technology, and carry out multi-field and all-around analysis processing on the acquired spatial data, so that the problems of resource utilization, environmental safety, natural disasters and the like faced at present are solved. Therefore, creating value by analyzing and processing spatial data is a hot spot of current research. The space data is often huge in data volume and complex in data format, so that space data ports in different regions and different industries are mutually independent to form a data island.
In order to break down the hedge, save resources, and expand the data utilization range and value, it is increasingly urgent to connect each "data island" to realize spatial data sharing. In the past, a central node is usually established to process a data sharing request, and the centralized mode has the advantages of convenience in construction, easiness in management, high efficiency and the like, but has the defects of concentrated power, easiness in attack, low fault tolerance, difficulty in tracing and the like.
The "bit currency" published by Zhongben smart (famous name) in 2008: a point-to-point electronic cash system firstly proposes a bit coin, which marks the birth of a block chain technology. The research and application of the block chain technology are driven to the climax by the bit currency digital currency system, and more mature block chain platforms such as an Ethereum platform, a HyperLedger platform, a LISK platform and the like are continuously generated. The great potential of blockchain technology has attracted attention from all walks of life, and these increasingly mature platforms have accelerated the application of blockchain technology to real production life. The blockchain technology has the characteristics of decentralization, non-falsification, data traceability and the like, and the birth and maturity of the blockchain technology provide a new way for overcoming the defects of the traditional data sharing mode.
Through the above analysis, the problems and defects of the prior art are as follows: the existing method for processing the data sharing request by establishing a central node has the problems of centralized power, single-point failure, vulnerability, data tampering, low fault tolerance, difficult traceability and the like.
The difficulty in solving the above problems and defects is:
the spatial data has the characteristics of huge data volume, high data timeliness, strong privacy, wide application field and the like. However, the traditional data sharing mode cannot meet the new requirement of spatial data sharing, and a safe and convenient spatial data sharing system is designed and researched at home and abroad all the time.
The significance of solving the problems and the defects is as follows:
aiming at the problems that an existing spatial data sharing platform is vulnerable and difficult to trace, a block chain technology and spatial data sharing are combined, and the spatial data sharing platform based on the block chain technology is designed, so that distributed storage of spatial data distribution sharing records is achieved, authenticity and safety of the data distribution sharing records are achieved, and the problems that single-point faults exist in the past and data are prone to being tampered and difficult to trace are solved.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a spatial data sharing system and method based on a distributed account book.
The invention is realized in this way, a spatial data sharing system based on a distributed account book, the spatial data sharing system based on the distributed account book includes: the system function module of the system application layer and the service layer and the data storage module of the data storage access layer;
the system function module is used for being responsible for interaction between a user and a system, comprises a front-end browser page corresponding to each function module in system service, provides various application interfaces for the whole system upwards, and accesses stored data downwards;
the data storage module is divided into a DataBase traditional DataBase and a Fabric Block chain DataBase, and the DataBase traditional DataBase is used for storing data with low privacy; the Fabric blockchain database is used for storing important data including transaction records, designing a field table for data storage aiming at each functional module in the system and standardizing the content required by data information in the system.
Further, the system function module includes: the system comprises an account information management module, a block chain network management module, a transaction record management module and a data quality management module;
the account information management module is used for managing three role users of the system, and can create a data issuing organization user, check and check account information of a registered data subscription user, and edit and inquire user information;
the block chain network management module is used for managing the Fabric alliance chain network, and comprises management of alliance chain network nodes, deployment and upgrade of intelligent contracts and management of block chain channels;
the transaction record management module is used for storing the transaction record in an uplink and inquiring the transaction record data after each transaction is generated;
and the data quality management module is used for storing and inquiring the spatial data description information, storing the data quality evaluation information and periodically analyzing.
Further, in the account information management module, the three roles include: data publishing authority users, data subscribing users and administrator users.
Further, the account information management module comprises account management and role auditing; wherein, the role audit is divided into the following two types:
(1) after the user who applies to become the spatial data issuing organization is audited, a new issuing organization user is created by an administrator, and the user can set and modify the system password by himself;
(2) after the user who applies for the space data subscriber fills in information in the system and submits registration, the administrator can successfully register the on-line auditor.
Further, the management of the network nodes in the blockchain network management module comprises addition and deletion of an order node and a Peer node and authority management of each node; the channel management means that an administrator can create a channel, join the channel and update the channel; the module is mainly responsible for the management of intelligent contracts, wherein the intelligent contracts are service logic agreements agreed among network members; in Fabric, the intelligent contract is operated in an independent Docker container, and the ledger data can be updated only after the result of executing the intelligent contract is agreed.
Furthermore, in the transaction record management module, the Fabric alliance chain is responsible for the distributed storage of the data sharing transaction record and comprises two parts, wherein one part is the interaction between the user and the client, and the other part is the interaction between the client and the alliance chain; the client side is composed of a front-end page and a back-end service.
Further, the data quality management module stores the spatial data description information and the evaluation information of the spatial data by the data subscriber by adopting a traditional MySQL database; the information has no strong privacy, and is generally open to all users in the system, so that a centralized database is adopted to relieve pressure for the alliance chain.
Furthermore, the data storage module builds a Fabric alliance chain in the system based on the data exchange book storage technology of the Fabric Block chain, monitors the data exchange behavior and records the data exchange book, designs a transaction record data format, and realizes account book rich query through the metadata ID and the ID information of both sides of the data exchange; the method of combining a block chain CouchDB database with a common database is adopted to store the information in a classified manner; designing an intelligent contract to realize the functions of data exchange record storage and query, data correctness verification, data source tracing and ledger synchronization; and designing an efficient and safe consensus mechanism which is respectively used for consensus among the block chain nodes in the network and consensus of cross-network account book synchronization.
Further, the DataBase traditional DataBase is used for storing data with low privacy, the system function module configures a traditional relational DataBase for storage, and a field table for storing the following data is designed: a system administrator user table, a data publisher mechanism user table, a data subscription user table, a spatial data description information table and a data quality evaluation information table; the Fabric blockchain database is used for storing important data such as transaction records and the like, and a blockchain transaction information table is designed for storage.
Another object of the present invention is to provide a spatial data sharing method based on a distributed ledger, which applies the spatial data sharing system based on a distributed ledger, and the spatial data sharing method based on a distributed ledger comprises the following steps:
step one, the system initiates a transaction proposal request to an endorsement node through Google remote process call;
step two, the endorsement node creates or starts an intelligent contract container through an application interface of the Docker container;
step three, the intelligent contract container establishes connection with the endorsement node through the system;
step four, executing the intelligent contract in the Docker container;
step five, after the intelligent contract execution is finished, calling the ESCC endorsement of the endorsement node to endorse the simulation execution result;
step six, returning an ECSS endorsement result;
and step seven, returning a transaction proposal calling result.
(1) Downloading relevant docker images from docker official image library and loading (fabric-cordidb, fabric-orderer, fabric-tools, fabric-peer, fabric-baseos, fabric-ccenv, fabric-kafka, fabric-ca)
(2) Download hyper-account project source code (Hyperhedger Fabric V1.1.0) through Github;
(3) a crypto-config.yaml file is configured. The file is used for configuring related information of an organization and nodes, and two organizations are configured in the system, wherein each organization comprises two Peer nodes;
(4) reading the configuration file crypt-config.yaml in the step (2) through cryptogen to generate a node certificate and a private key file;
(5) channel members, consensus patterns, block sizes, etc. are configured in configx.yaml, and then the configuration file is read by the configxgen program, thereby generating a created block and a channel configuration block.
(6) Configuring a docker-composition file, wherein the docker-composition file comprises a mapping relation between nodes and dockers;
(7) starting the peer and orderer containers through the docker-composition file;
(8) a channel, named mychannel, is created and an associated node is added to the channel.
It is a further object of the invention to provide a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
step 1, the system initiates a transaction proposal request to an endorsement node through Google remote process call;
step 2, the endorsement node creates or starts an intelligent contract container through an application interface of the Docker container;
step 3, the intelligent contract container establishes connection with the endorsement node through the system;
step 4, executing the intelligent contract in the Docker container;
step 5, after the execution of the intelligent contract is finished, calling the ESCC endorsement of the endorsement node to endorse the simulation execution result;
step 6, returning an ECSS endorsement result;
and 7, returning a transaction proposal calling result.
Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to execute the method for spatial data sharing based on a distributed ledger.
Another object of the present invention is to provide an information data processing terminal including a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, causing the processor to execute the distributed ledger-based spatial data sharing method.
By combining all the technical schemes, the invention has the advantages and positive effects that: the invention provides a spatial data sharing system based on a HyperLedger Fabric platform by applying a block chain technology to the spatial data sharing system. The system ensures the authenticity and the safety of space data sharing records by utilizing the characteristic that block chain account book data cannot be tampered; the transparency of data flow is increased by using the distributed technology feature. Therefore, the realization of the spatial data sharing system based on the distributed account book technology to solve the problems of single-point failure, data safety and the like is significant.
The invention adopts a method of combining the block chain technology and the spatial data sharing, designs a spatial data sharing platform based on the block chain technology, and realizes a distributed storage system integrating spatial data distribution, sharing and recording, thereby realizing the authenticity and safety of data distribution, sharing and recording and solving the problems of single-point failure, data tampering and data tracing existing in the past. Compared with the prior art, the invention also has the following advantages and positive effects:
(1) the method comprises the steps that a Fabric alliance chain is built in a network based on a data exchange account book storage technology of the Fabric blockchain, data exchange behaviors are monitored, and a data exchange account book is recorded; a transaction record data format is designed, and account book rich query is realized through information such as metadata ID and ID of both data exchange parties; and a method of combining the block chain CouchDB database and a common database is adopted to store the information in a classified manner, so that the working efficiency of the alliance chain is improved.
(2) According to the intelligent contract and the consensus mechanism stored in the data exchange ledger, the intelligent contract is designed to realize the functions of data exchange record storage and inquiry, data correctness verification, data source tracing, ledger synchronization and the like. And an efficient and safe consensus mechanism is also designed and is respectively used for consensus among the block chain nodes in the network and consensus of cross-network account book synchronization.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a general architecture diagram of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
Fig. 3 is a flowchart of a user subscribing to administrator audit data according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of an interaction process between a system foreground and an intelligent contract according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of an intelligent contract management module provided by an embodiment of the invention.
Fig. 6 is a workflow sequence diagram of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
Fig. 7 is an entity E-R diagram of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
Fig. 8 is a flowchart of a spatial data sharing method based on a distributed ledger according to an embodiment of the present invention.
Fig. 9 is a diagram of a data quality evaluation submission page provided by an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In view of the problems in the prior art, the present invention provides a spatial data sharing system and method based on a distributed ledger, which are described in detail below with reference to the accompanying drawings.
As shown in fig. 8, the spatial data sharing method based on a distributed ledger provided in the embodiment of the present invention includes the following steps:
s101, the system initiates a transaction proposal request to an endorsement node through Google remote process call;
s102, the endorsement node creates or starts an intelligent contract container through an application interface of the Docker container;
s103, the intelligent contract container is connected with the endorsement node through the system;
s104, executing an intelligent contract in the Docker container;
s105, after the intelligent contract is executed, calling the ESCC endorsement of the endorsement node to endorse the simulation execution result;
s106, returning an ECSS endorsement result;
and S107, returning a transaction proposal calling result.
The present invention will be further described with reference to the following examples.
The spatial data sharing system based on the distributed account book comprises a system function module of a system application layer and a business layer and a data storage module of a data storage access layer; the system function module is responsible for interaction between a user and the system, and mainly comprises a front-end browser page corresponding to each function module in system service, and provides various application interfaces for the whole system upwards, and accesses stored data downwards. The system architecture diagram is shown in fig. 1.
The system function module comprises an account information management module, a block chain network management module, a transaction record management module and a data quality management module. A functional block diagram of the system is shown in fig. 2.
The account information management module: the system is mainly responsible for managing three role users (a data publishing mechanism user, a data subscribing user and an administrator user) of the system, and can create the data publishing mechanism user, check and check account information of a registered data subscribing user, edit and inquire user information; the block chain network management module: the method is mainly responsible for managing the Fabric alliance link network, and comprises management of alliance link network nodes, deployment and upgrading of intelligent contracts, management of block link channels and the like. The transaction record management module: the system is mainly responsible for chain storage of transaction records and query of transaction record data after each transaction is generated; the data quality management module: the system is mainly responsible for storage and query of spatial data description information, storage of data quality evaluation information and periodic analysis.
The account information management module mainly comprises account management and role auditing. Role auditing is divided into two types: (1) after the user who applies to become the spatial data issuing organization is audited, a new issuing organization user is created by an administrator, and the user can set and modify the system password by himself. (2) After the user who applies for the space data subscriber fills in information in the system and submits registration, the administrator can successfully register the on-line auditor. The process of auditing data subscribing users by the administrator is shown in fig. 3. In order to avoid that malicious users damage the system or damage the benefits of a space data publisher, the system records violation of malicious operations, counterfeiting, loss of credit and other users and suspends accounts at regular intervals, and re-registration and audit are required. Therefore, after the administrator checks the certificate information of the registered user, the administrator needs to inquire whether the illegal record exceeds 3 times, and if so, the registration is rejected. Through the intervention mechanism, the problem that a decentralized system is not supervised is solved, and the good environment of the spatial data sharing platform is guaranteed.
The block chain network management module mainly comprises management of network nodes, management of intelligent contracts and channel management. The management of the network nodes comprises addition and deletion of Orderer and Peer nodes and authority management of each node. Channel management mainly means that an administrator can create a channel, join a channel, and update a channel. The module is mainly responsible for the management of intelligent contracts. An intelligent contract is a business logic agreement agreed upon between network members. In Fabric, the invention runs the intelligent contract in an independent Docker container, and the ledger data can be updated only after the result of executing the intelligent contract is agreed.
The transaction record management module is mainly responsible for storing the transaction record uplink and inquiring the transaction record data after each transaction is generated. In the present invention, the Fabric federation chain is responsible for the distributed storage of data sharing transaction records. The process is mainly divided into two parts, wherein one part is the interaction between a user and a client (the client in the system is composed of a front-end page and a back-end service), and the other part is the interaction between the client and a alliance chain. In the embodiment of the present invention, a time sequence process of a certain data issuing organization user generating a successful transaction, storing a transaction record and querying in the system is shown in fig. 6. After the data publishing mechanism user logs in the system, a data sharing agreement is achieved with the data subscribing user, and a successful data sharing transaction is carried out. When the data subscription user downloads the data, namely representing the successful transaction, a transaction success request is sent to the Web client, and the remote server of the client is responsible for calculating the hash value of the source data file and returning the hash value to the user. And then the system automatically calls a transaction record uploading interface, the client calls an intelligent alliance-link contract to carry out uplink storage, and a storage result is returned to the user. When a user inquires the transaction record, the client calls the inquiry method corresponding to the intelligent contract of the alliance chain and returns the inquiry result to the user.
The data quality management module mainly adopts a traditional MySQL database to store the spatial data description information and the evaluation information of the data subscriber to the spatial data. The information has no strong privacy, and is generally open to all users in the system, so that a centralized database is adopted to relieve pressure for the alliance chain.
According to the design of the system module, the object entities of the system can be divided into a system administrator, a data publishing mechanism user, a data subscribing user, spatial data description information, data quality evaluation information and data transaction record information, and the relationship E-R diagram among the entities is shown in FIG. 7. The system administrator can create a plurality of data publishing mechanism users and also can check registration applications of a plurality of data subscribing users. The data publishing organization user can submit the spatial data description information to be published by the organization, and can also check all the spatial data description information and the data quality information. In addition, the data issuing organization user can inquire the data transaction record information. The data subscribing user can inquire the spatial data description information published on the platform and can also submit the quality evaluation information of the subscribed data. In addition, the data subscriber user can check the quality evaluation information of all the data of the platform and inquire the transaction record information of the data subscriber user.
The data storage module is divided into a DataBase traditional DataBase and a Fabric Block chain DataBase, the DataBase traditional DataBase is used for storing data with low privacy, the Fabric Block chain DataBase is used for storing important data such as transaction records and the like, a field table for data storage is designed for each functional module in the system, and contents required by data information in the system are standardized.
(1) System administrator user meter (see table 1)
Table 1 system administrator user table
Figure BDA0002973561040000101
Figure BDA0002973561040000111
(2) User meter of data issuing organization (see table 2)
Table 2 user table of data issuing side organization
Figure BDA0002973561040000112
(3) Data subscription user table (see table 3)
Table 3 data subscription user table
Figure BDA0002973561040000113
(4) Spatial data description information table (see table 4)
Table 4 spatial data description information table
Figure BDA0002973561040000121
(5) Data quality evaluation information table (see table 5)
Table 5 data quality evaluation information table
Figure BDA0002973561040000122
(6) Block chain transaction information table design (see table 6)
TABLE 6 blockchain transaction information table design
Figure BDA0002973561040000131
The DataBase legacy DataBase is used to store less private data. The Fabric blockchain database is used for storing important data such as transaction records. The data storage module is based on the data exchange account book storage technology of the Fabric Block chain. And (4) setting up a Fabric alliance chain in the system, monitoring the data exchange behavior and recording a data exchange account book. And designing a transaction record data format to realize account book rich query through information such as metadata ID and ID of both data exchange parties. And a method of combining the block chain CouchDB database with a common database is adopted to store the information in a classified manner, so that the working efficiency of the alliance chain is improved. And designing an intelligent contract to realize the functions of data exchange record storage and query, data correctness verification, data source tracing, account book synchronization and the like. And designing an efficient and safe consensus mechanism which is respectively used for consensus among the block chain nodes in the network and consensus of cross-network account book synchronization.
The spatial data sharing method based on the distributed account book provided by the embodiment of the invention comprises the following steps:
step 1: the system initiates a transaction proposal request to an endorsement node through Google remote procedure call;
step 2: the endorsement node creates or starts an intelligent contract container through an application interface of the Docker container;
and 3, step 3: the intelligent contract container establishes connection with the endorsement node through the system;
and 4, step 4: executing an intelligent contract in the Docker container;
and 5: after the intelligent contract is executed, calling the ESCC endorsement of the endorsement node to endorse the simulation execution result;
step 6: returning an ECSS endorsement result;
and 7: and returning a transaction proposal calling result.
A flowchart of the method steps is shown in fig. 4.
The intelligent contracts are not fixed and unique, and an administrator can add and deploy new intelligent contracts or upgrade existing intelligent contracts based on the requirements of the data publisher and the data subscriber. In addition, both data publishing mechanism users and data subscribing users can view detailed information of the current intelligent contract in the system. In the blockchain network management module, the functions included in the intelligent contract management are as shown in fig. 5. Deploying intelligent contracts: mainly comprises registering and uploading new contracts and revoking outdated contracts. The intelligent contract of the system is written by Java language, and the endorsement node is responsible for installation and management according to the life cycle of the intelligent contract (packing → installation → instantiation → upgrading). Inquiring intelligent contract information: all three role users in the system have the authority to inquire the deployed intelligent contract information, including the name, version, function and source code of the intelligent contract. Upgrading the intelligent contract: and updating and repairing the intelligent contract regularly according to the requirement change of the data publisher and the data subscriber.
Fig. 6 is a time sequence diagram of a workflow of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
Fig. 7 is an entity E-R diagram of a spatial data sharing system based on a distributed ledger according to an embodiment of the present invention.
The present invention is further described below with reference to application examples.
The back end of the system is developed by using Java language, an IDEA compiler is selected, and SpringBoot is used as a back end development framework. The detailed configuration of the system development environment is as follows:
Figure BDA0002973561040000141
the system utilizes a virtual machine technology to establish 5 network nodes which are respectively 1 order node and 4 Peer nodes, and the environment of each network node is as follows:
Figure BDA0002973561040000151
the system is a Fabric Block Link network in the experimental environment. The system creates 5 Linux virtual machines representing 5 network nodes, wherein the Linux virtual machines comprise 1 order service node and 4 Peer nodes, and the 4 Peer nodes are distributed in two organizations Org0 and Org 1. A channel mychannel is created between the two tissues.
After the environment is built, the intelligent contracts can be installed and instantiated on the nodes. The system back end uses Fabric-Java-SDK, so the interface is directly called for installation and instantiation without being carried out in a command line. Firstly packaging Java intelligent contracts and storing the Java intelligent contracts at the appointed positions of Peer nodes, then deploying SpringBoot application, configuring intelligent contract file addresses, and finally directly calling corresponding interfaces for installation and instantiation.
1. User management module
The module mainly comprises account management and user auditing. The user logs in and registers and modifies the user information through the front-end page, and the specific business logic is realized in the back-end service. The administrator user can check various information of the user at the front end, wherein a user auditing page is shown in the following figure, the administrator can check the data subscription user information applying for registration at the page, and the administrator can determine to approve or reject the data subscription user information by checking the related certificate pictures and the historical violation times.
2. Block chain management module
The module faces to an administrator and is mainly responsible for managing the Fabric Block Link network, and mainly comprises the management of network nodes, the management of intelligent contracts and the channel management. The management of the network nodes comprises addition and deletion of the order node and the Peer node and authority management of each node. Channel management mainly means that an administrator can create a channel, join a channel, and update a channel. All business logics are realized in the backend SpringBoot service, and only API interfaces are provided for the front-end page.
3. Transaction record management module
The module is mainly divided into the uplink storage of transaction records and the query of transaction records. In the spatial data sharing system based on the distributed ledger technology, a Fabric alliance chain is responsible for distributed storage of data sharing transaction records. The process is mainly divided into two parts, wherein one part is the interaction between a user and a client (the client in the system is composed of a front-end page and a back-end service), and the other part is the interaction between the client and a alliance chain. After a transaction is successful, the system will automatically call the corresponding interface stored on the transaction record uplink, which is completed by the back-end application and the blockchain network together.
When a user inquires the transaction records, the front end calls the corresponding inquiry interface, and the rear end is responsible for calling the query method of the intelligent contract to inquire and returning data to the front end.
4. Data quality evaluation management module
The module is mainly used for managing spatial data description information and data quality evaluation information released in a platform. The data related to the module is stored in the MySQL database, and when the front end calls interfaces for viewing or submitting and the like, the back end executes corresponding business logic and returns the business logic to the front end. The data quality evaluation submission page is shown in fig. 9.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, can be implemented in a computer program product that includes one or more computer instructions. When loaded or executed on a computer, cause the flow or functions according to embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.)). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only for the purpose of illustrating the present invention and the appended claims are not to be construed as limiting the scope of the invention, which is intended to cover all modifications, equivalents and improvements that are within the spirit and scope of the invention as defined by the appended claims.

Claims (3)

1. A spatial data sharing system based on a distributed ledger is characterized in that the spatial data sharing system based on the distributed ledger comprises:
the system function module is used for being responsible for interaction between a user and a system, comprises a front-end browser page corresponding to each function module in system service, provides various application interfaces for the whole system upwards, and accesses stored data downwards;
the data storage module comprises a DataBase traditional DataBase and a Fabric blockchain DataBase, wherein the DataBase traditional DataBase is used for storing data with low privacy; the Fabric block chain database is used for storing important data including transaction records, designing a field table for storing data for a system function module and standardizing contents required by data information in the system;
the system function module comprises: the system comprises an account information management module, a block chain network management module, a transaction record management module and a data quality management module;
the account information management module is used for managing three role users of the system, and can create a data issuing organization user, check and check account information of a registered data subscription user, and edit and inquire user information;
the block chain network management module is used for managing the Fabric alliance chain network, and comprises management of alliance chain network nodes, deployment and upgrade of intelligent contracts and management of block chain channels;
the transaction record management module is used for storing the transaction record in an uplink and inquiring the transaction record data after each transaction is generated;
the data quality management module is used for storing and inquiring spatial data description information, storing data quality evaluation information and periodically analyzing the data quality evaluation information;
in the account information management module, the three roles include: a data publishing mechanism user, a data subscribing user and an administrator user;
the account information management module comprises account management and role auditing; wherein, the role audit is divided into the following two types:
(1) after the user who applies to become the spatial data issuing organization is audited, a new issuing organization user is created by an administrator, and the user can set and modify the system password by himself;
(2) after the user who applies for the space data subscriber fills in information in the system and submits registration, the administrator can successfully register the on-line auditor;
the management of the network nodes in the block chain network management module comprises the addition and deletion of an order node and a Peer node and the authority management of each node; the channel management means that an administrator can create a channel, join the channel and update the channel; the module is responsible for the management of intelligent contracts, which are business logic agreements agreed between network members; in Fabric, running an intelligent contract in an independent Docker container, and updating the ledger data only after the result of executing the intelligent contract is agreed;
in the transaction record management module, the Fabric alliance chain is responsible for distributed storage of data sharing transaction records, and comprises interaction between a user and a client, and interaction between the client and the alliance chain; the client side consists of a front-end page and a back-end service;
the data quality management module stores the spatial data description information and the evaluation information of the spatial data by the data subscriber by adopting a MySQL database.
2. The spatial data sharing system based on a distributed ledger of claim 1, wherein the data storage module builds a Fabric alliance chain in the system based on a Fabric block chain data exchange ledger storage technology, monitors data exchange behaviors and records a data exchange ledger, designs a transaction record data format, and realizes ledger rich query through metadata ID and ID information of both data exchanges; the method of combining the block chain CouchDB database with a common database is adopted to store the information in a classified manner; designing an intelligent contract to realize the functions of data exchange record storage and query, data correctness verification, data source tracing and ledger synchronization; and designing an efficient and safe consensus mechanism which is respectively used for consensus among the block chain nodes in the network and consensus of cross-network account book synchronization.
3. The distributed ledger-based spatial data sharing system of claim 1, wherein the DataBase legacy DataBase is used to store less private data, the system function module configures a legacy relational DataBase for storage, and designs a field table for the following data storage: the system comprises a system administrator user table, a data publisher mechanism user table, a data subscription user table, a spatial data description information table and a data quality evaluation information table; the Fabric blockchain database is used for storing transaction records, and a blockchain transaction information table is designed for storage.
CN202110269302.9A 2021-03-12 2021-03-12 Spatial data sharing system and method based on distributed account book Active CN112835985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110269302.9A CN112835985B (en) 2021-03-12 2021-03-12 Spatial data sharing system and method based on distributed account book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110269302.9A CN112835985B (en) 2021-03-12 2021-03-12 Spatial data sharing system and method based on distributed account book

Publications (2)

Publication Number Publication Date
CN112835985A CN112835985A (en) 2021-05-25
CN112835985B true CN112835985B (en) 2022-07-05

Family

ID=75930121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110269302.9A Active CN112835985B (en) 2021-03-12 2021-03-12 Spatial data sharing system and method based on distributed account book

Country Status (1)

Country Link
CN (1) CN112835985B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420083B (en) * 2021-06-02 2024-03-19 湖南大学 System with heterogeneous parallel block chain structure of extensible distributed ledger
CN113555084A (en) * 2021-07-27 2021-10-26 广东食品药品职业学院 Healthy diet management system and method based on block chain
CN113781221A (en) * 2021-09-07 2021-12-10 中国电子科技集团公司第五十四研究所 Space data cross-network tracing method based on block chain cross-chain technology

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274573A (en) * 2018-07-12 2019-01-25 华泰证券股份有限公司 A kind of immediate news systems, method and application for merging block chain technology
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN111429322A (en) * 2020-04-23 2020-07-17 重庆邮电大学 Academic degree certificate credible management system based on alliance chain
CN111767168A (en) * 2020-06-23 2020-10-13 江苏荣泽信息科技股份有限公司 Block chain-based storage system convenient for data backtracking
US20210073805A1 (en) * 2019-09-09 2021-03-11 TBOL, Inc. Embedded data transaction exchange platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10013573B2 (en) * 2015-12-16 2018-07-03 International Business Machines Corporation Personal ledger blockchain
CN110717825B (en) * 2018-06-27 2023-04-07 复旦大学 Distributed data transaction accounting system based on block chain
CN111241205B (en) * 2020-04-26 2021-03-09 北京启迪区块链科技发展有限公司 Federation block chain bottom layer based trusted data synchronization method, network structure and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274573A (en) * 2018-07-12 2019-01-25 华泰证券股份有限公司 A kind of immediate news systems, method and application for merging block chain technology
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
US20210073805A1 (en) * 2019-09-09 2021-03-11 TBOL, Inc. Embedded data transaction exchange platform
CN111429322A (en) * 2020-04-23 2020-07-17 重庆邮电大学 Academic degree certificate credible management system based on alliance chain
CN111767168A (en) * 2020-06-23 2020-10-13 江苏荣泽信息科技股份有限公司 Block chain-based storage system convenient for data backtracking

Also Published As

Publication number Publication date
CN112835985A (en) 2021-05-25

Similar Documents

Publication Publication Date Title
US11789933B2 (en) System and method for a hybrid contract execution environment
CN110288307B (en) Intelligent contract collaborative development system and data processing method based on Fabric Block chain
CN112835985B (en) Spatial data sharing system and method based on distributed account book
López‐Pintado et al. Caterpillar: a business process execution engine on the Ethereum blockchain
US11699201B2 (en) System and method for blockchain-based network transitioned by a legal contract
CN104216912B (en) The implementation method and device of a kind of business form work fluidisation without intrusive mood
CN108965468A (en) Block chain network service platform and its chain code installation method, storage medium
JP2021533448A (en) Systems and methods to support SQL-based rich queries in hyperlegger fabric blockchain
US20220004539A1 (en) Privacy preserving architecture for permissioned blockchains
Six et al. Blockchain software patterns for the design of decentralized applications: A systematic literature review
CN108197895A (en) A kind of enterprise information system Rights Management System
CN109684375A (en) Method, accounting nodes and the medium of Transaction Information are inquired in block chain network
US20180091583A1 (en) Multi-party updates to distributed systems
CN113114498A (en) Architecture system of trusted block chain service platform and construction method thereof
CN101819551A (en) Method and system for recording service interaction data of enterprise message system
CN110417857A (en) Block chain protocol processes device, processing method and block chain
Evermann et al. Workflow management on proof-of-work blockchains: Implications and recommendations
Ariffin et al. The design and implementation of trade finance application based on hyperledger fabric permissioned blockchain platform
Xu et al. Model-driven engineering for blockchain applications
Lindquist et al. IBM service management architecture
CN111553496A (en) Electronic warranty list management system based on alliance block chain
US20220311595A1 (en) Reducing transaction aborts in execute-order-validate blockchain models
JP2022088326A (en) Method of selectively updating world state database in block chain network, system therefor, and computer program therefor
JP2023538497A (en) editable blockchain
Falazi et al. Blockchain-based collaborative development of application deployment models

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant