CN112214456A - House property data processing method and device and electronic equipment - Google Patents

House property data processing method and device and electronic equipment Download PDF

Info

Publication number
CN112214456A
CN112214456A CN202011225989.8A CN202011225989A CN112214456A CN 112214456 A CN112214456 A CN 112214456A CN 202011225989 A CN202011225989 A CN 202011225989A CN 112214456 A CN112214456 A CN 112214456A
Authority
CN
China
Prior art keywords
property file
hash value
property
file
storing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011225989.8A
Other languages
Chinese (zh)
Other versions
CN112214456B (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.)
Shenzhen Hanlan Blockchain Real Estate Co ltd
Original Assignee
Shenzhen Hanlan Blockchain Real Estate 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 Shenzhen Hanlan Blockchain Real Estate Co ltd filed Critical Shenzhen Hanlan Blockchain Real Estate Co ltd
Priority to CN202011225989.8A priority Critical patent/CN112214456B/en
Publication of CN112214456A publication Critical patent/CN112214456A/en
Application granted granted Critical
Publication of CN112214456B publication Critical patent/CN112214456B/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/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate

Abstract

The invention provides a real estate data processing method, a real estate data processing device and electronic equipment, which can store an index hash value obtained by hash calculation of a real estate file into a block chain system, perform hash calculation on a block address storing the index hash value of the real estate file to obtain a block address hash value, and store the calculated block address hash value into the block chain system as a latest update hash value, so that the real estate file is stored through an IPFS, and the index hash value of the real estate file and the block address storing the index hash value of the real estate file are managed through the block chain system interacting with the IPFS, thereby avoiding the defects of non-standard data storage, unreliability and difficulty in source tracing of the real estate project.

Description

House property data processing method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a real estate data processing method and device and electronic equipment.
Background
At present, in the project operation process of real estate enterprises, project periods are long, related industries are many, and the processes from development of real estate to decoration, property management, house leasing and the like are included. In these operation processes, a large amount of data is generated, and when project schedule management and related data report are involved, a large amount of complicated processes and works are often required for checking the authenticity of the data.
Usually, a large amount of data of the traditional property project is stored in a computer of a relevant party, and unified storage and management are not carried out; moreover, as the project scale is continuously enlarged, the requirement on the data authenticity is continuously improved, and a large amount of verification requirements on the authenticity and compliance of physical property files are met.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a method and an apparatus for processing property data, and an electronic device.
In a first aspect, an embodiment of the present invention provides a method for processing property data, including:
an Inter Platform File System (IPFS) acquires a property File to be stored, wherein the property File carries property File information; the property file information includes: property file name and property file size information;
when the size information of the property file indicates that the size of the property file is smaller than or equal to a property file size threshold value, storing the property file, performing hash calculation on the property file to obtain an index hash value of the property file, and storing the index hash value of the property file into a root file matched with the property file type of the property file;
when the size information of the property file indicates that the size of the property file is larger than the size threshold of the property file, storing the property file name of the property file, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain an index hash value of the property file, establishing a corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file;
storing the index hash value of the property file obtained by calculation into a blockchain system, and obtaining a blockchain address fed back by the blockchain system and storing the index hash value of the property file;
and carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value as the latest updated hash value in a block chain system.
In a second aspect, an embodiment of the present invention further provides a real estate data processing apparatus, including:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a property file to be stored, and the property file carries property file information; the property file information includes: property file name and property file size information;
the first processing module is used for storing the property file when the property file size information indicates that the size of the property file is smaller than or equal to a property file size threshold, performing hash calculation on the property file to obtain an index hash value of the property file, and storing the index hash value of the property file into a root file matched with the property file type of the property file;
the second processing module is used for storing the property file name of the property file when the property file size information indicates that the size of the property file is larger than the property file size threshold, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain an index hash value of the property file, establishing a corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file;
the first storage module is used for storing the index hash value of the property file obtained by calculation into a block chain system and obtaining a block address which is fed back by the block chain system and used for storing the index hash value of the property file;
and the second storage module is used for carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value serving as the latest updated hash value into the block chain system.
In a third aspect, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the method in the first aspect.
In a fourth aspect, embodiments of the present invention also provide an electronic device, which includes a memory, a processor, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor to perform the steps of the method according to the first aspect.
In the solutions provided in the first to fourth aspects of the embodiments of the present invention, when a property file to be stored is obtained, the IPFS stores and performs hash calculation on the property file to obtain an index hash value of the property file, stores the index hash value of the property file into a root property file matching the property file type of the property file, stores the index hash value of the property file obtained by calculation into the blockchain system, then obtains a block address fed back by the blockchain system and storing the index hash value of the property file, performs hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and stores the block address hash value obtained by calculation into the blockchain system as a latest updated hash value, compared with a manner in which a large amount of data of a property item is stored in a computer of a related party in the related art, the index hash value obtained by the house property file hash calculation can be stored in the block chain system, the block address storing the index hash value of the house property file is subjected to hash calculation to obtain a block address hash value, and the calculated block address hash value is stored in the block chain system as the latest updated hash value, so that the house property file is stored through the IPFS, and the purpose of quickly positioning and inquiring the file is achieved; the index hash value of the property file and the block address storing the index hash value of the property file are managed through a block chain system interacting with the IPFS, and meanwhile, data are guaranteed not to be tampered; therefore, the defects that the data storage of the real estate project is not standard, credible and difficult to trace are overcome.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a property data processing method according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of a property data processing apparatus according to embodiment 2 of the present invention;
fig. 3 shows a schematic structural diagram of an electronic device provided in embodiment 3 of the present invention.
Detailed Description
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the project operation process of real estate enterprises, the project period is long, related industries are more, and the processes from the development of the real estate to decoration, property management, house leasing and the like are included. In these operation processes, a large amount of data is generated, and when project schedule management and related data report are involved, a large amount of complicated processes and works are often required for checking the authenticity of the data. For example, real estate transactions are often cumbersome and involve a number of key parties: buyers, sellers, transaction consultants, attorneys, lenders, government agencies, each having a need to fill in forms and documents. And these forms and documents must be sealed, scanned, faxed, or transmitted by the delivery service.
Usually, a large amount of data of a traditional property project is stored in a computer of a relevant party without unified storage and management, for example, a contract and a bill of a buyer exist in a financial system, and a sale condition of a house exists in a system of a sales department; with the continuous expansion of project scale, the requirement on data authenticity is also continuously improved, and a large amount of verification requirements on authenticity and compliance of physical files exist, so that a unified data storage platform needs to be introduced to manage data, part of data may have disputes, if necessary, the data authenticity needs to be notarized, and a data system which enables all parties to trust each other is established.
Based on the requirements, the block chain technology is introduced, the IPFS is adopted to construct the platform for storing data, the data platform is constructed, an external mechanism can acquire data query permission through an API (application program interface) set by the IPFS, each time of data change operation is recorded by using the block chain, and data with disputes can be directly backtracked to perform data notarization.
Based on this, the present embodiment provides a real estate data processing method, apparatus and electronic device, which may store an index hash value obtained by hash calculation of a real estate file in a blockchain system, perform hash calculation on a block address storing the index hash value of the real estate file to obtain a blockaddress hash value, and store the calculated blockchain hash value in the blockchain system as a latest update hash value, so as to store the real estate file through an IPFS, and manage the index hash value of the real estate file and the block address storing the index hash value of the real estate file through the blockchain system interacting with the IPFS, thereby avoiding defects of irregular data storage, unreliability and difficulty in tracing of the real estate item.
The application scenarios of the property data processing method, the device and the electronic device provided by the following embodiments of the application include: an IPFS and a blockchain system that interacts with the IPFS.
The data structure of the IPFS bottom layer is constructed based on the Merkel directed acyclic graph, and the Hash calculation mode of the Merkel tree and the structure of the directed acyclic graph are integrated. Each node in the IPFS may store data and hash values pointing to its child nodes. The merkel directed acyclic graph has three characteristics: content addressing, using multiple hashes to uniquely identify files stored in data blocks of an IPFS; verifying the authenticity of the data, and confirming whether the data is tampered by checking the hash value; repeated data is removed, and the hash of the data blocks with the same content is the same, so that the repeated data can be easily removed, and the storage space is saved.
And packaging and encrypting data of each node in the IPFS to obtain a hash address, storing the hash address in a block chain system, and packaging the original data by a data packaging method- > sha2-256 function calculation- > into a Multihash- > Base58 code conversion- > final hash address (namely CID). The hash address Qm calculated by IPFS starts. Furthermore, IPFS is a point-to-point distributed file system protocol.
In the protocol, the IPFS defines how files are stored, indexed and transmitted in the system, namely, uploaded files are converted into a special data format to be stored, and meanwhile the IPFS performs hash calculation on the same files to determine unique addresses of the files. So the same file will point to the same hash value anywhere, no matter on any device (unlike a URL, this address is native, guaranteed by the encryption algorithm, you cannot change, nor does you need to change). Each file stored in the IPFS network has a unique storage address (i.e., content address, also called CID) corresponding to the hash value, and the address is a hash value formed after an algorithm. The hash values are unique, and a user can locate the file and access the data in the file only by accessing the corresponding hash according to the content of the file. Therefore, the file stored in the IPFS can be directly obtained by utilizing the hash value, and the aim of quickly positioning the file is fulfilled. In addition, the original file is not linked, the storage space is saved, the content addressing is realized by an internal algorithm, once the data is tampered, the node hash address is changed, and the abnormal data can be quickly compared and found.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
Example 1
Before executing the method for processing property data according to this embodiment, it is necessary to classify the data in advance, and set root files for different types of files in the IPFS according to the classification result.
To classify data that may be stored in an IPFS, it may be classified according to industry sub-categories in the property, such as: the root file of the finance class stores files such as corresponding contracts and bills, the root file of the building construction class stores files such as construction materials and drawings, and the root file of the sales class stores files such as sales progress and customer information. Each subdivision class corresponds to a field in a database, each field is stored with original data (namely a root file) first, and ID numbering is carried out according to the sequence and the class to obtain a file with a specified format. And determining the classification of the data according to the information and the service of the data, and manually establishing a rule for dividing the classification. For example: if the information is the described finance class, a classification 1 finance class is set, and if the data is sales class data, a classification 2 sales class is set.
In one embodiment, the file format stored in the IPFS is the json format.
After root files for different types of files are set in the IPFS, the process of the property data processing method provided in this embodiment may be executed, referring to a flowchart of a property data processing method shown in fig. 1, the embodiment provides a property data processing method, which includes the following specific steps:
step 100, the IPFS acquires a property file to be stored, wherein the property file carries property file information; the property file information includes: property file name and property file size information.
In the above step 100, the property file may be, but is not limited to: financial documents, construction documents or sales documents.
The property file information includes, in addition to the property file name and the property file size information: a property file type.
The property file type is used for indicating that the property file is a financial file, a building construction file or a sales file.
Step 102, when the size information of the property file indicates that the size of the property file is smaller than or equal to the size threshold of the property file, storing the property file, performing hash calculation on the property file to obtain an index hash value of the property file, storing the index hash value of the property file into a root file matched with the type of the property file, and jumping to step 106.
In step 102, according to the characteristics of the IPFS, the index hash value of the property file is used to index the property file stored in the IPFS itself or the corresponding relationship between the property file name of the property file and the index hash value. That is, the IPFS can query the property file whose hash value of the index file is obtained by calculation or the corresponding relationship between the property file name of the property file and the hash value of the index file through the hash value of the index file.
In one embodiment, the property file size threshold may be 256 kilobytes.
In order to store the index hash value of the property file into the root file matched with the property file type of the property file, the root file stored in the IPFS and matched with the property file type of the property file can be inquired according to the property file type carried by the property file information in the property file, and then the index hash value of the property file is stored into the inquired root file.
Step 104, when the size information of the property file indicates that the size of the property file is larger than the size threshold of the property file, storing the property file name of the property file, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain the index hash value of the property file, establishing the corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file.
In step 104, since the size of the property file is greater than the threshold of the size of the property file, in order to save the storage space of the IPFS, the file name of the property file may be stored in the IPFS system, and the property file may be stored in the computing device where the IPFS is located.
According to the method, the IPFS can store various house property files in a classified mode, the files with small data volume are directly stored in the root files designated by the IPFS, the files with large data volume are stored in the computing equipment where the IPFS is located through links by means of the IPFS algorithm, and the storage space of the IPFS is saved.
And step 106, storing the index hash value of the property file obtained by calculation into a block chain system, and obtaining a block address fed back by the block chain system and storing the index hash value of the property file.
Here, IPFS stores the chunk address fed back by the blockchain system, where the index hash value of the property file is stored.
And 108, carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value as the latest updated hash value in a block chain system.
When acquiring the house property file query information, the house property data processing method provided by the application can further execute the following steps (1) to (4):
(1) acquiring property file query information, wherein the property file query information comprises: sending out the user identification of the user of the property file query information, the query time and the property file name of the property file to be queried;
(2) when the property file corresponding to the property file name in the property file query information can be queried by using the property file name in the property file query information, feeding back the property file to a user sending the property file query information;
(3) when the corresponding relation between the house property file name and the index hash value is inquired by using the house property file name in the house property file inquiry information, inquiring the house property file corresponding to the house property file name from the computing equipment where the IPFS is located by using the index hash value corresponding to the house property file name, and feeding back the house property file corresponding to the inquired house property file name to the user sending the house property file inquiry information;
(4) and sending the house property file query information to the blockchain system, so that the blockchain system stores the house property file query information into a query log, wherein the query log is arranged in the blockchain system.
As can be seen from the content described in the steps (1) to (4), after the query is completed, the IPFS sends the property file query information to the blockchain system, so that the blockchain system stores the property file query information in the query log, thereby recording the property file query information and facilitating the security management of the data authority; when key data are leaked or lost, investigation can be carried out according to the house property file query information.
In the house property data processing method provided by the application, in the house property file storage process described in the above step 100 to step 108, the IPFS may also record the storage time of the block address hash value while storing the calculated block address hash value as the latest update hash value in the blockchain system.
In one embodiment, after recording the storage time of the block address hash value, the IPFS generates a correspondence between the block address hash value and the storage time of the block address hash value, and stores the correspondence between the block address hash value and the storage time of the block address hash value in the blockchain system.
In some cases, such as: the same file is owned by the sales department and the financial department, but the data recorded in the same file of the sales department and the data recorded in the same file of the financial department are different, and the file needs to be notarized at the moment, so in the real estate data processing method provided by the application, the following steps (1) to (5) can be further executed:
(1) when the house property file needs to be notarized, acquiring a time starting point of the house property file needing to be notarized;
(2) acquiring all block address hash values in a time period from the time starting point to the current time point from a block chain system;
(3) obtaining all block addresses storing index hash values in a time period from the time starting point to the current time point based on all block address hash values from the time starting point to the current time point;
(4) obtaining an index hash value in a time period from the time starting point to the current time point according to each block address in all block addresses storing the index hash values;
(5) and acquiring the property file with the index hash value matched in the time period from the time starting point to the current time point, and performing notarization operation by using the data recorded in the property file.
In the step (1), the time starting point of the house property document notarization is carried in the notarization request acquired by the IPFS, and the notarization request can be initiated by any user with the document to be notarized.
The notarization request also carries data to be notarized.
In the step (2), in order to obtain all the block address hash values in the period from the time start point to the current time point from the blockchain system, the following steps (21) to (22) may be performed:
(21) generating block addresses by using the time starting point and the current time point to obtain obtaining information, sending the block addresses to a block chain system, inquiring and obtaining block address hash values of the block addresses storing the index hash values in a time period between the time starting point and the current time point by the block chain system from the corresponding relation between the block address hash values and the storage time of the block address hash values, and feeding back the inquired and obtained block address hash values of the block addresses storing the index hash values in the time period between the time starting point and the current time point to the IPFS system;
(22) and receiving the block address hash values of all block addresses storing the index hash values in the time period from the time starting point to the current time point returned by the block chain system.
In the step (3), the IPFS may obtain, based on the hash values of all the block addresses from the time start point to the current time point, all the block addresses storing the index hash values in the time period from the time start point to the current time point by using the characteristics and algorithm of the IPFS, where the specific process is the prior art and is not described herein again.
In the step (4), an acquisition request is generated by using each block address, and the acquisition request is sent to the blockchain system, where the blockchain system takes the index hash value stored in the block from the block corresponding to each block address carried in the acquisition request, and sends the taken index hash value to the IPFS, so that the IPFS obtains the index hash value in the time period from the time start point to the current time point.
In the step (5), data calculation is performed by using data and operation recorded in the property file, the calculation result is compared with the to-be-notarized data recorded in the notarization request acquired by the IPFS to obtain a comparison result, and when the comparison result indicates that the calculation result is consistent with the to-be-notarized data recorded in the notarization request acquired by the IPFS, information that the to-be-notarized data passes notarization is fed back to the user sending the notarization request; and when the comparison result indicates that the calculation result is inconsistent with the to-be-notarized data recorded in the notarization request acquired by the IPFS, replacing the to-be-notarized data recorded in the IPFS by using the calculation result, returning the calculation result to the user sending the notarization request, and updating the data stored by the user sending the notarization request.
In summary, in the real estate data processing method provided in this embodiment, when a real estate file to be stored is obtained, the IPFS stores and performs hash calculation on the real estate file to obtain an index hash value of the real estate file, stores the index hash value of the real estate file into a root real estate file matched with the type of the real estate file, stores the calculated index hash value of the real estate file into the blockchain system, then obtains a block address fed back by the blockchain system and storing the index hash value of the real estate file, performs hash calculation on the block address storing the index hash value of the real estate file to obtain a block address hash value, stores the calculated block address hash value into the blockchain system as a latest update value, and compared with a manner in which a large amount of data of a real estate project in the related art is stored in a computer of a related party, the index hash value obtained by the house property file hash calculation can be stored in the block chain system, the block address storing the index hash value of the house property file is subjected to hash calculation to obtain a block address hash value, and the calculated block address hash value is stored in the block chain system as the latest updated hash value, so that the house property file is stored through the IPFS, and the purpose of quickly positioning and inquiring the file is achieved; the index hash value of the property file and the block address storing the index hash value of the property file are managed through a block chain system interacting with the IPFS, and meanwhile, data are guaranteed not to be tampered; therefore, the defects that the data storage of the real estate project is not standard, credible and difficult to trace are overcome.
Example 2
This embodiment proposes a property data processing apparatus for executing the property data processing method proposed in embodiment 1 above.
Referring to a schematic structural diagram of a property data processing apparatus shown in fig. 2, the present embodiment provides a property data processing apparatus, including:
an obtaining module 200, configured to obtain a property file to be stored, where the property file carries property file information; the property file information includes: property file name and property file size information;
the first processing module 202 is configured to, when the property file size information indicates that the size of the property file is smaller than or equal to a property file size threshold, store the property file, perform hash calculation on the property file to obtain an index hash value of the property file, and store the index hash value of the property file into a root file matched with the property file type of the property file;
a second processing module 204, configured to, when the size information of the property file indicates that the size of the property file is greater than a threshold of the size of the property file, store the property file name of the property file, store the property file in a computing device where the IPFS is located, perform hash calculation on the property file to obtain an index hash value of the property file, establish a correspondence between the property file name of the property file and the index hash value, and store the obtained correspondence in a root file matched with the property file type of the property file;
the first storage module 206 is configured to store the calculated index hash value of the property file into a blockchain system, and obtain a blockchain address fed back by the blockchain system and storing the index hash value of the property file;
the second storage module 208 is configured to perform hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and store the calculated block address hash value as a latest updated hash value in the blockchain system.
The real estate data processing apparatus provided in this embodiment further includes:
the second acquisition module is used for acquiring property file query information, and the property file query information comprises: sending out the user identification of the user of the property file query information, the query time and the property file name of the property file to be queried;
the first query module is used for feeding back the property file to the user sending the property file query information when the property file corresponding to the property file name in the property file query information can be queried by using the property file name in the property file query information;
the second query module is used for querying a property file corresponding to the property file name from the computing equipment where the IPFS is located by using the index hash value corresponding to the property file name when the corresponding relation between the property file name and the index hash value is queried by using the property file name in the property file query information, and feeding back the property file corresponding to the queried property file name to the user sending the property file query information;
and the recording module is used for sending the house property file query information to the blockchain system, so that the blockchain system stores the house property file query information into a query log, wherein the query log is arranged in the blockchain system.
The real estate data processing apparatus provided in this embodiment further includes:
the second recording module is used for recording the storage time of the block address hash value while storing the calculated block address hash value as the latest updating hash value in the block chain system;
the third acquisition module is used for acquiring a time starting point of the house property document notarization when the house property document notarization is needed;
a fourth obtaining module, configured to obtain all block address hash values in a time period from the time start point to the current time point from the block chain system;
the third processing module is used for obtaining all block addresses storing the index hash values in a time period from the time starting point to the current time point based on all the block address hash values from the time starting point to the current time point;
the fourth processing module is used for obtaining the index hash value in the time period from the time starting point to the current time point according to each block address in all block addresses storing the index hash value;
and the fifth processing module is used for acquiring the property file with the index hash value matched in the time period from the time starting point to the current time point, and performing notarization operation by using the data recorded in the property file.
In summary, in the real estate data processing apparatus provided in this embodiment, when a real estate file to be stored is obtained, the IPFS stores and performs hash calculation on the real estate file to obtain an index hash value of the real estate file, stores the index hash value of the real estate file into a root real estate file matched with the type of the real estate file, stores the calculated index hash value of the real estate file into the blockchain system, then obtains a block address fed back by the blockchain system and storing the index hash value of the real estate file, performs hash calculation on the block address storing the index hash value of the real estate file to obtain a block address hash value, stores the calculated block address hash value into the blockchain system as a latest update value, and compared with a manner in which a large amount of data of a real estate project is stored in a computer of a relevant party in the related art, the index hash value obtained by the house property file hash calculation can be stored in the block chain system, the block address storing the index hash value of the house property file is subjected to hash calculation to obtain a block address hash value, and the calculated block address hash value is stored in the block chain system as the latest updated hash value, so that the house property file is stored through the IPFS, and the purpose of quickly positioning and inquiring the file is achieved; the index hash value of the property file and the block address storing the index hash value of the property file are managed through a block chain system interacting with the IPFS, and meanwhile, data are guaranteed not to be tampered; therefore, the defects that the data storage of the real estate project is not standard, credible and difficult to trace are overcome.
Example 3
This embodiment proposes a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the property data processing method described in embodiment 1 above. For specific implementation, refer to method embodiment 1, which is not described herein again.
In addition, referring to the schematic structural diagram of an electronic device shown in fig. 3, the present embodiment further provides an electronic device, where the electronic device includes a bus 51, a processor 52, a transceiver 53, a bus interface 54, a memory 55, and a user interface 56. The electronic device comprises a memory 55.
In this embodiment, the electronic device further includes: one or more programs stored on the memory 55 and executable on the processor 52, configured to be executed by the processor for performing the following steps (1) to (5):
(1) the IPFS acquires a property file to be stored, wherein the property file carries property file information; the property file information includes: property file name and property file size information;
(2) when the size information of the property file indicates that the size of the property file is smaller than or equal to a property file size threshold value, storing the property file into the IPFS, performing hash calculation on the property file to obtain an index hash value of the property file, and storing the index hash value of the property file into a root file matched with the property file type of the property file;
(3) when the size information of the property file indicates that the size of the property file is larger than the size threshold of the property file, storing the property file name of the property file into the IPFS, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain an index hash value of the property file, establishing a corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file;
(4) storing the index hash value of the property file obtained by calculation into a blockchain system, and obtaining a blockchain address fed back by the blockchain system and storing the index hash value of the property file;
(5) and carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value as the latest updated hash value in a block chain system.
A transceiver 53 for receiving and transmitting data under the control of the processor 52.
Where a bus architecture (represented by bus 51) is used, bus 51 may include any number of interconnected buses and bridges, with bus 51 linking together various circuits including one or more processors, represented by processor 52, and memory, represented by memory 55. The bus 51 may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further in this embodiment. A bus interface 54 provides an interface between the bus 51 and the transceiver 53. The transceiver 53 may be one element or may be multiple elements, such as multiple receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. For example: the transceiver 53 receives external data from other devices. The transceiver 53 is used for transmitting data processed by the processor 52 to other devices. Depending on the nature of the computing system, a user interface 56, such as a keypad, display, speaker, microphone, joystick, may also be provided.
The processor 52 is responsible for managing the bus 51 and the usual processing, running a general-purpose operating system as described above. And memory 55 may be used to store data used by processor 52 in performing operations.
Alternatively, processor 52 may be, but is not limited to: a central processing unit, a singlechip, a microprocessor or a programmable logic device.
It will be appreciated that the memory 55 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 55 of the systems and methods described in this embodiment is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 55 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 551 and application programs 552.
The operating system 551 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 552 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing the method of an embodiment of the present invention may be included in the application 552.
In summary, in the computer-readable storage medium and the electronic device provided in this embodiment, when a property file to be stored is obtained, the IPFS stores and performs hash calculation on the property file to obtain an index hash value of the property file, stores the index hash value of the property file into a root property file matching with a property file type of the property file, stores the calculated index hash value of the property file into the blockchain system, then obtains a block address fed back by the blockchain system and storing the index hash value of the property file, performs hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and stores the calculated block address hash value into the blockchain system as a latest updated hash value, compared with a manner in which a large amount of data of a property item in a related technology is stored in a computer of a related party, the index hash value obtained by the house property file hash calculation can be stored in the block chain system, the block address storing the index hash value of the house property file is subjected to hash calculation to obtain a block address hash value, and the calculated block address hash value is stored in the block chain system as the latest updated hash value, so that the house property file is stored through the IPFS, and the purpose of quickly positioning and inquiring the file is achieved; the index hash value of the property file and the block address storing the index hash value of the property file are managed through a block chain system interacting with the IPFS, and meanwhile, data are guaranteed not to be tampered; therefore, the defects that the data storage of the real estate project is not standard, credible and difficult to trace are overcome.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A method for processing property data, comprising:
the method comprises the steps that an interplanetary file system IPFS obtains a property file to be stored, wherein the property file carries property file information; the property file information includes: property file name and property file size information;
when the size information of the property file indicates that the size of the property file is smaller than or equal to a property file size threshold value, storing the property file, performing hash calculation on the property file to obtain an index hash value of the property file, and storing the index hash value of the property file into a root file matched with the property file type of the property file;
when the size information of the property file indicates that the size of the property file is larger than the size threshold of the property file, storing the property file name of the property file, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain an index hash value of the property file, establishing a corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file;
storing the index hash value of the property file obtained by calculation into a blockchain system, and obtaining a blockchain address fed back by the blockchain system and storing the index hash value of the property file;
and carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value as the latest updated hash value in a block chain system.
2. The method of claim 1, further comprising:
acquiring property file query information, wherein the property file query information comprises: sending out the user identification of the user of the property file query information, the query time and the property file name of the property file to be queried;
when the property file corresponding to the property file name in the property file query information can be queried by using the property file name in the property file query information, feeding back the property file to a user sending the property file query information;
when the corresponding relation between the house property file name and the index hash value is inquired by using the house property file name in the house property file inquiry information, inquiring the house property file corresponding to the house property file name from the computing equipment where the IPFS is located by using the index hash value corresponding to the house property file name, and feeding back the house property file corresponding to the inquired house property file name to the user sending the house property file inquiry information;
and sending the house property file query information to the blockchain system, so that the blockchain system stores the house property file query information into a query log, wherein the query log is arranged in the blockchain system.
3. The method of claim 1, further comprising:
recording the storage time of the block address hash value while storing the calculated block address hash value as the latest updated hash value in a block chain system;
when the house property file needs to be notarized, acquiring a time starting point of the house property file needing to be notarized;
acquiring all block address hash values in a time period from the time starting point to the current time point from a block chain system;
obtaining all block addresses storing index hash values in a time period from the time starting point to the current time point based on all block address hash values from the time starting point to the current time point;
obtaining an index hash value in a time period from the time starting point to the current time point according to each block address in all block addresses storing the index hash values;
and acquiring the property file with the index hash value matched in the time period from the time starting point to the current time point, and performing notarization operation by using the data recorded in the property file.
4. A property data processing apparatus, comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for acquiring a property file to be stored, and the property file carries property file information; the property file information includes: property file name and property file size information;
the first processing module is used for storing the property file when the property file size information indicates that the size of the property file is smaller than or equal to a property file size threshold, performing hash calculation on the property file to obtain an index hash value of the property file, and storing the index hash value of the property file into a root file matched with the property file type of the property file;
the second processing module is used for storing the property file name of the property file when the property file size information indicates that the size of the property file is larger than the property file size threshold, storing the property file into the computing equipment where the IPFS is located, performing hash calculation on the property file to obtain an index hash value of the property file, establishing a corresponding relation between the property file name of the property file and the index hash value, and storing the obtained corresponding relation into a root file matched with the property file type of the property file;
the first storage module is used for storing the index hash value of the property file obtained by calculation into a block chain system and obtaining a block address which is fed back by the block chain system and used for storing the index hash value of the property file;
and the second storage module is used for carrying out hash calculation on the block address storing the index hash value of the property file to obtain a block address hash value, and storing the calculated block address hash value serving as the latest updated hash value into the block chain system.
5. The apparatus of claim 4, further comprising:
the second acquisition module is used for acquiring property file query information, and the property file query information comprises: sending out the user identification of the user of the property file query information, the query time and the property file name of the property file to be queried;
the first query module is used for feeding back the property file to the user sending the property file query information when the property file corresponding to the property file name in the property file query information can be queried by using the property file name in the property file query information;
the second query module is used for querying a property file corresponding to the property file name from the computing equipment where the IPFS is located by using the index hash value corresponding to the property file name when the corresponding relation between the property file name and the index hash value is queried by using the property file name in the property file query information, and feeding back the property file corresponding to the queried property file name to the user sending the property file query information;
and the recording module is used for sending the house property file query information to the blockchain system, so that the blockchain system stores the house property file query information into a query log, wherein the query log is arranged in the blockchain system.
6. The apparatus of claim 4, further comprising:
the second recording module is used for recording the storage time of the block address hash value while storing the calculated block address hash value as the latest updating hash value in the block chain system;
the third acquisition module is used for acquiring a time starting point of the house property document notarization when the house property document notarization is needed;
a fourth obtaining module, configured to obtain all block address hash values in a time period from the time start point to the current time point from the block chain system;
the third processing module is used for obtaining all block addresses storing the index hash values in a time period from the time starting point to the current time point based on all the block address hash values from the time starting point to the current time point;
the fourth processing module is used for obtaining the index hash value in the time period from the time starting point to the current time point according to each block address in all block addresses storing the index hash value;
and the fifth processing module is used for acquiring the property file with the index hash value matched in the time period from the time starting point to the current time point, and performing notarization operation by using the data recorded in the property file.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1-3.
8. An electronic device comprising a memory, a processor, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor to perform the steps of the method of any of claims 1-3.
CN202011225989.8A 2020-11-05 2020-11-05 House property data processing method and device and electronic equipment Active CN112214456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011225989.8A CN112214456B (en) 2020-11-05 2020-11-05 House property data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011225989.8A CN112214456B (en) 2020-11-05 2020-11-05 House property data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112214456A true CN112214456A (en) 2021-01-12
CN112214456B CN112214456B (en) 2022-05-10

Family

ID=74058387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011225989.8A Active CN112214456B (en) 2020-11-05 2020-11-05 House property data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112214456B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468612A (en) * 2021-06-30 2021-10-01 上海特高信息技术有限公司 File auditing system and method based on block chain and IPFS
CN113938324A (en) * 2021-12-16 2022-01-14 成都车晓科技有限公司 Block chain-based vehicle credit information safe storage method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN109165205A (en) * 2018-08-21 2019-01-08 甲骨文科技时代(深圳)有限公司 A kind of date storage method and device based on block chain
CN109491968A (en) * 2018-11-13 2019-03-19 浙江鲸腾网络科技有限公司 A kind of document handling method, device, equipment and computer readable storage medium
US20190171838A1 (en) * 2015-06-02 2019-06-06 ALTR Solutions, Inc. Fragmenting data for the purposes of persistent storage across multiple immutable data structures
CN110008194A (en) * 2019-03-01 2019-07-12 上海七印信息科技有限公司 A kind of rapid file acquisition methods based on block chain and interspace file system IPFS
CN110061838A (en) * 2019-04-28 2019-07-26 广州大学 A kind of the decentralization storage system and its realization, information retrieval method of DNS resource record
CN110263014A (en) * 2019-05-15 2019-09-20 广州致链科技有限公司 Block chain storage system and method towards timing type data
CN111177080A (en) * 2019-12-31 2020-05-19 西安理工大学 Knowledge graph storage and verification method based on block chain and IPFS
US20200184097A1 (en) * 2018-12-06 2020-06-11 Sap Se Data security in a peer-to-peer network
CN111402090A (en) * 2020-03-16 2020-07-10 江苏荣泽信息科技股份有限公司 House property information sharing platform based on block chain
US20200250176A1 (en) * 2019-01-31 2020-08-06 Salesforce.Com, Inc. Systems, methods, and apparatuses for distributing a metadata driven application to customers and non-customers of a host organization using distributed ledger technology (dlt)
CN111523152A (en) * 2020-05-11 2020-08-11 毕红伟 Block chain-based electronic certificate management method, management network and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190171838A1 (en) * 2015-06-02 2019-06-06 ALTR Solutions, Inc. Fragmenting data for the purposes of persistent storage across multiple immutable data structures
CN107273410A (en) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 Distributed storage based on block chain
CN109165205A (en) * 2018-08-21 2019-01-08 甲骨文科技时代(深圳)有限公司 A kind of date storage method and device based on block chain
CN109491968A (en) * 2018-11-13 2019-03-19 浙江鲸腾网络科技有限公司 A kind of document handling method, device, equipment and computer readable storage medium
US20200184097A1 (en) * 2018-12-06 2020-06-11 Sap Se Data security in a peer-to-peer network
US20200250176A1 (en) * 2019-01-31 2020-08-06 Salesforce.Com, Inc. Systems, methods, and apparatuses for distributing a metadata driven application to customers and non-customers of a host organization using distributed ledger technology (dlt)
CN110008194A (en) * 2019-03-01 2019-07-12 上海七印信息科技有限公司 A kind of rapid file acquisition methods based on block chain and interspace file system IPFS
CN110061838A (en) * 2019-04-28 2019-07-26 广州大学 A kind of the decentralization storage system and its realization, information retrieval method of DNS resource record
CN110263014A (en) * 2019-05-15 2019-09-20 广州致链科技有限公司 Block chain storage system and method towards timing type data
CN111177080A (en) * 2019-12-31 2020-05-19 西安理工大学 Knowledge graph storage and verification method based on block chain and IPFS
CN111402090A (en) * 2020-03-16 2020-07-10 江苏荣泽信息科技股份有限公司 House property information sharing platform based on block chain
CN111523152A (en) * 2020-05-11 2020-08-11 毕红伟 Block chain-based electronic certificate management method, management network and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
常汉杰 等: ""浅谈区块链对于文件存储系统的变革"", 《计算机时代》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113468612A (en) * 2021-06-30 2021-10-01 上海特高信息技术有限公司 File auditing system and method based on block chain and IPFS
CN113468612B (en) * 2021-06-30 2023-08-22 上海特高信息技术有限公司 File auditing system and method based on block chain and IPFS
CN113938324A (en) * 2021-12-16 2022-01-14 成都车晓科技有限公司 Block chain-based vehicle credit information safe storage method

Also Published As

Publication number Publication date
CN112214456B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN109791591B (en) Method and system for identity and credential protection and verification via blockchain
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN111027295B (en) Data processing method, device, computer equipment and storage medium
TWI726573B (en) Block chain-based data compression and query method and device and electronic equipment
CN112214456B (en) House property data processing method and device and electronic equipment
US11556658B2 (en) Cross-partition calls in partitioned, tamper-evident data stores
US20210067536A1 (en) Blockchain cybersecurity audit platform
CN111104392A (en) Database migration method and device, electronic equipment and storage medium
US10795882B2 (en) Blockchain-based data compression and searching
US20070276970A1 (en) Data Consistency Validation
CN109493048B (en) Financial accounting method, device, equipment and storage medium based on block chain
JP7061409B2 (en) Blockchain-based asset management history record certification integrated system and its method
EP4181010A1 (en) Data reuse computing architecture
CN110717809A (en) Vehicle transaction method and device based on big data, electronic equipment and computer readable medium
CN110598478A (en) Block chain based evidence verification method, device, equipment and storage medium
CN105556533A (en) Automatically generating certification documents
CN111651442A (en) Data reporting method and device, electronic equipment and storage medium
CN110598475A (en) Block chain-based work attribute information acquisition method and device and computer equipment
CN112862449A (en) Structural chemical industry bill generation method and device, computer equipment and storage medium
EP3779755B1 (en) A computer-implemented method for cross-chain-interoperability
US10963889B2 (en) Cross-system object tracking platform
GB2609186A (en) Blockchain
CN114385722A (en) Interface attribute consistency checking method and device, electronic equipment and storage medium
CN111507566B (en) Method, device, computer equipment and storage medium for generating article production list
CN112380583B (en) Online education platform configuration item processing method and device and electronic equipment

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