Blockchain integrity verification method and device
By conducting the user's dual -permission legislative verification and using the computer software capability authentication system for third -party verification, the third -party verification system is solved, and the credibility of the third -party audit institution in the blockchain integrity verification has improved the reliability and security of the verification operation. Essence
Patent Information
- Application Number
- CN202110476431.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-04-29
AI Technical Summary
In the prior art, the credibility problem of third-party audit institutions in the public audit model has not been effectively solved, resulting in the risk of low reliability and security in the blockchain integrity verification process.
Before performing the blockchain integrity verification operation, double permission legality verification operations are performed on the user, and the computer software capability certification system is used for third-party verification to ensure the legality and credibility of the user permissions.
Effectively improve the reliability and security of blockchain integrity verification operations, prevent the conspiracy behavior of third -party audit institutions, and ensure the integrity of data and user trust.
Smart Images

Figure CN113158259B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain and can also be used in the financial field, and specifically relates to a blockchain integrity verification method and device. Background Art
[0002] The integrity of the data stored by users in the cloud has attracted much attention. Researchers have proposed a variety of verification models for the integrity of data. Among them, the credibility of the third party auditor (TPA) in the data integrity verification model that supports public auditing has not been well resolved. The role of TPA in the public audit model is crucial. In the public audit model, the user, TPA, and cloud storage provider interact to complete the verification process. However, in actual situations, TPA may collude with any party in the three-party interaction process to deceive the other party and obtain commercial benefits. Summary of the invention
[0003] In response to the problems in the prior art, the present application provides a blockchain integrity verification method and device, which can effectively improve the reliability and security of blockchain integrity verification operations.
[0004] In order to solve at least one of the above problems, the present application provides the following technical solutions:
[0005] In a first aspect, the present application provides a blockchain integrity verification method, comprising:
[0006] Receive a permission challenge generation request sent by a user, and judge the legitimacy of the user's permissions according to the permission challenge generation request, and after judging that the legitimacy result of the permissions is passed, generate a permission challenge instruction according to the permission challenge generation request and the user identity information in the set metadata database, and send the permission challenge instruction to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and return a response instruction after the third-party verification passes;
[0007] Receive a response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0008] Furthermore, after sending the permission challenge instruction to the computer software capability authentication system, it also includes:
[0009] Receive a permission challenge update request sent by a user, update data in a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result;
[0010] Receive the update result sent by the computer software capability authentication system, and perform an update result comparison and verification operation according to the update result, the authority challenge update request and the metadata database after the data is updated to determine the accuracy of the update result of the computer software capability authentication system.
[0011] Further, performing a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database to obtain a blockchain integrity verification result includes: retrieving corresponding tag information in the setting metadata database according to the received response instruction;
[0012] A blockchain integrity verification operation is performed according to the tag information, the response instruction, and the authority challenge instruction to obtain a blockchain integrity verification result.
[0013] Further, after the metadata database completes the data update, it includes:
[0014] The updated metadata in the metadata database is uploaded to the blockchain through the setting of the blockchain.
[0015] In a second aspect, the present application provides a blockchain integrity verification device, comprising:
[0016] A permission challenge module is used to receive a permission challenge generation request sent by a user, and to judge the legitimacy of the user's permissions according to the permission challenge generation request. After judging that the legitimacy result of the permissions is passed, a permission challenge instruction is generated according to the permission challenge generation request and the user identity information in the set metadata database, and the permission challenge instruction is sent to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and returns a response instruction after the third-party verification passes;
[0017] The integrity verification module is used to receive the response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0018] Furthermore, it also includes:
[0019] Generate an update challenge module, which is used to receive a permission challenge update request sent by a user, update data in a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result;
[0020] The update challenge verification module is used to receive the update result sent by the computer software capability authentication system, and perform an update result comparison and verification operation based on the update result, the permission challenge update request and the metadata database after the data is updated to determine the accuracy of the update result of the computer software capability authentication system.
[0021] Further, the integrity verification module includes: a tag information determination unit, configured to retrieve corresponding tag information in the setting metadata database according to the received response instruction;
[0022] The integrity verification unit is used to perform a blockchain integrity verification operation according to the tag information, the response instruction and the authority challenge instruction to obtain a blockchain integrity verification result.
[0023] Furthermore, it also includes:
[0024] The metadata synchronization module is used to upload the updated metadata in the metadata database to the blockchain through the setting blockchain.
[0025] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the blockchain integrity verification method when executing the program.
[0026] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the blockchain integrity verification method.
[0027] It can be seen from the above technical solution that the present application provides a blockchain integrity verification method and device, which can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0029] Figure 1 This is one of the flowcharts of the blockchain integrity verification method in the embodiment of the present application;
[0030] Figure 2 This is the second flow chart of the blockchain integrity verification method in the embodiment of the present application;
[0031] Figure 3 This is the third flow chart of the blockchain integrity verification method in the embodiment of the present application;
[0032] Figure 4 This is one of the structural diagrams of the blockchain integrity verification device in the embodiment of the present application;
[0033] Figure 5 This is the second structural diagram of the blockchain integrity verification device in the embodiment of the present application;
[0034] Figure 6 This is a flowchart of a blockchain integrity verification method in a specific embodiment of the present application;
[0035] Figure 7 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0037] Taking into account the problem of low reliability and security of users performing blockchain integrity verification in the prior art, the present application provides a blockchain integrity verification method and device, which can effectively improve the reliability and security of blockchain integrity verification operations by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0038] In order to effectively improve the reliability and security of blockchain integrity verification operations, this application provides an embodiment of a blockchain integrity verification method, see Figure 1 , the blockchain integrity verification method specifically includes the following contents:
[0039] Step S101: receiving a permission challenge generation request sent by a user, and judging the legitimacy of the user's permissions based on the permission challenge generation request, after judging that the legitimacy result of the permissions is passed, generating a permission challenge instruction based on the permission challenge generation request and the user identity information in the set metadata database, and sending the permission challenge instruction to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and returns a response instruction after the third-party verification passes.
[0040] Optionally, the permission challenge generation request is a request sent by the user to perform an integrity verification operation on the target blockchain. When receiving the permission challenge generation request, the present application does not directly initiate the integrity verification operation on the blockchain, but first performs a permission legitimacy judgment on the user based on the permission challenge generation request. The permission legitimacy judgment may include a judgment on the legitimacy of the user himself and a judgment on the authority of the user request to perform integrity verification.
[0041] Optionally, the setting metadata database of the present application stores the original data sent in advance by the user and pre-processed, and the metadata describing the object storage is also metadata in a "narrow sense", for example, including several categories:
[0042] Management attributes (creator, application system, business line, business manager, etc.), life cycle (creation time, DDL time, version information, etc.), storage attributes (location, physical size, etc.), data characteristics (data skew, average length, etc.), usage characteristics (DML, refresh rate, etc.) and data structure.
[0043] Optionally, after the above-mentioned judgment on the legitimacy of the user's permissions is passed, the present application can generate a permission challenge instruction based on the permission challenge generation request and the user identity information in the setting metadata database, that is, prepare to perform a second verification of the user's permissions. For this purpose, the present application can send the permission challenge instruction to the setting computer software capability certification system (CSP).
[0044] It is understandable that the computer software capability certification system (CSP) has a built-in content security policy stored by a third party, based on which the user authority can be checked for the second time, which is also a more stringent authority verification procedure, and a response instruction is returned after the verification passes.
[0045] Step S102: Receive a response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0046] Optionally, after receiving the response instruction sent by the computer software capability certification system, the present application can perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction and the tag information in the set metadata database to obtain a blockchain integrity verification result. For example, the system status and program running status of TPA are measured and recorded for integrity using trusted computing technology, and then the trusted measurement value and audit task related parameters are packaged into the blockchain, thereby forming a trusted blockchain for TPA audit tasks. The credibility of TPA running status and audit tasks is guaranteed, so that it can perform outsourced data verification tasks truthfully.
[0047] From the above description, it can be seen that the blockchain integrity verification method provided in the embodiment of the present application can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0048] In order to ensure the data consistency between the metadata and the third-party computer software capability authentication system, in one embodiment of the blockchain integrity verification method of the present application, see Figure 2 After sending the permission challenge instruction to the computer software capability authentication system, the following contents may be specifically included:
[0049] Step S201: Receive a permission challenge update request sent by a user, update data in a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result.
[0050] Step S202: receiving the update result sent by the computer software capability authentication system, and performing an update result comparison and verification operation according to the update result, the permission challenge update request and the metadata database after data update to determine the accuracy of the update result of the computer software capability authentication system.
[0051] In some feasible embodiments of the present application, the user of the present application can send a permission challenge update request to update the metadata in the metadata database. Specifically, after receiving the permission challenge update request sent by the user, the present application can update the data in the metadata database according to the permission challenge update request. Specifically, if a movie is regarded as data, then all the information seen on the movie poster, such as the movie name, director, actor, producer, movie type, etc., can be regarded as the metadata of the movie. Update these metadata in the metadata database.
[0052] Optionally, in order to ensure the consistency of data stored in the metadata database and the data stored in the CSP, after the metadata database is updated, the present application can generate a permission challenge update instruction based on the updated data location in the metadata database and send the permission challenge update instruction to the set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns the update result.
[0053] At the same time, in order to ensure the correct update of the computer software capability authentication system, after receiving the update result sent by the computer software capability authentication system, the application can perform an update result comparison and verification operation based on the update result, the permission challenge update request and the metadata database after the data is updated, so as to determine the accuracy of the update result of the computer software capability authentication system. The integrity verification process between the user and the CSP is, for example:
[0054] ① indicates that the user stores the encrypted files in the CSP and operates the data in the cloud.
[0055] ② Indicates that the processed metadata is sent to the TPA Cloud Alliance, or the user needs to issue a challenge command (including challenge integrity and challenge update).
[0056] ③ Indicates sending the integrity challenge or update challenge generated by the TPA cloud alliance to the CSP.
[0057] ④CSP sends the integrity response or updated response to the TPA cloud alliance.
[0058] ⑤TPA Cloud Alliance sends the challenge-response comparison results to the user.
[0059] ⑥Data operations provided by CSP to users.
[0060] In order to accurately perform the blockchain integrity verification operation, in one embodiment of the blockchain integrity verification method of the present application, see Figure 3 , the step S102 may further specifically include the following contents:
[0061] Step S301: Retrieve corresponding tag information in the setting metadata database according to the received response instruction.
[0062] Step S302: Perform a blockchain integrity verification operation according to the tag information, the response instruction, and the authority challenge instruction to obtain a blockchain integrity verification result.
[0063] Specifically, first, the processed response instruction is received and the tag information is retrieved from the metadata database. Then the tag information, the response instruction and the authority challenge instruction are used to perform a blockchain integrity verification operation. The verification result is sent to the user CU.
[0064] In order to ensure the data consistency between the metadata and the third-party computer software capability authentication system, in one embodiment of the blockchain integrity verification method of the present application, after the metadata database completes the data update, the following contents may also be specifically included:
[0065] The updated metadata in the metadata database is uploaded to the blockchain through the setting of the blockchain. The authenticity, reliability and security of the updated metadata can be guaranteed.
[0066] In order to effectively improve the reliability and security of blockchain integrity verification operations, the present application provides an embodiment of a blockchain integrity verification device for implementing all or part of the contents of the blockchain integrity verification method, see Figure 4 , the blockchain integrity verification device specifically includes the following contents:
[0067] The permission challenge module 10 is used to receive a permission challenge generation request sent by a user, and judge the legitimacy of the user's permissions based on the permission challenge generation request. After judging that the permission legitimacy result is passed, a permission challenge instruction is generated based on the permission challenge generation request and the user identity information in the set metadata database, and the permission challenge instruction is sent to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the user's permission legitimacy result, and returns a response instruction after the third-party verification passes.
[0068] The integrity verification module 20 is used to receive the response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0069] From the above description, it can be seen that the blockchain integrity verification device provided in the embodiment of the present application can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0070] In order to ensure the data consistency between the metadata and the third-party computer software capability authentication system, in one embodiment of the blockchain integrity verification device of the present application, the following contents are specifically included:
[0071] Generate an update challenge module, which is used to receive a permission challenge update request sent by a user, update the data of a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result.
[0072] The update challenge verification module is used to receive the update result sent by the computer software capability authentication system, and perform an update result comparison and verification operation based on the update result, the permission challenge update request and the metadata database after the data is updated to determine the accuracy of the update result of the computer software capability authentication system.
[0073] In order to accurately perform the blockchain integrity verification operation, in one embodiment of the blockchain integrity verification device of the present application, see Figure 5 , the integrity verification module 20 includes:
[0074] The tag information determining unit 21 is used to retrieve the corresponding tag information in the setting metadata database according to the received response instruction.
[0075] The integrity verification unit 22 is used to perform a blockchain integrity verification operation according to the tag information, the response instruction and the authority challenge instruction to obtain a blockchain integrity verification result.
[0076] In order to ensure the data consistency between the metadata and the third-party computer software capability authentication system, in one embodiment of the blockchain integrity verification device of the present application, the following contents are specifically included:
[0077] The metadata synchronization module is used to upload the updated metadata in the metadata database to the blockchain through the setting blockchain.
[0078] In order to further illustrate this solution, this application also provides a specific application example of using the above-mentioned blockchain integrity verification device to implement the blockchain integrity verification method, see Figure 6 , it is understandable that Figure 6 The hollow arrows in the figure represent the transmission of data, and the solid arrows represent the sending of instructions.
[0079] Specifically, the Accept CU Request Module is used to analyze the request sent by the user CU to the network operation layer, which can be divided into three types of requests:
[0080] The first is a metadata storage request T1, that is, the user sends pre-processed raw data to the metadata database of the operation layer.
[0081] The second type is the challenge generation request r1, that is, the user CU requires the operation layer to generate a challenge in the correct format and send it to the CSP.
[0082] The third type is the challenge update request r2, which is the challenge update request conveyed by the user CU to the operation layer.
[0083] The Accept CSP Result Module is used to receive and process the return results from the cloud storage service provider CSP (i.e., the third-party computer software capability certification system). Specifically, the return results include three types:
[0084] The first is the "response" result returned by CSP to the operation layer, which is sent by r3 to the integrity verification module.
[0085] The second is the "update" result returned by CSP to the operation layer, which is sent by r4 to the update challenge verification module.
[0086] Generate Challenge Module: This module is used to generate a "challenge" command for a user to make an integrity verification request and send it to the CSP. Based on the received challenge request r1, it sends the relevant metadata T2 to the metadata repository to generate a "challenge" and finally sends it to the CSP.
[0087] Generate Update Module: This module is used to generate update operations for user update requests. Specifically, it first receives an update request r2. The module obtains information such as the location of the data to be updated through T5, generates a corresponding "update operation", and sends it to the CSP. At the same time, T5 is used to ensure the consistency of the data stored in the metadata repository and the data stored in the CSP.
[0088] Update Challenge Verification Module: This module is used to verify the update result sent by CSP. It inputs the update result r4, update request, and updated metadata T4, and performs a three-party update verification comparison to confirm whether the "update operation" of CSP is correct. The output comparison result is sent to the user CU.
[0089] Integrity Verification Module: This module is a key module of the operation layer. Its function is to complete the integrity verification of the data. Specifically, first, it receives the processed "response" result and retrieves the tag information T3 from the metadata database. Then, based on the challenge, response r3, and metadata T3, it performs blockchain integrity verification and sends the verification result to the user CU.
[0090] The metadata database is used to store the user's metadata after special processing, so that the challenge generation module, the update challenge module, the update challenge verification module, and the integrity verification module can retrieve the required data, and the metadata database will upload the metadata to the blockchain system.
[0091] Operation Log Module: This module is used to record the operation records of all modules in different time periods, and encapsulate the records in a format and broadcast them to the blockchain network.
[0092] From the above content, it can be seen that the present application can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0093] From the hardware level, in order to effectively improve the reliability and security of the blockchain integrity verification operation, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the blockchain integrity verification method, and the electronic device specifically includes the following contents:
[0094] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the blockchain integrity verification device and the core business system, user terminal and related database and other related devices; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., and the present embodiment is not limited thereto. In this embodiment, the logic controller can be implemented with reference to the embodiment of the blockchain integrity verification method and the embodiment of the blockchain integrity verification device in the embodiment, and the contents thereof are incorporated herein, and the repeated parts are not repeated.
[0095] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.
[0096] In practical applications, part of the blockchain integrity verification method can be executed on the electronic device side as described above, or all operations can be completed in the client device. The specific selection can be based on the processing capacity of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0097] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0098] Figure 7 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Figure 7 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Figure 7 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0099] In one embodiment, the blockchain integrity verification method function can be integrated into the central processor 9100.
[0100] The CPU 9100 may be configured to perform the following control:
[0101] Step S101: receiving a permission challenge generation request sent by a user, and judging the legitimacy of the user's permissions based on the permission challenge generation request, after judging that the legitimacy result of the permissions is passed, generating a permission challenge instruction based on the permission challenge generation request and the user identity information in the set metadata database, and sending the permission challenge instruction to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and returns a response instruction after the third-party verification passes.
[0102] Step S102: Receive a response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0103] From the above description, it can be seen that the electronic device provided in the embodiment of the present application can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0104] In another embodiment, the blockchain integrity verification device can be configured separately from the central processor 9100. For example, the blockchain integrity verification device can be configured as a chip connected to the central processor 9100, and the blockchain integrity verification method function can be implemented through the control of the central processor.
[0105] like Figure 7 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Figure 7 In addition, the electronic device 9600 may also include Figure 7 For components not shown, reference may be made to the prior art.
[0106] like Figure 7 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0107] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0108] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0109] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0110] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0111] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0112] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0113] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the blockchain integrity verification method in the above embodiment, where the execution subject is a server or a client. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, all the steps of the blockchain integrity verification method in the above embodiment, where the execution subject is a server or a client, are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0114] Step S101: receiving a permission challenge generation request sent by a user, and judging the legitimacy of the user's permissions based on the permission challenge generation request, after judging that the legitimacy result of the permissions is passed, generating a permission challenge instruction based on the permission challenge generation request and the user identity information in the set metadata database, and sending the permission challenge instruction to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and returns a response instruction after the third-party verification passes.
[0115] Step S102: Receive a response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
[0116] From the above description, it can be seen that the computer-readable storage medium provided in the embodiment of the present application can effectively improve the reliability and security of the blockchain integrity verification operation by performing a double permission legitimacy verification operation on the user before performing the blockchain integrity verification operation.
[0117] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0121] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A blockchain integrity verification method, characterized in that: The method comprises: Receive a permission challenge generation request sent by a user, and judge the legitimacy of the user's permissions according to the permission challenge generation request, and after judging that the legitimacy result of the permissions is passed, generate a permission challenge instruction according to the permission challenge generation request and the user identity information in the set metadata database, and send the permission challenge instruction to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and return a response instruction after the third-party verification passes; Receive a response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
2. The blockchain integrity verification method according to claim 1, characterized in that: After sending the permission challenge instruction to the computer software capability authentication system, the method further includes: Receive a permission challenge update request sent by a user, update data in a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result; Receive the update result sent by the computer software capability authentication system, and perform an update result comparison and verification operation according to the update result, the authority challenge update request and the metadata database after the data is updated to determine the accuracy of the update result of the computer software capability authentication system.
3. The blockchain integrity verification method according to claim 1 is characterized in that: The performing a blockchain integrity verification operation according to the response instruction, the authority challenge instruction, and the tag information in the setting metadata database to obtain a blockchain integrity verification result includes: Retrieving corresponding tag information in the setting metadata database according to the received response instruction; A blockchain integrity verification operation is performed according to the tag information, the response instruction, and the authority challenge instruction to obtain a blockchain integrity verification result.
4. The blockchain integrity verification method according to claim 2, characterized in that: After the metadata database completes data update, it includes: The updated metadata in the metadata database is uploaded to the blockchain through the setting of the blockchain.
5. A blockchain integrity verification device, characterized in that: include: A permission challenge module is used to receive a permission challenge generation request sent by a user, and to judge the legitimacy of the user's permissions according to the permission challenge generation request. After judging that the legitimacy result of the permissions is passed, a permission challenge instruction is generated according to the permission challenge generation request and the user identity information in the set metadata database, and the permission challenge instruction is sent to the set computer software capability authentication system, so that the computer software capability authentication system performs a third-party verification on the legitimacy result of the user's permissions, and returns a response instruction after the third-party verification passes; The integrity verification module is used to receive the response instruction sent by the computer software capability authentication system, perform a blockchain integrity verification operation according to the response instruction, the authority challenge instruction and the tag information in the setting metadata database, and obtain a blockchain integrity verification result.
6. The blockchain integrity verification device according to claim 5, characterized in that: Also includes: Generate an update challenge module, which is used to receive a permission challenge update request sent by a user, update data in a set metadata database according to the permission challenge update request, generate a permission challenge update instruction according to the updated data position in the metadata database, and send the permission challenge update instruction to a set computer software capability authentication system, so that the computer software capability authentication system updates local data according to the permission challenge update instruction and returns an update result; The update challenge verification module is used to receive the update result sent by the computer software capability authentication system, and perform an update result comparison and verification operation based on the update result, the permission challenge update request and the metadata database after the data is updated to determine the accuracy of the update result of the computer software capability authentication system.
7. The blockchain integrity verification device according to claim 5, characterized in that: The integrity verification module comprises: a tag information determining unit, configured to retrieve corresponding tag information from the setting metadata database according to the received response instruction; The integrity verification unit is used to perform a blockchain integrity verification operation according to the tag information, the response instruction and the authority challenge instruction to obtain a blockchain integrity verification result.
8. The blockchain integrity verification device according to claim 6, characterized in that: Also includes: The metadata synchronization module is used to upload the updated metadata in the metadata database to the blockchain through the setting blockchain.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the blockchain integrity verification method described in any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the blockchain integrity verification method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Cloud storage possession proving method and system based on block chain and medium
CN111222176A
Industrial Internet data security monitoring method and system based on block chain
CN111711627A