Client activation control method and system and storage medium

By using blockchain technology to record and verify activation information in the control terminal and client, the problem of malicious tampering of display device activation control data in the existing technology is solved, and the reliability and security of activation control are improved.

CN118694797AActive Publication Date: 2024-09-24HISENSE COMML DISPLAY CO LTD

Patent Information

Application Number
CN202310296944.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

In the existing technology, the centralized method of display device activation control has the risk of data being maliciously tampered with, resulting in low reliability of activation control.

Method used

Using blockchain technology, both the control end and the client store the blockchain, and record activation information through the blockchain, including the validity period of the license certificate, the number of clients that can be activated, and the list of activated clients to ensure the accuracy and accuracy of the activation information. Consistency, preventing data tampering through consensus mechanism.

Benefits of technology

It improves the reliability of client activation control, prevents data tampering, ensures the accuracy and consistency of activation information, and enhances system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694797A
    Figure CN118694797A
Patent Text Reader

Abstract

The embodiment of the invention belongs to the control technology, and provides a client activation control method and system and a storage medium. The application system comprises a control end and N clients, the control end and the clients store block chains, blocks in the block chains are used for recording activation information, and the control end is configured to respond to an activation request of a first client in the N clients, or respond to an instruction triggered at the moment when the activation operation is executed on the first client, determining whether to activate the first client according to the activation information recorded in the block currently located at the tail in the block chain of the control end; and if it is determined that the first client is activated, broadcasting a first block used for indicating activation of the first client to the N clients, so that the control end and the N clients store the first block to the tail of the block chain thereof after the N clients pass verification based on the identification of the previous block recorded in the first block. The application can improve the reliability of activation control of the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of control methods, and more specifically, to a client activation control method, system and storage medium. Background Art

[0002] In supermarkets, subway stations and other environments, multiple display devices are often installed to publish various information, such as advertisements, vehicle arrival time reminders, etc. The publication of the above information is uniformly controlled by the control end.

[0003] Only after the control end activates a display device can the control end communicate with the display device to display the published information on the display device. At present, the control method for display device activation mostly uses the centralized control method of the control end, that is, each time the control end activates a display device, it will record it in the control end's database until the upper limit of the number of display devices that the control end is allowed to activate is reached. However, this method may cause the database data to be maliciously tampered with to bypass the constraint of the upper limit of the number of display devices that can be activated, that is, the reliability of the control method for display device activation is low. Summary of the invention

[0004] The exemplary embodiments of the present application provide a client activation control method, system and storage medium, which can improve the reliability of client activation control.

[0005] In a first aspect, the present application provides a client activation control method, wherein the application system includes N clients; wherein N is an integer greater than 1;

[0006] The application system further includes a control terminal; the control terminal and the client both store a blockchain, and the blocks in the blockchain are used to record activation information, and the activation information includes the validity period of the license that authorizes the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of the previous block; the control terminal is configured as follows:

[0007] In response to an activation request of a first client among the N clients, or in response to an instruction triggered when an activation operation is performed on the first client, determining whether to activate the first client according to activation information recorded in a block currently located at the tail of the blockchain of the control end;

[0008] If it is determined to activate the first client, a first block indicating the activation of the first client is broadcast to the N clients, so that the control end and the N clients store the first block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the first block.

[0009] In some embodiments, after broadcasting the first block for indicating activation of the first client to the N clients, the control end is configured to:

[0010] In response to a blockchain consensus application triggered by a second client among the N clients failing to verify the identifier of a previous block recorded in the first block, updating the tail block in the blockchain of the N clients and the control end by consensus;

[0011] Determine whether to activate the first client again based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

[0012] In some embodiments, the control terminal is configured to:

[0013] Obtaining a license certificate authorizing the application system to activate the client;

[0014] Generate the genesis block of its blockchain according to the license;

[0015] The genesis block is broadcasted to the N clients, so that the control end and the N clients construct their blockchains and store the genesis block as the first block of their blockchains.

[0016] In some embodiments, the control terminal is configured to:

[0017] In response to a deactivation request from the first client, or in response to an instruction triggered when a deactivation operation is performed on the first client, determining whether to deactivate the first client according to activation information recorded in a block currently located at the tail of the blockchain of the control end;

[0018] If it is determined to deactivate the first client, a second block indicating the deactivation of the first client is broadcast to the N clients, so that the control end and the N clients store the second block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the second block.

[0019] In some embodiments, after broadcasting the second block for indicating deactivation of the first client to the N clients, the control end is configured to:

[0020] In response to a blockchain consensus application triggered by a third client among the N clients failing to verify the identifier of the previous block recorded in the second block, updating the tail block in the blockchain of the N clients and the control end by consensus;

[0021] Re-determine whether to deactivate the first client based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

[0022] In some embodiments, after determining whether to deactivate the first client, the control end is configured to:

[0023] If it is determined that the first client is in an inactive state, sending a self-check request to the first client; the self-check request is used to request the first client to determine whether the first client is in an active state based on a block at the end of its blockchain;

[0024] In response to a blockchain consensus application triggered by the first client after determining that it is in an activated state, updating the tail block in the blockchain of the N clients and the control end by consensus;

[0025] Re-determine whether to deactivate the first client based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

[0026] In some embodiments, the control terminal is configured to:

[0027] Before performing business communication with the first client, determining whether the first client is in an activated state according to activation information recorded in a block currently located at the tail of the blockchain of the control end;

[0028] If it is determined that the first client is in an activated state, performing service communication with the first client;

[0029] If it is determined that the first client is in an inactive state, a self-check request is sent to the first client; the self-check request is used to request the first client to determine whether the first client is in an active state based on a block at the end of its blockchain;

[0030] In response to a blockchain consensus application triggered by the first client after determining that it is in an activated state, updating the tail block in the blockchain of the N clients and the control end by consensus;

[0031] Re-determine whether the first client is in an activated state based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

[0032] In some embodiments, after sending the self-check request to the first client, the control end is configured to:

[0033] In response to the first client determining that it is in an inactive state and returning a rejection communication request, service communication with the first client is abandoned.

[0034] In a second aspect, the present application provides an application system, the application system includes a control terminal and N clients, wherein N is an integer greater than 1, the control terminal and the client both store a blockchain, the blocks in the blockchain are used to record activation information, and the activation information includes the validity period of a license that authorizes the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of a previous block;

[0035] The application system is used to implement the client activation control method as described in any one of the first aspects.

[0036] In a third aspect, the present application provides a client activation control device, the application system comprising: a control terminal and N clients; wherein N is an integer greater than 1, the control terminal and the client both store a blockchain, the blocks in the blockchain are used to record activation information, the activation information includes the validity period of the license authorizing the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of the previous block; the device is applied to the control terminal, and the device comprises:

[0037] a processing module, configured to respond to an activation request of a first client among the N clients, or respond to an instruction triggered when a time for performing an activation operation on the first client is reached, and determine whether to activate the first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end;

[0038] The transceiver module is used to broadcast a first block indicating activation of the first client to the N clients when it is determined to activate the first client, so that the control end and the N clients store the first block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the first block.

[0039] The client activation control method, system and storage medium provided by the present application, the application system includes: a control end and N clients; the control end and the client both store a blockchain for recording activation information, the control end can determine whether to activate a certain client based on the block at the end of the blockchain stored by it, if it is determined to activate the client, broadcast the block recording the activation information to each client, so that after the verification based on the block is passed, each client and the control end store the block to the end of their respective blockchains. Through the above method, the activation information recorded in the first block is stored in the control end and each client in a distributed manner. At the same time, the verification based on the identifier of the previous block of the first block ensures the consistency of the blockchain stored by the above control end and each client, that is, ensures the accuracy of the activation information stored by each of them. Therefore, the activation operation of each client is performed based on accurate activation information, and the reliability of client activation control is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0041] Figure 1 A schematic diagram of the structure of an application system provided for this application;

[0042] Figure 2 A flowchart of a method for constructing a blockchain between a control terminal and a client provided in this application;

[0043] Figure 3 A schematic diagram of a process flow of a client activation control method provided in this application;

[0044] Figure 4 A flowchart of another client activation control method provided by this application;

[0045] Figure 5 A flowchart of another client activation control method provided by the present application;

[0046] Figure 6 A schematic diagram of the structure of a client activation control device provided in this application. DETAILED DESCRIPTION

[0047] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0048] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0049] In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0050] At present, information release systems are deployed in supermarkets, subway stations, etc. The information release system includes a control terminal and multiple display devices to release various information, such as advertisements, vehicle arrival time reminders, etc.

[0051] The control end obtains a license from the server end corresponding to the information publishing system, and the license is used to authorize the information publishing system to activate the display device to control the display device, such as sending information to the display device for display. The license includes the validity period and the total number of display devices that can be activated.

[0052] The control terminal obtains the validity period and the total number of display devices that can be activated in the license certificate according to the license certificate that authorizes the application system to activate the display device, and stores them in the database of the control terminal. Exemplarily, the database may include the following contents: the validity period of the license certificate, the total number of display devices that can be activated, the identification of the activated display device, and the number of activated display devices.

[0053] At present, the above control terminal mainly uses a centralized control mechanism to control and activate the above display device, which mainly includes the following steps:

[0054] Step 1: After the control end obtains a request for activation of a display device, it determines whether the display device is activated according to the identification of the display device, such as the ID of the display device.

[0055] The control terminal obtains the identification of the display device according to the activation request of the display device, and compares it with the data in the database to determine whether the display device is activated.

[0056] If the display device is in an unactivated state, step 2 is executed; if the display device is in an activated state, a response of refusing activation is returned to the display device.

[0057] Step 2: Determine whether the validity period of the license certificate stored in the database has expired.

[0058] If so, it is determined that the display device cannot be activated, and a response refusing activation is returned to the display device; if not, step 3 is executed.

[0059] Step 3: Determine whether the number of activated display devices stored in the above database is greater than or equal to the total number of activatable display devices.

[0060] If so, it is determined that the display device cannot be activated, and a response refusing activation is returned to the display device; if not, the display device is activated, information representing the activation is sent to the display device, and the activation information is recorded in the database, for example, the identification of the display device is added to the identification of the above-mentioned activated display devices, and the number of the above-mentioned activated display devices is increased by 1.

[0061] However, the above method may result in malicious tampering of the data in the database, for example, modifying the number of activated display devices to bypass the activation limit allowed by the above information release system. That is, the reliability of the above display device activation control method is low.

[0062] Blockchain is a chain data structure that combines blocks containing data in a sequential manner in chronological order, and is a distributed, shared ledger that is cryptographically guaranteed to be tamper-proof.

[0063] In view of this, the present application proposes a client activation control method, in which the control end of the application system uses blockchain technology to control the activation of the client in the application system. After each client verifies the block recording the activation information, the control end and each client store the block to generate their own blockchains for distributed accounting storage. Since the application system will store the block only after each client verifies the block recording the activation information, the blockchain in the application system is effectively prevented from being tampered with, thereby avoiding the problem of malicious tampering of data in the aforementioned centralized control mechanism and improving the reliability of client activation control.

[0064] The application system mentioned here can be any system that requires a control terminal to activate and control the client, such as the information publishing system mentioned above, or a system in other application scenarios, etc. This application does not limit its naming.

[0065] Figure 1 A schematic diagram of the structure of an application system provided in this application. Figure 1 As shown, the application system includes: a control terminal and N clients. Figure 1 Only three clients are used for illustration.

[0066] The control end may be, for example, a computing device with communication and processing capabilities, such as a server; or it may be application software installed on the computing device, such as an application program (APP), or pre-installed software.

[0067] The above-mentioned client can be, for example, an electronic device with communication, processing capabilities, and output capabilities (display and / or playback), such as a display device. Exemplarily, the display device can be a liquid crystal display, an organic light-emitting diode (OLED) display, or a projection display device. The specific display device type, size, and resolution are not limited. It can be understood by those skilled in the art that the display device can make some changes in performance and configuration as needed. The above-mentioned client can also be an application software installed on an electronic device, for example, it can be an APP, or pre-installed software.

[0068] It should be noted that the present application does not limit the communication connection mode between the above-mentioned control terminal and the above-mentioned clients. For example, it can be wired communication or wireless communication, which is specifically related to the setting of the above-mentioned application system.

[0069] The control end and the client both store blockchains, and the blocks in the blockchain are used to record activation information. The activation information includes the validity period of the license that authorizes the application system to activate the client (hereinafter referred to as the "validity period of the license"), the number of remaining activatable clients in the application system (hereinafter referred to as the "remaining number of activatable clients"), a list of activated clients, and an identifier of the previous block.

[0070] Optionally, the blocks in the above blockchain may also include at least one or more of the following:

[0071] The timestamp of this block, the total number of activatable clients, the list of deactivated clients, etc.

[0072] It should be noted that in addition to recording activation information, a block can also include other specific information, which can be set according to actual needs.

[0073] For example, a block includes the identifier of the previous block, the timestamp of the current block, the validity period of the license, the number of remaining activatable clients, and a list of activated clients. The block content is shown in Table 1.

[0074] Table 1 Block content diagram

[0075] property data The identifier of the previous block Logo 1 Timestamp of this block Timestamp 1 Validity period of the license Time 1 - Time 2 The number of clients remaining to be activated 5 Activated Client List Client ID B1

[0076] The validity period of the above-mentioned license may be, for example, the expiration date of the license alone, or the effective start time to the expiration date of the license, or the remaining effective time calculated based on the validity period of the license. This application does not limit this.

[0077] The remaining number of activatable clients can be obtained based on the total number of activatable clients in the license that authorizes the application system to activate the client (hereinafter referred to as "total number of activatable clients") and the list of activated clients in the block. For example, if the total number of activatable terminals is 6, and the number in the list of activated clients in the block is 1, then the remaining number of activatable clients in the block is 5.

[0078] The above-mentioned activated client list refers to a list of identifications of activated clients, and the identification of the activated client is used to uniquely identify the client, for example, it can be the ID of the client, the identification of the hardware device of the client, the identification of the central processing unit (CPU), etc., which is not limited in this application. When the above-mentioned control end activates a client, the client identification of the client is added to the activated client list of the block, for example, the client identification B1.

[0079] The timestamp of the block may be the time of the current control end when the block is generated.

[0080] The identifier of the previous block refers to the identifier of the previous block of the block. The identifier of the previous block can be a hash value of the activation information recorded in the previous block. The identifier of the previous block can be obtained by calculating the hash value according to the activation information recorded in the previous block. Since the hash value includes the timestamp of the previous block, the identifier of the previous block can be used to sequentially connect the blocks.

[0081] It should be understood that the content included in the above blocks is only a schematic, and the content of each block is specifically related to the block settings.

[0082] The blockchain mentioned above can be a blockchain used only to record activation information corresponding to the currently used license, or it can be a blockchain covering activation information corresponding to licenses historically used by the system, as well as activation information corresponding to the currently used license, or it can be a blockchain covering other information of the system, etc. This application does not limit this.

[0083] Taking the blockchain mentioned above, which is only used to record the activation information corresponding to the currently used license certificate, as an example, how the control end and the client construct the blockchain is explained.

[0084] Figure 2A flowchart of a method for constructing a blockchain between a control terminal and a client provided in this application. Figure 2 As shown, the method is applied to the control end, and the method includes:

[0085] S101, obtaining a license certificate for authorizing an application system to activate a client.

[0086] The license certificate for authorizing the application system to activate the client is provided by the server corresponding to the application system. The license certificate can be distributed to the control terminal online by the server or distributed to the control terminal offline.

[0087] S 102. Generate the genesis block of its blockchain based on the above license.

[0088] The above-mentioned genesis block refers to the first block of a blockchain, wherein the information contained in the genesis block is consistent with the content of the block in the aforementioned blockchain, and in the genesis block, some contents related to the actual activation situation and / or the blockchain construction are default values. Taking the block content shown in Table 1 as an example, for example, the identifier of the above-mentioned previous block and the activated client list are preset values, such as null.

[0089] As mentioned above, the license includes the validity period of the license and the total number of clients that can be activated. The control terminal generates the genesis block of its blockchain based on the license to record the information of the license for subsequent activation of each client. The contents of the genesis block are shown in Table 2:

[0090] Table 2 Genesis block content

[0091] property data The identifier of the previous block Null Timestamp of this block Timestamp 4 Validity period of the license Time 1 - Time 2 The number of clients remaining to be activated Quantity 6 Activated Client List Null

[0092] S103. Broadcast the genesis block to N clients, so that the control end and the N clients construct their blockchains and store the genesis block as the first block of their blockchains.

[0093] The N clients constructing their blockchains means constructing a new blockchain, wherein the first block is the genesis block. As for how to construct a blockchain, reference may be made to the prior art, and this application does not limit this.

[0094] Optionally, after receiving the above-mentioned genesis block, each of the above-mentioned clients can verify whether it is a genesis block by checking whether the identifier of the previous block in the above-mentioned block is a preset value. If so, it is determined that the block is a genesis block, that is, the block verification is passed, and information indicating that the genesis block verification is passed is sent to the above-mentioned control end. If not, it is determined that the block is not a genesis block, and it can be determined whether the block is the tail of other blockchains based on whether it stores other blockchains, and information indicating that the genesis block verification fails is returned to the control end.

[0095] Optionally, if the control end receives information sent by each client indicating that the genesis block has been verified, the control end constructs the blockchain of the control end and stores the genesis block as the first block of its blockchain. At the same time, the control end returns information indicating that storage is possible to each client, so that each client constructs its blockchain and stores the genesis block as the first block of its blockchain.

[0096] If the control end receives information indicating that the genesis block verification has failed from at least one client, the control end checks whether the generated genesis block is correct. If so, it means that the genesis block received by the client is inaccurate, and the control end resends the block to the client for re-genesis block verification. If not, it means that the genesis block generated by the control end is inaccurate, and the control end regenerates the genesis block, that is, re-executes step S102.

[0097] In this embodiment, the control end generates a genesis block using the acquired license certificate to record the information of the license certificate, and broadcasts the genesis block to each client to build a blockchain, thereby realizing distributed storage of the license certificate information.

[0098] The technical solution of the present application is described in detail below in conjunction with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0099] Figure 3 A schematic diagram of a client activation control method provided in this application. The method is applied to the control end, such as Figure 3 As shown, the method comprises the following steps:

[0100] S201. In response to an activation request of a first client among N clients, or in response to an instruction triggered when an activation operation is performed on the first client, determine whether to activate the first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end.

[0101] The activation request of the first client is sent by the first client to the control end. The activation request of the first client is used to apply for activation of the first client and includes the identifier of the first client, such as the identifier of the aforementioned client, which will not be repeated here.

[0102] The above-mentioned time when the activation operation is performed on the first client refers to the activation time of the first client determined by the above-mentioned control terminal according to the preset first client activation policy. It should be noted that different clients can have different activation policies or the same activation policy.

[0103] The above-mentioned determining whether to activate the above-mentioned first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end refers to determining whether to activate the above-mentioned first client according to the validity period of the license certificate, the remaining number of activatable clients, and the list of activated clients in the above-mentioned activation information.

[0104] This application does not limit the order in which the above three pieces of information are judged, for example, as shown below:

[0105] Step 1: First determine whether the activated client list in the tail block includes the client identifier of the first client. If so, it means that the first client has been activated, then determine that the first client cannot be activated, and discard the activation request. Optionally, a response rejecting activation may be returned to the first client; if not, execute step 2.

[0106] Step 2: Determine whether the validity period of the license certificate in the tail block has expired. If yes, determine that the first client cannot be activated. Optionally, return a response of activation rejection to the first client. If no, execute step 3.

[0107] Step 3: Determine whether the number of the remaining activatable clients in the tail block is 0. If so, it means that the number of activated clients of the application system has reached the upper limit of the total number of activatable clients and no new clients can be activated. Then, it is determined that the first client cannot be activated and the activation request is discarded. Optionally, a response of activation rejection can be returned to the first client. If not, it means that the number of activated clients of the application system has not reached the upper limit of the total number of activatable clients and new clients can be activated. Then, it is determined to activate the first client and execute step S202.

[0108] S202. Broadcasting a first block for indicating activation of the first client to N clients, so that the control end and the N clients store the first block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the first block.

[0109] If it is determined to activate the first client, the control end generates a first block including the activation information based on the tail block of the blockchain locally stored by the control end and the client identifier of the first client using an encryption algorithm, which is used to indicate the activation of the first client, and the activation information for activating the first client is recorded in the first block. The encryption algorithm can be a symmetric encryption algorithm or an asymmetric encryption algorithm, which is not limited in this application.

[0110] It should be noted that in a blockchain, the encryption algorithm used by the above-mentioned control end to generate each block is consistent, and the encryption algorithm used by each client to store its own blockchain is consistent. The encryption algorithms used by the control end and the client may be the same or different, which is related to the specific settings of the blockchain and is not limited in this application.

[0111] It should be noted that the content attributes included in the first block are consistent with the content attributes in the aforementioned block. The number of remaining activatable clients included in the first block should be reduced by 1 based on the number of the previous block of the first block. For example, referring to Table 1, the number of remaining activatable clients in the previous block of the first block is 5, and the number of remaining activatable clients in the first block is 4.

[0112] The client identifier of the first client needs to be added to the activated client list of the first block, for example, the client identifier of the first client is: client identifier B2. Taking the previous block of the first block as the block shown in Table 1 as an example, the content of the first block is shown in Table 3.

[0113] Table 3 shows the contents of the first block

[0114] property data The identifier of the previous block Logo 2 Timestamp of this block Timestamp 2 Validity period of the license Time 1 - Time 2 The number of clients remaining to be activated 4 Activated Client List Client ID B1, Client ID B2

[0115] The N clients verify the identifier of the previous block recorded in the first block based on whether the identifier of the previous block recorded in the first block is consistent with the identifier of the block at the end of the blockchain stored locally by each client. The verification here is to verify whether the first block can be connected in sequence with the block at the end of the blockchain stored by each client to generate a blockchain, that is, to verify the legitimacy of the first block. At the same time, it is also verified whether the block at the end of the blockchain stored by each client is consistent with the block at the end of the blockchain stored by the control end, and then it can be determined whether the blockchains stored in the above-mentioned application system are consistent, that is, whether the activation information stored in each blockchain in the above-mentioned application system is accurate.

[0116] If the identifier of the tail block of the blockchain stored by a certain client is inconsistent with the identifier of the previous block recorded in the first block, it means that the blockchain stored by the client is inconsistent with the blockchain stored by the control end (the tail block of the blockchain stored by the client and / or the tail block of the blockchain stored by the control end may be tampered with), so that the first block generated based on the tail block of the blockchain stored by the above control end cannot be connected with the tail block of the blockchain stored by the client to generate a blockchain, and it also means that the activation information recorded in the respective blockchains of the client and / or the control end is inaccurate, then, the client fails to verify the identifier of the previous block recorded in the first block;

[0117] If the identifier of the tail block of the blockchain stored by a client is consistent with the identifier of the previous block recorded in the first block, it means that the blockchain stored by the client is consistent with the blockchain stored by the control end, and the first block can be connected to the tail block of the blockchain stored by the client to generate a blockchain. In this case, the client passes the verification based on the identifier of the previous block recorded in the first block.

[0118] If all the above-mentioned clients pass the identification verification based on the previous block recorded in the first block, it means that the first block is legal, that is, the blockchains stored in the above-mentioned application systems are consistent, and further indicates that the activation information recorded in the blockchains stored in the application systems is accurate. Therefore, the control end activates the first client. At the same time, the control end and each client store the first block at the end of their respective stored blockchains.

[0119] Through this verification method, it is ensured that the control end will activate the first block only after all clients have passed the identification verification based on the previous block recorded in the first block. Therefore, the activation information stored using the method provided by this embodiment cannot be maliciously tampered with.

[0120] Optionally, if the verification of at least one of the above-mentioned clients fails, it means that the first block is illegal (the block at the end of the blockchain stored by the above-mentioned control end is tampered with), and / or the block at the end of the blockchain stored by the above-mentioned client is tampered with, that is, the blockchains stored in the above-mentioned application systems are inconsistent, which further indicates that the activation information recorded in the respective blockchains stored in the application system is inaccurate. Therefore, the control end will initiate a blockchain consensus to update the respective blockchains stored in the application system to make the blockchains consistent, and re-execute step S201, and determine whether the first client can be activated again based on the updated blockchain, so that the activation control of the first client is more accurate.

[0121] Through the above verification method, the legitimacy of the above first block can be ensured, that is, it can be ensured that the first block can be connected to generate a blockchain based on the block sequence of the tail of the blockchain stored by the control end and each client, thereby ensuring that the blockchain stored by each client has not been tampered with, that is, the consistency of the blockchain stored by each client is guaranteed. After confirming its legitimacy, it is stored in each client, as well as the tail of the blockchain stored locally by the above control end, to take effect on the activation operation of the first client. In this way, the consistency of the blockchain stored by each client and the control end can be ensured, thereby ensuring the accuracy of the activation information stored by each client, and performing the activation operation of each client based on accurate activation information, thereby improving the reliability of client activation control.

[0122] Through the method of this embodiment, the control end can determine whether a client can be activated based on the block at the end of the blockchain it stores. If it can be activated, the first block recording the activation information can be sent to each client, and each client can verify based on the identifier of the previous block of the first block, and store the first block after verification at the end of the local blockchain of the control end and each client, so as to achieve distributed storage of the activation information recorded in the first block to the control end and each client. At the same time, the verification based on the identifier of the previous block of the first block ensures the consistency of the blockchain stored by the above-mentioned control end and each client, that is, ensures the accuracy of the activation information stored by each of them. Therefore, the activation operation of each client is performed based on accurate activation information, which improves the reliability of client activation control.

[0123] The following describes how each client performs verification based on the identifier of the previous block recorded in the first block.

[0124] For any of the above clients, you can take the following approach:

[0125] In a possible implementation method, the client first calculates the hash value of the tail block of the blockchain stored locally by the client to obtain the identifier of the tail block, and then determines whether the identifier of the previous block recorded in the first block is consistent with the identifier of the tail block of the blockchain stored locally by the client. If they are consistent, it means that the tail block of the blockchain stored by the client is consistent with the tail block of the blockchain stored by the control end, and the client passes the verification based on the identifier of the previous block recorded in the above-mentioned first block; if they are inconsistent, it means that the tail block of the blockchain stored by the client is inconsistent with the tail block of the blockchain stored by the control end, and the client fails the verification based on the identifier of the previous block recorded in the above-mentioned first block.

[0126] Another possible implementation method is that each of the above blocks also includes the identifier of the current block, for example, the content of the previous block of the above first block is shown in Table 4 and Table 5 respectively. That is, the identifier of the current block is directly added to the block without recalculating the hash value of the block. In this way, the client can directly obtain the identifier of the current block of the tail block of the blockchain stored locally by the client, and judge whether it is consistent with the identifier of the previous block in the above first block. If it is consistent, it means that the tail block of the blockchain stored by the client is consistent with the tail block of the blockchain stored by the control end, and the client is verified based on the identifier of the previous block recorded in the above first block; if it is inconsistent, it means that the tail block of the blockchain stored by the client is inconsistent with the tail block of the blockchain stored by the control end, and the client fails to verify based on the identifier of the previous block recorded in the above first block.

[0127] Table 4 shows the content of the previous block of the first block

[0128] property data The identifier of the previous block Logo 1 The identifier of this block Logo 2 Timestamp of this block Timestamp 1 The validity period of the license certificate for activating the client of the application system Time 1 - Time 2 The number of clients remaining in the application system that can be activated Quantity 5 Activated Client List Client ID B1

[0129] Table 5 shows the contents of the first block

[0130] property data The identifier of the previous block Logo 2 The identifier of this block Logo 3 Timestamp of this block Timestamp 2 The validity period of the license certificate for activating the client of the application system Time 1 - Time 2 The number of clients remaining in the application system that can be activated Quantity 4 Activated Client List Client ID B1, Client ID B2

[0131] If the client passes the verification based on the identifier of the previous block recorded in the first block, the verification pass information is sent to the control end; if the client fails the verification based on the identifier of the previous block recorded in the first block, the application of blockchain consensus is triggered. The above consensus refers to the way the control end and each client reach an agreement based on the divergent blockchains.

[0132] After the above-mentioned clients complete the verification based on the identifier of the previous block recorded in the first block, the above-mentioned control end obtains the verification results of each client and the control end, and the following situations occur:

[0133] (1) If the control end receives verification information returned by all clients, the control end confirms that the verification is successful, indicating that the blockchains stored in each application system are consistent and the first block is legal. Then, the control end activates the first client and stores the first block at the end of its blockchain. At the same time, the control end returns information indicating that storage is possible to each client, so that each client stores the first block at the end of its blockchain.

[0134] (2) If the control end receives a blockchain consensus application triggered by any client, the control end confirms that the verification fails, indicating that the first block is illegal (the tail block of the blockchain stored by the above control end is tampered with), and / or the tail block of the blockchain stored by the above client is tampered with, that is, the blockchains stored in the above application systems are inconsistent, which further indicates that the activation information recorded in the blockchains stored in the application systems is inaccurate, thereby triggering a blockchain consensus.

[0135] The above consensus method can be that the above control end obtains the tail block of the blockchain stored locally by each client, confirms the target block through a preset election strategy, and synchronizes it to each client, and updates the tail block in the blockchain of each client and the control end; or after confirming the target block, synchronizes to the client corresponding to the tail block different from the target block, and updates the tail block different from the target block. The above update refers to a replacement update, that is, using the target block to replace the original tail block.

[0136] A possible implementation method of the above-mentioned preset election strategy is that the above-mentioned control end obtains the identifier of the current block of each tail block, or obtains the hash value of each tail block, and compares the identifier of the current block of each tail block obtained, or the hash value, and the identifier of the current block of the tail block of the blockchain locally stored by the control end, or the hash value calculated by the tail block, and selects the identifier of the current block with the largest number of the same number, or the hash value, and uses the selected identifier of the current block, or the block corresponding to the hash value as the target block.

[0137] Another possible implementation method is that the control end obtains the timestamp of the current block of each tail block, and compares the timestamp of the current block of each tail block obtained, and the timestamp of the current block of the tail block of the blockchain stored locally by the control end, and selects the timestamp of the current block with the latest time among the timestamps of the current block, and uses the block corresponding to the timestamp of the selected current block as the target block.

[0138] Through the above method, tampering with the data of a certain client or control end is invalid, unless more than 51% of the clients in the above application system are tampered with, which is obviously very difficult.

[0139] Optionally, if the control end receives a blockchain consensus application triggered by a failure of the second client among the N clients to verify the identifier of the previous block recorded in the first block, the control end updates the tail block of the blockchain of the N clients and the control end in response to the consensus application by consensus; and determines whether to activate the first client based on the activation information recorded in the tail block currently in the blockchain of the control end, that is, re-executes the above-mentioned step S201.

[0140] After updating the tail block in the blockchain of the N clients and the control end, the consistency of the blockchains stored in each of them can be ensured, that is, the accuracy of the activation information recorded in the blockchain can be ensured, and then the activation judgment of the first client based on the updated blockchain can be re-performed more accurately.

[0141] In this embodiment, each of the above-mentioned clients can perform verification based on the identifier of the previous block of the first block to ensure that it can sequentially connect with the tail block in the respective locally stored blockchain to generate a blockchain, that is, to ensure the legitimacy of the first block, and store the first block to the tail when the first block is legal; if the verification fails, the blockchain stored in the application system is updated by means of blockchain consensus to make the respective stored blockchains consistent, and activation confirmation is performed again based on the updated blockchain. Through this method, the consistency of the blockchain can be ensured, that is, the accuracy of the activation information can be ensured, thereby making the activation confirmation based on the activation information recorded in the block of the blockchain more accurate.

[0142] The above is an example of how the control terminal activates the client. The following is still an example of how the control terminal performs service communication with the activated client.

[0143] Figure 4 This is a flow chart of another client activation control method provided by this application. Figure 4 As shown, the method includes:

[0144] S301. Before conducting business communications with a first client, determine whether the first client is in an activated state according to activation information recorded in a block currently located at the tail of a blockchain of a control end.

[0145] The above method of determining whether the first client is in an activated state may be that the control end compares the client identifier of the client with the activated client list in the tail block of the blockchain stored locally by the control end, that is, whether the client identifier of the first client is stored in the list. If so, the first client is in an activated state; if not, the first client is in an inactivated state.

[0146] If it is determined that the first client is in an activated state, it means that the first client has been activated, so step S302 is executed; if it is determined that the first client is in an unactivated state, it means that the activation state of the first client recorded by the control end is inconsistent with the activation state recorded by the first client, so step S303 is executed.

[0147] S302: Perform business communication with the first client.

[0148] Taking the application system as an information publishing system deployed in supermarkets, subway stations and other environments as an example, the business communication mentioned here can be, for example, sending multimedia data (such as advertisements, short videos, vehicle arrival time reminders, etc.) to the first client so that the first client plays the multimedia data.

[0149] S303: Send a self-check request to the first client.

[0150] The self-check request is used to request the first client to determine whether the first client is in an activated state based on the tail block in its blockchain.

[0151] The above method of determining whether the first client is in an activated state may be that the first client compares the client identifier of the first client with the activated client list in the tail block of the blockchain stored locally by the first client, that is, whether the client identifier of the first client is stored in the list. If so, the first client is in an activated state; if not, the first client is in an inactivated state.

[0152] If the first client determines through self-check that the first client is in an inactive state, the self-check request is discarded and a communication request rejection is returned; if the first client determines through self-check that the first client is in an activated state, it means that the blockchains saved by the control end and the first client are inconsistent, thus triggering a blockchain consensus application.

[0153] The control end receives the blockchain consensus application triggered by the first client after determining that it is in an activated state, and in response to the consensus application, updates the tail block in the blockchain of the N clients and the control end by consensus; and re-determines whether the first client is in an activated state based on the activation information recorded in the tail block currently in the blockchain of the control end, that is, returns to execute step S301.

[0154] After updating the tail block in the blockchain of the N clients and the control end, the consistency of the blockchains stored in each of them can be ensured, that is, the accuracy of the activation information recorded in the blockchain can be ensured, and then the activation judgment of the first client based on the updated blockchain can be re-performed more accurately.

[0155] If the control end receives a communication rejection request returned by the first client after determining that the first client is in an inactivated state, it means that the blockchains stored by the control end and the first client respectively record that the first client is in an inactivated state, indicating that the activation information of the blockchain locally stored by the control end is true and valid. In response to the request, the control end abandons business communication with the first client.

[0156] In this embodiment, whether to conduct business communication with the first client is determined by the activation information recorded in the block at the end of each blockchain, thereby ensuring the accuracy of business communication between the control end and the first client, and if the control end believes that the first client is not activated, it will notify the first client to perform a self-check to ensure the accuracy of the activation information in the blocks in the respective stored blockchains; at the same time, if there are inconsistencies in the blockchains, the consistency of each blockchain can be guaranteed by blockchain consensus, and the activation confirmation can be performed again with the updated blockchains to improve the reliability of client activation control.

[0157] Still taking the first client as an example, the following describes how to deactivate an activated client.

[0158] Figure 5 This is a flow chart of another client activation control method provided by this application. Figure 5 As shown, the method includes:

[0159] S401. In response to the deactivation request of the first client, or in response to an instruction triggered when the deactivation operation is performed on the first client, determine whether to deactivate the first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end.

[0160] The deactivation request of the first client is sent by the first client to the control end. The deactivation request of the first client is used to apply for deactivation of the first client and includes an identifier of the first client.

[0161] The time when the deactivation operation is performed on the first client is the time when the first client is deactivated according to the first client deactivation policy preset on the control terminal. It should be noted that different clients may have different deactivation policies or the same deactivation policies.

[0162] The above-mentioned determination of whether to deactivate the first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end may be based on the activated client list in the activation information to determine whether to deactivate the first client. For example, if the activated client list in the tail block includes the client identifier of the first client, it is determined that the first client is deactivated; if the activated client list in the tail block does not include the client identifier of the first client, it is determined that the first client is in an unactivated state.

[0163] If it is determined to cancel the activation of the first client, it means that the activation information recorded in the blockchain stored by the control end is consistent with the activation information recorded in the blockchain stored by the first client, then step S402 is executed;

[0164] If it is determined that the first client is in an unactivated state, it means that the activation information recorded in the blockchain stored by the control end is inconsistent with the activation information recorded in the blockchain stored by the first client, and step S403 is executed.

[0165] S402. Broadcasting a second block for indicating deactivation of the first client to N clients, so that the control end and the N clients store the second block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the second block.

[0166] If it is determined to deactivate the first client, the control end generates a second block including the activation information using an encryption algorithm based on the tail block of the blockchain locally stored on the control end and the client identifier of the first client, to indicate the deactivation of the first client. The activation information for deactivating the first client is recorded in the second block.

[0167] It should be noted that the content attributes included in the second block are consistent with the content attributes in the aforementioned block. The number of remaining activatable clients included in the second block should be 1 plus the number of the previous block of the second block. For example, referring to Table 3, the number of remaining activatable clients in the previous block of the second block is 4, and the number of remaining activatable clients in the second block is 5.

[0168] The client identifier of the first client needs to be deleted from the activated client list of the second block, for example, the client identifier of the first client is: client identifier B2. Taking the previous block of the second block as the first block shown in Table 3 as an example, the content of the second block is shown in Table 6.

[0169] Table 6 Contents of the second block

[0170]

[0171]

[0172] Optionally, the block of the blockchain of the present application may also include a list of deactivated clients, which is used to store the client identifiers of the clients that were deactivated after the above activation.

[0173] It should be noted that as to how the N clients perform verification based on the identifier of the previous block recorded in the second block, reference may be made to the description of the aforementioned embodiment.

[0174] After each client completes the verification based on the identifier of the previous block recorded in the second block, the control end obtains the verification results of each client and the control end, and the following situations occur:

[0175] (1) If the control end receives verification information returned by all clients, the control end confirms that the verification is successful, indicating that the blockchains stored in each application system are consistent and the second block is legal. Then, the control end deactivates the first client and stores the second block at the end of its blockchain. At the same time, the control end returns information indicating that storage is possible to each client, so that each client stores the second block at the end of its blockchain.

[0176] (2) If the control end receives a blockchain consensus application triggered by any client, the control end confirms that the verification fails, indicating that the second block is illegal (the tail block of the blockchain stored by the above control end is tampered with), and / or the tail block of the blockchain stored by the above client is tampered with, that is, the blockchains stored in the above application systems are inconsistent, which further indicates that the activation information recorded in the blockchains stored in the application systems is inaccurate, thereby triggering a blockchain consensus.

[0177] If the control end receives a blockchain consensus application triggered by a third client among the N clients failing to verify the identifier of the previous block recorded in the second block, in response to the consensus application, the control end updates the tail block in the blockchain of the N clients and the control end by consensus; and determines whether to deactivate the first client based on the activation information recorded in the tail block currently in the blockchain of the control end, that is, returns to execute step S401.

[0178] After updating the tail block in the blockchain of the N clients and the control end, the consistency of the blockchains stored in each of them can be ensured, that is, the accuracy of the activation information recorded in the blockchain can be ensured, and then the re-determination of whether to cancel the activation of the first client based on the updated blockchain can be more accurate.

[0179] S403: Send a self-check request to the first client.

[0180] The self-check request is used to request the first client to determine whether the first client is in an activated state based on the tail block in its blockchain. For how to determine whether the first client is in an activated state, reference can be made to the description of the aforementioned embodiment, which will not be repeated here.

[0181] If the first client determines through self-check that the first client is in an inactivated state, an inactivated response is returned to the control end; if the first client determines through self-check that the first client is in an activated state, it means that the blockchains saved by the control end and the first client are inconsistent, thus triggering a blockchain consensus application.

[0182] If the control end receives a blockchain consensus application triggered by the first client after determining that it is in an activated state, in response to the consensus application, the tail block in the blockchain of the N clients and the control end is updated by consensus; and whether to deactivate the first client is determined again based on the activation information recorded in the tail block currently in the blockchain of the control end.

[0183] After updating the tail block in the blockchain of the N clients and the control end, the consistency of the blockchains stored in each of them can be ensured, that is, the accuracy of the activation information recorded in the blockchain can be ensured, and then the re-determination of whether to cancel the activation of the first client based on the updated blockchain can be more accurate.

[0184] If it is determined to cancel the activation of the first client, it means that the activation information recorded in the blockchain stored by the control end and the first client are consistent, and the process returns to step S402;

[0185] If it is determined that the first client is in an unactivated state, it means that the activation information recorded in the blockchain stored by the control end and the first client are inconsistent, and then step S403 is continued.

[0186] In this embodiment, the activation information recorded in the tail block in the blockchain stored by the control end and each client is used to confirm whether the first client is deactivated, and if the control end believes that the first client is not activated, it will notify the first client to perform a self-check to ensure the accuracy of the activation information in the blocks in the respective stored blockchains; at the same time, if there are inconsistencies in the blockchains, the consistency of the blockchains can be guaranteed by blockchain consensus, and the deactivation confirmation can be performed again with the updated blockchains to improve the reliability of client activation control.

[0187] Figure 6This is a schematic diagram of the structure of a client activation control device provided by this application. Figure 6 As shown, the device includes: a processing module 11 and a transceiver module 12.

[0188] The processing module 11 is used to respond to an activation request of a first client among the N clients, or respond to an instruction triggered when the time for performing an activation operation on the first client is reached, and determine whether to activate the first client according to the activation information recorded in the block currently located at the tail in the blockchain of the control end;

[0189] The transceiver module 12 is used to broadcast the first block for indicating the activation of the first client to the N clients if it is determined to activate the first client, so that the control end and the N clients store the first block at the end of their blockchain after the identification verification of the previous block recorded in the first block is passed.

[0190] Optionally, after the transceiver module 12 broadcasts the first block for indicating activation of the first client to the N clients, the processing module 11 is used to respond to a blockchain consensus application triggered by a second client among the N clients failing to verify the identifier of the previous block recorded in the first block, and to update the tail block in the blockchain of the N clients and the control end by consensus; and re-determine whether to activate the first client based on the activation information recorded in the tail block currently in the blockchain of the control end.

[0191] Optionally, the processing module 11 is used to obtain a license authorizing the application system to activate the client; based on the license, generate a genesis block of its blockchain; the transceiver module 12 is used to broadcast the genesis block to the N clients, so that the control end and the N clients construct their blockchains and store the genesis block as the first block of their blockchains.

[0192] Optionally, the processing module 11 is used to respond to a deactivation request of the first client, or to respond to an instruction triggered when a deactivation operation is performed on the first client, and determine whether to deactivate the first client according to the activation information recorded in the block currently located at the tail of the blockchain of the control end; the transceiver module 12 is used to broadcast a second block for indicating the deactivation of the first client to the N clients if it is determined to deactivate the first client, so that the control end and the N clients store the second block at the tail of their blockchain after the identification verification based on the previous block recorded in the second block is passed.

[0193] Optionally, after the transceiver module 12 is used to broadcast the second block indicating the activation of the first client to the N clients, the processing module 11 is specifically used to respond to a blockchain consensus application triggered by a third client among the N clients failing to verify the identifier of the previous block recorded in the second block, and to update the tail block in the blockchain of the N clients and the control end by consensus; and re-determine whether to deactivate the first client based on the activation information recorded in the tail block currently in the blockchain of the control end.

[0194] Optionally, after the above-mentioned processing module 11 is used to determine whether to deactivate the first client, it is specifically used to send a self-check request to the first client if it is determined that the first client is in an inactivated state; the self-check request is used to request the first client to determine whether the first client is in an activated state based on the block at the tail in its blockchain; in response to a blockchain consensus application triggered after the first client determines that it is in an activated state, the block at the tail in the blockchain of the N clients and the control end is updated by consensus; and it is determined whether to deactivate the first client again based on the activation information recorded in the block currently at the tail in the blockchain of the control end.

[0195] Optionally, the processing module 11 is used to determine whether the first client is in an activated state according to the activation information recorded in the block currently located at the tail of the blockchain of the control end before conducting business communications with the first client; if it is determined that the first client is in an activated state, business communications are conducted with the first client; if it is determined that the first client is in an inactivated state, a self-check request is sent to the first client; the self-check request is used to request the first client to determine whether the first client is in an activated state based on the block located at the tail of its blockchain; in response to a blockchain consensus application triggered after the first client determines that it is in an activated state, the block located at the tail of the blockchain of the N clients and the control end is updated by consensus; and whether the first client is in an activated state is determined again according to the activation information recorded in the block currently located at the tail of the blockchain of the control end.

[0196] Optionally, after the processing module 11 is used to send a self-check request to the first client, it is specifically used to respond to the communication rejection request returned by the first client when determining that the first client is in an inactivated state, and give up business communication with the first client.

[0197] The client activation control device provided in the present application is used to execute the aforementioned client activation control method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail.

[0198] The present application also provides a Figure 1 The application system shown includes a control terminal and N clients, wherein N is an integer greater than 1, and the control terminal and the client both store a blockchain, wherein the blocks in the blockchain are used to record activation information, and the activation information includes the validity period of the license authorizing the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of the previous block; the application system is used to implement the client activation control method in the above embodiment.

[0199] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store computer-executable instructions. Specifically, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the client activation control method in the above embodiment.

[0200] The present application also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of the control end can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the control end implements the client activation control method provided by the various embodiments described above.

[0201] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0202] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A client activation control method, characterized in that: The application system includes N clients; wherein N is an integer greater than 1; The application system further includes a control terminal; the control terminal and the client both store a blockchain, and the blocks in the blockchain are used to record activation information, and the activation information includes the validity period of the license that authorizes the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of the previous block; the control terminal is configured as follows: In response to an activation request of a first client among the N clients, or in response to an instruction triggered when an activation operation is performed on the first client, determining whether to activate the first client according to activation information recorded in a block currently located at the tail of the blockchain of the control end; If it is determined to activate the first client, a first block indicating the activation of the first client is broadcast to the N clients, so that the control end and the N clients store the first block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the first block.

2. The method according to claim 1, characterized in that After broadcasting the first block for indicating activation of the first client to the N clients, the control end is configured to: In response to a blockchain consensus application triggered by a second client among the N clients failing to verify the identifier of a previous block recorded in the first block, updating the tail block in the blockchain of the N clients and the control end by consensus; Determine whether to activate the first client again based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

3. The method according to claim 1 or 2, characterized in that: The control terminal is configured as follows: Obtaining a license certificate authorizing the application system to activate the client; Generate the genesis block of its blockchain according to the license; The genesis block is broadcasted to the N clients, so that the control end and the N clients construct their blockchains and store the genesis block as the first block of their blockchains.

4. The method according to claim 1 or 2, characterized in that: The control terminal is configured as follows: In response to a deactivation request from the first client, or in response to an instruction triggered when a deactivation operation is performed on the first client, determining whether to deactivate the first client according to activation information recorded in a block currently located at the tail of the blockchain of the control end; If it is determined to deactivate the first client, a second block indicating the deactivation of the first client is broadcast to the N clients, so that the control end and the N clients store the second block at the end of their blockchain after the N clients pass the identification verification based on the previous block recorded in the second block.

5. The method according to claim 4, characterized in that After broadcasting the second block for indicating deactivation of the first client to the N clients, the control end is configured to: In response to a blockchain consensus application triggered by a third client among the N clients failing to verify the identifier of the previous block recorded in the second block, updating the tail block in the blockchain of the N clients and the control end by consensus; Re-determine whether to deactivate the first client based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

6. The method according to claim 4, characterized in that After determining whether to deactivate the first client, the control end is configured to: If it is determined that the first client is in an inactive state, sending a self-check request to the first client; the self-check request is used to request the first client to determine whether the first client is in an active state based on a block at the end of its blockchain; In response to a blockchain consensus application triggered by the first client after determining that it is in an activated state, updating the tail block in the blockchain of the N clients and the control end by consensus; Re-determine whether to deactivate the first client based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

7. The method according to claim 1 or 2, characterized in that: The control terminal is configured as follows: Before performing business communication with the first client, determining whether the first client is in an activated state according to activation information recorded in a block currently located at the tail of the blockchain of the control end; If it is determined that the first client is in an activated state, performing service communication with the first client; If it is determined that the first client is in an inactive state, a self-check request is sent to the first client; the self-check request is used to request the first client to determine whether the first client is in an active state based on a block at the end of its blockchain; In response to a blockchain consensus application triggered by the first client after determining that it is in an activated state, updating the tail block in the blockchain of the N clients and the control end by consensus; Re-determine whether the first client is in an activated state based on the activation information recorded in the block currently located at the tail of the blockchain of the control end.

8. The method according to claim 7, characterized in that After sending the self-check request to the first client, the control end is configured to: In response to the first client determining that it is in an inactive state and returning a rejection communication request, service communication with the first client is abandoned.

9. An application system, characterized in that: The application system includes a control terminal and N clients, wherein N is an integer greater than 1, and the control terminal and the client both store a blockchain, and the blocks in the blockchain are used to record activation information, and the activation information includes the validity period of the license certificate authorizing the application system to activate the client, the number of remaining activatable clients in the application system, a list of activated clients, and an identifier of the previous block; The application system is used to implement the client activation control method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the client activation control method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method for providing blockchain-based subscription service on customer network

    CN108924231A

  • Activation code management method and device and activation code generation method and device

    CN109995523A

  • File processing method, block chain node, block chain and storage medium

    CN111131254A

  • Device authentication activation method based on block chain

    CN112543184A

  • Block data marking method and device based on block chain

    CN113282672A

Cited By

  • Operating system management and control method, system and device, computer program product and storage medium

    CN119316462A