Verification backtracking method and system for block data
By issuing and verifying temporary certificates in the blockchain and generating sub-members of formal certificates, the problem of low blockchain data verification and traceback efficiency is solved, and resource saving and efficient data traceability are achieved.
Patent Information
- Application Number
- CN202410744357.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-11
AI Technical Summary
The blockchain data verification process consumes a lot of computing resources and energy. As the network scale and transaction volume increase, the efficiency of data backtracking decreases.
Obtain the user's uploaded data and operation behavior in the block, issue a temporary certificate and send it to the server. The server verifies the temporary certificate and issues a formal certificate. Data can be traced back through the sub-members of the formal certificate, reducing resource consumption and improving efficiency.
By verifying and issuing certificates, the resource consumption of block data verification is reduced, the efficiency of data backtracking is improved, and the security of the data is ensured.
Smart Images

Figure CN118733531A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of block data backtracking, and in particular to a block data verification backtracking method and system. Background Art
[0002] Currently, blockchain data transmission and data copying require the turnover of multiple servers or the operations of multiple users.
[0003] However, the verification process of blockchain consumes a lot of computing resources and energy. As the scale of blockchain network expands and the transaction volume increases, this resource consumption will be further aggravated. At the same time, as the scale of blockchain network expands and the transaction volume increases, the data on blockchain will continue to grow. When tracing back data, it is necessary to traverse the historical records of the entire blockchain to find relevant information, which will reduce the efficiency of tracing back when processing a large amount of data. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a verification and backtracking method and system for block data, which can reduce the resource consumption of block data verification and improve the backtracking efficiency of block data.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A verification and backtracking method for block data, comprising the steps of:
[0007] Obtaining the uploaded data and operation behavior of the user who joins the block in the block, issuing a temporary certificate according to the uploaded data, and sending the temporary certificate and the operation behavior to the server;
[0008] Verify the block that uploads the temporary certificate in the server. When the verification is passed, determine whether the temporary certificate is a formal certificate in the certificate issuing server. If so, add the user's operation behavior as a sub-member of the formal certificate. Otherwise, parse the temporary certificate and issue a formal certificate based on the parsing result.
[0009] The block data is backtracked according to the sub-members of the formal certificate.
[0010] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0011] A verification and tracing system for block data, comprising:
[0012] The block is used to obtain the uploaded data and operation behavior of the user who joins the block, issue a temporary certificate according to the uploaded data, and send the temporary certificate and the operation behavior to the server;
[0013] The server is used to verify the block that uploaded the temporary certificate. When the verification is passed, it is determined whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is added as a sub-member of the formal certificate. Otherwise, the temporary certificate is parsed and a formal certificate is issued according to the parsing result; the block data is backtracked according to the sub-members of the formal certificate.
[0014] The beneficial effects of the present invention are: obtaining the uploaded data and operation behaviors of the users who join the block in the block, issuing a temporary certificate based on the uploaded data, and sending the temporary certificate and the operation behavior to the server together. After receiving the temporary certificate, the server verifies the block. After the verification is passed, it determines whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is appended to the sub-members of the formal certificate. Otherwise, the temporary certificate is parsed, and a formal certificate is issued based on the parsing result. After that, data backtracking can be performed through the sub-members of the formal certificate. In this way, it is sufficient to verify the server and the block during the verification process. In the backtracking process, it is only necessary to obtain the formal certificate of the data to be traced to achieve data backtracking, which can reduce the resource consumption of block data verification and improve the backtracking efficiency of block data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a verification and backtracking method for block data according to an embodiment of the present invention;
[0016] Figure 2 A schematic diagram of a block data verification and tracing system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0017] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0018] Please refer to Figure 1 , an embodiment of the present invention provides a verification and tracing method for block data, comprising the steps of:
[0019] Obtaining the uploaded data and operation behavior of the user who joins the block in the block, issuing a temporary certificate according to the uploaded data, and sending the temporary certificate and the operation behavior to the server;
[0020] Verify the block that uploads the temporary certificate in the server. When the verification is passed, determine whether the temporary certificate is a formal certificate in the certificate issuing server. If so, add the user's operation behavior as a sub-member of the formal certificate. Otherwise, parse the temporary certificate and issue a formal certificate based on the parsing result.
[0021] The block data is backtracked according to the sub-members of the formal certificate.
[0022] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the uploaded data and operation behaviors of the users who join the block in the block, issuing a temporary certificate based on the uploaded data, and sending the temporary certificate and the operation behavior to the server together. After receiving the temporary certificate, the server verifies the block. After the verification is passed, it determines whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is appended to the sub-members of the formal certificate. Otherwise, the temporary certificate is parsed, and a formal certificate is issued according to the parsing result. After that, data backtracking can be performed through the sub-members of the formal certificate. In this way, it is sufficient to verify the server and the block during the verification process. In the backtracking process, it is only necessary to obtain the formal certificate of the data to be traced to achieve data backtracking, which can reduce the resource consumption of block data verification and improve the backtracking efficiency of block data.
[0023] Further, issuing a temporary certificate according to the uploaded data includes:
[0024] Using the data type of the uploaded data as header data of the temporary certificate, and adding user information of the user corresponding to the uploaded data to the certificate data of the temporary certificate;
[0025] The user information includes user IP, time, hardware information and location.
[0026] From the above description, it can be seen that according to the type of uploaded data and user information, a temporary certificate can be quickly issued to the user in the block. This method can give a preliminary, temporary identity or authority immediately after the data is generated, so as to facilitate subsequent verification.
[0027] Furthermore, the block for uploading the temporary certificate is verified in the server, including:
[0028] It is determined whether the relationship between the block for uploading the temporary certificate and the user in the block exists in the trusted zone. If so, the verification is successful; otherwise, the verification fails.
[0029] From the above description, it can be seen that when the relationship between the block and the user is untrusted, the block user is not allowed to process the data, thereby ensuring the security of the data.
[0030] Further, the temporary certificate is parsed, and a formal certificate is issued according to the parsing result, including:
[0031] Parsing the data type and user information of the uploaded data from the temporary certificate;
[0032] Obtaining a trusted zone path of a trusted zone of the block, wherein the trusted zone path includes associated block and user information;
[0033] A formal certificate is created by combining the data type, user information, and trusted zone path.
[0034] From the above description, it can be seen that the formal certificate is established by combining the content of the temporary certificate and the trust zone path, so that the block data can be added.
[0035] Furthermore, the block data is backtracked according to the sub-members of the formal certificate, including:
[0036] The sub-members who obtain the formal certificate obtain the operation behavior of each user on the block data.
[0037] From the above description, it can be seen that the original data of the block can be obtained through the official certificate, and the data accessed and modified data can be obtained through the data in the sub-members of the official certificate, so that the block data can be quickly traced back.
[0038] Please refer to Figure 2 Another embodiment of the present invention provides a block data verification and tracing system, including:
[0039] The block is used to obtain the uploaded data and operation behavior of the user who joins the block, issue a temporary certificate according to the uploaded data, and send the temporary certificate and the operation behavior to the server;
[0040] The server is used to verify the block that uploaded the temporary certificate. When the verification is passed, it is determined whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is added as a sub-member of the formal certificate. Otherwise, the temporary certificate is parsed and a formal certificate is issued according to the parsing result; the block data is backtracked according to the sub-members of the formal certificate.
[0041] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the uploaded data and operation behaviors of the users who join the block in the block, issuing a temporary certificate based on the uploaded data, and sending the temporary certificate and the operation behavior to the server together. After receiving the temporary certificate, the server verifies the block. After the verification is passed, it determines whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is appended to the sub-members of the formal certificate. Otherwise, the temporary certificate is parsed, and a formal certificate is issued according to the parsing result. After that, data backtracking can be performed through the sub-members of the formal certificate. In this way, it is sufficient to verify the server and the block during the verification process. In the backtracking process, it is only necessary to obtain the formal certificate of the data to be traced to achieve data backtracking, which can reduce the resource consumption of block data verification and improve the backtracking efficiency of block data.
[0042] Further, issuing a temporary certificate according to the uploaded data includes:
[0043] Using the data type of the uploaded data as header data of the temporary certificate, and adding user information of the user corresponding to the uploaded data to the certificate data of the temporary certificate;
[0044] The user information includes user IP, time, hardware information and location.
[0045] From the above description, it can be seen that according to the type of uploaded data and user information, a temporary certificate can be quickly issued to the user in the block. This method can give a preliminary, temporary identity or authority immediately after the data is generated, so as to facilitate subsequent verification.
[0046] Furthermore, the block for uploading the temporary certificate is verified in the server, including:
[0047] It is determined whether the relationship between the block for uploading the temporary certificate and the user in the block exists in the trusted zone. If so, the verification is successful; otherwise, the verification fails.
[0048] From the above description, it can be seen that when the relationship between the block and the user is untrusted, the block user is not allowed to process the data, thereby ensuring the security of the data.
[0049] Further, the temporary certificate is parsed, and a formal certificate is issued according to the parsing result, including:
[0050] Parsing the data type and user information of the uploaded data from the temporary certificate;
[0051] Obtaining a trusted zone path of a trusted zone of the block, wherein the trusted zone path includes associated block and user information;
[0052] A formal certificate is created by combining the data type, user information, and trusted zone path.
[0053] From the above description, it can be seen that the formal certificate is established by combining the content of the temporary certificate and the trust zone path, so that the block data can be added.
[0054] Furthermore, the block data is backtracked according to the sub-members of the formal certificate, including:
[0055] The sub-members who obtain the formal certificate obtain the operation behavior of each user on the block data.
[0056] From the above description, it can be seen that the original data of the block can be obtained through the official certificate, and the data accessed and modified data can be obtained through the data in the sub-members of the official certificate, so that the block data can be quickly traced back.
[0057] The above-mentioned block data verification and backtracking method and system of the present invention are suitable for reducing resource consumption of block data verification and improving the backtracking efficiency of block data. The following is an explanation through specific implementation methods:
[0058] Embodiment 1
[0059] Please refer to Figure 1 , a verification and tracing method for block data, comprising the steps of:
[0060] S1. Obtain the uploaded data and operation behavior of the user who joins the block in the block, issue a temporary certificate according to the uploaded data, and send the temporary certificate and the operation behavior to the server.
[0061] Specifically, after joining the block, the user uploads data to the block and operates the data. In this embodiment, the data may include image data, file data, text data, etc., and the operations may include adding, accessing, deleting, modifying, etc.
[0062] Furthermore, the block uses the data type of the uploaded data as the header data of the temporary certificate, and adds the user information of the user corresponding to the uploaded data to the certificate data of the temporary certificate.
[0063] Specifically, the block obtains the data type of the data uploaded by the user, uses the data type as the header data of the temporary certificate, and uses the user information as the certificate data. The user information includes the user IP, current time, current hardware information, and current location.
[0064] S2. Verify the block that uploads the temporary certificate in the server. When the verification is passed, determine whether the temporary certificate is a formal certificate in the certificate issuing server. If so, add the user's operation behavior as a sub-member of the formal certificate. Otherwise, parse the temporary certificate and issue a formal certificate based on the parsing result.
[0065] Specifically, after receiving the block data, the server first verifies the block. In this embodiment, a trusted zone is set for the block, and the trusted zone includes a trusted zone path and trusted members. The trusted zone path includes a path identifier (i.e., block information) and a path member (i.e., user information), and the trusted member has its corresponding certificate. Therefore, it is determined whether the relationship between the block and the user exists in the trusted zone. If so, the verification is passed, otherwise, the verification fails.
[0066] Then, when the verification is passed, it is determined whether the temporary certificate is the official certificate in the certificate issuing server. In this embodiment, the certificate issuing server stores multiple official certificates, and the currently used server can only operate the data corresponding to the official certificate after being authorized by the certificate issuing server. In this way, it is convenient to verify the source and integrity of the data in a safe and reliable way.
[0067] When the temporary certificate belongs to the formal certificate, the user's operation behavior is added as a sub-member of the formal certificate. Specifically, an access tag can be added to the formal certificate, and the user's operation behavior is recorded in the access tag, which can provide a reference and time change cycle for data changes to prove the legitimacy of the data.
[0068] When the temporary certificate is not a formal certificate, the certificate information is generated based on the data submitted by the block and the certificate path is recorded. That is, the data type and user information of the uploaded data are parsed from the temporary certificate, and the trust zone path of the trusted zone of the block is obtained, where the trust zone path contains the associated block and user information, and then the formal certificate is established in combination with the data type, user information and trust zone path.
[0069] Therefore, only verified and authorized servers and blocks can participate in the modification and management of data, thus preventing unauthorized access and tampering.
[0070] S3. Backtrack the block data according to the sub-members of the formal certificate.
[0071] Specifically, the operation behavior of each user on the block data is obtained by obtaining the sub-member of the formal certificate. In this embodiment, the issuance of the certificate can provide a reference for the original data of the block, and the data in the sub-member (time, hardware information, location) can provide a reference for data access modification.
[0072] Embodiment 2
[0073] Please refer to Figure 2 A verification and tracing system for block data includes a block and a server. The block executes each step of a verification and tracing method for block data that is implemented with the block as the main body, and the server executes each step of a verification and tracing method for block data that is implemented with the server as the main body.
[0074] In summary, the present invention provides a verification and backtracking method and system for block data, which obtains the uploaded data and operation behavior of the users who join the block in the block, issues a temporary certificate based on the uploaded data, and sends the temporary certificate and the operation behavior to the server together. After receiving the temporary certificate, the server verifies the block. After the verification is passed, it determines whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is appended to the sub-members of the formal certificate. Otherwise, the temporary certificate is parsed, and a formal certificate is issued according to the parsing result, after which the data can be backtracked through the sub-members of the formal certificate. In this way, it is sufficient to verify the server and the block during the verification process. In the backtracking process, it is only necessary to obtain the formal certificate of the data to be traced to achieve data backtracking, which can reduce the resource consumption of block data verification and improve the backtracking efficiency of block data.
[0075] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A verification and backtracking method for block data, characterized in that: Includes steps: Obtaining the uploaded data and operation behavior of the user who joins the block in the block, issuing a temporary certificate according to the uploaded data, and sending the temporary certificate and the operation behavior to the server; Verify the block that uploads the temporary certificate in the server. When the verification is passed, determine whether the temporary certificate is a formal certificate in the certificate issuing server. If so, add the user's operation behavior as a sub-member of the formal certificate. Otherwise, parse the temporary certificate and issue a formal certificate based on the parsing result. The block data is backtracked according to the sub-members of the formal certificate.
2. A verification and tracing method for block data according to claim 1, characterized in that: Issuing a temporary certificate based on the uploaded data, including: Using the data type of the uploaded data as header data of the temporary certificate, and adding user information of the user corresponding to the uploaded data to the certificate data of the temporary certificate; The user information includes user IP, time, hardware information and location.
3. A verification and tracing method for block data according to claim 2, characterized in that: The server verifies the block that uploaded the temporary certificate, including: It is determined whether the relationship between the block in which the temporary certificate is uploaded and the user in the block exists in the trusted zone. If so, the verification is successful; otherwise, the verification fails.
4. A verification and tracing method for block data according to claim 3, characterized in that: Parse the temporary certificate and issue a formal certificate based on the parsing result, including: Parsing the data type and user information of the uploaded data from the temporary certificate; Obtaining a trusted zone path of a trusted zone of the block, wherein the trusted zone path includes associated block and user information; A formal certificate is created by combining the data type, user information, and trusted zone path.
5. A verification and tracing method for block data according to claim 1, characterized in that: The block data is backtracked according to the sub-members of the formal certificate, including: The sub-members who obtain the formal certificate obtain the operation behavior of each user on the block data.
6. A verification and tracing system for block data, characterized in that: include: The block is used to obtain the uploaded data and operation behavior of the user who joins the block, issue a temporary certificate according to the uploaded data, and send the temporary certificate and the operation behavior to the server; The server is used to verify the block that uploaded the temporary certificate. When the verification is passed, it is determined whether the temporary certificate is a formal certificate in the certificate issuing server. If so, the user's operation behavior is added as a sub-member of the formal certificate. Otherwise, the temporary certificate is parsed and a formal certificate is issued according to the parsing result. The block data is backtracked according to the sub-members of the formal certificate.
7. A block data verification and tracing system according to claim 6, characterized in that: Issuing a temporary certificate based on the uploaded data, including: Using the data type of the uploaded data as header data of the temporary certificate, and adding user information of the user corresponding to the uploaded data to the certificate data of the temporary certificate; The user information includes user IP, time, hardware information and location.
8. A block data verification and tracing system according to claim 7, characterized in that: The server verifies the block that uploaded the temporary certificate, including: It is determined whether the relationship between the block in which the temporary certificate is uploaded and the user in the block exists in the trusted zone. If so, the verification is successful; otherwise, the verification fails.
9. A block data verification and tracing system according to claim 8, characterized in that: Parse the temporary certificate and issue a formal certificate based on the parsing result, including: Parsing the data type and user information of the uploaded data from the temporary certificate; Obtaining a trusted zone path of a trusted zone of the block, wherein the trusted zone path includes associated block and user information; A formal certificate is created by combining the data type, user information, and trusted zone path.
10. A block data verification and tracing system according to claim 6, characterized in that: The block data is backtracked according to the sub-members of the formal certificate, including: The sub-members who obtain the formal certificate obtain the operation behavior of each user on the block data.
Citation Information
Patent Citations
Digital content copyright protection method and device based on block chain platform
CN112364305A
Identity trusted service system and method, electronic equipment and computer readable medium
CN112560005A
Method for entrusting blockchain operations contents
EP3761207A1
Data structure, information processing device, program, information processing method and transaction system
JP6234539B1
