User authority control system and method based on block chain

By treating resource access requests as non-on-chain objects in the user permission control system, and taking advantage of the decentralization and security of the blockchain, the problem of slow blockchain permission control solutions is solved, and fast and efficient user permissions are achieved. Management, overcoming the performance bottleneck caused by frequency consensus.

CN118764162APending Publication Date: 2024-10-11STATE GRID INFORMATION & TELECOMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410899068.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Blockchain-based permission control solutions have problems such as slow speed, inflexibility, and the cost of some methods, making it difficult to meet the needs of fast and efficient user permission management.

Method used

By treating the most frequent access resource requests as non-on-chain objects in the user authority control system, the decentralization and security of blockchain technology are used to reduce the delay caused by frequency consensus and provide fast user authority management services. The specific implementation includes the user layer, blockchain control layer and service layer. The blockchain control layer processes based on the type of user request and preset on-chain rules, and ensures the security and performance of the system through the P2P network and PBFT consensus mechanism.

Benefits of technology

While maintaining the decentralization and security advantages of blockchain technology, it improves the speed and performance of user rights management, overcomes the inherent shortcomings of slow speed caused by frequency consensus of blockchain technology, and provides fast and efficient permissions. Management services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764162A_ABST
    Figure CN118764162A_ABST
Patent Text Reader

Abstract

The invention provides a user permission control system and method based on a block chain, and belongs to the technical field of block chains. Specifically, the user right control system comprises a user layer used for obtaining a user request; the block chain control layer is used for processing the user request based on the type of the user request and a preset uplink rule, and the service layer is used for providing a resource service matched with an authority judgment result based on the authority judgment result of the block chain control layer; wherein the types of the user requests comprise a first type of requests and a second type of requests; the second type of requests are resource access requests; the preset uplink rule comprises that the first type of request is an uplink object; the second type of requests are non-uplink objects. According to the method, the most frequent access resource request is taken as a non-uplink object, the advantages of decentralization and high security of the block chain technology can be played, the inherent defect of low speed caused by frequency consensus of the block chain technology is overcome, and a rapid user authority management service is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of blockchain technology, and in particular to a blockchain-based user authority control system and method. Background Art

[0002] Blockchain technology is a decentralized distributed ledger technology that ensures data security, transparency and immutability through encryption algorithms and consensus mechanisms. Blockchain consists of a series of blocks connected in chronological order, each of which contains a set of verified transaction records. These records are linked to the previous block through cryptographic hash functions to form a chain, ensuring that any modification of a single block of data will destroy the structure of the entire chain, making it difficult to tamper with. The core feature of blockchain technology is decentralization, that is, data is distributed on multiple nodes, each node maintains a complete copy of the ledger, and any modification of the data requires the consensus of the majority of nodes in the network. This mechanism not only improves the fault tolerance of the system, but also prevents single point failures and malicious attacks. Blockchain technology is widely used in finance, supply chain management, digital identity authentication, smart contracts and decentralized applications (DApps). By improving the transparency and security of data, it has promoted the digital transformation and innovative development of traditional industries. However, the permission control scheme based on blockchain is limited by the blockchain technology itself, and has problems such as slow speed and insufficient performance. Summary of the invention

[0003] In view of this, the purpose of the present invention is to propose a user authority control system and method based on blockchain.

[0004] Based on the above objectives, the present disclosure provides a blockchain-based user rights control system, including: The user layer is used to obtain user requests; wherein the types of user requests include first-type requests and second-type requests; the second-type requests are resource access requests; The blockchain control layer is used to process the user request accordingly based on the type of the user request and the preset on-chain rules; and The service layer is used to provide resource services matching the authority judgment result based on the authority judgment result of the blockchain control layer; wherein, The preset chaining rule includes that the first type of request is a chaining object; and the second type of request is a non-chaining object.

[0005] Based on the same inventive concept, the embodiment of the present disclosure also provides a control method of any of the aforementioned user authority control systems, wherein the user authority control system includes a first server and a second server; The control method comprises: The first server performs the following steps: receiving the user request; In response to determining that the user request is a request to access a resource, determining the user's access rights to a target resource; wherein the target resource is determined based on the user request; In response to determining that the judgment result is that the server has the right to access, sending a first notification to the second server; wherein the second server corresponds to the target resource; The second server performs the following steps: The first notification is obtained, and according to the first notification, the public key of the user is obtained from a pre-built user public key chain for resource access.

[0006] Based on the same inventive concept, the embodiment of the present disclosure also provides a verification method for any of the aforementioned user authority control systems, wherein the blockchain control layer includes at least one node; the node stores the at least one transaction blockchain; The verification method comprises: Determine a target blockchain from the at least one transaction blockchain; Get the hash value of the last block of the target blockchain of other nodes; In response to determining that the hash values ​​of more than half of the nodes are the same and different from the hash value of the current node, sending a request to obtain the blockchain to the first node and sending a request to suspend mutual inspection to the third node; wherein the first node is any one of the nodes with the same hash value; the third node is a node with the same hash value and different from the first node; Obtaining the blockchain information sent by the first node, and building a new target blockchain based on the blockchain information; Sending a ready to continue mutual check request value to the third node, so that the third node will forward the continued mutual check request to the relevant node.

[0007] From the above, it can be seen that the present disclosure provides a user authority control system and method based on blockchain, the user authority control system includes a user layer for obtaining user requests; a blockchain control layer for processing the user requests accordingly based on the type of the user requests and the preset chain rules, and a service layer for providing resource services matching the authority judgment results based on the authority judgment results of the blockchain control layer; wherein the types of user requests include first-class requests and second-class requests; the second-class requests are resource access requests; the preset chain rules include the first-class requests as chain objects; the second-class requests are non-chain objects. Such a technical solution, which treats the most frequent resource access requests as non-chain objects, can overcome the inherent defects of slow speed caused by frequency consensus of blockchain technology while giving full play to the advantages of decentralization and high security of blockchain technology, and provide fast user authority management services. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0009] Figure 1 A schematic diagram showing the overall framework of a user authority control system provided by an embodiment of the present disclosure is shown; Figure 2 A schematic diagram of a network structure of a user authority control system provided by an embodiment of the present disclosure is shown; Figure 3 A flowchart of a user authority control method provided by an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of a block structure provided by an embodiment of the present disclosure is shown; Figure 5 A schematic diagram of a self-check process of a transaction blockchain provided by an embodiment of the present disclosure is shown; Figure 6 A schematic diagram of a node error correction process provided by an embodiment of the present disclosure is shown; Figure 7 A schematic diagram of another node error correction process provided by an embodiment of the present disclosure is shown; Figure 8 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0010] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0011] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0012] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0013] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0014] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0015] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0016] In order to facilitate understanding of the technical solutions of the present disclosure, some technical terms involved in the present disclosure are introduced below.

[0017] The Practical Byzantine Fault Tolerance (PBFT) algorithm is a fault-tolerant algorithm for achieving consensus in distributed systems. It aims to ensure that the system can still operate correctly in the presence of malicious or faulty nodes. The PBFT algorithm can tolerate up to one-third of Byzantine faulty nodes, that is, when the total number of nodes is 𝑛, there can be at most ( n -1) / 3 nodes fail. The workflow of the PBFT algorithm is mainly divided into three stages: Pre-prepare, Prepare, and Commit. In the pre-prepare stage, the primary node sends a pre-prepare message to all replica nodes to notify the request that needs to reach a consensus. In the prepare stage, the replica nodes verify the legitimacy of the pre-prepare message and exchange prepare messages with each other. When a node receives enough prepare messages, it enters the commit stage, and the nodes exchange commit messages again to confirm the consensus result. Through multiple rounds of message transmission and verification, the PBFT algorithm ensures that all non-faulty nodes execute transactions in a consistent state, providing high fault tolerance and consistency guarantees. The PBFT algorithm is widely used in blockchains, distributed databases, and fault-tolerant systems, and is particularly suitable for scenarios with high security and high reliability.

[0018] RabbitMQ is a powerful open source message broker software, built on the Advanced Message Queuing Protocol (AMQP) standard, designed to achieve efficient and reliable message delivery and asynchronous communication. RabbitMQ supports a variety of message delivery models, including Pub / Sub, P2P, work queues, etc., making it highly flexible and adaptable in different application scenarios. Through mechanisms such as message persistence, message confirmation, and dead letter queues, RabbitMQ can ensure the reliable delivery and processing of messages, and ensure that messages are not lost even in the event of system failure or network anomalies. RabbitMQ is highly scalable, supports cluster deployment and high availability configuration, and can handle a large number of concurrent messages and complex message routing. In addition, RabbitMQ also provides rich plug-in support to expand its functions, such as management plug-ins, delayed message plug-ins, etc., further enhancing its application capabilities in enterprise application integration, microservice architecture, real-time data processing, and event-driven systems. Due to its stability, ease of use, and powerful functions, RabbitMQ has been widely used worldwide and has become the preferred solution for many distributed systems to achieve message delivery and asynchronous processing.

[0019] Access Control List (ACL) is a traditional permission management method, in which each resource has a list that records which users or user groups have access to the resource and what specific permissions they have (such as read, write, execute, etc.). ACL is usually used in file systems, databases, and network devices, such as NTFS (Windows), POSIX ACL (Unix / Linux), routers, and firewalls. Advantages: easy to understand and implement, permissions can be set for each resource separately, and access rights can be finely controlled. Disadvantages: In large systems, managing permissions for a large number of resources and users becomes complicated and inefficient; ACLs are recorded locally and are vulnerable to tampering and unauthorized access.

[0020] Role-Based Access Control (RBAC) manages permissions by assigning permissions to roles and then assigning roles to users. Each role represents a specific set of permissions, and users obtain corresponding permissions through the roles they belong to. RBAC is often used for permission management in enterprise resource planning (ERP) systems. Advantages: Permissions are managed by roles instead of individual users, which simplifies the permission allocation and management process. Roles and permissions can be defined and adjusted as needed, ensuring that users with the same role have the same permissions, reducing errors and redundancy. Disadvantages: Logic with roles as the smallest unit still cannot cope well with dynamic and changing permission requirements.

[0021] Attribute-Based Access Control (ABAC) is a dynamic and flexible access control method that uses multiple attributes such as users, resources, and environments to decide whether to allow access requests. Unlike traditional access control models (such as role-based access control (RBAC), ABAC does not rely on predefined roles, but makes logical decisions based on attributes and policy rules. In the ABAC model, an attribute can be any information that describes an entity (such as a user, resource, or environment). For example, the attributes of a user can include department, position, certification status, etc.; the attributes of a resource can include resource type, sensitivity level, etc.; and the environmental attributes can include access time, geographic location, etc. By combining these attributes, ABAC can implement fine-grained access control policies. Policy rules are usually defined in the form of logical expressions, such as "Marketing department employees can access market analysis reports only during working hours" and "Sensitive data can only be accessed on the company's internal network." This attribute-based access control method provides higher flexibility and precision, and is particularly suitable for complex and dynamic business environments. For example, in cloud computing, the Internet of Things, e-government, and other fields, ABAC is able to make decisions based on real-time context and multi-dimensional attributes, thereby improving security and compliance. The implementation of ABAC requires a powerful policy management and evaluation engine that can efficiently handle a large number of attributes and policy rules while maintaining system performance and responsiveness. Through proper design and implementation, ABAC can significantly enhance an organization's access control capabilities and ensure that resources are accessed by the right people at the right time under the right conditions. Disadvantages: In a centralized server architecture, real-time evaluation of attributes and policies may affect system performance, especially under high load, and there is a risk of single point failure.

[0022] Policy-Based Access Control (PBAC) controls access by using clearly defined policies. Policies define access control rules, including conditions for allowing and denying access. PBAC systems typically contain a policy decision point (PDP) and a policy enforcement point (PEP). PBAC is commonly used for access control in enterprise-level security systems, such as network security policy management, or access control policy management of cloud service providers, such as Google Cloud IAM. Advantages: Policies can be dynamically adjusted as needed to adapt to different needs and environments. Disadvantages: In the architecture of centralized servers, there is a risk of single point failure.

[0023] Smart contract-based access control: Smart contracts are self-executing codes on the blockchain that automatically execute predefined rules and protocols. Through smart contracts, user permissions and access control policies can be set on the blockchain to ensure that only authorized users can access specific resources. Advantages: Reduced human intervention and errors, all transactions and access control rules are public and can be reviewed by anyone, and smart contracts cannot be tampered with, ensuring that rules and permissions cannot be changed without authorization. Disadvantages: Once deployed, smart contracts cannot be changed, which may lead to errors that are difficult to fix, and the execution of smart contracts requires payment of transaction fees of the blockchain network.

[0024] Decentralized Identity (DID) is an identity management method based on blockchain technology. DID allows users to control their own identity data and verify their identity through blockchain. Each user has a unique identifier on the blockchain, which can be used to verify the user's identity and permissions. Advantages: Users can manage and control their own identity data without relying on third-party institutions. User data is stored on the blockchain, which prevents the risk of data leakage. The encryption technology and immutability of blockchain ensure the security of identity data. Disadvantages: The current adoption rate of decentralized identity systems is low, and it is difficult to form a unified standard. Users need to learn how to manage their own identity data, which increases the difficulty of use. Existing systems and services need to be transformed to be compatible with DID.

[0025] The architecture of traditional permission control relies on centralized servers and databases. When a user makes a request to access a resource, the resource provider will first call the service provided by the central server to determine the user's permissions. All data related to user permissions is stored in a centralized database.

[0026] From the perspective of permission control strategy, the relevant permission control technologies mainly include the aforementioned ACL, RBAC, ABAC, PBAC, etc. As mentioned above, the above-mentioned permission control technologies all have certain defects, and based on the centralized server and database, their security is poor. Attacks on the centralized server or database will cause errors in the entire system.

[0027] In order to overcome the defects of traditional permission control technology, blockchain-based permission control solutions have emerged, such as smart contract-based access control, DID, and the combination of ACL, RBAC and blockchain.

[0028] For example, ACL can record a list of user access rights to specific resources on the blockchain. The transparency and immutability of the blockchain make ACL more reliable and secure. Advantages: All access control records are public and can be viewed and audited by anyone. Once recorded on the blockchain, the access control list cannot be modified, ensuring the reliability of permission management. All operations on the blockchain are recorded for easy tracking and auditing. Disadvantages: As the number of users and resources increases, the management and update of ACL becomes complicated. Frequent updates of ACL on the blockchain may lead to performance bottlenecks.

[0029] For example, RBAC can be implemented through blockchain technology, and the allocation of roles and permissions can be recorded on the blockchain to ensure the transparency and immutability of permission management. Advantages: Roles and permissions can be defined and adjusted as needed. Disadvantages: RBAC may not be able to cope well with dynamic and changing permission requirements, and in large systems, managing and maintaining changes in role permissions may affect performance.

[0030] In addition, a multi-signature mechanism can also be used based on the blockchain. Multi-signature is a mechanism that requires multiple signatures to complete a transaction or operation. Through multi-signature, high-security access control can be achieved on the blockchain. For example, it can be set to require the signatures of two or more users to perform certain key operations, thereby improving security. Advantages: The requirement of multiple signatures makes it impossible for a single user to complete sensitive operations alone, reducing risks. The multi-signature mechanism can share responsibilities and prevent a single user from abusing authority. Each signature is recorded on the blockchain for easy tracking and auditing. Disadvantages: It is necessary to coordinate multiple users to sign, which increases the complexity and time cost of the operation. Each signature operation requires the payment of blockchain transaction fees.

[0031] In summary, blockchain-based permission control solutions have problems such as slow speed, lack of flexibility, and some methods require fees.

[0032] In view of this, the disclosed embodiment provides a user authority control system and method based on blockchain, wherein the user authority control system includes a user layer for obtaining user requests; a blockchain control layer for processing the user requests accordingly based on the type of the user requests and the preset chain rules, and a service layer for providing resource services matching the authority judgment results based on the authority judgment results of the blockchain control layer; wherein the types of user requests include first-class requests and second-class requests; the second-class requests are resource access requests; the preset chain rules include the first-class requests as chain objects; and the second-class requests as non-chain objects. Such a technical solution, which treats the most frequent resource access requests as non-chain objects, can overcome the inherent defects of slow speed caused by frequency consensus of blockchain technology while giving full play to the advantages of decentralization and high security of blockchain technology, and provide fast user authority management services.

[0033] In order to make the technical solution of the present disclosure clearer and easier to understand, the blockchain-based user authority control system provided by the embodiment of the present disclosure is introduced below with reference to the accompanying drawings.

[0034] Figure 1 A schematic diagram of an overall framework 100 of a user authority control system provided by an embodiment of the present disclosure is shown. Figure 2 A schematic diagram of a network structure 200 of a user rights control system provided by an embodiment of the present disclosure is shown. The overall framework 100 includes a user layer 101, a blockchain control layer 102, and a service layer 103.

[0035] In some embodiments, the user layer 101 may include at least one terminal device, including but not limited to a desktop computer, a mobile phone, a mobile computer, a tablet computer, a media player, a smart wearable device, a personal digital assistant (PDA) or other electronic devices capable of realizing the above functions.

[0036] Furthermore, the terminal device is used to obtain user requests. In terms of access control policy, the embodiment of the present disclosure adopts attribute-based access control. Based on the access control policy, user requests include but are not limited to publishing resource access policies, user registration attributes, user registration public keys, and user access resources. It should be noted that when the access control policy is changed, the user request changes accordingly, and the present disclosure does not limit this.

[0037] User resource access requests are the most frequent requests. Considering that if a consensus is reached for each resource access request, it will cause a lot of delay.

[0038] In some embodiments, the embodiments of the present disclosure preset preset chaining rules. For example, the publishing resource access policy, user registration attributes, and user registration public key in the user request need to be chained by consensus, that is, these user requests are the targets of chaining and need to be agreed upon, corresponding to the first type of request. Access resource requests do not need to be chained, that is, access resource requests are not the targets of chaining and do not need to be agreed upon, corresponding to the second type of request.

[0039] In this way, different on-chain strategies are adopted for different user requests, which can effectively reduce the delay caused by frequency consensus and improve the overall performance of the control system.

[0040] Optionally, the user request may be signed using elliptic curve encryption.

[0041] It should be noted that users usually have different identities and can be divided into multiple user groups according to actual conditions.

[0042] refer to Figure 2 Each user group is configured with its own server, for example, user group 1 is configured with a first server 201 , user group 2 is configured with a second server 202 , user group 3 is configured with a third server 203 , and user group 4 is configured with a fourth server 204 .

[0043] In some embodiments, the blockchain control layer 102 processes the user request accordingly based on the type of the user request and the preset on-chain rules. Specifically, the blockchain control layer 102 includes the gateways of each user group and the P2P network formed by them. Here, the gateway is the server 201, 202, 203, 204, etc. of the user group.

[0044] It should be noted that, based on different scenarios and considering different roles, the same server in the embodiments of the present disclosure can be described as a gateway, a node, etc. For example, in a network structure, a server can be called a gateway; in another example, in a blockchain, a server can also be called a network node.

[0045] It should be noted that the blockchain control layer 102 of the embodiment of the present disclosure does not adopt the existing blockchain platform, but refers to the official technical documentation of the blockchain, builds a P2P network by itself, programs a custom block structure by itself, and determines the consensus mechanism adopted by each on-chain transaction by itself, such as the PBFT consensus mechanism.

[0046] For a P2P network, take the scenario of "dividing users into four user groups and using four servers" as an example, as follows: Figure 2 As shown, two long-term stable communication channels 205 and 206 are established between the four servers. Optionally, the channels can be built using RabbitMQ, Kafka, redis, etc.

[0047] Furthermore, channel 205 is used for consensus on various on-chain requests, and channel 206 is used for mutual inspection of blockchains of various nodes. The two channels cannot be mixed under any circumstances.

[0048] Through the additionally established stable channel 206, blockchain checks can be performed regularly to ensure the safe and stable operation of the blockchain, thereby increasing the security of the user authority control system.

[0049] It should be understood that if Figure 2 The network structure shown is only an example. When the number of servers changes, those skilled in the art can obtain a suitable P2P network without changing the principle of establishing channels, and this disclosure will not elaborate on this.

[0050] Figure 4 FIG. 1 is a block structure diagram provided by an embodiment of the present disclosure. Figure 4 As shown, each block in each blockchain of the disclosed embodiment includes a version, a hash of the previous block, a Merkle root, a timestamp, a number of requests, and detailed information of each request. Here, a request initiated by a user may include multiple request contents, so the detailed information of each request is allowed to be recorded in the same block.

[0051] In some embodiments, the main functional modules of the blockchain control layer 102 include: User key management module 1021: manages user requests to add or change public keys and stores the user's public keys on the chain. The chain process requires a consensus with other nodes, such as PBFT.

[0052] The resource policy management module 1022 is responsible for processing the request to add access policy and revoke access policy sent by the resource owner (a type of user identity), storing the access policy on the chain, and participating in the access authority judgment. It should be noted that the chaining process requires a consensus with other nodes, such as PBFT.

[0053] The authority determination module 1023 determines the user's request according to the resource authority policy, returns the result, and uploads the authority determination result to the resource server.

[0054] The digital signature authentication module 1024 uses the public key to authenticate the user who sent the request, and then proceeds to the subsequent process after the authentication is passed.

[0055] The user attribute management module 1025 is responsible for processing the user's registration attribute request and cancellation attribute request, storing the user attributes on the chain, and participating in access permission judgment. The chain process requires a consensus with other nodes, such as PBFT.

[0056] In some embodiments, each server of the blockchain control layer includes a user key management module 1021, a resource policy management module 1022, a permission judgment module 1023, a digital signature authentication module 1024, and a user attribute management module 1025. In some alternative embodiments, each server may include different modules based on the identity differences of the corresponding user groups, for example, some servers include a resource policy management module 1022 and a digital signature authentication module 1024; some servers include a permission judgment module 1023 and a user key management module 1021.

[0057] In some embodiments, the service layer 103 includes a resource service module. The resource service module provides resource services within the scope of the user's authority through the authority judgment result uploaded by the authority judgment module 1023. The service layer 103 may also include a blockchain that records user behavior, such as an access record chain (such as Figure 3 as shown).

[0058] It should be noted that the service layer 103 can be configured with a separate server or Figure 2 Some functional modules of the server are shown in the figure, and this disclosure does not limit this.

[0059] Next, the control method of the user authority control system based on blockchain provided by the embodiment of the present disclosure will be described in detail from the perspective of different user requests. Figure 2 The channel 205 is implemented.

[0060] Figure 3 The flowchart of a user authority control method shown in FIG. 1 includes control methods for different user requests. It should be noted that: Figure 3 The resource access user and the resource administrator belong to different user groups. The first gateway is a first server 201 configured for the group where the resource access user belongs; the second gateway is a second server 202 configured for the group where the resource administrator belongs.

[0061] In some embodiments, in response to a user registration public key request, the control method includes: S301: The resource access user generates a public-private key pair offline; here, the public-private key pair may be generated by using an elliptic curve encryption algorithm. It should be noted that step S301 may be performed at the user layer 101 .

[0062] S302: The resource access user sends a registration public key request to the first gateway; S303: The verification module of the first gateway verifies whether the request is legal. After the verification is passed, the public key registered by the resource access user is queried from the user public key chain to authenticate the identity of the user. Here, the digital signature authentication module 1024 can participate in step S303. Here, the verification module is used to check the format of the request. S304: Authentication is successful, and the first gateway starts the registration public key transaction; here, the user key management module 1021 can participate in step S304; S305: The registration public key transaction is completed, and a new user public key block is added to the user public key chain to record the new public key of the resource access user.

[0063] It should be noted that if the resource access user sends a public key registration request for the first time, step S303 does not require authentication of the user identity.

[0064] In some embodiments, for issuing a resource access policy request, the control method includes: S306 : the resource administrator wants to publish a new access policy for the resources he manages, and thus initiates a resource access policy publishing request to the second gateway; it should be noted that step S306 is similar to step S301 , and can be executed at the user layer 101 .

[0065] S307: The verification module of the second gateway verifies whether the request is legitimate. If the verification is successful, the public key of the administrator is obtained from the user public key chain to authenticate the administrator's identity. This is similar to step S303 and will not be described in detail. S308: Authentication is successful, and the second gateway starts publishing policy affairs; here, the resource policy management module 1022 can participate in step S308; S309: The policy publishing transaction is completed, and a new resource policy block is added to the resource policy chain to record the access policy of the resource.

[0066] In some embodiments, in response to a user registration attribute request, the control method includes: S310: The resource access user sends a registration attribute transaction to the first gateway; S311: Since the resource access user has been authenticated in a short period of time, the first gateway does not perform re-authentication and directly starts the registration attribute transaction; here, the attribute management module 1025 can participate in step S311; S312: The registration attribute transaction is completed, and a new user attribute block is added to the attribute chain to record the attributes registered by the resource access user.

[0067] It should be noted that the verification module can judge the type of the received request. The above three requests are all based on the ABAC control strategy and belong to the first type of request, and all need to perform the consensus chain step. It can be understood by those skilled in the art that if the ABAC control strategy is changed, the corresponding request will change, and this disclosure will not elaborate on this.

[0068] The control method for the second type of request is described below. In some embodiments, for a request to access a resource, the control method includes: S313: The resource access user sends a resource access request to the first gateway; S314: Since the resource access user has been authenticated recently, the first gateway directly initiates the permission determination transaction; S315: The first gateway queries the resource access policy and the attributes of the resource access user from the resource policy chain and the user attribute chain, and performs logical judgment; here, the authority judgment module 1023 can participate in steps S314 and S315; S316: Logical judgment allows access, the first gateway sends a first notification to the second gateway, and the second gateway starts a public key acquisition transaction to obtain the public key of the resource access user for authentication; S317: The second gateway queries the public key of the resource access user from the user public key chain; S318: Establishing a connection between the resource access user and the resource; S319: The first gateway adds a new block to the access record chain to record the behavior of the resource access user accessing the resource.

[0069] It can be seen that if the gateway is honest, the access policy and the user attributes are correct, there is no need for consensus on the user's access request. It only needs to refer to the policy and attributes and give a logical answer. Here, the gateway integrity means that the gateway does not find any errors in the following verification mechanism.

[0070] It should be noted that the access record chain records the user's access behavior in the form of a blockchain. There is no need for consensus among different nodes to change the access record chain. In addition, each gateway can set and modify the access record chain separately. For example, the first gateway of S319 can be replaced by the second gateway, and the second gateway modifies the access record chain belonging to it and adds a new block.

[0071] In order to prevent the blockchain of a node (i.e., server, gateway) from being tampered with, a verification mechanism is designed in the embodiment of the present disclosure. In addition to normal communication, a long-term stable channel 206 is established between all nodes to regularly verify the correctness of their own blockchain to ensure the security and stability of the blockchain.

[0072] The blockchain copies saved by each node need to keep adding new blocks. That is, every time a request that needs to be uploaded to the chain is received (except for requests to access resources), all nodes need to reach a consensus and add blocks with the same content to the chain. This part only needs to ensure the normal operation of the consensus mechanism.

[0073] Next, the verification method of the user authority control system based on blockchain provided by the embodiment of the present disclosure is described in detail. It should be noted that the verification method of the user authority control system based on blockchain is based on Figure 2 The channel 206 is implemented.

[0074] Figure 5 A schematic diagram of a self-check process of a transaction blockchain provided by an embodiment of the present disclosure is shown. It should be noted that, based on the ABAC control strategy, the transaction blockchain includes a resource policy chain, a user attribute chain, and a user public key chain. In some embodiments, each node performs blockchain verification in the order of "resource policy chain (RPC) → user attribute chain (UAC) → user public key chain (UPC)", and the verification method is the same. The resource policy chain is used as an example for detailed description.

[0075] like Figure 5 As shown, the verification method includes: S501: Each node simultaneously checks the hash value of the blockchain; illustratively, the hash value of each block is calculated; S502: Determine whether the hash value is correct; specifically, compare the calculated hash value of the previous block with the hash value of the previous block recorded in the current block; if the two are the same, it means that the hash value is correct; otherwise, the hash value is wrong.

[0076] S503: In response to determining that the hash value of any block in the blockchain is wrong, recalculating and constructing the blockchain according to the content on the chain; S504: In response to determining that the blockchain hash value is correct or the blockchain is successfully constructed, mutual inspection is performed between different nodes.

[0077] The mutual inspection process is an important process to ensure that the blockchain can be quickly corrected after being tampered with. This is a correction method for block data tampering, which requires the participation of all nodes. Therefore, it is necessary to ensure that only the data of each node is tampered with, and the node itself is still honest. Optionally, the integrity of the node itself can be achieved with the help of S501~S503.

[0078] Figure 6 A schematic diagram of a node error correction process provided by an embodiment of the present disclosure is shown. Figure 6 , S504 is described in detail. When the number of nodes is greater than 4, all nodes participate in the mutual inspection process, but only 4 nodes participate in the correction process.

[0079] It should be noted that each node transmits the hash value of the last block on the current blockchain (such as the resource policy chain) to other nodes respectively, so that each node can know the hash value of the last block on the current blockchain of all nodes.

[0080] S601: If more than half of the nodes have the same hash value and the same hash value as this node (reference Figure 6 If the hash value of the fourth node 204 is different, it can be determined that the hash value of this node is wrong. Figure 6 The hash values ​​of the first node 201, the second node 202, and the third node 203 are all correct.

[0081] S602: Sending a request to the first node 201 to obtain the blockchain; S607: The first node 201 generates a csv file from the blockchain and transmits it to the error node (i.e., the fourth node 204); S608: The error node 204 rebuilds the blockchain according to the received csv file; S603: After step S601, the error node 204 continues to receive access requests from users; S604: forwarding the received access request to the second node 202; S606: The second node 202 makes the judgment and returns the result to the error node; S605: Send a request to the third node 203 to suspend the mutual inspection process, and send a completion mark to the third node 203 after completing the blockchain reconstruction (S609). The third node 203 initiates a consensus and notifies each node to continue the mutual inspection process (S610).

[0082] During this process, all kinds of chain-up requests will be temporarily stopped until the blockchain reconstruction is completed and S611 processes the accumulated chain-up requests.

[0083] The disclosed embodiment also provides an alternative correction method. Figure 7 Another schematic diagram of a node error correction process provided by an embodiment of the present disclosure is shown. It should be noted that the first node 201 and the third node 203 have correct hash values, while the second node 202 and the fourth node 204 have incorrect hash values.

[0084] like Figure 7 As shown, S701: the hash values ​​of half of the nodes (2 nodes in this example) are the same, but different from the hash values ​​of the other 2 nodes and the hash values ​​of the other 2 nodes are different from each other, that is, for any node, the hash values ​​of half of the nodes are the same and the number of nodes with the same hash value as this node does not exceed half, then it can be determined that the hash value of this node is wrong, and the mutual checking process is stopped.

[0085] Two nodes with the same hash value transmit the blockchain to other nodes. At the same time, the two erroneous nodes forward the access request to two normal nodes, which are processed by the normal nodes. After the blockchain reconstruction is completed, the two correct nodes confirm each other and initiate consensus, continue the mutual inspection process, and process the accumulated chain requests.

[0086] Specifically, S702: the second node 202 sends a request to obtain a blockchain to the first node 201; the fourth node 204 sends a request to obtain a blockchain to the third node 203; S706: The first node 201 generates a csv file from the blockchain and transmits it to the second node 202; the third node 203 generates a csv file from the blockchain and transmits it to the fourth node 204; S707: The second node 202 and the fourth node 204 rebuild the blockchain according to the received csv file; S708: The second node 202 sends a construction completion notification to the first node 201; the fourth node 204 sends a construction completion notification to the third node 203; S709: The first node 201 sends a notification of being ready to continue mutual inspection to the third node 203; S710: The third node 203 sends a notification of being ready to continue mutual inspection to the first node 201; S711: The first node 201 initiates a consensus and notifies each node to continue the mutual inspection process. It should be noted that the order of steps S709 and S710 can be swapped, and S711 can also be initiated by the third node 203, which is not limited in the present disclosure.

[0087] S703: After step S701, the second node 202 and the fourth node 204 continue to receive access requests from users; S704: Forward the received access request to the first node 201 and the third node 203; S705: The first node 201 and the third node 203 make a judgment and return the result to the error node; Finally, after step S711, S712: the second node 202 and the fourth node 204 process the accumulated uplink requests.

[0088] It should be noted that due to the incorrect hash value of half of the nodes, Figure 7 The correction method shown is one in which all nodes participate in the correction process.

[0089] When errors occur in the blockchains of more than half of the nodes (this situation is extremely rare, and few attackers can tamper with the blockchains of more than half of the nodes at the same time), considering that the system cannot rebuild itself, to deal with this situation, the verification method of the embodiment of the present disclosure creates a backup for all blockchains. When more than half of the nodes are tampered with, the system is directly stopped and restored from the backup data.

[0090] It can be seen that the verification method provided by the embodiment of the present disclosure enables the blockchain to have a strong self-reconstruction capability, reduce blockchain failures, and increase the stability of the authority control system.

[0091] It should be noted that the method of this embodiment can be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices may only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0092] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0093] Based on the same inventive concept, the present disclosure also provides a blockchain-based user authority control system.

[0094] refer to Figure 1 , the user authority control system comprises: The user layer 101 is used to obtain user requests; wherein the types of user requests include first-type requests and second-type requests; the second-type requests are resource access requests; The blockchain control layer 102 is used to process the user request accordingly based on the type of the user request and the preset on-chain rules; and The service layer 103 is used to provide resource services matching the authority judgment result based on the authority judgment result of the blockchain control layer 102; wherein, The preset chaining rule includes that the first type of request is a chaining object; and the second type of request is a non-chaining object.

[0095] In some embodiments, the first type of request includes at least one transaction request; each of the transaction requests corresponds to a transaction blockchain, such as a resource policy chain, a user attribute chain, or a user public key chain.

[0096] In some embodiments, the user rights control system adopts an attribute-based access control strategy; The first type of request includes resource access policy request, user registration attribute request and user registration public key request; wherein, The resource access policy request corresponds to a resource policy chain, the user registration attribute request corresponds to a user attribute chain; and the user registration public key request corresponds to a user public key chain.

[0097] In some embodiments, the user authority control system adopts an attribute-based access control strategy; wherein, The blockchain control layer 102 includes a digital signature authentication module 1024, a resource policy management module 1022, a user attribute management module 1025, an authority judgment module 1023 and a user key management module 1021.

[0098] In some embodiments, Figure 2 As shown, the network architecture of the user authority control system includes at least one server 201, 202, 203, 204, and at least one server 201, 202, 203, 204 corresponds to a preset plurality of user groups one by one; a first channel 205 and a second channel 206 are constructed between any two of the at least one server; wherein the first channel is used for the first type of request to be uploaded to the chain, and the second channel is used for transaction blockchain mutual inspection.

[0099] For the convenience of description, the blockchain control layer 102 of the control system described above is described separately by function into various modules. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0100] The control system of the above embodiment has the beneficial effects of the aforementioned embodiments, which will not be described in detail here.

[0101] Based on the same inventive concept, the embodiment of the present disclosure also provides a control method for the aforementioned user authority control system, wherein the user authority control system includes a first server 201 and a second server 202; like Figure 3 As shown, the control method includes: The first server 201 performs the following steps: receiving the user request; S314, S315: In response to determining that the user request is a request to access a resource, determining the user's access rights to a target resource; wherein the target resource is determined based on the user request; S316: In response to determining that the judgment result is that the user has the right to access, sending a first notification to the second server 202; wherein the second server 202 corresponds to the target resource; The second server 202 performs the following steps: Obtain the first notification, S317: According to the first notification, obtain the public key of the user from a pre-built user public key chain for resource access.

[0102] In some embodiments, determining the user's access rights to the target resource includes: S315: Based on the user request, obtain corresponding permission information from a pre-built transaction blockchain; for example, obtain resource policies from a resource policy chain; obtain user attributes from a user attribute chain; Based on the permission information, a logical judgment is made on the access permission of the user.

[0103] In some embodiments, the first server 201 further performs the following steps: S302: In response to determining that the user request is a registration public key request and meets the format requirement, obtain the user's public key from a pre-built user public key chain to authenticate the user; S304: In response to determining that the authentication is successful, starting public key registration; S305: In response to determining that the public key registration is completed, adding a new public key block to the pre-built user public key chain; wherein the new public key block is used to record the new public key of the user.

[0104] Based on the same inventive concept, the disclosed embodiment also provides a verification method for a user authority control system based on blockchain. Figure 3 , the control system includes at least one transaction blockchain, the blockchain control layer includes at least one node; the node stores the at least one transaction blockchain.

[0105] like Figure 5~Figure 6 As shown, the verification method (with the fourth node 204 as the execution subject) includes: Determine a target blockchain from the at least one transaction blockchain; illustratively, the target blockchain may be a resource policy chain, a user attribute chain, or a user public key chain; Obtain the hash value of the last block of the target blockchain of other nodes (such as the first node 201, the second node 202, etc.); In response to determining that the hash values ​​of more than half of the nodes are the same and different from the hash value of the current node, S602 sends a request to obtain the blockchain to the first node 201 and S605 sends a request to suspend mutual inspection to the third node 203; wherein the first node 201 is any one of the nodes with the same hash value; the third node 203 is a node with the same hash value and different from the first node 201; S607: Obtaining the blockchain information sent by the first node 201, S608: Building a new target blockchain based on the blockchain information; S609: Send a ready to continue mutual check request value to the third node 203, so that the third node will forward the continued mutual check request to the relevant nodes. Here, the relevant nodes are nodes participating in the verification, such as the first node 201 and the fourth node 204.

[0106] In some embodiments, S604: sending the continuously received user access requests to the second node 202, the second node 202 represents the authority judgment, S606: receiving the authority judgment result.

[0107] It should be noted that if the second node 202 represents authority judgment, the relevant nodes include the second node 202 .

[0108] In some embodiments, before obtaining the hash value of the last block of the target blockchain of other nodes, the method further includes: S501: Perform self-check according to the hash value of each block in the target blockchain and the hash value of the next block record; and S503: In response to determining that any block hash value is incorrect, rebuilding the target blockchain.

[0109] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the control method and verification method described in any of the above embodiments are implemented.

[0110] Figure 8 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0111] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0112] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0113] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0114] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0115] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).

[0116] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0117] The electronic device of the above embodiment is used to implement the corresponding control method and verification method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here.

[0118] It should be understood by those skilled in the art that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples; based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0119] In addition, to simplify the description and discussion, and in order not to obscure the embodiments of the present disclosure, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring the embodiments of the present disclosure, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure are to be implemented (i.e., these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0120] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.

[0121] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A user rights control system based on blockchain, characterized by: include: The user layer is used to obtain user requests; wherein the types of user requests include first-type requests and second-type requests; the second-type requests are resource access requests; The blockchain control layer is used to process the user request based on the type of the user request and the preset on-chain rules; and The service layer is used to provide resource services matching the authority judgment result based on the authority judgment result of the blockchain control layer; wherein, The preset chaining rule includes that the first type of request is a chaining object; and the second type of request is a non-chaining object.

2. The user authority control system according to claim 1, characterized in that: The first type of request includes at least one transaction request; each of the transaction requests corresponds to a transaction blockchain.

3. The user authority control system according to claim 2, characterized in that: The user authority control system adopts an attribute-based access control strategy; The first type of request includes resource access policy request, user registration attribute request and user registration public key request; wherein, The resource access policy request corresponds to a resource policy chain, the user registration attribute request corresponds to a user attribute chain; and the user registration public key request corresponds to a user public key chain.

4. The user authority control system according to claim 1, characterized in that: The user authority control system adopts an attribute-based access control strategy; wherein, The blockchain control layer includes a digital signature authentication module, a resource policy management module, a user attribute management module, a permission judgment module and a user key management module.

5. The user authority control system according to claim 1, characterized in that: The network architecture of the user authority control system includes at least one server, and the at least one server corresponds to a plurality of preset user groups one by one; a first channel and a second channel are established between any two of the at least one servers; wherein, The first channel is used for uploading the first type of request to the chain, and the second channel is used for transaction blockchain mutual inspection.

6. The control method of the user authority control system according to any one of claims 1 to 5, characterized in that: The user authority control system includes a first server and a second server; The control method comprises: The first server performs the following steps: receiving the user request; In response to determining that the user request is a request to access a resource, determining the user's access rights to a target resource; wherein the target resource is determined based on the user request; In response to determining that the judgment result is that the server has the right to access, sending a first notification to the second server; wherein the second server corresponds to the target resource; The second server performs the following steps: The first notification is obtained, and according to the first notification, the public key of the user is obtained from a pre-built user public key chain for resource access.

7. The control method according to claim 6, characterized in that: The determining the user's access rights to the target resource includes: Based on the user request, obtain corresponding permission information from a pre-built transaction blockchain; Based on the permission information, a logical judgment is made on the access permission of the user.

8. The control method according to claim 6, characterized in that: The first server further performs the following steps: In response to determining that the user request is a registration public key request and meets the format requirement, obtaining the user's public key from a pre-built user public key chain to authenticate the user; In response to determining that the authentication is successful, initiating public key registration; In response to determining that the public key registration is completed, a new public key block is added to the pre-built user public key chain; wherein the new public key block is used to record the new public key of the user.

9. The verification method of the user authority control system according to any one of claims 1 to 5, characterized in that: The blockchain control layer includes at least one node; the node stores at least one transaction blockchain; The verification method comprises: Determine a target blockchain from the at least one transaction blockchain; Get the hash value of the last block of the target blockchain of other nodes; In response to determining that the hash values ​​of more than half of the nodes are the same and different from the hash value of the current node, sending a request to obtain the blockchain to the first node and sending a request to suspend mutual inspection to the third node; wherein the first node is any one of the nodes with the same hash value; the third node is a node with the same hash value and different from the first node; Obtaining the blockchain information sent by the first node, and building a new target blockchain based on the blockchain information; Sending a ready to continue mutual check request value to the third node, so that the third node will forward the continued mutual check request to the relevant node.

10. The verification method according to claim 9, characterized in that: Before obtaining the hash value of the last block of the target blockchain of other nodes, the method further includes: Perform self-check based on the hash value of each block in the target blockchain and the hash value of the next block record; In response to determining that any block hash value is incorrect, reconstructing the target blockchain.