Device management method using a blockchain network, related devices, and computer programs

A blockchain-based device management method authenticates and associates a feature collection device with multiple clients, addressing the challenge of supporting multiple payment clients on a single device, thereby improving payment convenience.

JP7586550B2Active Publication Date: 2024-11-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023528394
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-02-02
Filing Date
2022-01-24
Publication Date
2024-11-19
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

In the face recognition payment scenario, a single feature collection device cannot support multiple payment clients on a terminal, leading to inconvenience in payment processes.

Method used

A device management method using a blockchain network to authenticate and associate a feature collection device with multiple clients, ensuring device authentication and establishing an association between the device and clients through a blockchain network, allowing one device to support multiple clients.

Benefits of technology

This method enables a single feature collection device to support multiple clients, reducing the need for multiple devices and enhancing convenience in payment processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007586550000003
    Figure 0007586550000003
  • Figure 0007586550000004
    Figure 0007586550000004
  • Figure 0007586550000005
    Figure 0007586550000005
Patent Text Reader

Abstract

An embodiment of the present application discloses a device management method, associated device, and storage medium using a blockchain network. The method includes the steps of: acquiring device information of the feature collection device in response to a trigger operation to establish an association relationship between the feature collection device and a target client among at least two clients; transmitting the device information to the blockchain network so that each node device included in the blockchain network performs device authentication with the feature collection device based on the device information; acquiring a reference authentication result obtained by each node device performing device authentication with the feature collection device; and, if it is determined based on the reference authentication result that the feature collection device has passed the device authentication, establishing an association relationship between the target client and the feature collection device. Implementing the above method enables a single feature collection device to support the execution of different clients included in a terminal, thereby reducing the number of feature collection devices and improving convenience.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on February 2, 2021, bearing application number 202110143735.X, and entitled “Device management method using blockchain network, related device and storage medium”, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the fields of computer technology and blockchain technology, and in particular to device management technology using a blockchain network. [Background technology]

[0003] With the development of computer technology, mobile payment has become ubiquitous in our daily lives. For example, a store can directly realize payment for goods based on data such as fingerprint characteristics or face images provided by users. Summary of the Invention [Problem to be solved by the invention]

[0004] Currently, in a facial recognition payment scenario, one feature collection device that collects facial images corresponds to one payment client executed on a terminal; if a terminal is to execute multiple different payment clients, multiple feature collection devices corresponding to the multiple payment clients are installed, which causes inconvenience to the store or user when making a payment; therefore, how to support the execution of different clients included in a terminal with one feature collection device has become a current research focus.

[0005] An embodiment of the present application provides a device management method, related device, and storage medium using a blockchain network, which enables one feature collection device to support the execution of different clients contained in a terminal, reduces the deployment of feature collection devices, and improves convenience. [Means for solving the problem]

[0006] According to one aspect, an embodiment of the present application provides a method for device management over a blockchain network, the method being executed by a target terminal, the target terminal having at least two clients executed thereon, the target terminal having a corresponding feature collection device, the method comprising: acquiring device information of the feature collecting device in response to a trigger operation that establishes an association relationship between the feature collecting device and a target client of the at least two clients; transmitting the device information to the block chain network so that each node device included in the block chain network performs device authentication on the characteristic collection device based on the device information; A step of acquiring a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; and if it is determined that the feature collecting device has passed device authentication based on the reference authentication result, establishing an association relationship between the target client and the feature collecting device.

[0007] According to another aspect, an embodiment of the present application provides a device management apparatus through a blockchain network, the device management apparatus being executed on a target terminal, the target terminal being executed on at least two clients, the target terminal having a corresponding feature collection device, the device being: an acquisition unit that acquires device information of the feature collecting device in response to a trigger operation that establishes an association relationship between the feature collecting device and a target client of the at least two clients; A transmission unit that transmits the device information to the block chain network so that each node device included in the block chain network performs device authentication for the characteristic collection device based on the device information; A determination unit that acquires a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; and an association unit, which establishes an association relationship between the target client and the feature collecting device when the determination unit determines that the feature collecting device passes device authentication based on the reference authentication result.

[0008] According to another aspect, an embodiment of the present application provides a terminal, comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being connected to each other, the memory storing a computer program, the computer program comprising program instructions, the processor being arranged to execute the method according to the above aspect by invoking the program instructions.

[0009] According to another aspect, an embodiment of the present application provides a computer readable storage medium having a computer program stored thereon, the computer program including program instructions that, when executed by a processor, cause the processor to perform the above-described exemplary method.

[0010] According to another aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer readable storage medium, the processor of a terminal reading the computer instructions from the computer readable storage medium, and the processor executing the computer instructions, thereby causing the terminal to perform the method of the above aspect. Effect of the Invention

[0011] In an embodiment of the present application, in response to a trigger operation for establishing an association relationship between the feature collection device and a target client among at least two clients, the target terminal obtains device information of the feature collection device, and transmits the device information to the blockchain network, so that each node device included in the blockchain network performs device authentication on the feature collection device based on the device information. Each node device obtains a reference authentication result obtained by performing device authentication on the feature collection device from the blockchain network, and determines whether the feature collection device has passed device authentication based on the reference authentication result. If it is determined that the feature collection device has passed device authentication, the target client and the feature collection device are established as an association relationship. By implementing the above method, it is possible to realize the execution of different clients included in the terminal by one feature collection device, thereby reducing the deployment of feature collection devices and improving convenience. [Brief description of the drawings]

[0012] In order to more clearly explain the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings on the premise that they do not make efforts worthy of inventive step. [Figure 1a] FIG. 1 is a system architecture diagram of device management using a blockchain network provided by an embodiment of the present application. [Figure 1b] FIG. 1 is a schematic diagram of a blockchain configuration provided by an embodiment of the present application. [Figure 1c] FIG. 2 is a schematic diagram of a new block generation process provided by an embodiment of the present application. [Diagram 2] FIG. 1 is a schematic flow diagram of a device management method via a blockchain network provided by an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of the relationship between blocks and index information provided by an embodiment of the present application; [Figure 4]FIG. 2 is a schematic flow diagram of another blockchain network-based device management method provided by an embodiment of the present application. [Figure 5a] FIG. 11 is a schematic flow diagram of another blockchain network-based device management method provided by an embodiment of the present application. [Figure 5b] FIG. 2 is a schematic flow diagram of storing device information of an image collection device in a blockchain network provided by an embodiment of the present application. [Figure 6] FIG. 1 is a schematic block diagram of an equipment management device using a blockchain network provided by an embodiment of the present application. [Figure 7] FIG. 2 is a schematic block diagram of a terminal provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the technical solutions of the embodiments of the present application will be clearly and completely described in conjunction with the drawings of the embodiments of the present application, and obviously, the described embodiments are not all the embodiments but only some of the embodiments of the present application. Based on the embodiments of the present application, on the premise that a person skilled in the art does not make any inventive efforts, all other embodiments obtained fall within the scope of protection of the present application.

[0014] An embodiment of the present application proposes a device management method using a blockchain network, in which a target terminal establishes an association relationship between a feature collection device and a target client among at least two clients, and each node device included in the blockchain network performs device authentication on the feature collection device based on the device information of the feature collection device in response to a trigger operation. If the feature collection device determines that the device authentication has passed, an association relationship is established between the target client and the feature collection device, thereby realizing one feature collection device to support the execution of different clients included in the terminal, reducing the deployment of feature collection devices and improving convenience.

[0015] Referring to FIG. 1a, FIG. 1a is a system architecture diagram of device management by a blockchain network provided by an embodiment of the present application, the system of device management by a blockchain network includes a target terminal 10, a feature collection device 11, and a blockchain network 12, the blockchain network 12 includes a plurality of node devices 13, and any one of the node devices in the blockchain network 12 is a node device that provides traffic services to a corresponding client in the target terminal 10. In one embodiment, the target terminal 10 can run a plurality of different clients, which may be payment clients, such as payment client 1, payment client 2, and payment client 3, and the payment client may specifically be a WeChat payment client or other client for payment, which is not limited in the embodiment of the present application. The feature collection device 11 is a device that collects feature information, which may be a device built into the target terminal 10 or a device independent of the target terminal 10, and in the embodiment of the present application, the feature collection device 11 is mainly described in detail as a device independent of the target terminal 10. The feature information collected by the feature collection device 11 may be, for example, a user's face image, fingerprint feature, voiceprint feature, or iris feature, etc., and correspondingly, the feature collection device 11 may be an image collection device, a fingerprint collection device, a voiceprint collection device, or an iris collection device, etc. In the embodiments of the present application, the feature collection device is mainly described in detail as an image collection device, and when the feature collection device is another device, reference may be made to the embodiments of the present application, and the image collection device may be, for example, the device of symbol 11 in Fig. 1a.

[0016] In one embodiment, if the feature collection device 11 is an image collection device that collects face images, the face images collected by the feature collection device 11 may be used to perform identity authentication. In a specific implementation, a user performs face scanning using the feature collection device 11, so that the feature collection device 11 acquires the face image of the user. After acquiring the face image, the feature collection device 11 transmits the face image to the target terminal 10, and the target terminal 10 transmits the received face image to any one of the node devices in the blockchain network 12. After receiving the face image of the user, the node device recognizes the face image and completes identity authentication for the user. In the embodiment of the present application, after the node device completes identity authentication for the user, it performs a corresponding user operation, such as a payment operation or an unlock operation. When a user selects a client in the target terminal 10 to make a payment, the user needs to ensure that the client has established an association relationship with the feature collection device 11. To ensure that the client in the target terminal 10 is used for online product payment by the user, the association relationship between the client and the feature collection device 11 is first established.

[0017] In one embodiment, the target terminal 10 responds to a trigger operation to establish an association relationship between the feature collection device 11 and the target client, and after responding to the trigger operation, the target terminal 10 acquires device information of the feature collection device 11. If the device information is device information with signature information, the target terminal 10 acquires the device information with signature information and then transmits the device information with signature information to the blockchain network 12, so that each node device included in the blockchain network 12 performs device authentication on the feature collection device 11 based on the device information. The target terminal 10 acquires a reference authentication result obtained by each node device performing device authentication on the feature collection device 11 from the blockchain network, and determines whether the feature collection device 11 has passed the device authentication based on the reference authentication result, and then, if it is determined that the feature collection device 11 has passed the device authentication, an association relationship between the feature collection device 11 and the target client can be established.

[0018] In one embodiment, when the target terminal 10 transmits the device information to the blockchain network 12, it transmits the device information to any one of the node devices in the blockchain network 12, and when the device information is transmitted to any one of the node devices, it acquires the device address of the any one of the node devices and determines whether the acquired device address matches a predetermined device address. If they match, the any one of the node devices performs device inspection on the feature collection device based on the device information, and after the any one of the node devices completes device authentication for the feature collection device, it transmits the device information to other node devices in the blockchain network so that the other node devices perform device authentication. If they do not match, it transmits the device information to the target node device 13 indicated by the predetermined device address in the blockchain network, and the target node device 13 performs device inspection on the feature collection device based on the device information, and after the target node device completes device authentication for the feature collection device, it transmits the device information to other node devices in the blockchain network so that the other node devices perform device authentication.

[0019] In one embodiment, when the target terminal 10 obtains the reference authentication result obtained by each node device performing device authentication on the feature collection device 11 from the blockchain network 12, the target terminal 10 determines whether the feature collection device 11 has passed device authentication based on the reference authentication result. The reference authentication result includes whether the feature collection device 11 has passed device authentication and whether the feature collection device 11 has failed device authentication. Then, the target terminal 10 calculates a first number of the reference authentication result for indicating that the corresponding node device has determined that the feature collection device 11 has passed device authentication, determines a second number of normal node devices included in the blockchain network 12, and determines whether the feature collection device 11 has passed device authentication based on the first number and the second number. Specifically, if the first number is equal to the second number, the target terminal 10 determines that the feature collection device 11 has passed device authentication, and if the first number is smaller than the second number, the target terminal 10 determines that the feature collection device 11 has failed device authentication. In one embodiment, the second number is determined based on the inspection feedback information acquired by the target terminal 10, and the inspection feedback information is determined by feedback result information after the target node device 13 transmits the device information to other node devices in the blockchain network 12 and the other node devices in the blockchain network 12 perform device authentication on the feature collection device based on the device information. For example, if the inspection feedback information acquired by the target terminal 10 is 3, the second number is 3.

[0020] As can be seen from the above, during the authentication process for the feature collection device, each node in the blockchain network knows the device information of the feature collection device. In the process of the device passing authentication, it does not rely on the private protocol of a certain mechanism, but jointly determines whether the device has passed authentication based on the authentication results of multiple node devices in the blockchain network, thereby ensuring data security and preventing data from being invalidated due to tampering with a single data source.

[0021] In one embodiment, when the target terminal 10 determines that the feature collection device 11 has passed device authentication, it stores the device information of the feature collection device in the blockchain network 12. The target terminal 10 obtains the storage location of the device information in the blockchain network 12, obtains index information for searching the device information of the feature collection device, and stores the index information. In one embodiment, when a user performs a related user operation, such as a payment operation or an unlock operation, through the feature collection device 11, and the user selects a target client on the target terminal 10 to perform online product payment or access unlock, the feature collection device 11 first verifies whether it meets a predetermined standard, such as a national standard, and only when it is determined that the feature collection device 11 meets the predetermined standard, the target client performs the subsequent payment operation or unlock operation. In a specific implementation, when the target terminal 10 receives a search operation request for the device information of the feature collection device 11, it obtains index information of the device information, and then determines the storage location of the device information in the blockchain network 12 based on the index information of the device information, and obtains the device information from the storage location. Then, after obtaining the device information, the target terminal 10 determines whether the device signature included in the search operation request matches the device signature in the device information. If so, it verifies and determines that the feature collection device 11 meets the specified standard, and then performs subsequent user operations.

[0022] Here, the number of nodes (one node device is one node) in FIG. 1a is merely an example, and any number of nodes may be arranged based on actual needs.

[0023] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network stores the node identifiers of other nodes in the blockchain network. Thereafter, the node broadcasts the generated blocks to other nodes in the blockchain network based on the node identifiers of the other nodes. Each node maintains one of the node identifier lists in Table 1, and stores the node name and node identifier in the node identifier list accordingly. The node identifiers are stored in the Internet Protocol (IP) Protocol, IP address, and any other information that can mark the node. In the table, only IP address is used as an example. For example, if Table 1 is a list of node identifiers maintained by Node 1, when Node 1 generates a new block, it can broadcast the new block to other nodes in the blockchain network based on the node identifiers of each node in Table 1. [Table 1]

[0024] Each node in the blockchain network stores one and the same blockchain. The blockchain is composed of a number of blocks, see Fig. 1b, the blockchain is composed of a number of blocks, the genesis block includes a block head and a block body, the block head stores input information characteristic value, version number, timestamp and difficulty value, the block body stores input information, the next block of the genesis block takes the genesis block as the parent block, the next block similarly includes a block head and a block body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, version number, timestamp and difficulty value, by analogy, the block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.

[0025] When generating each block in the blockchain, refer to FIG. 1c. When a node where the blockchain is located receives input information, it checks the input information. After completing the check, it stores the input information in a memory pool, updates the hash tree for recording the input information, and then updates the timestamp to the time when the input information is received. It tries different random numbers and calculates the feature value multiple times, so that the calculated feature value satisfies the following formula: SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET SHA256 is the feature value algorithm for calculating the feature value, version (version number) is the version information of the relevant block protocol in the blockchain, prev_hash is the block head feature value of the parent block of the current block, merkle_root is the feature value of the input information, ntime is the update time of the timestamp update, nbits is the current difficulty, which is a fixed value within a certain period of time and is determined again after the fixed time period is exceeded, x is a random number, TARGET is the feature value threshold, and the feature value threshold is determined based on nbits.

[0026] In this way, when a random number that satisfies the above formula is obtained through calculation, the information is stored accordingly, a block head and a block body are generated, and the current block is obtained. Then, the node where the blockchain is located sends the newly generated block to other nodes in the blockchain network according to the node identifiers of other nodes in the blockchain network, and the other nodes check the newly generated block. After the check is completed, the newly generated block is added to the stored blockchain.

[0027] Referring to FIG. 2, FIG. 2 is a flow diagram of a device management method via a blockchain network provided in an embodiment of the present application. The device management method via a blockchain network described in this embodiment is applicable to the above-mentioned target terminal, where at least two clients are running on the target terminal, and the target terminal has a corresponding feature collection device. As shown in FIG. 2, the method includes the following steps: S201: In response to a trigger operation that establishes an association relationship between a feature collecting device and a target client among at least two clients, device information of the feature collecting device is obtained.

[0028] In one embodiment, when the target terminal detects at least two clients installed and running on the target terminal, it determines that a trigger operation for establishing a communication connection between the feature collection device and the target client is detected, and the target client is any one of the at least two clients included in the target terminal. After detecting the trigger operation, the target terminal obtains device information of the feature collection device and transmits the device information of the feature collection device to the blockchain network, i.e., executes S202. The device information may include a manufacturer identifier of the feature collection device, a shipping time, a release manufacturer, a device model number, a device identifier, device parameters, a release signature, etc., and the present application is not limited thereto.

[0029] In one embodiment, the feature collection device is an image collection device for collecting face images, and when the target terminal detects at least two payment clients installed and executable on the target terminal, the target terminal determines that a trigger operation is detected to establish a communication connection between the image collection device and the target payment client. A user makes an online product payment through the payment client and the user's face image collected from the image collection device, and the target payment client is any one of the payment clients included in the target terminal. After detecting the trigger operation, the target terminal obtains device information of the feature collection device and sends the device information of the feature collection device to a blockchain network.

[0030] In another embodiment, the feature collection device is an image collection device for collecting face images, and when the target terminal detects at least two unlock clients installed and executable on the target terminal, the target terminal determines that a trigger operation is detected to establish a communication connection between the image collection device and the target unlock client. A user unlocks access, for example, by the unlock client and the user's face image collected from the image collection device, and the target unlock client is any one of the unlock clients included in the target terminal. After detecting the trigger operation, the target terminal obtains device information of the feature collection device and sends the device information of the feature collection device to the blockchain network.

[0031] S202: By transmitting the device information to the blockchain network, each node device included in the blockchain network performs device authentication on the characteristic collection device based on the device information.

[0032] In one embodiment, the target terminal obtains the device information of the feature collecting device, and then transmits the device information to the blockchain network. In a possible implementation, the target terminal transmits the device information with the signature information attached to it to the blockchain network, thereby ensuring the security of the device information. The target terminal obtains the device information of the feature collecting device and the private key of the device from the feature collecting device, performs a signature process on the device information with the private key of the device, obtains the device information with the signature information, and then transmits the device information with the signature information to the blockchain network. Alternatively, the target terminal directly obtains the device information with the signature information from the feature collecting device, and the device information with the signature information is obtained by the feature collecting device performing a signature process on the device information with its own private key.

[0033] In one embodiment, when the target terminal transmits device information to the blockchain network, it needs to transmit the device information to a node device corresponding to a device address that is consistent with the predetermined device address of the target client. In the blockchain network, the node device corresponding to the device address that is consistent with the predetermined device address of the target client is called the target node device. After transmitting the device information to the target node device, the target node first performs device authentication on the feature collection device based on the device information, and then other node devices in the blockchain network perform device authentication on the feature collection device based on the device information. When the target terminal can transmit the device information to any one of the node devices in the blockchain network, when transmitting the information to any one of the node devices in the blockchain network, it obtains the device address of the any one of the node devices and determines whether the device address of the obtained any one of the node devices matches the predetermined device address. If the obtained device address matches the predetermined device address, the any one of the node devices performs device inspection on the feature collection device based on the device information, and after completing device authentication on the feature collection device, transmits the device information to other node devices in the blockchain network, and the other node devices perform device authentication on the feature collection device based on the device information. If the acquired device address does not match the specified device address, a re-location policy is adopted to send device information to a target node device indicated by the specified device address in the blockchain network, that is, to a node device corresponding to the specified device address, i.e., a target node device, based on the specified device address again. After receiving the device information of the feature collection device, the target node device performs device inspection on the feature collection device based on the device information. After completing device authentication for the feature collection device, the device information is sent to other node devices in the blockchain network, and the other node devices perform device authentication for the feature collection device based on the device information.

[0034] S203: The reference authentication result obtained by each node device performing device authentication with the feature collection device is obtained from the blockchain network.

[0035] In one embodiment, the reference authentication result obtained by each node device performing device authentication on the feature collection device includes that the feature collection device has passed device authentication and that the feature collection device has failed device authentication. In a possible implementation, the target terminal obtains the reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network, and calculates the number of target reference authentication results from the reference authentication results, the target reference authentication result includes a reference authentication result for indicating that the corresponding node device has determined that the feature collection device has passed device authentication, and the number of target reference authentication results is referred to as a first number. After determining the first number of the target reference authentication results, the target terminal further determines the number of normal node devices included in the blockchain network, and the number of normal node devices is referred to as a second number. Then, after determining the first number and the second number, the target terminal determines whether the feature collection device has passed device authentication based on the first number and the second number.

[0036] S204: If it is determined based on the reference authentication result that the feature collection device passes the device authentication, establish an association relationship between the target client and the feature collection device.

[0037] In one embodiment, when the target terminal determines that the feature collection device has passed device authentication, it establishes an association relationship between the target client and the feature collection device. Then, after each of the at least two clients of the target terminal has established an association relationship with the feature collection device, the target terminal obtains feature information from the feature collection device and transmits the feature information to any one of the node devices in the blockchain network, so that the any one of the node devices recognizes the feature information and completes identity authentication for the user. After the any one of the node devices completes identity authentication for the user, it performs a corresponding user operation.

[0038] For example, if the feature collection device is an image collection device for collecting face images, and the target client included in the target terminal is a payment client, after establishing the association relationship between the target client and the feature collection device, the user can make online commodity payment through the feature collection device. For example, the user performs face scanning through the image collection device, the image collection device acquires the user's face image, and after acquiring the user's face image, the target terminal transmits the received face image to any one of the node devices in the blockchain network, and after receiving the face image, any one of the node devices recognizes the face image and completes the identity authentication for the user, and after passing the identity authentication, realizes online commodity payment based on the corresponding client, and the target terminal has at least two payment clients, that is, in addition to the target client, there are other payment clients, that is, there are at least two payment methods for the user to make payment, so when making a payment, the user pre-selects the required payment method or payment client to realize the payment.

[0039] In one embodiment, when it is determined that the feature collection device has passed the device authentication, the device information of the feature collection device is stored in the blockchain network. The data of each node device in the blockchain network is stored in units of blocks. The data stored in each normal node device is consistent. If there are multiple pieces of device information, each piece of device information is stored in a different block. For example, if there are five pieces of device information, the first piece of device information is stored in the first block, the second piece of device information is stored in the second block, and by analogy, the fifth piece of device information is stored in the fifth block. The specific implementation of the storage of each piece of device information is described as follows, and hereinafter, an example will be described in which the third piece of device information is stored in the third block.

[0040] In one embodiment, if the feature collection device determines that the device authentication has passed, the target node device stores the acquired device information in the block body, calculates the digital root of the hash tree of the above device information to obtain the hash value of the last block of the current blockchain, and the target node device stores the digital root of the hash tree of the device information, the hash value of the last block of the current blockchain and the current timestamp in the block head, and the target node device combines the block head and the block body storing the device information into a third block, adds the third block to the blockchain stored in the target node device, and broadcasts the first block to other node devices in the blockchain network, and the other node devices add the first block to the blockchains they respectively maintain, thereby synchronizing the blockchains maintained by each node device in the blockchain network.

[0041] As can be seen from the above, by relying on the integrity and tamper-proof attributes of the blockchain, it is ensured that the device information of the feature collection device obtained by the target node device is reliable and tamper-proof, and it is ensured that the device information of the feature collection device stored in the blockchain thereafter cannot be tampered with, thereby improving the security and reliability of device management.

[0042] In one embodiment, after each piece of device information is stored in the blockchain maintained by each node device in the blockchain network, the target terminal obtains the storage location of each piece of device information in the blockchain network, stores each storage location in order, and subsequently obtains and stores index information for searching for device information of feature collecting devices. The index information may be a numeric number, a bit value (bit), or other information, and the present application is not limited thereto. For example, as shown in FIG. 3, if there are three pieces of device information, the three pieces of device information are stored in the blockchain network, and then stored in the first block, the second block, and the third block, respectively, and the target terminal obtains three storage locations corresponding to the three pieces of device information, respectively, stores the three storage locations in order, and obtains and stores index information for searching for device information of feature collecting devices, and as shown in FIG. 3, the index information of the device information stored in the first block is 1, the index information of the device information stored in the second block is 2, and the index information of the device information stored in the third block is 3. Specifically, the target terminal stores the correspondence between the storage location of the device information and the index information. For example, Table 2 shows the correspondence between the storage location of the device information stored in the target terminal and the index information. As can be seen from Table 2, when the device information is stored in the first block, the index information corresponding to the device information is "1". Therefore, when the target terminal searches for the device information, it obtains the index information for searching for the device information, i.e., "1". After obtaining the index information for searching for the device information, the target terminal can determine based on the index information that the device information is stored in the first block of the blockchain network. [Table 2]

[0043] In one embodiment, the target terminal receives a search operation request for device information, and obtains index information of the device information according to the device information corresponding to the search operation request. After obtaining the index information of the device information, the target terminal determines a storage location of the device information in the block chain network according to the index information of the device information, and then determines whether the device signature included in the search operation request matches the device signature in the device information. If matching, the target terminal obtains the device information of the feature collection device from the block chain network according to the index information of the device information.

[0044] Here, after the target terminal establishes the association relationship between the target client and the feature collection device, the target client can be executed on the target terminal, and after the target client is started on the target terminal, it first verifies whether the feature collection device meets a predetermined standard, for example, a national standard, and performs subsequent user operations only if it is determined that the feature collection device meets the predetermined standard. For example, if the feature collection device is an image collection device for collecting face images and the target client is a payment client, when a user uses the target client to realize online product payment, it first verifies whether the image collection device meets a national standard, and only if it meets the national standard, the target client realizes the user's payment operation.

[0045] In one embodiment, a specific embodiment of verifying whether the feature collection device meets the predetermined standard is as follows: the target terminal sends a search operation request for the device information of the feature collection device to the blockchain network to obtain a search index of the device information, and the target terminal determines the storage location of the device information of the feature collection device in the blockchain network based on the search index. The search operation request verifies whether the feature collection device meets the predetermined standard, and if it is determined that the feature collection device meets the predetermined standard, the target terminal performs subsequent user operations. The search operation request is attached with the manufacturing signature of the feature collection device, and the manufacturing signature may be the signature of the feature collection device at the time of release, and the target terminal adds the signature of the target client to the manufacturing signature of the feature collection device. The target terminal sends a search operation request to any one of the node devices in the blockchain network, that is, it may send a search operation request to the target node device, or it may send a search operation request to another node device. When the target terminal sends a search operation request to the target node device, the target node device receives the search operation request and obtains the search operation request, and then obtains the index information of the device information according to the device information corresponding to the search operation request. After the target terminal obtains the index information of the device information, it determines the storage location of the device information in the block chain network based on the index information of the device information, and obtains the device information from the storage location. Then, after obtaining the device information, the target terminal matches the device signature in the device information based on the device signature included in the search operation request, and determines whether the device signature included in the search operation request matches the device signature in the device information. If the device signature included in the search operation request matches the device signature in the device information, it indicates that the feature collection device meets the predetermined standard, that is, subsequent user operations can be performed. If the device signature included in the search operation request does not match the device signature in the device information, it indicates that the feature collection device does not meet the predetermined standard, that is, subsequent user operations cannot be performed.

[0046] As can be seen from the above, a feature collection device can support the execution of different clients contained in the terminal. When a user uses the client and the feature collection device to realize a certain user operation, the client will first verify whether the feature collection device meets a predetermined standard. In an embodiment of the present application, the target terminal is used to store the device information of the feature collection device in the blockchain network in the manner of alliance chain. When the client joins the alliance chain, the alliance chain allows the client or the terminal including the client to search the legitimacy of the feature collection device or the change history of the feature collection device, thereby ensuring the legitimacy of the feature collection device.

[0047] In one embodiment, after the target node device receives a search operation request sent from the target terminal and acquires device information, it sends an information verification request to other node devices to verify whether the acquired device information is complete, and the information verification request may be included in the device information acquired by the target node device. After receiving the information verification request, the other node devices acquire device information from the blockchains they respectively maintain and match it with the device information included in the information verification request. If the device information acquired from the other node devices matches the device information included in the information verification request, it verifies that the device information acquired from the target node device is complete.

[0048] For example, if the target terminal sends an information verification request to node device A in the blockchain network, node device A will obtain device information from the blockchain it maintains, and then send an information verification request including the device information to node device B, node device C, node device D, and node device E in the blockchain network. After receiving the information verification request, node device B, node device C, node device D, and node device E will each obtain device information from the blockchain they maintain and match it with the device information included in the information verification request. If the matching results are a match, they will report to node device A that the obtained device information is complete by returning information to node device A indicating that the device information is complete. After determining the completeness of the device information, node device A will match the device signature in the device information with the device signature in the device information included in the information verification request to verify whether the feature collection device complies with the national standard.

[0049] In an embodiment of the present application, in response to a trigger operation of establishing an association relationship between the feature collection device and a target client among the at least two clients, the target terminal obtains device information of the feature collection device and sends the device information to the blockchain network, and each node device included in the blockchain network performs device authentication on the feature collection device based on the device information, obtains from the blockchain network a reference authentication result obtained by each node device performing device authentication on the feature collection device, and determines whether the feature collection device has passed device authentication based on the reference authentication result, and if it is determined that the feature collection device has passed device authentication, establishes an association relationship between the target client and the feature collection device, thereby realizing one feature collection device to support the execution of different clients included in the terminal, reducing the deployment of feature collection devices and improving convenience.

[0050] Referring to FIG. 4, FIG. 4 is a flow diagram of a device management method via a blockchain network provided in an embodiment of the present application. The device management method via a blockchain network described in this embodiment is applicable to the above-mentioned target terminal, where at least two clients are running on the target terminal, and the target terminal includes a feature collection device. As shown in FIG. 4, the method includes the following steps: S401: In response to a trigger operation that establishes an association relationship between a feature collecting device and a target client of at least two clients, device information of the feature collecting device is obtained. S402: By transmitting the device information to the blockchain network, each node device included in the blockchain network performs device authentication for the characteristic collection device based on the device information. For specific embodiments of S401 and S402, please refer to the specific descriptions of the above embodiments S201 and S202, and no further details will be given here. S403: Statistically calculate a first number of target reference authentication results to determine a second number of normal node devices included in the blockchain network, where the target reference authentication results include a reference authentication result for indicating that the corresponding node device has determined that the feature collection device has passed device authentication.

[0051] In one embodiment, the target terminal counts a first number of target reference authentication results, where the target reference authentication results include a reference authentication result for indicating that the feature collection device has been determined by a corresponding node device to have passed device authentication. The target terminal counts the first number of target reference authentication results and determines a second number of normal node devices included in the blockchain network, whereby the target terminal determines whether the feature collection device has passed device authentication based on the first number and the second number.

[0052] In one embodiment, a specific implementation of obtaining the first number is as follows: after each node device included in the blockchain network performs device authentication on the feature collection device based on the device information, it sends a reference authentication result to the target terminal to indicate that the corresponding node device determines that the feature collection device has passed device authentication, or sends a reference authentication result to indicate that the corresponding node device determines that the feature collection device has failed device authentication, and then the target terminal determines the first number based on the obtained reference authentication result. The target terminal collects statistics on the number of the obtained target reference authentication results, i.e., the first number.

[0053] In one embodiment, the specific implementation of obtaining the second number is as follows: the target terminal obtains inspection feedback information from the target node device, and the inspection feedback information is determined by the result information fed back after the target node device transfers the device information to other node devices in the blockchain network and the other node devices in the blockchain network perform device authentication on the feature collection device based on the device information. After obtaining the inspection feedback information from the target node device, the target terminal determines the second number of normal node devices included in the blockchain network based on the obtained inspection feedback information. After receiving the device information of the feature collection device, the target node device performs device inspection on the feature collection device based on the device information. The device information is device information with signature information attached, and the device information with the signature information is obtained by the target terminal obtaining the device information of the feature collection device and the private key of the device from the feature collection device and performing a signature process on the device information using the private key of the device. Then, the target node device performs device inspection on the feature collection device based on the device information, that is, verifies whether the signature information in the device information to which the signature information is attached is legitimate, and if the signature information is legitimate, the target node device transmits the device information to which the signature information is attached to other node devices in the blockchain network, so that the other node devices perform device authentication on the feature collection device based on the device information to which the signature information is attached. After receiving the device information to which the signature information is attached, the other node devices verify whether the signature information in the device information is legitimate. Then, the other node devices perform device authentication on the feature collection device based on the device information, and feed back result information after each of them has performed device authentication on the feature collection device to the target terminal.

[0054] The result information indicates that the feature collection device has passed device authentication or that the feature collection device has failed device authentication. After the target node device receives the result information fed back from other node devices, the target terminal obtains test feedback information from the target node device, where the test feedback information indicates the result information determined by the corresponding node device that the feature collection device has passed device authentication. Then, the target terminal determines a second number of normal node devices included in the blockchain network based on the number of test feedback information obtained from the target node device. That is, after the target terminal obtains all the test feedback information from the target node device, it counts the number of the test feedback information, where the number of the test feedback information obtained by counting is the second number of normal node devices included in the blockchain network. Alternatively, when the target terminal obtains one piece of inspection feedback information from the target node device, it determines the number of normal node devices included in the blockchain network to be 1; then, after the target terminal obtains again one piece of inspection feedback information from the target node device, it adds 1 to the existing number of normal node devices, which is 1, and in turn determines the second number of normal node devices. For example, if the last inspection feedback information obtained by the target terminal from the target node device is the fifth, it determines the second number of normal node devices to be 5.

[0055] S404: Determine whether the characteristic collection device passes device authentication based on the first number and the second number.

[0056] S405: If the feature collection device determines that the device authentication has passed, establish an association relationship between the target client and the feature collection device.

[0057] In S404 and S405, the target terminal determines a first number of the target reference authentication result and a second number of normal node devices included in the blockchain network, and then determines whether the feature collection device has passed device authentication based on the first number and the second number. For example, the target terminal compares the magnitude between the first number and the second number, and determines whether the feature collection device has passed device authentication based on the magnitude relationship between the first number and the second number. When the target terminal finds that the first number is equal to the second number by comparing the magnitude between the first number and the second number, it determines that the feature collection device has passed device authentication, and when the target terminal finds that the first number is smaller than the second number by comparing the magnitude between the first number and the second number, it determines that the feature collection device has failed device authentication. Only when the target terminal determines that the feature collection device has passed device authentication, does the target terminal establish an association relationship between the target client and the feature collection device.

[0058] In a specific application scenario, the image collecting device is an image collecting device that collects a user's face image, and the target terminal includes one executable payment client 1, and the image collecting device corresponds to the payment client 1 in the target terminal, that is, the image collecting device has already established an association with the payment client 1, and the user uses the user's face image collected by the payment client 1 and the image collecting device to make online product payment. If another payment client 2 is installed and executed in the target terminal, and the user wants to make online product payment using the payment client 2 and the user's face image collected by the image collecting device, the image collecting device also needs to establish an association with the payment client 2. After that, if more than one payment client is installed in the target terminal, similarly, only when these multiple payment clients have established an association with the image collecting device, can online product payment be realized. As can be seen from the above, the target terminal supports payment methods respectively corresponding to at least two payment clients, so that the face scanning device (image collecting device) of the store can simultaneously support multiple payment mechanisms, and there is no need to purchase multiple face scanning devices, which reduces the deployment of face scanning devices, effectively reducing the cost of the store, and at the same time improving the convenience of payment.

[0059] In one embodiment, in order to ensure that the target terminal realizes a payment method corresponding to each of multiple payment clients by using an image collection device, after performing shipping authentication of the image collection device, the device manufacturer corresponding to the image collection device may store device information of the image collection device in a blockchain network, and any one of the node devices in the blockchain network is a node device providing traffic service to any one of the payment clients in the target terminal. Here, before storing the device information of the image collection device in the blockchain network, first, the payment client in the target terminal that realizes online product payment by the image collection device is allowed to participate in the blockchain network, and only when the payment client successfully participates in the blockchain network, the device information of the image collection device can be stored in the blockchain network thereafter.

[0060] In one embodiment, the block chain network including five node devices in FIG. 5a is taken as an example. When a payment client in a target terminal joins the block chain network, a public key corresponding to each payment client is added to each node device, and the node device can use the public key to decrypt the device information with the signature information and verify the legitimacy of the signature information. When a new payment client is added to a target terminal and the new payment client is executable, the new payment client can first join the block chain network, but if the new payment client wants to successfully join the block chain network, it needs to obtain consensus authentication of other node devices in the block chain network. After passing the consensus authentication, that is, after other payment clients corresponding to other node devices in the block chain network agree, the new payment client can join the block chain network, and the public key corresponding to the new payment client is added to the node device corresponding to the new payment client, and the public key is broadcast to other node devices in the block chain network, so as to match the public keys possessed by each node device in the block chain network. After the new payment client successfully joins the blockchain network, the device information of the image collection device that performs the payment operation is stored in the blockchain network, and thereafter, the user can use the new payment client to perform the payment operation.

[0061] In one embodiment, the specific implementation process of storing the device information of the image collection device in the blockchain network includes the following steps: when the target terminal detects a target payment client (the above-mentioned new payment client) installed and executed on the target terminal, it determines that a trigger operation for establishing a communication connection between the target payment client and the image collection device is detected, and when an association relationship between the target payment client and the image collection device is established, the device information of the image collection device can be stored in the blockchain network. In a specific implementation, when a trigger operation for establishing a communication connection between the target payment client and the image collection device is detected, the device information of the image collection device is sent to the blockchain network, so that each node device included in the blockchain network performs device authentication on the image collection device based on the device information, and when it is determined that the image collection device has passed the device authentication, an association relationship between the target payment client and the image collection device is established, and the device information of the image collection device is stored in the blockchain network. FIG. 5b is a flow schematic diagram of storing the device information of the image collection device in the blockchain network provided by an embodiment of the present application. In the flow of Figure 5b, the implementation process of storing the device information of the image collection device in the blockchain network includes four steps: a request writing step, a broadcast step, a preparation step, and a submission step.

[0062] The specific process of storing (or writing) the device information of the image collection device in the blockchain network includes the following steps S11 to S16.

[0063] S11: After receiving the device information of the image collection device, the target node device verifies whether the signature information in the device information to which the signature information is attached is legitimate, and if the signature information is legitimate, broadcasts the device information to which the signature information is attached to other node devices.

[0064] In one embodiment, when the target terminal detects a trigger operation for establishing a communication connection between the target payment client and an image collection device, it acquires device information of the image collection device, where the device information includes a manufacturer identifier of the image collection device, a device identifier of the image collection device, relevant device parameters of the image collection device, and the shipping time of the image collection device, etc. After acquiring the device information, the target terminal transmits the device information to a blockchain network, and the target terminal transmits the device information to any one of node devices in the blockchain network, for example, node device A as shown in FIG. 5b.

[0065] However, after transmitting the device information to node device A, it is necessary to determine whether the node device corresponds to the target payment client, and each node device in the blockchain network corresponds to a payment client included in the target terminal. For example, payment client 1 included in the target terminal corresponds to node device A, and payment client 2 corresponds to node device B. Then, after transmitting the device information to the node device, the device address of the node device is acquired, and the target node device is determined by determining whether the acquired device address matches a predetermined device address. Furthermore, when the target terminal transmits the device information to any one of the node devices, the target terminal determines whether the any one of the node devices is a target payment client by any one of the node devices. If YES, the subsequent device authentication operation is performed. If NO, the device address of the target node device corresponding to the target payment client is returned to the target terminal, and the device address may be an IP address in the node identifier described above. Then, after receiving the device address of the target node device, the target terminal performs redirection based on the device address and transmits the device information to the node device corresponding to the device address, i.e., the target node device.

[0066] If node device A is the target node device, after receiving the device information, node device A performs device inspection on the image collecting device based on the device information. If the device information is device information with signature information attached, the target node device performs device inspection based on the legitimacy of the signature information, and if the signature information is legitimate, it determines that the image collecting device has passed device authentication, and if the signature information is illegitimate, it determines that the image collecting device has failed device authentication. If the target node device determines that the image collecting device has passed device authentication, it proceeds to the broadcast step and transmits the device information with the signature information attached to other node devices in the blockchain network, i.e., node device B, node device C, node device D, and node device E. After receiving the device information with the signature information attached, the other node devices perform device authentication on the image collecting device based on the device information.

[0067] S12: After receiving the device information to which the signature information is attached, the node devices B, C, D and E verify whether the signature information in the device information to which the signature information is attached is legitimate.

[0068] In one embodiment, node device B, node device C, node device D and node device E verify whether the signature information attached to the device information is legitimate. If there is a plurality of pieces of device information received, the verification of the legitimacy of the signature information further verifies whether the order of the device information and the order of device information operations are correct. If the order is correct, it is determined that the signature information is legitimate; if the order is incorrect, it is determined that the signature information is illegal.

[0069] S13: After the verification of node device B, node device C, node device D and node device E is completed, each node device stores its own verification result information and feeds back its own result information to the other node devices.

[0070] In one embodiment, the result information includes determining the corresponding node device as a normal node device or determining the corresponding node device as an abnormal node device. Specifically, the manner of determining whether the corresponding node device is normal or abnormal is determined based on the legitimacy of the signature information verified by each node device. For example, if the signature information verified by node device B is legitimate, node device B is determined to be normal, and if the signature information verified by node device B is illegal, node device B is determined to be abnormal.

[0071] S14: Each node collects statistics on the number of normal node devices.

[0072] In one embodiment, as shown in FIG. 5b, after node device B, node device C, node device D, and node device E verify their respective abnormalities, they send the result information on the abnormality of the node devices to each node device in the blockchain network, and each node device collects statistics on the number of normal node devices and the above second number, and the second number exceeds a threshold, which is 2f+1, that is, if the number of normal node devices exceeds 2f+1, the subsequent submission steps can be performed. f indicates the number of abnormal node devices. Then, 3f+1=n, where n is the number of node devices in the blockchain network, f is the number of abnormal node devices, and 2f+1 is the number of normal node devices. For example, if there are a total of five node devices, and the number of normal node devices exceeds three, that is, at most one node device is abnormal, the subsequent steps can be performed.

[0073] S15: Each node device feeds back its own reference authentication result to the other node devices, and each node device keeps statistics on the number of target reference authentication results.

[0074] In one embodiment, as shown in FIG. 5b, each node device in the blockchain network collects the number of normal node devices, and then transmits the reference authentication result obtained by the corresponding node device performing device authentication on the image collecting device to other node devices. The reference authentication result includes the corresponding node device determining that the image collecting device passes device authentication, or the corresponding node device determining that the image collecting device fails device authentication. Specifically, if a node device collects the number of normal node devices does not exceed a threshold, the node device transmits the reference authentication result that the image collecting device fails device authentication to other node devices. If a node device collects the number of normal node devices exceeds a threshold, the node device transmits the reference authentication result that the image collecting device passes device authentication to other node devices. After receiving the reference authentication result, each node device counts the number of reference authentication results that determine that the image collection device has passed device authentication, i.e., the above first number, and if the first number also exceeds 2f+1, it determines that the image collection device has passed device authentication, or if the first number is equal to the above second number, it determines that the image collection device has passed device authentication, and then the device information of the image collection device may be stored in the blockchain network.

[0075] S16: The target terminal receives the number of target reference authentication results returned from each node.

[0076] In one embodiment, each node device sends its respective reference authentication result to the target terminal, and the target terminal determines whether the image collection device passes device authentication according to the reference authentication result. Then, after determining that the image collection device passes device authentication, an association relationship between the target payment client and the image collection device may be established, and the device information of the image collection device may be stored in the blockchain network.

[0077] Here, writing the equipment information of the image collection device is not a high-frequency operation, and the equipment information of the image collection device is written to the blockchain network only when manufacturing and detection are completed on the production line corresponding to the image collection device. Therefore, even if a node device in the blockchain network fails, it will not affect the establishment of association relationships between other payment clients and image collection devices, but will only affect the establishment of association relationships between one payment client corresponding to the node device and the image collection device, because the failure of one node device does not affect the use of other node devices.

[0078] In an embodiment of the present application, in response to a trigger operation of establishing an association relationship between an image collection device and a target payment client among at least two payment clients, the target terminal obtains device information of the image collection device, and transmits the device information to a block chain network, and each node device included in the block chain network performs device authentication for the image collection device according to the device information. Then, a first number of reference authentication results is calculated to indicate that the image collection device is determined to have passed device authentication by the corresponding node device, a second number of normal node devices included in the block chain network is determined to have passed device authentication according to the first number and the second number, and if the image collection device is determined to have passed device authentication, an association relationship is established between the target payment client and the image collection device, so as to realize that one image collection device supports the execution of different clients included in the terminal, and the deployment of image collection devices is reduced and convenience is improved.

[0079] Based on the description of the above embodiment of the device management method, the embodiment of the present application further provides a device management device based on a blockchain network, which device management device can be executed on the above target terminal or can be a computer program (including program code) in the target terminal, and at least two clients are executed on the target terminal, and the target terminal has a corresponding feature collection device. The device management device executes the device management method based on a blockchain network as described in Figures 2 and 4. See Figure 6, the device management device based on a blockchain network is: an acquisition unit 601 for acquiring device information of the feature collecting device in response to a trigger operation for establishing an association relationship between the feature collecting device and a target client among the at least two clients; a transmission unit 602 that transmits the device information to the block chain network, and each node device included in the block chain network performs device authentication for the feature collection device based on the device information; A determination unit 603 that acquires a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; and an association unit 604 for establishing an association relationship between the target client and the feature collection device if the determining unit 603 determines that the feature collection device has passed device authentication based on the reference authentication result.

[0080] In one embodiment, the target client is any one of the at least two clients, and each node device provides traffic service to one of the at least two clients. After each of the at least two clients establishes an association relationship with the feature collection device, the acquisition unit 601 further comprises: By acquiring characteristic information from the characteristic collection device and transmitting the characteristic information to any one of the node devices in the blockchain network, the any one of the node devices recognizes the characteristic information.

[0081] In one embodiment, the sending unit 602 specifically includes: Transmitting the device information to any one of the node devices in the block chain network and acquiring a device address of the any one of the node devices; If it is determined that the acquired device address matches a predetermined device address, one of the node devices performs device inspection on the feature collection device based on the device information, completes device authentication for the feature collection device, and then transmits the device information to other node devices in the blockchain network.

[0082] In one embodiment, the sending unit 602 further comprises: If it is determined that the acquired device address does not match the specified device address, a re-positioning policy is adopted to send the device information to a target node device in the blockchain network indicated by the specified device address, and the target node device performs device inspection on the feature collection device based on the device information. After the target node device completes device authentication of the feature collection device, the device information is sent to other node devices in the blockchain network.

[0083] In one embodiment, the reference authentication result obtained by each of the node devices performing device authentication on the feature collection device includes: the feature collection device passes device authentication; or the feature collection device fails device authentication. The determining unit 603 specifically: Counting a first number of target reference authentication results to determine a second number of normal node devices included in the blockchain network, the target reference authentication results including a reference authentication result for indicating that a corresponding node device has determined that the feature collection device has passed device authentication; It is determined that the characteristic collection device has passed device authentication based on the first number and the second number.

[0084] In one embodiment, the determining unit 603 specifically comprises: If the first number is equal to the second number, it is determined that the characteristic collection device has passed device authentication.

[0085] In one embodiment, the determining unit 603 specifically comprises: obtaining test feedback information from a target node device, the test feedback information being determined based on result information fed back after the target node device transmits the device information to another node device in the blockchain network and the other node device performs device authentication on the feature collection device based on the device information; Based on the inspection feedback information, a second number of normal node devices included in the blockchain network is determined.

[0086] In one embodiment, the sending unit 602 specifically includes: obtaining device information and a device private key of the feature collection device from the feature collection device; Using the private key of the device, a signature process is performed on the device information to obtain the device information with the signature information attached, and the device information with the signature information attached is transmitted to the blockchain network.

[0087] In one embodiment, the apparatus comprises: The device further includes a storage unit 605 for storing device information of the feature collection device in the blockchain network if it is determined that the feature collection device has passed device authentication.

[0088] In one embodiment, the number of the device information is plural, and the storage unit 605 further includes: Acquire a storage location in the blockchain network of each piece of device information; Each storage location is stored in turn, and index information for searching device information for the characteristic collecting device is obtained and stored.

[0089] In one embodiment, the apparatus comprises: In response to a search operation request for the device information, index information of the device information is acquired; Determine a storage location of the device information in the blockchain network based on index information of the device information; The device further includes a search unit 606 that, when it is determined that the device signature included in the search operation request matches the device signature in the device information, obtains device information of the characteristic collection device from the blockchain network based on index information of the device information.

[0090] In an embodiment of the present application, an acquisition unit 601 acquires device information of the feature collection device in response to a trigger operation for establishing an association relationship between the feature collection device and a target client among the at least two clients, a sending unit 602 sends the device information to the blockchain network, so that each node device included in the blockchain network performs device authentication on the feature collection device based on the device information, a determination unit 603 obtains a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network, and an association unit 604 establishes an association relationship between the target client and the feature collection device when the determination unit 603 determines that the feature collection device has passed device authentication based on the reference authentication result. By implementing the above method, it is possible to realize the execution of different clients included in a terminal by one feature collection device, reduce the deployment of feature collection devices, and improve convenience.

[0091] Please refer to Fig. 7, which is a schematic block diagram of a terminal provided by an embodiment of the present application. The terminal may be the above-mentioned target terminal, and the terminal of this embodiment of Fig. 7 includes one or more processors 701, one or more input devices 702, one or more output devices 703 and a memory 704. The above-mentioned processor 701, the input device 702, the output device 703 and the memory 704 are connected via a bus 705. The memory 704 stores a computer program, the computer program includes program instructions, and the processor 701 executes the program instructions stored in the memory 704.

[0092] The memory 704 may include volatile memory, such as Random-Access Memory (RAM), or non-volatile memory. Memory, such as Flash Memory, Solid-State Drives The memory may further include a hard disk drive, a hard disk drive (HDD), ...

[0093] The processor 701 may be a central processing unit (CPU). The processor 701 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLC), or a combination of the above-mentioned. The PLD may be a field-programmable logic device (PLD). The processor 701 may be a FPGA (Field Gate Array), a Generic Array Logic (GAL), etc. The processor 701 may be a combination of the above structures.

[0094] In an embodiment of the present application, the memory 704 stores a computer program, the computer program includes program instructions, and the processor 701 executes the program instructions stored in the memory 704 to realize the corresponding method steps in Figures 2 and 4 above.

[0095] In one embodiment, the processor 701 invokes the program instructions to: acquiring device information of the feature collecting device in response to a trigger operation that establishes an association relationship between the feature collecting device and a target client of the at least two clients; transmitting the device information to the block chain network, so that each node device included in the block chain network performs device authentication on the characteristic collection device based on the device information; A step of acquiring a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; if it is determined based on the reference authentication result that the feature collecting device has passed device authentication, establishing an association relationship between the target client and the feature collecting device.

[0096] In one embodiment, the target client is any one of the at least two clients, and each node device provides traffic service to one of the at least two clients. After each of the at least two clients establishes an association relationship with the feature collection device, the processor 701 calls the program command to: The one node device is configured to perform a step of acquiring feature information from the feature collection device and transmitting the feature information to the one node device in the blockchain network, so that the one node device recognizes the feature information.

[0097] In one embodiment, the processor 701 invokes the program instructions to: Transmitting the device information to any one of the node devices in the block chain network and acquiring a device address of the any one of the node devices; If it is determined that the acquired device address matches a predetermined device address, the one of the node devices is configured to perform a step of performing device inspection on the feature collection device based on the device information, and completing device authentication for the feature collection device, and then transmitting the device information to other node devices in the blockchain network.

[0098] In one embodiment, the processor 701 invokes the program instructions to: If it is determined that the acquired device address does not match the specified device address, a re-location policy is adopted to send the device information to a target node device in the blockchain network indicated by the specified device address, and the target node device is configured to perform device inspection on the feature collection device based on the device information, and complete device authentication for the feature collection device, and then execute a step of sending the device information to other node devices in the blockchain network.

[0099] In one embodiment, the reference authentication result includes that the feature collection device passes device authentication and that the feature collection device fails device authentication, and the processor 701 invokes the program instructions to: A step of calculating a first number of target reference authentication results to determine a second number of normal node devices included in the blockchain network, the target reference authentication results including a reference authentication result for indicating that a corresponding node device has determined that the feature collection device has passed device authentication; determining that the characteristic collection device has passed device authentication based on the first number and the second number.

[0100] In one embodiment, the processor 701 invokes the program instructions to: The device is arranged to perform the step of determining that the characteristic collection device has passed device authentication if the first number is equal to the second number.

[0101] In one embodiment, the processor 701 invokes the program instructions to: A step of acquiring test feedback information from a target node device, the test feedback information being determined by feedback result information when the target node device transmits the device information to another node device in the blockchain network and the other node device performs device authentication on the feature collection device based on the device information; and determining a second number of normal node devices included in the blockchain network based on the inspection feedback information.

[0102] In one embodiment, the processor 701 invokes the program instructions to: obtaining device information and a device private key of the feature collection device from the feature collection device; The device is configured to execute a step of performing a signature process on the device information using a private key of the device, obtaining the device information with the signature information attached thereto, and transmitting the device information with the signature information attached thereto to the blockchain network.

[0103] In one embodiment, the processor 701 invokes the program instructions to: If it is determined that the feature collection device passes device authentication, the device is configured to perform the step of storing device information of the feature collection device in the blockchain network.

[0104] In one embodiment, the processor 701 invokes the program instructions to: Obtaining a storage location in the blockchain network of each piece of device information; and b. storing index information for searching device information for said characteristic collecting device, said index information being stored in said storage location in sequence.

[0105] In one embodiment, the processor 701 invokes the program instructions to: acquiring index information of the device information in response to a search operation request for the device information; Determining a storage location of the device information in the blockchain network based on index information of the device information; When it is determined that the device signature included in the search operation request matches the device signature in the device information, the device is configured to execute a step of acquiring device information of the characteristic collection device from the blockchain network based on index information of the device information.

[0106] An embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, thereby causing the terminal to perform the above method embodiments of FIG. 2 and FIG. 4. The computer-readable storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a The memory may be a read only memory (ROM) or a random access memory (RAM).

[0107] What has been disclosed above is only some of the embodiments of the present application, and does not limit the scope of the claims of the present application. Those skilled in the art can understand and realize all or part of the flows of the above embodiments, and equivalent modifications completed based on the claims of the present application still belong to the scope of the invention.

Claims

1. A device management method over a blockchain network executed by a target terminal, the target terminal executing at least two clients, the target terminal having a corresponding feature collection device, the device management method comprising: acquiring device information of the feature collecting device in response to a trigger operation that establishes an association relationship between the feature collecting device and a target client of the at least two clients; transmitting the device information to the block chain network so that each node device included in the block chain network performs device authentication on the characteristic collection device based on the device information; A step of acquiring a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; and if the feature collecting device determines based on the reference authentication result that the feature collecting device has passed device authentication, establishing an association relationship between the target client and the feature collecting device.

2. The target client is any one of the at least two clients, and each node device provides a traffic service to one of the at least two clients. After each of the at least two clients establishes an association relationship with the feature collection device, the method includes: The method of claim 1, further comprising the step of acquiring feature information from the feature collection device and transmitting the feature information to any one of the node devices in the blockchain network so that the any one of the node devices recognizes the feature information.

3. The step of transmitting the device information to the blockchain network so that each node device included in the blockchain network performs device authentication for the characteristic collection device based on the device information includes: Transmitting the device information to any one node device in the block chain network and acquiring a device address of the any one node device; 3. The method of claim 2, further comprising: if it is determined that the acquired device address matches a predetermined device address, performing device inspection of the feature collection device based on the device information by the one of the node devices, and completing device authentication of the feature collection device by the one of the node devices, and then transmitting the device information to other node devices of the blockchain network.

4. The method comprises: The method of claim 3, further comprising the steps of: adopting a re-location policy to send the device information to a target node device in the blockchain network indicated by the specified device address when it is determined that the acquired device address does not match the specified device address; having the target node device perform device inspection on the feature collection device based on the device information; and after the target node device completes device authentication for the feature collection device, sending the device information to other node devices in the blockchain network.

5. the reference authentication result includes: the feature collection device has passed device authentication; or the feature collection device has failed device authentication; determining that the feature collection device has passed device authentication based on the reference authentication result, A step of calculating a first number of target reference authentication results to determine a second number of normal node devices included in the blockchain network, the target reference authentication result including a reference authentication result for indicating that a corresponding node device has determined that the feature collection device has passed device authentication; and determining that the characteristic collection device has passed device authentication based on the first number and the second number.

6. determining that the characteristic collection device has passed device authentication based on the first number and the second number, The method of claim 5 , comprising determining that the characteristic collection device has passed device authentication if the first number is equal to the second number.

7. The step of determining a second number of normal node devices included in the blockchain network includes: A step of acquiring test feedback information from a target node device, the test feedback information being determined based on result information fed back after the target node device transmits the device information to other node devices in the blockchain network and the other node devices perform device authentication on the feature collection device based on the device information; and determining a second number of normal node devices to be included in the blockchain network based on the inspection feedback information.

8. The step of transmitting the device information to the blockchain network includes: obtaining device information and a device private key of the feature collection device from the feature collection device; The method according to claim 1, further comprising the steps of: performing a signature process on the device information using a private key of the device to obtain device information with the signature information attached; and transmitting the device information with the signature information attached to the blockchain network.

9. The method comprises:

2. The method of claim 1, further comprising: if it is determined that the feature collecting device has passed device authentication, storing device information of the feature collecting device in the blockchain network.

10. The number of pieces of device information is plural, and after storing the device information of the feature collection devices in the blockchain network, the method includes: Obtaining a storage location in the blockchain network of each piece of device information; 10. The method of claim 9, further comprising: storing index information for sequentially storing each storage location to retrieve device information for the characteristic collecting device.

11. The method comprises: acquiring index information of the device information in response to a search operation request for the device information; Determining a storage location of the device information in the blockchain network based on index information of the device information; The method of claim 10 , further comprising: if it is determined that a device signature included in the search operation request matches a device signature in the device information, obtaining device information of the characteristic collection device from the blockchain network based on index information of the device information.

12. A device management device based on a blockchain network, the device management device being configured on a target terminal, the target terminal having at least two clients running thereon, the target terminal having a corresponding feature collection device, the device management device being: an acquisition unit that acquires device information of the feature collecting device in response to a trigger operation that establishes an association relationship between the feature collecting device and a target client of the at least two clients; A transmission unit that transmits the device information to the block chain network so that each node device included in the block chain network performs device authentication for the characteristic collection device based on the device information; A determination unit that acquires a reference authentication result obtained by each node device performing device authentication on the feature collection device from the blockchain network; and an association unit that establishes an association relationship between the target client and the feature collection device when the determination unit determines that the feature collection device has passed device authentication based on the reference authentication result.

13. A terminal comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being connected to each other, the memory storing a computer program, the computer program comprising program instructions, the processor being arranged to execute a method according to any one of claims 1 to 11 by calling the program instructions.

14. A computer program which, when executed, performs the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Method and system for performing identity authentication on block chain

    CN109660330A

  • Integrated log-in method for block chain infrastructure, terminal, and server using the same

    JP2019185774A

  • Blockchain-based method for making payments for Internet of Things devices, and a server, service providing terminal, and user electronic wallet using the same.

    JP2020517033A