Data filing method and system, computer equipment and storage medium
By storing and signing the filing data in the blockchain network, and using private keys and public key verification, the problem of low credibility of filing data in the prior art is solved, and a data filing system with high credibility and transparency is realized.
Patent Information
- Application Number
- CN202410959873.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing data filing system has low credibility of registered data due to network attacks or artificial modifications. How to improve the credibility of registered data has become a problem that needs to be solved.
By storing registered data in the blockchain network and using private keys and public keys to sign and verify the data, ensuring the integrity and format verification of the data, only after the verification is passed, the smart contract is executed to store the data to prevent tampering. And record storage and query information to improve transparency.
It realizes high credibility and transparency of registered data, prevents single-point tampering, ensures the integrity and authenticity of data, and improves the security and consistency of the data filing system.
Smart Images

Figure CN118916924A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data filing method, system, computer equipment and storage medium. Background Art
[0002] At present, the data filing system used to store data that needs to be filed, namely, filing data, includes a small number of databases for storing filing data. Filing data may be tampered with due to network attacks on the data filing system. In addition, personnel in the data filing system may intentionally or unintentionally modify the filing data. This results in a low credibility of the filing data. How to improve the credibility of filing data has become a problem that needs to be solved. Summary of the invention
[0003] In view of this, the embodiments of the present disclosure provide a data filing method, system, computer device and storage medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a data filing method, the method comprising:
[0005] The front-end system receives a storage request sent by a user's terminal, and sends the storage request to the API service, wherein the storage request includes: target filing data and a filing data identifier of the target filing data;
[0006] The API service signs the verification hash value of the target filing data using the private key to obtain the signature information of the verification hash value of the target filing data, and sends the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes of the blockchain network, and the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node to obtain the verification result of the filing data received by the blockchain node;
[0007] For each blockchain node among the multiple blockchain nodes, when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, the blockchain node verifies the target filing data using the public key and the signature information of the verification hash value of the target filing data, obtains a verification result indicating that the target filing data has passed the verification, and executes the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data, and stores the target filing data and the transaction hash value of the target filing data in the blockchain node;
[0008] The blockchain node sends the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service;
[0009] The front-end system receives a query request for the filing data sent by the user's terminal, and sends a query request to the API service, wherein the query request includes: the user's input information;
[0010] The API service finds the transaction hash value corresponding to the input information;
[0011] Each of the blockchain nodes respectively executes the method for querying filing data of the smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information using the method for querying filing data, and the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information;
[0012] The API service receives the filing data corresponding to the input information sent by the blockchain node, and sends the filing data corresponding to the input information to the user's terminal.
[0013] In a possible implementation, the API service signs the verification hash value of the target filing data using a private key, and the signature information of the verification hash value of the target filing data includes:
[0014] The API service verifies the integrity of the target filing data and the format of the target filing data;
[0015] When the integrity of the target filing data passes verification and the format of the target filing data passes verification, the API service signs the verification hash value of the target filing data using the private key to obtain signature information of the verification hash value of the target filing data.
[0016] In a possible implementation, the method further includes:
[0017] The blockchain middleware platform and the blockchain console are used to record the storage information of each filing data among the multiple filing data stored in the blockchain network. The storage information of the filing data includes: the filing data and the storage timestamp of the filing data. The storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
[0018] In a possible implementation, the method further includes:
[0019] A blockchain middleware platform and a blockchain console are used to record multiple query records, wherein each query record in the multiple query records corresponds to filing data, each query record in the multiple query records corresponds to a query that finds the filing data, the filing data corresponding to the query record is the filing data found through the query that corresponds to the query record, and the query record includes: the filing data corresponding to the query record, the time when the filing data corresponding to the query record is found through the query that corresponds to the query record, and the user identifier of the user to whom the terminal that sends the query request for querying the filing data corresponding to the query record belongs.
[0020] In a second aspect, an embodiment of the present disclosure provides a data filing system, the data filing system comprising: a front-end system, an API service, and multiple blockchain nodes of a blockchain network;
[0021] The front-end system is used to receive a storage request sent by a user's terminal, and send the storage request to the API service, the storage request including: target filing data, filing data identifier of the target filing data;
[0022] The API service is used to sign the verification hash value of the target filing data using the private key, obtain the signature information of the verification hash value of the target filing data, and send the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes of the blockchain network, and the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node, and obtain the verification result of the filing data received by the blockchain node;
[0023] The blockchain node is used to verify the target filing data using the public key and the signature information of the verification hash value of the target filing data when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, obtain a verification result indicating that the target filing data has passed the verification, and execute the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data, and store the target filing data and the transaction hash value of the target filing data in the blockchain node;
[0024] The blockchain node is used to send the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service;
[0025] The front-end system is used to receive a query request for filing data sent by a user's terminal, and send a query request to the API service, wherein the query request includes: user input information;
[0026] The API service is used to find out the transaction hash value corresponding to the input information;
[0027] The blockchain node is used to execute a method for querying filing data of a smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information using the method for querying filing data, wherein the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information;
[0028] The API service is used to receive the registration data corresponding to the input information sent by the blockchain node, and send the registration data corresponding to the input information to the user's terminal.
[0029] In one possible implementation, the API service is further used to verify the integrity of the target filing data and the format of the target filing data; when the integrity of the target filing data passes the verification and the format of the target filing data passes the verification, the verification hash value of the target filing data is signed using a private key to obtain the signature information of the verification hash value of the target filing data.
[0030] In a possible implementation, the data filing system further includes:
[0031] The blockchain middleware platform and the blockchain console are used to record the storage information of each filing data among multiple filing data stored in the blockchain network, and the storage information of the filing data includes: filing data and storage timestamp of the filing data, and the storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
[0032] In one possible implementation, the blockchain middleware platform and the blockchain console are further used to record multiple query records, wherein each of the multiple query records corresponds to filing data, each of the multiple query records corresponds to a query that finds the filing data, the filing data corresponding to the query record is the filing data found through the query that corresponds to the query record, and the query record includes: the filing data corresponding to the query record, the time when the filing data corresponding to the query record is found through the query that corresponds to the query record, and the user identifier of the user to whom the terminal that sends the query request for querying the filing data corresponding to the query record belongs.
[0033] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0034] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof.
[0035] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0036] In the data filing method provided by the embodiment of the present disclosure, each filing data can be stored on multiple blockchain nodes, and each blockchain node stores the filing data. The tampering of any single blockchain node cannot change the authenticity of the filing data, and the filing data has a high degree of credibility. Users can query and verify the integrity and authenticity of the filing data, which improves the transparency of the filing data. For a blockchain node, the method for storing filing data of the smart contract on the blockchain node will be executed only after the blockchain node obtains the verification result indicating that the target filing data has passed the verification. Thereby, the target filing data can be prevented from being tampered with when it is transmitted between the API service and the blockchain node, further improving the credibility of the data filing. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0038] Figure 1 is a schematic diagram of an example architecture that can be applied to the data filing method provided by the present disclosure;
[0039] Figure 2 It is a flowchart of a data filing method provided by an embodiment of the present disclosure;
[0040] Figure 3 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0042] In order to solve the problem of how to improve the credibility of the filed data, the embodiments of the present disclosure provide a data filing method.
[0043] In the related art, the data filing system for storing data that needs to be filed, i.e., filing data, includes a single or a small number of databases for storing filing data, and the data filing system is maintained and managed by personnel of the data filing system. Filing data may be tampered with due to network attacks. In addition, personnel of the data filing system may modify the filing data intentionally or unintentionally, resulting in low credibility of the filing data.
[0044] In the data filing method provided by the embodiment of the present disclosure, each filing data can be stored on multiple blockchain nodes. Each blockchain node stores the filing data. The tampering of any single blockchain node cannot change the authenticity of the filing data. The filing data has a high degree of credibility. Users can query and verify the integrity and authenticity of the filing data, which improves the transparency of the filing data.
[0045] refer to Figure 1 , which shows a schematic diagram of a data filing system that can be applied to the data filing method provided by the present disclosure.
[0046] The data filing system includes: a front-end system, an application programming interface (API) service, and a blockchain network. The blockchain network includes: blockchain nodes such as blockchain node 1, blockchain node 2...blockchain node N. The front-end system provides a front-end interface to the user. The user submits the filing data to the front-end system through the front-end interface. The front-end system receives a storage request sent by the user's terminal, and sends the storage request to the API service. The API service sends signature information of the target filing data and the verification hash value of the target filing data to each of the multiple blockchain nodes in the blockchain network. The smart contract on each of the multiple blockchain nodes (Blockchain Nodes) in the blockchain network verifies the target filing data. After the target filing data passes the verification, the blockchain node stores the target filing data in the blockchain node. When the user needs to query data, the front-end system receives a query request for the filing data sent by the user's terminal. The API service finds out the transaction hash value corresponding to the input information in the query request. Each blockchain node queries the filing data corresponding to the input information according to the transaction hash value corresponding to the input information. The API service receives the filing data corresponding to the input information sent by the blockchain node, and sends the filing data corresponding to the input information to the user's terminal.
[0047] refer to Figure 2 , which shows a flow chart of the data filing method provided by an embodiment of the present disclosure.
[0048] Step S201: the front-end system receives a storage request sent by a user's terminal, and sends the storage request to an API service.
[0049] The storage request includes: target filing data and filing data identifier of the target filing data.
[0050] The target filing data is data that needs to be filed. As an example, the user inputs the filing data through the front-end interface, and the user clicks the submit button in the front-end interface, and the user's terminal generates a storage request including the target filing data and the filing data identifier of the target filing data.
[0051] As an example, the front-end system sends a storage request to the API service through the API interface.
[0052] As an example, the API service is developed based on the Spring Boot framework.
[0053] In step S202, the API service signs the verification hash value of the target filing data using a private key, obtains signature information of the verification hash value of the target filing data, and sends the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes in the blockchain network.
[0054] In step S202, the API service may apply a hash algorithm used to obtain a verification hash value of the filing data to the target filing data to obtain a verification hash value of the target filing data.
[0055] For one blockchain node among the multiple blockchain nodes, the blockchain node is used to verify the registration data received by the blockchain node using the public key and the signature information of the verification hash value of the registration data received by the blockchain node to obtain the verification result of the registration data received by the blockchain node.
[0056] The signature information of the verification hash value of the filing data received by the blockchain node may refer to: the signature information sent to the blockchain node together with the filing data received by the blockchain node. The signature information of the verification hash value of the filing data received by the blockchain node is generated by the API service.
[0057] For a blockchain node, the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node, and obtaining the verification result of the filing data received by the blockchain node may include: the blockchain node uses the public key to decrypt the signature information of the verification hash value of the filing data received by the blockchain node to obtain the verification hash value of the filing data received by the blockchain node, and the hash algorithm used to obtain the verification hash value of the filing data received by the blockchain node is applied to the filing data received by the blockchain node to obtain the hash value for comparison corresponding to the filing data received by the blockchain node. If the verification hash value of the filing data received by the blockchain node is the same as the hash value for comparison, it is determined that the filing data received by the blockchain node is the filing data that has not been tampered with, the verification passes, and a verification result indicating that the filing data received by the blockchain node passes the verification is generated. If the verification hash value of the filing data received by the blockchain node is not the same as the hash value for comparison, it is determined that the filing data received by the blockchain node is the filing data obtained by tampering, the verification fails, and a verification result indicating that the filing data received by the blockchain node fails the verification is generated.
[0058] In the disclosed embodiment, for a blockchain node, the blockchain node is used to verify the registration data received by the blockchain node using the public key and the signature information of the verification hash value of the registration data received by the blockchain node, and obtain the verification result of the registration data received by the blockchain node, which can prevent the registration data transmitted between the API service and the blockchain node from being tampered with, and further improve the credibility of data registration.
[0059] In one possible implementation, the API service uses a private key to sign the verification hash value of the target filing data, and the signature information of the verification hash value of the target filing data includes: the API service verifies the integrity of the target filing data and the format of the target filing data; when the integrity of the target filing data passes the verification and the format of the target filing data passes the verification, the API service uses the private key to sign the verification hash value of the target filing data, and obtains the signature information of the verification hash value of the target filing data.
[0060] In step S203, each of the multiple blockchain nodes respectively obtains a verification result indicating that the target filing data has passed the verification, and each blockchain node respectively stores the target filing data and the transaction hash value of the target filing data in the blockchain node.
[0061] In step S203, for each blockchain node among the multiple blockchain nodes, when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, the blockchain node verifies the target filing data using the public key and the signature information of the verification hash value of the target filing data, obtains a verification result indicating that the target filing data has passed the verification, and executes the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data of the smart contract on the blockchain node, and the blockchain node stores the target filing data and the transaction hash value of the target filing data in the blockchain node.
[0062] In step S203, for one blockchain node among the multiple blockchain nodes, the blockchain node verifies the target filing data using the public key and the signature information of the verification hash value of the target filing data, and obtaining a verification result indicating that the target filing data has passed the verification may include: the blockchain node decrypts the signature information of the verification hash value of the target filing data using the public key to obtain the verification hash value of the target filing data, and applies the hash algorithm used to obtain the verification hash value of the target filing data to the target filing data to obtain the hash value for comparison corresponding to the target filing data. The verification hash value of the target filing data is the same as the hash value for comparison, the verification passes, and a verification result indicating that the target filing data has passed the verification is generated.
[0063] In the disclosed embodiment, for a blockchain node, only after the blockchain node obtains the verification result indicating that the target filing data has passed the verification, the method for storing the filing data of the smart contract on the blockchain node will be executed. Thus, the target filing data can be prevented from being tampered with when being transmitted between the API service and the blockchain node, further improving the credibility of data filing.
[0064] In step S203, for a blockchain node, after the blockchain node obtains the verification result indicating that the target filing data has passed the verification, the method for storing the filing data of the smart contract on the blockchain node is executed. The method for storing the filing data of the smart contract on the blockchain node can be called a set method of the smart contract on the blockchain node.
[0065] In step S203, each of the multiple blockchain nodes stores the target filing data and the transaction hash value of the target filing data in the blockchain node through a consensus algorithm. The consensus algorithm ensures that all blockchain nodes reach a consensus before storing the filing data, ensuring the security and consistency of the storage process of the filing data. Even if some blockchain nodes fail, the data filing system can still operate normally. Distributed storage ensures that the filing data cannot be tampered with. Each blockchain node independently verifies and stores the filing data to prevent single point failures.
[0066] As an example, the multiple blockchain nodes are four blockchain nodes, and the four blockchain nodes synchronously store the target filing data, and each of the four blockchain nodes stores the target filing data.
[0067] As an example, the consensus algorithm is PBFT (Practical Byzantine Fault Tolerance). The target record data is stored as a transaction. In the pre-preparation phase, the transaction request of the transaction is sent by the client to the main blockchain node, and the main blockchain node broadcasts the transaction request to all backup blockchain nodes. In the preparation phase, all blockchain nodes verify the validity of the transaction request and broadcast the preparation message. In the submission phase, after the blockchain node receives more than 2 / 3 of the preparation messages, it broadcasts the submission message. In the confirmation phase, after the blockchain node receives more than 2 / 3 of the submission messages, it executes the transaction and records it on the blockchain.
[0068] In step S204, the blockchain node sends the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service.
[0069] The storage timestamp of the target filing data indicates the time when the target filing data is stored in the blockchain network.
[0070] In step S204, each of the multiple blockchain nodes can send the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service respectively.
[0071] The API service can establish a corresponding relationship between the filing data identifier of the target filing data and the transaction hash value of the target filing data.
[0072] The API service can establish a corresponding relationship between the transaction hash value of the target filing data and the storage timestamp of the target filing data.
[0073] In step S205, the front-end system receives a query request for the filing data sent by the user's terminal, and the front-end system sends the query request to the API service.
[0074] The query request includes: user input information. The user input information is input by the user who needs to query the record data through the front-end interface.
[0075] The user's input information may include: the filing data identifier of the filing data to be queried, that is, the filing data ID. The user clicks the query button in the front-end interface, and the user's terminal generates a query request.
[0076] As an example, the user's terminal sends a query request to the API service through the API interface.
[0077] Step S206: The API service finds the transaction hash value corresponding to the input information.
[0078] The input information may include: a record data identifier of the record data to be queried. The API service may determine the transaction hash value corresponding to the record data identifier in the input information according to the established one-to-one correspondence between multiple record data identifiers and multiple transaction hash values.
[0079] For a filing data identifier, the transaction hash value corresponding to the filing data identifier is the transaction hash value of the filing data having the filing data identifier.
[0080] It should be noted that the transaction hash value corresponding to the input information is the transaction hash value corresponding to the filing data identifier in the input information.
[0081] In step S207, each blockchain node respectively executes the method for querying the filing data of the smart contract on the blockchain node, so as to use the method for querying the filing data to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information.
[0082] Among them, the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information.
[0083] In step S207, for a blockchain node, the blockchain node executes the method for querying filing data of the smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information through the method for querying filing data of the smart contract on the blockchain node. The method for querying filing data of the smart contract on the blockchain node can be called the get method for querying filing data of the smart contract on the blockchain node.
[0084] Step S208, the API service receives the registration data corresponding to the input information sent by the blockchain node, and sends the registration data corresponding to the input information to the user's terminal.
[0085] Thus, the user's terminal can receive the filing data corresponding to the input information, and display the filing data corresponding to the input information on the user's terminal.
[0086] It should be noted that the registered data corresponding to the input information is the registered data that the user needs to query.
[0087] In one possible implementation, a blockchain middleware platform and a blockchain console are used to record storage information of each of a plurality of filing data stored in a blockchain network. The storage information of the filing data includes: filing data and a storage timestamp of the filing data. The storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
[0088] As an example, the blockchain middleware platform is the WeBASE platform. The WeBASE platform and the blockchain console provide a graphical interface. The blockchain middleware platform and the blockchain console are used to record the storage information of each of the multiple filing data stored in the blockchain network. Therefore, the storage and modification of any filing data will be recorded and traceable, and relevant personnel can view any filing data stored in the blockchain network and the storage time of the filing data through the blockchain console. Verify the authenticity and integrity of the filing data. Further improve the credibility of the filing data.
[0089] In one possible implementation, a blockchain middleware platform and a blockchain console are used to record multiple query records, wherein each query record in the multiple query records corresponds to the registered data, and each query record in the multiple query records corresponds to a query that finds the registered data.
[0090] For a query record, the filing data corresponding to the query record is the filing data queried through a query corresponding to the query record. The query record includes: the filing data corresponding to the query record, the time when the filing data corresponding to the query record was queried through a query corresponding to the query record, and the user identifier of the user to whom the terminal that sends the query request for querying the filing data corresponding to the query record belongs.
[0091] Using the blockchain middleware platform and blockchain console to record multiple query records, relevant personnel can view any query record and verify the authenticity and completeness of the query results, further improving the credibility of the filing data.
[0092] The disclosed embodiments provide a data filing system. The data filing system is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "unit" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0093] The data filing system includes: front-end system, API service, and multiple blockchain nodes of the blockchain network;
[0094] The front-end system is used to receive a storage request sent by a user's terminal, and send the storage request to the API service, the storage request including: target filing data, filing data identifier of the target filing data;
[0095] The API service is used to sign the verification hash value of the target filing data using the private key, obtain the signature information of the verification hash value of the target filing data, and send the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes of the blockchain network, and the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node, and obtain the verification result of the filing data received by the blockchain node;
[0096] The blockchain node is used to verify the target filing data using the public key and the signature information of the verification hash value of the target filing data when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, obtain a verification result indicating that the target filing data has passed the verification, and execute the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data, and store the target filing data and the transaction hash value of the target filing data in the blockchain node;
[0097] The blockchain node is used to send the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service;
[0098] The front-end system is used to receive a query request for filing data sent by a user's terminal, and send a query request to the API service, wherein the query request includes: user input information;
[0099] The API service is used to find out the transaction hash value corresponding to the input information;
[0100] The blockchain node is used to execute a method for querying filing data of a smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information using the method for querying filing data, wherein the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information;
[0101] The API service is used to receive the registration data corresponding to the input information sent by the blockchain node, and send the registration data corresponding to the input information to the user's terminal.
[0102] In one possible implementation, the API service is further used to verify the integrity of the target filing data and the format of the target filing data; when the integrity of the target filing data passes the verification and the format of the target filing data passes the verification, the verification hash value of the target filing data is signed using a private key to obtain the signature information of the verification hash value of the target filing data.
[0103] In a possible implementation, the data filing system further includes:
[0104] The blockchain middleware platform and the blockchain console are used to record the storage information of each filing data among multiple filing data stored in the blockchain network, and the storage information of the filing data includes: filing data and storage timestamp of the filing data, and the storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
[0105] In one possible implementation, the blockchain middleware platform and the blockchain console are further used to record multiple query records, wherein each of the multiple query records corresponds to filing data, each of the multiple query records corresponds to a query that finds the filing data, the filing data corresponding to the query record is the filing data found through the query that corresponds to the query record, and the query record includes: the filing data corresponding to the query record, the time when the filing data corresponding to the query record is found through the query that corresponds to the query record, and the user identifier of the user to whom the terminal that sends the query request for querying the filing data corresponding to the query record belongs.
[0106] In this embodiment, the system is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0107] The further functional description of each of the above units is the same as that of the above corresponding embodiments and will not be repeated here.
[0108] refer to Figure 3 , which shows a schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0109] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0110] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0111] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0112] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0113] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means.
[0114] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0115] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0116] A portion of the embodiments of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can execute or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0117] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data filing method, characterized in that: The method comprises: The front-end system receives a storage request sent by a user's terminal, and sends the storage request to an application programming interface API service, wherein the storage request includes: target filing data and a filing data identifier of the target filing data; The API service signs the verification hash value of the target filing data using the private key to obtain the signature information of the verification hash value of the target filing data, and sends the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes of the blockchain network, and the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node to obtain the verification result of the filing data received by the blockchain node; For each blockchain node among the multiple blockchain nodes, when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, the blockchain node verifies the target filing data using the public key and the signature information of the verification hash value of the target filing data, obtains a verification result indicating that the target filing data has passed the verification, and executes the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data, and stores the target filing data and the transaction hash value of the target filing data in the blockchain node; The blockchain node sends the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service; The front-end system receives a query request for the filing data sent by the user's terminal, and sends a query request to the API service, wherein the query request includes: the user's input information; The API service finds the transaction hash value corresponding to the input information; Each of the blockchain nodes respectively executes the method for querying filing data of the smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information using the method for querying filing data, and the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information; The API service receives the filing data corresponding to the input information sent by the blockchain node, and sends the filing data corresponding to the input information to the user's terminal.
2. The method according to claim 1, characterized in that The API service uses the private key to sign the verification hash value of the target filing data. The signature information of the verification hash value of the target filing data includes: The API service verifies the integrity of the target filing data and the format of the target filing data; When the integrity of the target filing data passes verification and the format of the target filing data passes verification, the API service signs the verification hash value of the target filing data using the private key to obtain signature information of the verification hash value of the target filing data.
3. The method according to claim 1, characterized in that The method further comprises: The blockchain middleware platform and the blockchain console are used to record the storage information of each filing data among the multiple filing data stored in the blockchain network. The storage information of the filing data includes: the filing data and the storage timestamp of the filing data. The storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
4. The method according to claim 3, characterized in that: The method further comprises: A blockchain middleware platform and a blockchain console are used to record multiple query records, wherein each query record in the multiple query records corresponds to filing data, each query record in the multiple query records corresponds to a query that finds the filing data, the filing data corresponding to the query record is the filing data found through the query that corresponds to the query record, and the query record includes: the filing data corresponding to the query record, the time when the filing data corresponding to the query record is found through the query that corresponds to the query record, and the user identifier of the user to whom the terminal that sends the query request for querying the filing data corresponding to the query record belongs.
5. A data filing system, characterized in that: The system includes: a front-end system, an API service, and multiple blockchain nodes of a blockchain network; The front-end system is used to receive a storage request sent by a user's terminal, and send the storage request to the API service, the storage request including: target filing data, filing data identifier of the target filing data; The API service is used to sign the verification hash value of the target filing data using the private key, obtain the signature information of the verification hash value of the target filing data, and send the target filing data and the signature information of the verification hash value of the target filing data to each of the multiple blockchain nodes of the blockchain network, and the blockchain node is used to verify the filing data received by the blockchain node using the public key and the signature information of the verification hash value of the filing data received by the blockchain node, and obtain the verification result of the filing data received by the blockchain node; The blockchain node is used to verify the target filing data using the public key and the signature information of the verification hash value of the target filing data when the blockchain node receives the signature information of the target filing data and the verification hash value of the target filing data, obtain a verification result indicating that the target filing data has passed the verification, and execute the method for storing filing data of the smart contract on the blockchain node, so as to generate a transaction hash value of the target filing data through the method for storing filing data, and store the target filing data and the transaction hash value of the target filing data in the blockchain node; The blockchain node is used to send the transaction hash value of the target filing data and the storage timestamp of the target filing data to the API service; The front-end system is used to receive a query request for filing data sent by a user's terminal, and send a query request to the API service, wherein the query request includes: user input information; The API service is used to find out the transaction hash value corresponding to the input information; The blockchain node is used to execute a method for querying filing data of a smart contract on the blockchain node, so as to query the filing data corresponding to the input information according to the transaction hash value corresponding to the input information using the method for querying filing data, wherein the filing data corresponding to the input information is the filing data having the transaction hash value corresponding to the input information; The API service is used to receive the registration data corresponding to the input information sent by the blockchain node, and send the registration data corresponding to the input information to the user's terminal.
6. The system according to claim 5, characterized in that The API service is further used to verify the integrity of the target filing data and the format of the target filing data; when the integrity of the target filing data passes the verification and the format of the target filing data passes the verification, the verification hash value of the target filing data is signed using the private key to obtain the signature information of the verification hash value of the target filing data.
7. The system according to claim 5, characterized in that The system further comprises: The blockchain middleware platform and the blockchain console are used to record the storage information of each filing data among multiple filing data stored in the blockchain network, and the storage information of the filing data includes: filing data and storage timestamp of the filing data, and the storage timestamp of the filing data indicates the time when the filing data is stored in the blockchain network.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 4 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 4.
10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Service data recording method, device and equipment, and storage medium
CN108573741A
Evidence storage method, evidence verification method and device, equipment and medium
CN110879903A
Low-frequency access data processing method based on block chain
CN111447069A
Digital copyright access method based on block chain and all-in-one machine system
CN116910700A
Service processing system and method based on blockchain
WO2020244231A1
