A key escrow electronic device

By using encryption and authorization modules to manage blockchain users' secret keys in secret key hosting electronic devices, and using symmetric and asymmetric encryption technologies to ensure randomness and uniqueness of encryption seeds, the problem of insecurity of traditional secret key hosting methods is solved. Improves the security of blockchain assets.

CN115484022BActive Publication Date: 2024-11-15SHANGHAI OUYE FINANCIAL INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210965383.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-12
Publication Date
2024-11-15
Estimated Expiration
2042-08-12

AI Technical Summary

Technical Problem

The traditional secret key custody method is not secure enough, especially when multiple business systems are co-hosted. Once the encryption seed is leaked, all users' secret keys may be disclosed, resulting in damage to asset security.

Method used

A secret key custody electronic device is designed, using a random generation module to generate user's identity information and secret key seeds, and encrypted and stored public keys, private keys and random seeds through encryption and custody modules, and using the secret key authorization module to implement authorization The user's system private and public keys are managed permissions to ensure that only authorized users can decrypt and authorize the keys.

Benefits of technology

Through symmetric and asymmetric encryption technology, it is ensured that the encryption seeds corresponding to each user's secret key are random and different, improving the security of secret key hosting and preventing secret key leakage and unauthorized access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484022B_ABST
    Figure CN115484022B_ABST
Patent Text Reader

Abstract

The present invention relates to a key hosting electronic device, and in particular to the field of blockchain technology. The device includes a key hosting module for randomly generating identity information and a key seed of a user to be hosted, and obtaining a public key, a private key and a random seed ciphertext according to the key seed, a public key plaintext, a private key plaintext and a system public key, a key authorization module for obtaining a random seed ciphertext granted by the user to be hosted to the authorized user according to the system private key of the user to be hosted, the random seed ciphertext and the system public key of the authorized user; a key acquisition module for obtaining the public key and private key plaintext of the user to be hosted according to the system private key, random seed, public key and private key ciphertext of the user to be hosted if the acquiring user is not an authorized user; if the acquiring user is an authorized user, the public key and private key plaintext of the user to be hosted are obtained according to the system private key, random seed ciphertext, the public key and private key ciphertext of the user to be hosted. The present invention can improve the security of user key hosting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a key escrow electronic device. Background Art

[0002] In the world of blockchain, how to prove that you own digital assets on the blockchain is actually proved through the secret key of the identity on the chain, because most of the assets on the chain are based on the account model. Having the secret key of an account is equivalent to having all the operating permissions and assets of the account. No matter who knows the secret key of the account, they can operate the assets and corresponding permissions of the account. Therefore, if the secret key is leaked, the assets on the chain will not really belong to you. Therefore, the method of storing the secret key is crucial to the security of assets on the blockchain.

[0003] The traditional key hosting method generates the user's address, public key and private key, and stores the public key and private key symmetrically through an encrypted seed on the storage device. The problem with this method is that it is not secure enough. When multiple business systems are hosted on this device, once the encrypted seed is collided, it is equivalent to publishing the secret keys of all users, so a more secure key hosting method is needed. Summary of the invention

[0004] The purpose of the present invention is to provide a key hosting electronic device that can improve the security of user key hosting.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A key escrow electronic device, comprising: a key escrow module, a key authorization module and a key acquisition module;

[0007] The key escrow module includes:

[0008] A random generation submodule, used to randomly generate identity information of the user to be managed and a secret key seed of the user to be managed, wherein the identity information includes an address, a public key plaintext, and a private key plaintext;

[0009] The encryption and trusteeship submodule is used to obtain the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted according to the secret key seed of the user to be hosted, the public key plaintext of the user to be hosted, the private key plaintext of the user to be hosted and the system public key of the user to be hosted, and store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted;

[0010] The secret key authorization module is used to obtain the random seed ciphertext granted by the to-be-hosted user to the authorized user according to the system private key of the to-be-hosted user, the random seed ciphertext of the to-be-hosted user and the system public key of the authorized user, and authorize the authorized user to obtain the right to obtain the secret key of the to-be-hosted user;

[0011] The key acquisition module includes:

[0012] A judgment submodule is used to judge whether the acquiring user is an authorized user according to the secret key to be acquired by the acquiring user;

[0013] The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the user to be hosted, the random seed ciphertext of the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is not an authorized user;

[0014] The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the authorized user, the random seed ciphertext granted to the authorized user by the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is an authorized user.

[0015] Optionally, the encryption and trusteeship submodule includes:

[0016] A symmetric encryption unit, used to symmetrically encrypt the public key plaintext of the user to be managed and the private key plaintext of the user to be managed by using the secret key seed of the user to be managed to obtain the public key ciphertext of the user to be managed and the private key ciphertext of the user to be managed;

[0017] A first asymmetric encryption unit, configured to asymmetrically encrypt the secret key seed of the user to be managed using the system public key of the user to be managed to obtain a random seed ciphertext of the user to be managed;

[0018] The hosting unit is used to store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted.

[0019] Optionally, the key authorization module includes:

[0020] An acquisition submodule, used to acquire the random seed ciphertext of the user to be hosted;

[0021] An asymmetric decryption submodule, used to asymmetric decrypt the random seed ciphertext of the user to be hosted by using the system private key of the user to be hosted to obtain the random seed of the user to be hosted;

[0022] The asymmetric encryption submodule is used to use the system public key of the authorized user to asymmetric encrypt the random seed of the user to be hosted to obtain the random seed ciphertext granted by the user to be hosted to the authorized user.

[0023] Optionally, the authorized user submodule includes:

[0024] An authorized user acquisition unit, used to acquire the system private key of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted, and the random seed ciphertext of the user to be hosted;

[0025] A first authorized asymmetric decryption unit, configured to use a system private key of the user to be managed to asymmetric decrypt the random seed ciphertext of the user to be managed to obtain the random seed of the user to be managed;

[0026] The second authorized asymmetric decryption unit is used to use the random seed of the user to be hosted to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted.

[0027] Optionally, the authorized user submodule includes:

[0028] An authorized user acquisition unit, used to acquire the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted, the system private key of the authorized user, and the random seed ciphertext granted by the user to be hosted to the authorized user;

[0029] The first authorized asymmetric decryption unit is used to use the system private key of the authorized user to asymmetric decrypt the random seed ciphertext granted by the user to be managed to the authorized user to obtain the random seed of the authorized user;

[0030] The second authorized asymmetric decryption unit is used to use the random seed of the authorized user to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted.

[0031] Optionally, the asymmetric encryption adopts the national secret SM2 algorithm.

[0032] Optionally, the symmetric encryption adopts the national secret SM4 algorithm.

[0033] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the encryption seeds corresponding to different user keys of the present invention are different, and the encryption seeds are not stored in the device in plain text, which can improve the security of user key hosting. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0035] Figure 1 A block diagram of the key escrow electronic device provided by an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of a key escrow electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0039] Because blockchain is an infrastructure platform for multi-party collaboration, a supply chain finance application system is set up on the blockchain. For the flexibility of the system, the supply chain finance platform is decoupled into multiple sub-business systems according to the roles of different users. For example: business systems operated by core enterprises, business systems operated by suppliers, business systems operated by financial institutions, etc. The key custody electronic device carries the key custody of multiple sub-business systems of supply chain finance, and each sub-business system has a corresponding business system identity (system public key and system private key) for identity identification. Therefore, an embodiment of the present invention provides a key custody electronic device, such as Figure 1 and Figure 2 As shown, it includes: a key hosting module, a key authorization module and a key acquisition module.

[0040] The key escrow module includes:

[0041] The random generation submodule is used to randomly generate the identity information of the user to be hosted and the secret key seed of the user to be hosted. The identity information includes the address, public key plaintext and private key plaintext. Specifically, the electronic device randomly generates a symmetric encryption seed (secret key seed) and the user's identity information.

[0042] The encryption and trusteeship submodule is used to obtain the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted according to the secret key seed of the user to be hosted, the public key plaintext of the user to be hosted, the private key plaintext of the user to be hosted and the system public key of the user to be hosted, and store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted.

[0043] The secret key authorization module is used to obtain the random seed ciphertext granted by the user to be hosted to the authorized user based on the system private key of the user to be hosted, the random seed ciphertext of the user to be hosted and the system public key of the authorized user, and authorize the authorized user to obtain the right to obtain the secret key of the user to be hosted.

[0044] The key acquisition module includes:

[0045] The judgment submodule is used to judge whether the acquiring user is an authorized user according to the secret key to be acquired by the acquiring user.

[0046] The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the user to be hosted, the random seed ciphertext of the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is not an authorized user.

[0047] The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the authorized user, the random seed ciphertext granted to the authorized user by the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is an authorized user.

[0048] As an optional implementation, the encryption and trusteeship submodule includes:

[0049] The symmetric encryption unit is used to use the secret key seed of the user to be managed to symmetrically encrypt the public key plaintext of the user to be managed and the private key plaintext of the user to be managed to obtain the public key ciphertext of the user to be managed and the private key ciphertext of the user to be managed.

[0050] The first asymmetric encryption unit is used to use the system public key of the user to be hosted to asymmetric encrypt the secret key seed of the user to be hosted to obtain the random seed ciphertext of the user to be hosted.

[0051] The hosting unit is used to store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted.

[0052] As an optional implementation, the key authorization module includes:

[0053] The acquisition submodule is used to obtain the random seed ciphertext of the user to be managed, the subsystem (N) that the authorized user can operate for the core enterprise, and the subsystem (M) that the authorized user can operate for the supplier.

[0054] The asymmetric decryption submodule is used to use the system private key of the user to be managed to asymmetric decrypt the random seed ciphertext of the user to be managed to obtain the random seed of the user to be managed.

[0055] The asymmetric encryption submodule is used to use the system public key of the authorized user to asymmetric encrypt the random seed of the user to be hosted to obtain the random seed ciphertext granted by the user to be hosted to the authorized user, and store the random seed ciphertext.

[0056] As an optional implementation, the authorized user submodule includes:

[0057] The authorized user acquisition unit is used to obtain the system private key of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted.

[0058] The first authorized asymmetric decryption unit is used to use the system private key of the user to be hosted to asymmetric decrypt the random seed ciphertext of the user to be hosted to obtain the random seed of the user to be hosted.

[0059] The second authorized asymmetric decryption unit is used to use the random seed of the user to be hosted to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted, and return the address, public key plaintext and private key plaintext of the target user.

[0060] As an optional implementation, the authorized user submodule includes:

[0061] The authorized user acquisition unit is used to obtain the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted, the system private key of the authorized user and the random seed ciphertext granted by the user to be hosted to the authorized user.

[0062] The first authorized asymmetric decryption unit is used to use the system private key of the authorized user to asymmetric decrypt the random seed ciphertext granted by the user to be hosted to the authorized user to obtain the random seed of the authorized user.

[0063] The second authorized asymmetric decryption unit is used to use the random seed of the authorized user to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted.

[0064] As an optional implementation, the asymmetric encryption adopts the national secret SM2 algorithm.

[0065] As an optional implementation, the symmetric encryption adopts the national secret SM4 algorithm.

[0066] The present invention has the following advantages:

[0067] The device can host the secret keys of the identities on the chain, and the keys are encrypted. Only the person who stores the keys can decrypt and authorize them.

[0068] By comprehensively utilizing the advantages of symmetric encryption and asymmetric encryption technologies, it can ensure that the encryption seeds corresponding to the secret keys of different users are random and different, thereby improving the security of key custody.

[0069] The encryption seeds corresponding to each user's secret key are stored in ciphertext, and this ciphertext can only be decrypted by a system that is authorized or has the system private key, which improves the security of key custody.

[0070] The user identity can be authorized to the associated trusted subsystem through authorization, which provides the convenience of secret key authorization. The symmetric encryption seed of each secret key is different. The symmetric encryption seed can be decrypted and then encrypted with the other party's public key to authorize the other party. It is safe and convenient to operate.

[0071] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0072] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A key escrow electronic device, characterized in that: include: Key hosting module, key authorization module and key acquisition module; The key escrow module includes: A random generation submodule, used to randomly generate identity information of the user to be managed and a secret key seed of the user to be managed, wherein the identity information includes an address, a public key plaintext, and a private key plaintext; The encryption and trusteeship submodule is used to obtain the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted according to the secret key seed of the user to be hosted, the public key plaintext of the user to be hosted, the private key plaintext of the user to be hosted and the system public key of the user to be hosted, and store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted; The secret key authorization module is used to obtain the random seed ciphertext granted by the to-be-hosted user to the authorized user according to the system private key of the to-be-hosted user, the random seed ciphertext of the to-be-hosted user and the system public key of the authorized user, and authorize the authorized user to obtain the right to obtain the secret key of the to-be-hosted user; The key acquisition module includes: A judgment submodule is used to judge whether the acquiring user is an authorized user according to the secret key to be acquired by the acquiring user; The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the user to be hosted, the random seed ciphertext of the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is not an authorized user; The authorized user submodule is used to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted according to the system private key of the authorized user, the random seed ciphertext granted to the authorized user by the user to be hosted, the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted, if the acquiring user is an authorized user.

2. A key escrow electronic device according to claim 1, characterized in that: The encryption and trusteeship submodule includes: A symmetric encryption unit, used to symmetrically encrypt the public key plaintext of the user to be managed and the private key plaintext of the user to be managed by using the secret key seed of the user to be managed to obtain the public key ciphertext of the user to be managed and the private key ciphertext of the user to be managed; A first asymmetric encryption unit, configured to asymmetrically encrypt the secret key seed of the user to be managed using the system public key of the user to be managed to obtain a random seed ciphertext of the user to be managed; The hosting unit is used to store the address of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted and the random seed ciphertext of the user to be hosted.

3. The key escrow electronic device according to claim 1, characterized in that: The secret key authorization module includes: An acquisition submodule, used to obtain the random seed ciphertext of the user to be hosted; An asymmetric decryption submodule, used to asymmetric decrypt the random seed ciphertext of the user to be hosted by using the system private key of the user to be hosted to obtain the random seed of the user to be hosted; The asymmetric encryption submodule is used to use the system public key of the authorized user to asymmetric encrypt the random seed of the user to be hosted to obtain the random seed ciphertext granted by the user to be hosted to the authorized user.

4. The key escrow electronic device according to claim 1, characterized in that: The authorized user submodule includes: An authorized user acquisition unit, used to acquire the system private key of the user to be hosted, the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted, and the random seed ciphertext of the user to be hosted; A first authorized asymmetric decryption unit, configured to use a system private key of the user to be managed to asymmetric decrypt the random seed ciphertext of the user to be managed to obtain the random seed of the user to be managed; The second authorized asymmetric decryption unit is used to use the random seed of the user to be hosted to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted.

5. The key escrow electronic device according to claim 1, characterized in that: The authorized user submodule includes: An authorized user acquisition unit, used to acquire the public key ciphertext of the user to be hosted, the private key ciphertext of the user to be hosted, the system private key of the authorized user, and the random seed ciphertext granted by the user to be hosted to the authorized user; A first authorized asymmetric decryption unit is used to use the system private key of the authorized user to asymmetric decrypt the random seed ciphertext granted by the user to be managed to the authorized user to obtain the random seed of the authorized user; The second authorized asymmetric decryption unit is used to use the random seed of the authorized user to asymmetric decrypt the public key ciphertext of the user to be hosted and the private key ciphertext of the user to be hosted to obtain the public key plaintext of the user to be hosted and the private key plaintext of the user to be hosted.

6. The key escrow electronic device according to claim 2, characterized in that: The asymmetric encryption adopts the national secret SM2 algorithm.

7. The key escrow electronic device according to claim 2, characterized in that: The symmetric encryption adopts the national secret SM4 algorithm.