Communication method and device based on block chain account, and storage medium
By obtaining and using the first key sharding and second key sharding that uses the blockchain account, the user's registration information is determined based on the second key piece, which solves the creation and use of the blockchain account. The problem of the method reduces the risk of cold keys.
Patent Information
- Application Number
- CN202310932963.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
In the creation and use of blockchain accounts, the prior art is difficult to compatible with the account and password methods that users are accustomed to, and cold backup keys need to be obtained when the device is replaced, which increases the risk of cold backup key exposure.
By obtaining the first key sharding and the second key sharding, it is provided by the custodian and key signature participant of the blockchain account. The user's registration information determines the second key piece and creates a blockchain account Essence
The user can use the blockchain account conveniently through the account and password, and does not need to obtain the cold keys when the device is replaced, reducing the risk of cold preparation key exposure.
Smart Images

Figure CN119382854A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of threshold keys, and in particular to a communication method, device and storage medium based on blockchain accounts. Background Art
[0002] A blockchain account is a digital wallet based on blockchain technology, which mainly provides digital asset management. Due to the characteristics of blockchain accounts such as decentralization, information immutability, and autonomy, blockchain accounts are also receiving more and more attention and application. Currently, blockchain accounts are mainly created through randomly generated keys. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a communication method, device and storage medium based on blockchain accounts.
[0004] According to a first aspect of an embodiment of the present disclosure, a communication method based on a blockchain account is provided, including obtaining a first key shard and a second key shard, the first key shard being provided by a custodian of the blockchain account, and the second key shard being provided by a key signature participant of the blockchain account; the second key shard being determined based on registration information of a registered user; and creating a blockchain account based on the first key shard and the second key shard.
[0005] In one embodiment, the registration information includes account information and password information; the second key shard is determined based on the registration information of the registered user in the following manner: converting the account information into a first array, and converting the password information into a second array; performing a hash operation on the first array and the second array to obtain a hash value; and using the hash value as the second key shard.
[0006] In one embodiment, the method further includes: obtaining a third key shard, the third key shard being provided by at least one of the following parties: provided by a key cold standby participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account; creating a blockchain account based on the first key shard and the second key shard includes: creating a blockchain account based on the first key shard, the second key shard, and the third key shard.
[0007] In one embodiment, creating a blockchain account based on the first key shard, the second key shard, and the third key shard includes: determining a first private key signature generated based on the first key shard, a second private key signature generated based on the second key shard, and a third private key signature generated based on the third key shard; generating a public key of the blockchain account based on the first private key signature, the second private key signature, and the third private key signature; and creating a blockchain account including the public key.
[0008] In one embodiment, the method further includes: storing the first key shard, the second key shard, and the third key shard as cold standby keys in the key cold standby participant, respectively.
[0009] According to a second aspect of an embodiment of the present disclosure, a communication method based on a blockchain account is provided, including obtaining registration information of a registered user; based on the registration information, decrypting a blockchain account, the blockchain account is based on a first key shard and a second key shard, the first key shard is provided by a custodian of the blockchain account, the second key shard is provided by a key signing participant of the blockchain account, and the second key shard is determined based on the registration information of the registered user.
[0010] In one embodiment, the method further includes: the blockchain account is created based on the first key shard and the second key shard, including: the blockchain account is created based on the first key shard, the second key shard and a third key shard, and the third key shard is provided by at least one of the following parties: provided by a key cold backup participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account.
[0011] In one embodiment, the method further includes: obtaining a cold standby key, and decrypting a blockchain account based on the cold standby key; the cold standby key includes the first key shard, the second key shard, and the third key shard.
[0012] According to a third aspect of an embodiment of the present disclosure, a communication device based on a blockchain account is provided, the device comprising: an acquisition unit, used to acquire a first key shard and a second key shard, the first key shard being provided by a custodian of the blockchain account, and the second key shard being provided by a key signature participant of the blockchain account; the second key shard being determined based on registration information of a registered user; and a processing unit, used to create a blockchain account based on the first key shard and the second key shard.
[0013] In one embodiment, the registration information includes account information and password information; the second key shard is determined based on the registration information of the registered user in the following manner: converting the account information into a first array, and converting the password information into a second array; performing a hash operation on the first array and the second array to obtain a hash value; and using the hash value as the second key shard.
[0014] In one embodiment, the acquisition unit is also used to: the acquisition unit is also used to acquire a third key shard, and the third key shard is provided by at least one of the following parties: provided by a key cold standby participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account; the creation of a blockchain account based on the first key shard and the second key shard includes: the processing unit is also used to create a blockchain account based on the first key shard, the second key shard, and the third key shard.
[0015] In one embodiment, the processing unit creates a blockchain account based on the first key shard, the second key shard, and the third key shard in the following manner, including: determining a first private key signature generated based on the first key shard, a second private key signature generated based on the second key shard, and a third private key signature generated based on the third key shard; generating a public key of the blockchain account based on the first private key signature, the second private key signature, and the third private key signature; and creating a blockchain account including the public key.
[0016] In one implementation, the processing unit is further configured to: store the first key shard, the second key shard, and the third key shard as cold standby keys in the key cold standby participant, respectively.
[0017] According to a fourth aspect of an embodiment of the present disclosure, a communication device based on a blockchain account is provided, the device comprising: an acquisition unit, configured to acquire registration information of a registered user; a processing unit, configured to decrypt a blockchain account based on the registration information, the blockchain account being based on a first key shard and a second key shard, the first key shard being provided by a custodian of the blockchain account, the second key shard being provided by a key signature participant of the blockchain account, and the second key shard being determined based on the registration information of the registered user.
[0018] In one embodiment, the blockchain account is created based on the first key shard and the second key shard, including: the blockchain account is created based on the first key shard, the second key shard and the third key shard, and the third key shard is provided by at least one of the following parties: provided by a key cold backup participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account.
[0019] In one embodiment, the acquisition unit is further used to: obtain a cold standby key, and decrypt a blockchain account based on the cold standby key; the cold standby key includes the first key shard, the second key shard, and the third key shard.
[0020] According to a fifth aspect of an embodiment of the present disclosure, a communication device based on a blockchain account is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to: execute the method for communication based on a blockchain account described in the first aspect or any one of the first aspect; or the processor is configured to: execute the method for communication based on a blockchain account described in the second aspect or any one of the second aspect.
[0021] According to a sixth aspect of an embodiment of the present disclosure, a storage medium is provided, wherein instructions are stored in the storage medium. When the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method for communication based on a blockchain account as described in the first aspect or any one of the first aspect; or the terminal is enabled to execute the method for communication based on a blockchain account as described in the second aspect or any one of the second aspect.
[0022] The technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: According to the embodiment of the present disclosure, by obtaining the first key shard and the second key shard. Among them, the first key shard is provided by the blockchain account custodian, and the second key shard is provided by the key signature participant of the blockchain account. Since the second key shard is determined based on the registration information of the registered user. Therefore, based on the first key shard and the second key shard, the blockchain account is created, which can adapt to the current user's account creation habits. At the same time, when the user uses the account on the device, the blockchain account can be used by entering the account and password.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0025] Figure 1 The present invention is a flowchart of a communication method based on a blockchain account according to an exemplary embodiment.
[0026] Figure 2 The present invention is a flowchart of determining a second key shard based on user registration information according to an exemplary embodiment.
[0027] Figure 3 The present invention is a flowchart of creating a blockchain account based on the first key shard, the second key shard, and the third key shard according to an exemplary embodiment.
[0028] Figure 4 The present invention is a flowchart of decrypting a blockchain account based on user registration information according to an exemplary embodiment.
[0029] Figure 5 It is a block diagram of a communication device based on a blockchain account according to an exemplary embodiment.
[0030] Figure 6 It is a block diagram of a communication device based on a blockchain account according to an exemplary embodiment. DETAILED DESCRIPTION
[0031] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure.
[0032] The method of creating a blockchain account through user registration information provided by the embodiments of the present disclosure is applied to the scenario of creating a blockchain account based on registration information in Web3.0, for example, it is applied to the scenario of creating a blockchain account through a user name and password.
[0033] Currently, Web3.0 users create blockchain accounts by generating a random number from a large secret space and using the random number to create a blockchain account. In this way, when users change devices, they need to obtain a cold standby private key to log in to the blockchain account, which increases the risk of exposure of the cold standby private key. At the same time, blockchain accounts created with random numbers from a large secret space do not conform to the current user habit of creating blockchain accounts with account numbers and passwords. Therefore, in this way, for Web3.0 users, it is not possible to create blockchain accounts based on usernames and passwords, nor can it reduce the risk of exposure of cold standby private keys.
[0034] In view of this, the present disclosure provides a communication method based on blockchain accounts, which is applied to the scenario where users of Web3.0 communicate based on blockchain accounts. In this method, a first key shard and a second key shard are obtained. The second key shard is determined by the registration information of the registered user. A blockchain account is created based on the first key shard and the second key shard. In this way, when a device logs into a blockchain account, it is not necessary to obtain a cold standby key, and the risk of exposure of the cold standby key is reduced.
[0035] Figure 1 is a flow chart of a communication method based on a blockchain account according to an exemplary embodiment. Figure 1 As shown, the communication method based on blockchain account includes the following steps.
[0036] In step S11, a first key fragment and a second key fragment are obtained, wherein the second key fragment is determined based on registration information of a registered user.
[0037] In the disclosed embodiment, the first key shard is provided by the blockchain account custodian, and the second key shard is provided by the key signing participant of the blockchain account.
[0038] In the disclosed embodiment, the second key shard is determined by the user's registration information.
[0039] In the disclosed embodiment, the second key shard is determined based on the registration information entered by the user who registers the blockchain account when registering. That is, the second key shard is determined based on the user's registration information.
[0040] In the disclosed embodiment, a terminal receives a user's registration request, which includes the user's registration information. The terminal can be any one of a blockchain account custodian, a blockchain account key signature participant, and a blockchain account key cold standby participant.
[0041] In step S12, a blockchain account is created based on the first key shard and the second key shard.
[0042] In the disclosed embodiment, a blockchain wallet is created based on the first key shard and the second key shard. The second key shard is determined based on the user's registration information, so it can adapt to the current user's habit of creating accounts through accounts, and when using an account on a device, the account can be logged in through the registration information without calling the cold standby private key.
[0043] Among them, in the disclosed embodiments, the blockchain wallet is a digital wallet based on blockchain technology, which mainly provides digital asset management, and allows interaction and transactions on decentralized applications (DApp). Blockchain wallets can be used in the form of browser plug-ins or mobile applications, which provide a more convenient and easy-to-use way to interact with DApp. Blockchain wallets allow users to manage digital assets and freely transfer digital assets between different blockchains by accessing supported blockchain networks. Blockchain wallets generally support a variety of different types of digital assets, and users can use them to send and receive digital assets and transactions. Blockchain wallets also provide secure identity authentication functions, allowing users to authenticate and authorize operations on DApp.
[0044] The communication method based on blockchain account provided by the embodiment of the present disclosure obtains the first key shard and the second key shard. The second key shard is determined by the registration information of the registered user, and the blockchain account can be used by the user registration information. Based on the first key shard and the second key shard, a blockchain account is created, and when the user changes the device, the blockchain account can be used by inputting the user registration information, without having to re-obtain the cold standby key to restore the blockchain account. At the same time, the risk of exposure of the cold standby key is reduced.
[0045] The present disclosure embodiment describes the communication method based on blockchain account involved in the present disclosure embodiment.
[0046] In the disclosed embodiment, a public key is formed by signing with a private key, and then a blockchain account is created. The signing method used by the private key can be an N-of-M threshold signature method.
[0047] In an example of the present disclosure, the N-of-M threshold signature method is a multi-signature technology. In other words, the N-of-M threshold signature method, where N is less than M, that is, at least N of the M participants sign, then the transaction can take effect. In the embodiment of the present disclosure, a 2-of-3 signature method can be used, that is, at least two of the three participants sign.
[0048] In the disclosed embodiment, the registration information of the registered user includes account information and password information. The user registration information is the registration information required when the user needs to create a blockchain account.
[0049] Among them, in the embodiment of the present disclosure, the account information and password information are the account information and password information that the user needs to enter when logging into the blockchain account.
[0050] For example, in the embodiment of the present disclosure, the account information may be account information that identifies the identity information of the user, or account information with a name set by the user, etc. The password information may be password information in a string format set by the user, etc.
[0051] Figure 2 FIG. 1 shows a flow chart of determining a second key shard based on user registration information according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the following steps are included.
[0052] In step S21, the account information is converted into a first array, and the password information is converted into a second array.
[0053] In the disclosed embodiment, the user registration information includes account information and password information. Therefore, the account information is converted into a first array and the password is converted into a second array to facilitate hash operation.
[0054] In step S22, a hash operation is performed on the first array and the second array to obtain a hash value.
[0055] In the disclosed embodiment, a first array corresponding to the account information and a second array corresponding to the password information are connected, and a hash operation is performed on the connected arrays to obtain a hash value corresponding to the arrays.
[0056] In an example of the present disclosure, the obtained account information and password information are calculated by a hash function, and the calculation result is used as the second key shard. Among them, the hash function can extract data of any length into a fixed length. Furthermore, the obtained account information and password that do not comply with the rules can be transformed into a rule-compliant one.
[0057] Among them, in the embodiments of the present disclosure, other hash functions can also be used to calculate the acquired account information and password information. For example, the SHA-1 hash function can compress any function into a 160-bit length, and the SHA-2 hash function can compress data of any length into 256 bits, 384 bits, or 512 bits.
[0058] In an example of the present disclosure, a hash algorithm, also known as a hash algorithm, refers to a method of extracting data of any length into a fixed length. A hash algorithm has an input and an output. The input is data of any length. No matter what form the input data is in, it is processed as a simple bit sequence within the algorithm.
[0059] In step S23, the hash value is used as the second key fragment.
[0060] In the disclosed embodiment, the account information and password information are converted into an array, and the hash value obtained after the hash operation is the second key shard.
[0061] In the disclosed embodiment, by performing a hash operation on the user's registration information and using the hash result of the registration information as the second key shard, it is possible to log in to the blockchain wallet on the device through the user's registration information without obtaining the cold backup key. Thus, the risk of exposure of the cold backup key is reduced.
[0062] In the disclosed embodiment, the blockchain wallet may be created based on the first key shard, the second key shard, and the third key shard.
[0063] In one example of the present disclosure, the third key shard may be provided by a key cold backup participant of a blockchain account, or may be provided by an untrusted participant of the blockchain account.
[0064] Figure 3The present invention is a flowchart of creating a blockchain account based on a first key shard, a second key shard, and a third key shard according to an exemplary embodiment. Figure 3 , including the following steps:
[0065] In step S31, a first private key signature, a second private key signature, and a third private key signature are determined;
[0066] In an example of the present disclosure, the first key fragment is signed to obtain a first private key signature. The second key fragment is signed to obtain a second private key signature. The second private key signature is a signature of a hash result of account information and password information. The third key fragment is signed to obtain a third private key signature.
[0067] In the disclosed embodiment, the first key fragment, the second key fragment, and the third key fragment are signed respectively by using the Elliptic Curve Digital Signature Algorithm (ECDSA).
[0068] In one implementation, the elliptic curve digital signature algorithm is a standard digital signature scheme, an asymmetric encryption algorithm, which is widely used in TLS, Bitcoin, etc. The key can be generated by the properties of the random elliptic curve equation.
[0069] In one example of the present disclosure, the processing process of the elliptic curve digital signature algorithm is as follows: All parties involved in the digital signature use the same global parameters to define the elliptic curve and the base points on the curve. The first client generates a pair of public and private keys. Among them, for the hash value of the private key containing the user registration information, another point is calculated using a random number and a base point as the public key. The hash value is calculated for the message sent by the first client, and a signature is generated using the private key, global parameters and hash value. The server verifies with the public key and global parameters of the first client.
[0070] In step S32, a public key of the blockchain account is generated based on the first private key signature, the second private key signature, and the third private key signature.
[0071] In the disclosed embodiment, the following formula can be used to generate a public key based on the first private key signature, the second private key signature, and the third private key signature:
[0072] P = g s1 ·g s2 ·g s3 =g s1+s2+s3
[0073] In the above formula, P is the public key, s1 is the first key shard, s2 is the second key shard, s3 is the third key shard, and g s1Sign the first private key, g s2 Sign the second private key, g s3 Sign the third private key, s1+s2+s3 is the private key, g s1+s2+s3 is the public key.
[0074] In step S33, a blockchain account including a public key is created.
[0075] In the disclosed embodiment, a public key can be generated according to the first private key signature, the second private key signature, and the third private key signature, that is, the storage address of the public key is a blockchain account.
[0076] In one example of the present disclosure, a blockchain wallet is a tool for managing the keys and addresses of blockchain nodes. In other words, a blockchain wallet is a blockchain account formed by a public key.
[0077] In an example of the present disclosure, a blockchain account is created through a public key to ensure that the user is the owner of the address. The public key is generated through a private key. This process is one-way, that is, the blockchain account can be calculated through the private key, but the private key cannot be calculated through the blockchain account.
[0078] In the disclosed embodiment, the public key of the blockchain account is generated according to the first private key signature, the second private key signature, and the third private key signature generated by the first key shard, the second key shard, and the third key shard. Among them, the second key shard is generated by the user registration information, which can reduce the risk of exposure of the cold standby private key. The public key is generated by the private key, and the elliptic digital signature algorithm can be used to ensure that the private key is not exposed.
[0079] In the disclosed embodiment, the first key shard, the second key shard, and the third key shard are respectively stored as cold standby keys in the key cold standby participant.
[0080] In an example of the present disclosure, cold standby can be understood as: two terminals, one of which is not allowed to be used as a backup, and the other is running. When the running terminal crashes, the backup terminal is put into operation.
[0081] In the disclosed embodiment, based on the user's registration information, the key signing participant of the blockchain account uses the user's registration information as the second key shard, and signs the second key shard to obtain the second private key signature. The blockchain account custodian and the key cold standby participant of the blockchain account randomly generate the first key shard and the third key shard. And sign the first key shard and the third key shard respectively to obtain the first private key signature and the third private key signature.
[0082] In an example of the present disclosure, based on the channel, the three parties broadcast their respective signatures to the other two parties respectively, thereby realizing encrypted communication among the key signing participant, the custodian, and the key cold backup participant of the blockchain account.
[0083] In an example of the present disclosure, the key signing participant, the custodian, and the key cold backup participant of the blockchain account can all generate a public key based on the three-party signatures received over the channel, and then create a blockchain account.
[0084] In the disclosed embodiment, the key signing party, custodian and key cold standby party of the blockchain account can generate a public key, i.e., a blockchain account, based on the first private key signature, the second private key signature and the third private key signature. The public key formed is a public key and does not need to consider security issues. Therefore, it can be stored in the key signing party, custodian and key cold standby party of the blockchain account. It can also be stored in two of the three parties, one of which is mainly used as a verifier. It is also possible that none of the three parties store it, and when it is used again, two of the parties regenerate the blockchain account.
[0085] Based on the same concept, the embodiment of the present disclosure provides a blockchain account-based communication method applied to blockchain account decryption.
[0086] Figure 4 is a flowchart of decrypting a blockchain account based on user registration information according to an exemplary embodiment. Figure 4 , including the following steps:
[0087] In step S41, the registration information of the registered user is obtained.
[0088] In the embodiment of the present disclosure, based on the user's login request, the user's registration information is obtained, wherein the user's registration information includes account information and password information.
[0089] In step S42, the blockchain account is decrypted based on the registration information.
[0090] In the disclosed embodiment, a blockchain account is created based on a first key shard and a second key shard.
[0091] In one example of the present disclosure, the first key shard is provided by the blockchain account custodian, and the second key shard is provided by the key signing participant of the blockchain account.
[0092] In the disclosed embodiment, the second key shard is determined by the registration information of the registered user.
[0093] In the disclosed embodiment, according to the registration information, the blockchain account can be decrypted. The blockchain account can also be created based on the first key shard, the second key shard, and the third key shard. Therefore, according to any one of the first key shard and the third key shard, combined with the second key shard, the blockchain account can be decrypted.
[0094] In an example of the present disclosure, the third key shard may be provided by a key cold backup participant of the blockchain account, or may be provided by an untrusted participant of the blockchain account.
[0095] In another embodiment of the present disclosure, the blockchain account can also be decrypted by obtaining a cold standby key. For example, in an irresistible situation, if you need to log in to the blockchain account again, you can obtain the cold standby key and then log in to the blockchain account again.
[0096] In an example of the present disclosure, the cold standby key includes a first key shard, a second key shard, and a third key shard, wherein the second key shard is determined based on the account information and password information in the user registration information.
[0097] In the disclosed embodiment, the blockchain account custodian randomly generates a first key shard. The key signing participant of the blockchain account uses the hash value of the account information and password information in the user registration information as the second key shard. The key cold standby participant of the blockchain account randomly generates a third key shard. Among them, each of the three parties transmits its signed key shard to the other two parties through a channel. The three parties can calculate the public key based on the received signed key shard, and then form a blockchain account. Therefore, creating a blockchain wallet based on the first key shard, the third key shard, and the second key shard formed according to the user registration information can adapt to the current user's creation habits. Furthermore, when the user changes the device, the blockchain account can be used based on the account information and password information.
[0098] Based on the same concept, the embodiment of the present disclosure also provides a communication device based on blockchain accounts.
[0099] It is understandable that the communication device based on blockchain accounts provided by the embodiments of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present disclosure.
[0100] Figure 5 is a block diagram of a device for communication based on a blockchain account according to an exemplary embodiment. Figure 5 The device 100 includes an acquisition unit 101 and a processing unit 102.
[0101] The acquisition unit 101 is used to acquire a first key shard and a second key shard, where the first key shard is provided by a blockchain account custodian, and the second key shard is provided by a key signing participant of the blockchain account.
[0102] In the disclosed embodiment, the second key fragment is determined based on the registration information of the registered user.
[0103] The processing unit 102 is used to create a blockchain account based on the first key shard and the second key shard.
[0104] In the disclosed embodiment, the registration information includes account information and password information.
[0105] In an example of the present disclosure, the second key shard is determined based on the registration information of the registered user in the following manner: converting the account information into a first array, and converting the password information into a second array; connecting the first array and the second array, and performing a hash operation on the array formed after the connection to obtain a hash value; using the hash value as the second key shard.
[0106] In the disclosed embodiment, the acquisition unit is further used to: acquire a third key shard, and the third key shard can be provided by a key cold backup participant of the blockchain account, or can also be provided by an untrusted participant of the blockchain account.
[0107] In the embodiment of the present disclosure, the processing unit is also used to create a blockchain account based on the first key shard, the second key shard, and the third key shard.
[0108] In the embodiment of the present disclosure, the processing unit creates a blockchain account based on the first key shard, the second key shard, and the third key shard in the following manner, including: determining a first private key signature generated based on the first key shard, a second private key signature generated based on the second key shard, and a third private key signature generated based on the third key shard; generating a public key of the blockchain account based on the first private key signature, the second private key signature, and the third private key signature; and creating a blockchain account including the public key.
[0109] The processing unit is also used to: store the first key fragment, the second key fragment and the third key fragment as cold standby keys in the key cold standby participant respectively.
[0110] The acquisition unit 101 is used to acquire the registration information of the registered user.
[0111] The processing unit 102 is used to decrypt the blockchain account based on the registration information.
[0112] In an example of the present disclosure, a blockchain account is created based on a first key shard and a second key shard, the first key shard is provided by a custodian of the blockchain account, the second key shard is provided by a key signing participant of the blockchain account, and the second key shard is determined based on registration information of a registered user.
[0113] In an example of the present disclosure, a blockchain account may also be created based on the first key shard, the second key shard, and the third key shard.
[0114] In one example, the third key shard can be provided by a key cold backup participant of the blockchain account, or by an untrusted participant of the blockchain account.
[0115] In the disclosed embodiment, the acquisition unit is further used to: acquire a cold standby key, and decrypt the blockchain account based on the cold standby key;
[0116] In an example of the present disclosure, the cold backup key includes a first key shard, a second key shard, and a third key shard.
[0117] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0118] Figure 6 1 is a block diagram of a device 200 for communication based on blockchain accounts according to an exemplary embodiment. For example, the device 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0119] Reference Figure 6 , the device 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .
[0120] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
[0121] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0122] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
[0123] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0124] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC), and when the device 200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 204 or sent via the communication component 216. In some embodiments, the audio component 210 also includes a speaker for outputting audio signals.
[0125] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0126] The sensor assembly 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200, the sensor assembly 214 can also detect the position change of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200 and the temperature change of the device 200. The sensor assembly 214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0127] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0128] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0129] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 204 including instructions, and the instructions can be executed by the processor 220 of the device 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0130] It is to be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.
[0131] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0132] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.
[0133] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0134] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure.
[0135] It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.
Claims
1. A communication method based on blockchain accounts, characterized in that: The method comprises: Obtain a first key shard and a second key shard, where the first key shard is provided by the blockchain account custodian, and the second key shard is provided by a key signing participant of the blockchain account; The second key fragment is determined based on the registration information of the registered user; A blockchain account is created based on the first key shard and the second key shard.
2. The method according to claim 1, characterized in that: The registration information includes account information and password information; The second key fragment is determined based on the registration information of the registered user in the following manner: Convert the account information into a first array, and convert the password information into a second array; Performing a hash operation on the first array and the second array to obtain a hash value; The hash value is used as the second key shard.
3. The method according to claim 1, characterized in that: The method further comprises: Obtain a third key shard, where the third key shard is provided by at least one of the following parties: Provided by the cold backup participant of the key of the blockchain account, and / or Provided by an untrusted party to the blockchain account; The creating a blockchain account based on the first key shard and the second key shard includes: A blockchain account is created based on the first key shard, the second key shard, and the third key shard.
4. The method according to claim 3, characterized in that The creating a blockchain account based on the first key shard, the second key shard, and the third key shard includes: Determine a first private key signature generated based on the first key fragment, a second private key signature generated based on the second key fragment, and a third private key signature generated based on the third key fragment; Generate a public key of the blockchain account based on the first private key signature, the second private key signature, and the third private key signature; A blockchain account is created that includes the public key.
5. The method according to claim 3, characterized in that: The method further comprises: The first key shard, the second key shard, and the third key shard are respectively stored as cold standby keys in the key cold standby participant.
6. A communication method based on blockchain accounts, characterized in that: The method comprises: Get the registration information of the registered user; Based on the registration information, decrypt the blockchain account, the blockchain account is created based on a first key shard and a second key shard, the first key shard is provided by the blockchain account custodian, the second key shard is provided by a key signing participant of the blockchain account, and the second key shard is determined based on the registration information of the registered user.
7. The method according to claim 6, characterized in that The blockchain account is created based on the first key shard and the second key shard, including: The blockchain account is created based on the first key shard, the second key shard and the third key shard, and the third key shard is provided by at least one of the following parties: provided by a key cold backup participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account.
8. The method according to claim 7, characterized in that The method further comprises: Obtain a cold standby key, and decrypt the blockchain account based on the cold standby key; The cold standby key includes the first key shard, the second key shard, and the third key shard.
9. A communication device based on a blockchain account, characterized in that: The device comprises: An acquisition unit, configured to acquire a first key shard and a second key shard, wherein the first key shard is provided by the blockchain account custodian, and the second key shard is provided by a key signing participant of the blockchain account; The second key fragment is determined based on the registration information of the registered user; A processing unit is used to create a blockchain account based on the first key shard and the second key shard.
10. The device according to claim 9, characterized in that: The registration information includes account information and password information; The second key fragment is determined based on the registration information of the registered user in the following manner: Convert the account information into a first array, and convert the password information into a second array; Performing a hash operation on the first array and the second array to obtain a hash value; The hash value is used as the second key shard.
11. The device according to claim 9, characterized in that: The acquisition unit is further used to acquire a third key shard, where the third key shard is provided by at least one of the following parties: provided by a key cold standby participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account; The creating a blockchain account based on the first key shard and the second key shard includes: The processing unit is further used to create a blockchain account based on the first key shard, the second key shard, and the third key shard.
12. The device according to claim 11, characterized in that: The processing unit creates a blockchain account based on the first key shard, the second key shard, and the third key shard in the following manner, including: Determine a first private key signature generated based on the first key fragment, a second private key signature generated based on the second key fragment, and a third private key signature generated based on the third key fragment; Generate a public key of the blockchain account based on the first private key signature, the second private key signature, and the third private key signature; A blockchain account is created that includes the public key.
13. The device according to claim 11, characterized in that The processing unit is also used for: The first key shard, the second key shard, and the third key shard are respectively stored as cold standby keys in the key cold standby participant.
14. A communication device based on a blockchain account, characterized in that: The device comprises: An acquisition unit, used to acquire registration information of a registered user; A processing unit is used to decrypt a blockchain account based on the registration information, where the blockchain account is based on a first key shard and a second key shard, where the first key shard is provided by a custodian of the blockchain account, and the second key shard is provided by a key signing participant of the blockchain account, and the second key shard is determined based on the registration information of the registered user.
15. The device according to claim 14, characterized in that: The blockchain account is created based on the first key shard and the second key shard, including: The blockchain account is created based on the first key shard, the second key shard and the third key shard, and the third key shard is provided by at least one of the following parties: provided by a key cold backup participant of the blockchain account, and / or provided by an untrusted participant of the blockchain account.
16. The device according to claim 15, characterized in that: The acquisition unit is also used for: Obtain a cold standby key, and decrypt the blockchain account based on the cold standby key; The cold standby key includes the first key shard, the second key shard, and the third key shard.
17. A communication device based on a blockchain account, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: execute the method for communication based on blockchain accounts as described in any one of claims 1-5 or 6-9.
18. A storage medium, characterized in that: The storage medium stores instructions. When the instructions in the storage medium are executed by the processor of the terminal, the terminal is enabled to execute the method for communication based on blockchain accounts as described in any one of claims 1-5 or 6-9.