WO2020062974A1 - 一种区块链私钥的获取方法、装置及电子设备 - Google Patents
一种区块链私钥的获取方法、装置及电子设备 Download PDFInfo
- Publication number
- WO2020062974A1 WO2020062974A1 PCT/CN2019/092971 CN2019092971W WO2020062974A1 WO 2020062974 A1 WO2020062974 A1 WO 2020062974A1 CN 2019092971 W CN2019092971 W CN 2019092971W WO 2020062974 A1 WO2020062974 A1 WO 2020062974A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target
- question
- answer
- private key
- user
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
Definitions
- the present application relates to the field of blockchain technology, and in particular, to a method, an apparatus, and an electronic device for obtaining a private key of a blockchain.
- a blockchain private key is an important credential for a user to gain control of assets in a virtual wallet, such as Bitcoin.
- Whoever owns the blockchain private key has control over the assets managed by the virtual wallet corresponding to the blockchain private key. It can be seen that to ensure the security of the assets in the virtual wallet, it is important to ensure the security of the private key of the blockchain, that is, to prevent the private key of the blockchain from being easily stolen.
- the purpose of the embodiments of the present application is to provide a method, an apparatus, and an electronic device for obtaining a blockchain private key, so as to ensure the security of the blockchain private key.
- an embodiment of the present application provides a method for obtaining a blockchain private key.
- the method includes:
- the step of obtaining an acquisition request for obtaining a blockchain private key corresponding to the target user includes:
- the target QR code is obtained by scanning the target QR code to obtain the blockchain private key corresponding to the target user.
- the target QR code is a QR code generated by encoding the blockchain private key.
- the method further includes:
- target key is: a key used to decrypt the encrypted private key of the blockchain;
- the steps to obtain a blockchain private key include:
- the target problem is the first number
- the method further includes:
- the step of judging whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question includes:
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question and the target answer corresponding to the target question are determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the method before the step of determining the target question and the target answer corresponding to the target question based on the user identification of the target user, the method further includes:
- the to-be-selected question selected by the target user is determined from the to-be-set questions as the target question;
- For the user identification of the target user record the target question and the target answer corresponding to the target question.
- the method further includes:
- setup question instruction triggered by a target user, where the setup question instruction is used to: instruct the display of a question to be set.
- an embodiment of the present application provides a device for obtaining a private key of a blockchain.
- the device includes:
- a first obtaining module configured to obtain an obtaining request for obtaining a blockchain private key corresponding to a target user, wherein the obtaining request includes: a user identifier of the target user;
- a first determining module configured to determine a target question and a target answer corresponding to the target question based on a user identification of the target user;
- a second obtaining module configured to obtain the answer to be verified corresponding to the target question
- a judging module configured to judge whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question
- An acquisition display module is used to obtain the blockchain private key when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and display the blockchain private key to the target user.
- the first obtaining module is specifically used for
- the target two-dimensional code is a two-dimensional code generated by encoding the blockchain private key.
- the device further includes:
- a third obtaining module configured to obtain the encrypted private key of the blockchain when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question before obtaining the private key of the blockchain;
- a fourth obtaining module configured to obtain a target key, where the target key is a key used to decrypt the encrypted private key of the blockchain;
- the encrypted private key of the blockchain is decrypted using the target key to obtain the private key of the blockchain, and the private key of the blockchain is displayed to the target user.
- the target problem is the first number
- the device also includes:
- a detection module configured to detect a device environment and obtain a detection result before judging whether a target answer corresponding to a target question and a target answer corresponding to a target question match.
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question is determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the device further includes:
- a display module for displaying a question to be set before determining a target question and a target answer corresponding to the target question based on the user identification of the target user;
- a second determining module configured to determine, based on the selection instruction of the target user, the to-be-set question selected by the target user from the to-be-set questions as the target question;
- a fifth obtaining module configured to obtain a target answer set for the target question
- the recording module is configured to record the target question and the target answer corresponding to the target question for the user identification of the target user.
- the device further includes:
- the receiving module is configured to receive a setting question instruction triggered by a target user before displaying the question to be set, wherein the setting question instruction is used to instruct the question to be set to be displayed.
- an embodiment of the present application provides an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
- the processor is configured to, when executing a computer program stored in the memory, implement any one of the steps of the method for obtaining a blockchain private key provided in the embodiments of the present application.
- the embodiment of the present application provides a computer-readable storage medium.
- a computer program is stored in the computer-readable storage medium.
- any one of the blockchains provided by the embodiments of the present application is implemented. Method steps for obtaining the private key.
- the embodiment of the present application also provides a computer program product, which is used to implement any method of obtaining a blockchain private key provided by the embodiment of the present application at runtime.
- an acquisition request for obtaining a blockchain private key corresponding to a target user is obtained, where the acquisition request includes: a user identification of the target user; and based on the user identification, determining the target problem and the target problem correspondence Obtain the target answer corresponding to the target question; determine whether the target answer corresponding to the target question matches the target answer corresponding to the target question; when determining whether the target answer corresponding to the target question matches the target answer corresponding to the target question, Obtain the blockchain private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is a user-related problem. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- it is not necessary to achieve all the above advantages at the same time.
- FIG. 1 is a schematic flowchart of a method for obtaining a blockchain private key according to an embodiment of the present application
- FIG. 2 is another schematic flowchart of a method for obtaining a blockchain private key according to an embodiment of the present application
- FIG. 3 is a schematic structural diagram of a blockchain private key acquisition device according to an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- the embodiments of the present application provide a method, an apparatus, and an electronic device for obtaining a private key of a blockchain to ensure the security of the private key of the blockchain.
- an embodiment of the present application provides a method for obtaining a blockchain private key, which may include the following steps:
- S101 Obtain an acquisition request for obtaining a blockchain private key corresponding to a target user
- the acquisition request includes: a user identifier of the target user;
- the method for obtaining a blockchain private key provided in the embodiment of the present application can be applied to any type of electronic device, and the electronic device may be a terminal device such as a computer or a mobile phone, or a computer Or a server built on a device such as a mobile phone.
- the electronic device when the electronic device is a terminal device, the electronic device is installed with a blockchain wallet application.
- the blockchain wallet application may be provided with a function button for obtaining the blockchain private key corresponding to the target user.
- the target user may trigger a predetermined specific operation on the function button to trigger the function for obtaining the corresponding user's corresponding key.
- the blockchain private key acquisition request so that the electronic device obtains the acquisition request for acquiring the blockchain private key corresponding to the target user.
- the electronic device when the electronic device is a server, the electronic device may communicate with a terminal device installed with a blockchain wallet application.
- the blockchain wallet application installed on the terminal device can be provided with a function button for obtaining the blockchain private key corresponding to the target user.
- the target user can trigger a specific operation on the function button to trigger the acquisition of the function key.
- the request for obtaining the private key of the blockchain corresponding to the target user the terminal device sends the request for obtaining the private key of the blockchain corresponding to the target user to the electronic device, so that the electronic device obtains the Obtain a request for obtaining the private key of the blockchain corresponding to the target user.
- the blockchain wallet application is: application software for managing blockchain keys, wallet addresses, tracking balances, and creating transactions.
- the user identification of the target user included in the acquisition request may be information such as a user's account number and wallet address that can uniquely identify the target user's identity in the blockchain.
- the user can be any user using a blockchain wallet application.
- S102 Determine the target question and the target answer corresponding to the target question based on the user identification of the target user;
- the correspondence relationship between each user identification, question, and answer corresponding to the question may be pre-stored locally in the electronic device or in a connected storage device. After the electronic device obtains the user ID of the target user, it can match the user ID of the target user with the corresponding relationship to determine the question corresponding to the user ID of the target user and the answer to the question as the target question. And the target answer to the target question.
- the target problem may be at least one.
- the target question may be displayed to the target user through a display connected to the electronic device. Further, the target user can input the answer of each target question according to the target question, and the electronic device obtains the answer input by the target user for each target question as the answer to be verified corresponding to the target question.
- the electronic device determines the target question and the target answer corresponding to the target question, and then sends the determined target question and the target answer corresponding to the target question to the target user.
- the held terminal device is the terminal device that sends an acquisition request for obtaining the blockchain private key corresponding to the target user.
- the terminal device receives and displays the target problem to the target user through the connected display.
- the target user can input the answer of each target question according to the target question, and the terminal device sends the answer of each target question input by the target user to the electronic device, so that the electronic device obtains the target user's answer to each target question.
- the input answer is the answer to be verified corresponding to the target question.
- S104 Determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question;
- the target answer corresponding to the target question is compared with the answer to be verified corresponding to the target question to determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question.
- the target answer corresponding to each target question may be compared with the answer to be verified corresponding to the target question, and the target answer corresponding to each goal question and the target answer corresponding to the goal question may be determined. Whether it matches.
- a blockchain private key is obtained, and the blockchain private key is displayed to the target user.
- the electronic device when the electronic device is a terminal device, after the electronic device obtains the blockchain private key, the electronic device may display the blockchain private key through a connected display to display the blockchain to a target user. Private key.
- the electronic device when the electronic device is a server, the electronic device may send the private key of the blockchain to the terminal device held by the target user after obtaining the private key of the blockchain.
- the connected display displays the blockchain private key to show the blockchain private key to target users.
- a prompt message may be output, and the prompt information may be used to: prompt the target user that the answer to be verified is not accurate and prompt The target user can re-enter the answer to be verified.
- a preset number of times can be set, which is the number of times that the target user is allowed to input the wrong target answer corresponding to the wrong target answer, where the wrong target answer corresponds to the target question The corresponding target answer does not match the answer; when the number of answers to be verified corresponding to the wrong target answer entered by the target user exceeds the preset number of times, the target user may be locked.
- locking the target user may be: prompting the target user to not allow re-entering the answer to be verified within a preset period of time, or it may not allow the target user to enter the answer to be verified again.
- the electronic device may also receive the trigger from the target user.
- Instruction for obtaining the target answer corresponding to the target question upon receiving the instruction, the target user may be authenticated, and after the verification is passed, the target user may be allowed to reset the question and set the answer corresponding to the question; or It may be to allow a target user to obtain a target answer corresponding to the target question.
- an acquisition request for obtaining a blockchain private key corresponding to a target user includes: a user identification of the target user; and based on the user identification, determining a target question and a target answer corresponding to the target question; Obtain the answer to be verified corresponding to the target question; determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, obtain the blockchain Private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is related to users. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- the step of obtaining an acquisition request for obtaining a blockchain private key corresponding to a target user may include:
- the target two-dimensional code is a two-dimensional code generated by encoding the blockchain private key.
- An encrypted two-dimensional code can be stored locally on the electronic device or in a connected storage device. After the two-dimensional code is successfully decrypted, the two-dimensional code can be decoded to obtain the blockchain private key of the target user. .
- an acquisition request for acquiring the private key of the blockchain corresponding to the target user may be obtained by scanning the target two-dimensional code.
- the electronic device when the electronic device is a terminal device, the electronic device may display the target two-dimensional code through a connected display. At this time, the target user can press and hold the target QR code to trigger the scanning function, so that the electronic device can scan the target QR code to obtain an acquisition request for obtaining the blockchain private key corresponding to the target user, and then execute Subsequent blockchain private key acquisition process.
- the terminal device held by the target user may display the target two-dimensional code through a connected display.
- the target user can press and hold the target two-dimensional code to trigger the scanning function, so that the terminal device can scan the target two-dimensional code, and then trigger the acquisition request for obtaining the blockchain private key corresponding to the target user.
- the terminal device sends the above-mentioned acquisition request for obtaining the blockchain private key corresponding to the target user to the electronic device, so that the electronic device obtains the acquisition request for obtaining the blockchain private key corresponding to the target user, and then executes subsequent zones. Blockchain private key acquisition process.
- the target two-dimensional code may be a two-dimensional code generated by a preset two-dimensional code generation algorithm, and the target two-dimensional code may be any type of two-dimensional code.
- the preset two-dimensional code generation algorithm It can be any type of QR code generation algorithm.
- the method may further include:
- target key is: a key used to decrypt the encrypted private key of the blockchain;
- the steps of obtaining the blockchain private key can include:
- the electronic device can display the decrypted blockchain private key to the target user.
- the electronic device sends the decrypted blockchain private key to the terminal device held by the target user, and the terminal device displays the blockchain private key to the target user through the connected display.
- the electronic device displays the blockchain private key to the target user through the connected display.
- the security of the device where the block-chain wallet application is located affects the security of the private key of the blockchain to a certain extent.
- the security of the blockchain private key is lower, that is, the probability that the blockchain private key is stolen (lost) is greater.
- the security of the device where the blockchain-linked wallet application is considered can be added.
- the target problem is the first number
- the method may further include:
- the step of judging whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question may include:
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question and the target answer corresponding to the target question are determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the above detection device environment to obtain the detection result may be to detect the device environment of the electronic device itself and obtain the detection result.
- the foregoing detection device environment and obtaining the detection result may be detecting the device environment of the terminal device held by the target user and obtaining the detection result of the terminal device held by the target user.
- the detection of the device environment may include: detecting whether the network environment of the device is safe, whether a malicious system is installed on the device, and / or whether there is a loophole in the system of the device, and so on, to obtain a detection result.
- the embodiment of the present application does not limit the detection angle of the detection device environment, and any detection angle that can affect the safety of the device can be used as a detection angle of the detection device environment in the embodiments of the present application.
- the above detection results may include the results detected for each detection angle, and may also include the results determined for each obtained detection angle, a determined summary result, which are all Yes.
- the above detection result may include: a detection result of detecting whether the network environment of the device is safe, Such as: the device's network environment is safe; whether the device has malicious applications installed, such as: no malicious applications are installed; whether the device's system has flaws, such as: the device's system has flaws. It can also include: The device's equipment environment is safe.
- the electronic device may determine, based on the obtained detection result, whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question. It can be: when the obtained detection result indicates that the equipment environment is safe, it can be a question to be verified which allows some of the target questions among the to-be-verified questions corresponding to the obtained target question, and the target answer corresponding to the target question is the same, that is, judgment The target answer corresponding to the target question matches the answer to be verified corresponding to the target question.
- the obtained detection result indicates that the equipment environment is not safe, it may be that all the target questions corresponding to the target questions corresponding to the target questions to be verified are allowed to have the same target answer corresponding to the target question, that is, the target question is determined.
- the corresponding target answer matches the answer to be verified corresponding to the target question.
- the target question is the first number
- the detection result is the first detection result, that is, when the detection result indicates that the equipment environment is safe
- the detection result is the second detection result, that is, when the detection result indicates that the equipment environment is not safe
- it is determined that the target answer corresponding to each target question is the same as the answer to be verified corresponding to the target question.
- the answer and the answer to be verified corresponding to the target question match to better ensure the security of the blockchain private key of the target user when the device environment is insecure.
- the method may include the following steps:
- S202 Based on the selection instruction of the target user, determine the to-be-set question selected by the target user from the to-be-set questions as the target question;
- the acquisition request includes: a user identifier of the target user;
- S205 Determine the target question and the target answer corresponding to the target question based on the user identification of the target user;
- S207 Determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question;
- S204 is the same as S101 shown in FIG. 1
- S205 is the same as S102 shown in FIG. 1
- S206 is the same as S103 shown in FIG. 1
- S207 is the same as S104 shown in FIG. 1
- S208 is the same as S105 shown in FIG. 1. the same.
- the questions corresponding to each user can be selected by the user himself, and the answers corresponding to the questions are set by himself.
- the electronic device may first display the to-be-set question to the target user, and then based on the selection instruction of the target user, determine the to-be-set question selected by the target user from the to-be-set question as the target question to obtain the target user's target question.
- the set target answer, and further, for the user identification of the target user, the target question and the target answer corresponding to the target question are recorded.
- the above-mentioned display to-be-set question may be: displaying the to-be-set question through a display connected to the electronic device, so that the target user can select at least from the displayed to-be-set questions.
- the target user may trigger a selection instruction, and the trigger instruction may carry an identifier of each to-be-set question selected by the target user, so that when the electronic device obtains the selection instruction, it may be based on each selected by the target user carried by the selection instruction.
- An identifier of the question to be set, and the question to be set selected by the target user is determined from the question to be set as the target question.
- the target user can input a corresponding target answer for each target question; the electronic device obtains the target answer set for the target question, and records the target question and the target answer corresponding to the target question for the user ID of the target user.
- the above display of the question to be set may be: sending the question to be set to a terminal device held by the target user, and the terminal device displays the question to be set through the connected display, So that the target user can select at least one question from the displayed questions to be set as the target question.
- the target user may trigger a selection instruction, and the trigger instruction may carry an identifier of each question to be set selected by the target user, so that the terminal device sends the selection instruction to the electronic device after obtaining the selection instruction, and the electronic device obtains the selection
- the to-be-set question selected by the target user may be determined from the to-be-set questions based on the identifier of each to-be-set question selected by the target user carried by the selection instruction as the target question.
- the target user inputs the target answer of each target question through the terminal device held by the target user, and the terminal device obtains the target answer of each target question input by the target user, and sends the target answer to the electronic device.
- the electronic device obtains a target answer for each target question sent by the terminal device, and records the target question and the target answer corresponding to the target question for the user identification of the target user.
- the electronic device may continue to execute the subsequent obtaining process of the private key of the blockchain.
- the electronic device can generate a blockchain private key corresponding to the target user for the target user, which can also be referred to as the target The blockchain private key corresponding to the user's wallet account.
- the electronic device can immediately display the question to be set to the target user so that the target user encrypts the blockchain private key.
- it may be: after the electronic device can generate a blockchain private key corresponding to the target user for the target user, the electronic device encodes the blockchain private key to generate a two-dimensional code, and then immediately sends the target to the target. The user displays the question to be set so that the target user encrypts the blockchain private key.
- the electronic device may not immediately Displaying the question to be set to the target user may be displaying the question to be set to the target user after receiving the setting question instruction triggered by the target user.
- the method may further include:
- setup question instruction triggered by a target user, where the setup question instruction is used to: instruct the display of a question to be set.
- an embodiment of the present application provides a device for obtaining a blockchain private key.
- the device may include:
- the first obtaining module 310 is configured to obtain an obtaining request for obtaining a blockchain private key corresponding to a target user, wherein the obtaining request includes: a user identifier of the target user;
- a first determining module 320 configured to determine a target question and a target answer corresponding to the target question based on the user identification of the target user;
- a second obtaining module 330 configured to obtain the answer to be verified corresponding to the target question
- a judging module 340 configured to judge whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question
- the obtaining display module 350 is configured to obtain a blockchain private key when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and display the blockchain private key to the target user.
- an acquisition request for obtaining a blockchain private key corresponding to a target user includes: a user identification of the target user; and based on the user identification, determining a target question and a target answer corresponding to the target question; Obtain the answer to be verified corresponding to the target question; determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, obtain the blockchain Private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is a user-related problem. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- the first obtaining module 310 is specifically configured to:
- the target two-dimensional code is a two-dimensional code generated by encoding the blockchain private key.
- the apparatus further includes:
- a third obtaining module configured to obtain the encrypted private key of the blockchain when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question before obtaining the private key of the blockchain;
- a fourth obtaining module configured to obtain a target key, where the target key is a key used to decrypt the encrypted private key of the blockchain;
- the encrypted private key of the blockchain is decrypted using the target key to obtain the private key of the blockchain, and the private key of the blockchain is displayed to the target user.
- the target problem is the first number
- the device may also include:
- a detection module configured to detect a device environment and obtain a detection result before judging whether a target answer corresponding to a target question and a target answer corresponding to a target question match.
- the judging module 340 is specifically used for
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question and the target answer corresponding to the target question are determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the apparatus may further include:
- a display module for displaying a question to be set before determining a target question and a target answer corresponding to the target question based on the user identification of the target user;
- a second determining module configured to determine, based on the selection instruction of the target user, the to-be-set question selected by the target user from the to-be-set questions as the target question;
- a fifth obtaining module configured to obtain a target answer set for the target question
- the recording module is configured to record the target question and the target answer corresponding to the target question for the user identification of the target user.
- the apparatus may further include:
- the receiving module is configured to receive a setting question instruction triggered by a target user before displaying the question to be set, wherein the setting question instruction is used to instruct the question to be set to be displayed.
- an embodiment of the present application further provides an electronic device.
- the electronic device includes a processor 410, a communication interface 420, a memory 430, and a communication bus 440.
- the processor 410 and the communication interface 420 The memory 430 completes communication with each other through the communication bus 440,
- a memory 430 configured to store a computer program
- the processor 410 is configured to, when executing a computer program stored on the memory 430, implement the steps of the method for obtaining a blockchain private key provided in any one of the embodiments of the present application:
- an acquisition request for obtaining a blockchain private key corresponding to a target user includes: a user identification of the target user; and based on the user identification, determining a target question and a target answer corresponding to the target question; Obtain the answer to be verified corresponding to the target question; determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, obtain the blockchain Private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is a user-related problem. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- the step of obtaining an acquisition request for obtaining a blockchain private key corresponding to a target user includes:
- the target two-dimensional code is a two-dimensional code generated by encoding the blockchain private key.
- the method before the step of obtaining the blockchain private key, the method further includes:
- target key is: a key used to decrypt the encrypted private key of the blockchain;
- the steps to obtain a blockchain private key include:
- the target problem is the first number
- the method further includes:
- the step of judging whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question includes:
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question and the target answer corresponding to the target question are determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the method before the step of determining the target question and the target answer corresponding to the target question based on the user identification of the target user, the method further includes:
- the to-be-set question selected by the target user is determined from the to-be-set questions as the target question;
- For the user identification of the target user record the target question and the target answer corresponding to the target question.
- the method before showing the steps to be set, the method further includes:
- setup question instruction triggered by a target user, where the setup question instruction is used to: instruct the display of a question to be set.
- the embodiments of the present application further provide a computer program product that, when running on an electronic device, causes the electronic device to execute: any one of the method steps for obtaining a blockchain private key described above.
- an acquisition request for obtaining a blockchain private key corresponding to a target user includes: a user identification of the target user; and based on the user identification, determining a target question and a target answer corresponding to the target question; Obtain the answer to be verified corresponding to the target question; determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, obtain the blockchain Private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is a user-related problem. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- the communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the communication bus can be divided into an address bus, a data bus, a control bus, and the like.
- the figure only uses a thick line to represent, but it does not mean that there is only one bus or one type of bus.
- the communication interface is used for communication between the aforementioned electronic device and other devices.
- the memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
- NVM non-Volatile Memory
- the memory may also be at least one storage device located far from the foregoing processor.
- the aforementioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc .; it may also be a digital signal processor (Digital Signal Processing, DSP), special integration Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
- CPU central processing unit
- NP network processor
- DSP Digital Signal Processing
- ASIC Application Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- an embodiment of the present application provides a computer-readable storage medium.
- a computer program is stored in the computer-readable storage medium.
- the computer program is executed by a processor, any one of the foregoing provided by the embodiments of the present application is implemented. Steps to obtain the private key of the blockchain:
- an acquisition request for obtaining a blockchain private key corresponding to a target user includes: a user identification of the target user; and based on the user identification, determining a target question and a target answer corresponding to the target question; Obtain the answer to be verified corresponding to the target question; determine whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, obtain the blockchain Private key and show the blockchain private key to the target user.
- a question can be set so that when a user obtains the corresponding private key of the blockchain, the corresponding private key of the blockchain will be displayed to the user after answering the correct question to ensure the corresponding area of the user.
- Blockchain private key security This problem is a user-related problem. It has stronger privacy, the privacy of the blockchain private key corresponding to the user is better, and the security of the blockchain private key corresponding to the user is higher.
- the step of obtaining an acquisition request for obtaining a blockchain private key corresponding to a target user includes:
- the target two-dimensional code is a two-dimensional code generated by encoding the blockchain private key.
- the method before the step of obtaining the blockchain private key, the method further includes:
- target key is: a key used to decrypt the encrypted private key of the blockchain;
- the steps to obtain a blockchain private key include:
- the target problem is the first number
- the method further includes:
- the step of judging whether the target answer corresponding to the target question matches the answer to be verified corresponding to the target question includes:
- the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, wherein when the detection result is the first detection result, and it is determined that there are at least a second number of target answers corresponding to the target question and the target question When the corresponding answers to be verified are the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question; when the detection result is the second detection result, and the target answer corresponding to each target question and the target answer corresponding to the target question are determined When the verification answers are all the same, it is determined that the target answer corresponding to the target question matches the answer to be verified corresponding to the target question, and the second number is less than the first number.
- the method before the step of determining the target question and the target answer corresponding to the target question based on the user identification of the target user, the method further includes:
- the to-be-selected question selected by the target user is determined from the to-be-set questions as the target question;
- For the user identification of the target user record the target question and the target answer corresponding to the target question.
- the method before showing the steps to be set, the method further includes:
- setup question instruction triggered by a target user, where the setup question instruction is used to: instruct the display of a question to be set.
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Lock And Its Accessories (AREA)
Abstract
一种区块链私钥的获取方法、装置及电子设备,方法包括:获得用于获取目标用户对应的区块链私钥的获取请求(S101),其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案(S102);获得目标问题对应的待验证答案(S103);判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配(S104);当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥(S105)。上述方法可以保证区块链私钥的安全性。
Description
本申请要求于2018年9月27日提交中国专利局、申请号为201811133232.9、发明名称为“一种区块链私钥的获取方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及区块链技术领域,特别是涉及一种区块链私钥的获取方法、装置及电子设备。
在区块链技术领域中,区块链私钥是用户获得对虚拟钱包中的资产,例如比特币的支配权的重要凭证。谁拥有区块链私钥,就拥有该区块链私钥对应的虚拟钱包所管理的资产的支配权。可见,对于保证虚拟钱包中资产的安全性来说,保证区块链私钥的安全,即保证区块链私钥不易被窃取至关重要。
那么,如何提供一种区块链私钥的安全获取方法成为亟待解决的问题。
发明内容
本申请实施例的目的在于提供一种区块链私钥的获取方法、装置及电子设备,以保证区块链私钥的安全性。具体技术方案如下:
一方面,本申请实施例提供了一种区块链私钥的获取方法,方法包括:
获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;
基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
获得目标问题对应的待验证答案;
判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
可选地,获得用于获取目标用户对应的区块链私钥的获取请求的步骤,包括:
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维 码。
可选地,在获得区块链私钥的步骤之前,方法还包括:
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得区块链私钥的步骤,包括:
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥。
可选地,目标问题为第一数量个;
在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤之前,方法还包括:
检测设备环境,获得检测结果;
判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤,包括:
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
可选地,在基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案的步骤之前,方法还包括:
展示待设置问题;
基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题;
获得针对目标问题设置的目标答案;
针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
可选地,在展示待设置问题的步骤之前,方法还包括:
接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
另一方面,本申请实施例提供了一种区块链私钥的获取装置,装置包括:
第一获得模块,用于获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;
第一确定模块,用于基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
第二获得模块,用于获得目标问题对应的待验证答案;
判断模块,用于判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
获得展示模块,用于当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
可选地,第一获得模块,具体用于
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维码。
可选地,装置还包括:
第三获得模块,用于在获得区块链私钥之前,当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
第四获得模块,用于获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得展示模块,具体用于
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥,并向目标用户展示区块链私钥。
可选地,目标问题为第一数量个;
装置还包括:
检测模块,用于在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配之前,检测设备环境,获得检测结果;
判断模块,具体用于
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
可选地,装置还包括:
展示模块,用于在基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案之前,展示待设置问题;
第二确定模块,用于基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题;
第五获得模块,用于获得针对目标问题设置的目标答案;
记录模块,用于针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
可选地,装置还包括:
接收模块,用于在展示待设置问题之前,接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
另一方面,本申请实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的计算机程序时,实现本申请实施例所提供的任一的区块链私钥的获取方法步骤。
另一方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现本申请实施例所提供的任一的区块链私钥的获取方法步骤。
另一方面,本申请实施例还提供了一种计算机程序产品,该计算机程序产品用于在运行时实现本申请实施例所提供的任一的区块链私钥的获取方法 步骤。
本申请实施例提供的技术方案中,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进而用户对应的区块链私钥的安全性更高。当然,实施本申请的任一产品或方法必不一定需要同时达到以上的所有优点。
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种区块链私钥的获取方法的流程示意图;
图2为本申请实施例提供的一种区块链私钥的获取方法的另一流程示意图;
图3为本申请实施例提供的一种区块链私钥的获取装置的结构示意图;
图4为本申请实施例提供的一种电子设备的结构示意图。
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供了一种区块链私钥的获取方法、装置及电子设备,以 保证区块链私钥的安全性。
如图1所示,本申请实施例提供了一种区块链私钥的获取方法,可以包括如下步骤:
S101:获得用于获取目标用户对应的区块链私钥的获取请求;
其中,获取请求包括:目标用户的用户标识;
可以理解的是,本申请实施例提供的一种区块链私钥的获取方法,可以应用于任一类型的电子设备中,该电子设备可以是电脑或手机等终端设备,也可以是由电脑或手机等设备搭建的服务器,这都是可以的。
在一种实现方式中,该电子设备为终端设备时,该电子设备安装有区块链钱包应用。该区块链钱包应用中可以设置有用于获取目标用户对应的区块链私钥的功能按键,目标用户可以通过对该功能按键执行预设的特定操作,而触发该用于获取目标用户对应的区块链私钥的获取请求,以使得电子设备获得该用于获取目标用户对应的区块链私钥的获取请求。
在另一种实现方式中,该电子设备为服务器时,该电子设备可以与安装有区块链钱包应用的终端设备进行通信连接。终端设备所安装的区块链钱包应用中可以设置有用于获取目标用户对应的区块链私钥的功能按键,目标用户可以通过对该功能按键执行预设的特定操作,而触发该用于获取目标用户对应的区块链私钥的获取请求,终端设备将目标用户触发的该用于获取目标用户对应的区块链私钥的获取请求发送至电子设备,以使得该电子设备获得该用于获取目标用户对应的区块链私钥的获取请求。
其中,该区块链钱包应用为:用于管理区块链密钥、钱包地址,跟踪余额和创建交易的应用软件。
本申请实施例中,该获取请求所包括的目标用户的用户标识,可以是用户的账号以及钱包地址等可以唯一标识该目标用户在区块链中的身份的信息。该用户可以是任一使用区块链钱包应用的用户。
S102:基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
电子设备本地或所连接的存储设备中可以预存有每一用户标识、问题以及问题对应的答案的对应关系。电子设备获得目标用户的用户标识之后,可 以将该目标用户的用户标识,与上述对应关系进行匹配,以确定出与该目标用户的用户标识对应的问题,以及该问题的答案,分别作为目标问题以及目标问题对应的目标答案。其中,该目标问题可以为至少一个。
S103:获得目标问题对应的待验证答案;
在一种实现方式中,当该电子设备为终端设备时,电子设备确定出目标问题以及目标问题对应的目标答案之后,可以将通过该电子设备所连接的显示器,向目标用户展示该目标问题。进而,目标用户可以根据该目标问题,输入每一目标问题的答案,电子设备获得目标用户针对每一目标问题输入的答案,作为目标问题对应的待验证答案。
在另一种实现方式中,当该电子设备为服务器时,电子设备确定出目标问题以及目标问题对应的目标答案之后,将所确定出的目标问题以及目标问题对应的目标答案,发送至目标用户所持有的终端设备,即发送用于获取目标用户对应的区块链私钥的获取请求的终端设备。终端设备接收并通过所连接的显示器向目标用户展示该目标问题。进而,目标用户可以根据该目标问题,输入每一目标问题的答案,终端设备将目标用户所输入的每一目标问题的答案,发送至电子设备,以使电子设备获得目标用户针对每一目标问题输入的答案,作为目标问题对应的待验证答案。
S104:判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
S105:当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
电子设备获得目标问题对应的待验证答案之后,将目标问题对应的目标答案与目标问题对应的待验证答案进行比对,判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配。当目标问题为多个时,可以是将每一目标问题对应的目标答案与该目标问题对应的待验证答案进行比对,判断每一目标问题对应的目标答案与该目标问题对应的待验证答案是否匹配。当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
在一种情况中,当该电子设备为终端设备时,可以是电子设备在获得区 块链私钥之后,通过所连接的显示器显示该区块链私钥,以向目标用户展示该区块链私钥。在另一种情况中,当该电子设备为服务器时,可以是电子设备在获得区块链私钥之后,将该区块链私钥发送至目标用户所持有的终端设备,该终端设备通过所连接的显示器显示该区块链私钥,以向目标用户展示该区块链私钥。
在一种实现方式中,当判断目标问题对应的目标答案和目标问题对应的待验证答案不匹配时,可以输出提示信息,该提示信息可以用于:提示目标用户待验证答案不准确,并提示目标用户可以重新输入待验证答案。在一种情况中,可以设置预设次数,该预设次数为表征允许目标用户输入错误的目标答案对应的待验证答案的次数,其中,该错误的目标答案对应的待验证答案为与目标问题对应的目标答案不匹配的答案;当目标用户输入的错误的目标答案对应的待验证答案的次数超过上述预设次数时,可以锁定该目标用户。其中,锁定该目标用户可以是:提示该目标用户,在预设时长内不允许再次输入待验证答案,或者,可以是不允许该目标用户再次输入待验证答案。
在另一种情况中,为了避免目标用户忘记目标问题对应的目标答案,而出现目标用户无法获得其对应的区块链私钥的情况,本申请实施例中,电子设备还可以接收目标用户触发的用于获取目标问题对应的目标答案的指令,在接收到该指令时,可以对该目标用户进行身份验证,在验证通过之后,可以允许目标用户重新设置问题,并设置问题对应的答案;或者可以是允许目标用户获得目标问题对应的目标答案。
应用本申请实施例,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进 而用户对应的区块链私钥的安全性更高。
在一种实现方式中,获得用于获取目标用户对应的区块链私钥的获取请求的步骤,可以包括:
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维码。
电子设备本地或所连接的存储设备中可以存储有加密后的二维码,当针对该二维码解密成功之后,才可以针对该二维码进行解码,以获得目标用户的区块链私钥。本申请实施例中,可以通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求。
在一种情况中,当该电子设备为终端设备时,电子设备可以通过所连接的显示器显示上述目标二维码。此时,目标用户可以长按该目标二维码,以触发扫描功能,使得电子设备可以扫描该目标二维码,以获得用于获取目标用户对应的区块链私钥的获取请求,进而执行后续的区块链私钥的获取流程。
在另一种情况中,当该电子设备为服务器时,目标用户所持有的终端设备可以通过所连接的显示器显示上述目标二维码。此时,目标用户可以长按该目标二维码,以触发扫描功能,使得终端设备可以扫描上述目标二维码,进而触发该用于获取目标用户对应的区块链私钥的获取请求。终端设备将上述用于获取目标用户对应的区块链私钥的获取请求发送至电子设备,以使得电子设备获得用于获取目标用户对应的区块链私钥的获取请求,进而执行后续的区块链私钥的获取流程。
可以理解的是,上述目标二维码可以是利用预设的二维码生成算法生成的二维码,该目标二维码可以为任意类型的二维码,该预设的二维码生成算法可以是目前任一类型的二维码生成算法。
在一种实现方式中,在获得区块链私钥的步骤之前,方法还可以包括:
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得区块链私钥的步骤,可以包括:
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥。
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,可以表征该目标用户具有获取区块链私钥的权限,电子设备可以继续获得加密后的区块链私钥以及用于对加密后的区块链私钥进行解密的目标密钥,进而利用目标密钥对加密后的区块链私钥进行解密,以得到区块链私钥。后续的,电子设备可以将解密得到的区块链私钥展示给目标用户。当电子设备为服务器时,电子设备将解密得到的区块链私钥发送至目标用户所持有的终端设备,终端设备通过所连接的显示器向目标用户展示区块链私钥。当电子设备为终端设备时,该电子设备通过所连接的显示器向目标用户展示区块链私钥。
可以理解的是,区块连钱包应用所在设备的安全性,在一定程度上,影响着区块链私钥的安全性。当区块连钱包应用所在设备的安全性越低时,区块链私钥的安全性越低,即区块链私钥被窃取(丢失)的可能性越大。为了保证区块链私钥的安全性,可以增加考虑区块连钱包应用所在设备的安全性。在一种实现方式中,该目标问题为第一数量个;
在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤之前,方法还可以包括:
检测设备环境,获得检测结果;
判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤,可以包括:
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
在一种实现方式中,当电子设备为终端设备时,上述检测设备环境,获 得检测结果,可以是检测电子设备自身的设备环境,获得检测结果。当电子设备为服务器时,上述检测设备环境,获得检测结果,可以是检测目标用户所持有的终端设备的设备环境,获得目标用户所持有的终端设备的检测结果。其中,上述检测设备环境可以包括:检测设备的网络环境是否安全,设备是否安装有恶意应用程序和/或设备的系统是否存在漏洞等等,进而获得检测结果。本申请实施例并不对检测设备环境的检测角度进行限定,凡是可以影响设备安全的检测角度均可以作为本申请实施例中检测设备环境的一种检测角度。
在一种情况中,上述检测结果可以包括针对每一检测角度所检测出的结果,也可以包括:针对所获得的每一检测角度所检测出的结果,所确定的一总结结果,这都是可以的。例如:当上述检测设备环境包括:检测设备的网络环境是否安全,设备是否安装有恶意应用程序和设备的系统是否存在漏洞时,上述检测结果可以包括:检测设备的网络环境是否安全的检测结果,如:设备的网络环境安全;设备是否安装有恶意应用程序的检测结果,如:未安装有恶意应用程序;设备的系统是否存在漏洞的检测结果,如:设备的系统存在漏洞。也可以包括:设备的设备环境为安全。
后续的,电子设备可以基于所获得的检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配。可以是:当所获得的检测结果表征设备环境为安全时,可以是允许所获得的目标问题对应的待验证问题中存在部分目标问题对应的待验证问题,与目标问题对应的目标答案相同,即判定目标问题对应的目标答案和目标问题对应的待验证答案匹配。当所获得的检测结果表征设备环境为不安全时,可以是允许所获得的目标问题对应的待验证问题中所有目标问题对应的待验证问题,均与目标问题对应的目标答案相同,即判定目标问题对应的目标答案和目标问题对应的待验证答案匹配。
具体的,可以是:目标问题为第一数量个,当检测结果为第一检测结果,即当检测结果表征设备环境为安全时,确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,即可判定目标问题对应的目标答案和目标问题对应的待验证答案匹配。当检测结果为第二检测结果, 即当检测结果表征设备环境为不安全时,确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,即可判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,以在设备环境为不安全时,更好的保证目标用户的区块链私钥的安全性。
在一种实现方式中,如图2所示,方法可以包括如下步骤:
S201:展示待设置问题;
S202:基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题;
S203:针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案;
S204:获得用于获取目标用户对应的区块链私钥的获取请求;
其中,获取请求包括:目标用户的用户标识;
S205:基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
S206:获得目标问题对应的待验证答案;
S207:判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
S208:当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
其中,S204与图1所示的S101相同,S205与图1所示的S102相同,S206与图1所示的S103相同,S207与图1所示的S104相同,S208与图1所示的S105相同。
本申请实施例中,为了更好的保证每一用户对应的区块链私钥的安全性,每一用户对应的问题可以均是由用户自己选择,并且问题对应的答案均是由自己设置的。本实现方式中,电子设备可以首先向目标用户展示待设置问题,进而基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题,获得目标用户针对目标问题设置的目标答案,进而,针对目标用户的用户标识,记录目标问题和目标问题对应的目标答案。
在一种情况中,当电子设备为终端设备时,上述展示待设置问题,可以 是:通过电子设备所连接的显示器展示待设置问题,以使目标用户可以从所展示的待设置问题中选择至少一个问题,作为目标问题。目标用户可以触发选择指令,该触发指令可以携带有目标用户所选择的每一待设置问题的标识,使得电子设备在获得该选择指令时,可以基于该选择指令所携带的目标用户所选择的每一待设置问题的标识,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题。进而目标用户可以针对每一目标问题,输入相应的目标答案;电子设备获得针对目标问题设置的目标答案,并针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
在另一种情况中,当电子设备为服务器时,上述展示待设置问题,可以是:将待设置问题发送至目标用户所持有的终端设备,终端设备通过所连接的显示器展示待设置问题,以使目标用户可以从所展示的待设置问题中选择至少一个问题,作为目标问题。目标用户可以触发选择指令,该触发指令可以携带有目标用户所选择的每一待设置问题的标识,使得终端设备在获得该选择指令之后,将该选择指令发送至电子设备,电子设备获得该选择指令时,可以基于该选择指令所携带的目标用户所选择的每一待设置问题的标识,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题。进而目标用户通过其所持有的终端设备输入每一目标问题的目标答案,该终端设备获得目标用户输入的每一目标问题的目标答案,并发送至电子设备。电子设备获得终端设备发送的每一目标问题的目标答案,并针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
后续的,电子设备在获得用于获取目标用户对应的区块链私钥的获取请求之后,可以继续执行后续的区块链私钥的获取流程。
在一种实现方式中,当目标用户首次基于区块链钱包应用创建完成自身的钱包账户后,该电子设备可以针对目标用户生成该目标用户对应的区块链私钥,也可以称为该目标用户的钱包账户对应的区块链私钥。此时,当该电子设备针对目标用户生成该目标用户对应的区块链私钥后,电子设备可以立即向目标用户展示待设置问题,以使得目标用户对该区块链私钥进行加密。或者,可以是:当该电子设备可以针对目标用户生成该目标用户对应的区块链私钥后,该电子设备对该区块链私钥进行编码,以生成二维码,进而,立 即向目标用户展示待设置问题,以使得目标用户对该区块链私钥进行加密。
在一种实现方式中,该电子设备可以针对目标用户生成该目标用户对应的区块链私钥后,或当电子设备将区块链私钥进行编码,以生成二维码后,可以不立即向目标用户展示待设置问题,可以是在接收到目标用户触发的设置问题指令之后,向目标用户展示待设置问题。具体的,在展示待设置问题的步骤之前,方法还可以包括:
接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
相应于上述方法实施例,本申请实施例提供了一种区块链私钥的获取装置,如图3所示,装置可以包括:
第一获得模块310,用于获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;
第一确定模块320,用于基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
第二获得模块330,用于获得目标问题对应的待验证答案;
判断模块340,用于判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
获得展示模块350,用于当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
应用本申请实施例,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进而用户对应的区块链私钥的安全性更高。
在一种实现方式中,第一获得模块310,具体用于
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维码。
在一种实现方式中,装置还包括:
第三获得模块,用于在获得区块链私钥之前,当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
第四获得模块,用于获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得展示模块350,具体用于
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥,并向目标用户展示区块链私钥。
在一种实现方式中,目标问题为第一数量个;
装置还可以包括:
检测模块,用于在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配之前,检测设备环境,获得检测结果;
判断模块340,具体用于
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
在一种实现方式中,装置还可以包括:
展示模块,用于在基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案之前,展示待设置问题;
第二确定模块,用于基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题;
第五获得模块,用于获得针对目标问题设置的目标答案;
记录模块,用于针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
在一种实现方式中,装置还可以包括:
接收模块,用于在展示待设置问题之前,接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
相应于上述方法实施例,本申请实施例还提供了一种电子设备,如图4所示,包括处理器410、通信接口420、存储器430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信,
存储器430,用于存放计算机程序;
处理器410,用于执行存储器430上所存放的计算机程序时,实现本申请实施例所提供的上述任一的区块链私钥的获取方法步骤:
获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;
基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
获得目标问题对应的待验证答案;
判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
应用本申请实施例,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进而用户对应的区块链私钥的安全性更高。
在一种实现方式中,获得用于获取目标用户对应的区块链私钥的获取请求的步骤,包括:
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维码。
在一种实现方式中,在获得区块链私钥的步骤之前,方法还包括:
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得区块链私钥的步骤,包括:
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥。
在一种实现方式中,目标问题为第一数量个;
在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤之前,还包括:
检测设备环境,获得检测结果;
判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤,包括:
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
在一种实现方式中,在基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案的步骤之前,还包括:
展示待设置问题;
基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设 置问题,作为目标问题;
获得针对目标问题设置的目标答案;
针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
在一种实现方式中,在展示待设置问题的步骤之前,还包括:
接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
相应于上述方法实施例,本申请实施例还提供了一种计算机程序产品,当其在电子设备上运行时,使得电子设备执行:上述任一的区块链私钥的获取方法步骤。
应用本申请实施例,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进而用户对应的区块链私钥的安全性更高。
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口用于上述电子设备与其他设备之间的通信。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存 储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
相应于上述方法实施例,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现本申请实施例所提供的上述任一的区块链私钥的获取方法步骤:
获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;
基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案;
获得目标问题对应的待验证答案;
判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。
应用本申请实施例,获得用于获取目标用户对应的区块链私钥的获取请求,其中,获取请求包括:目标用户的用户标识;基于用户标识,确定目标问题以及目标问题对应的目标答案;获得目标问题对应的待验证答案;判断目标问题对应的目标答案与目标问题对应的待验证答案是否匹配;当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得区块链私钥,并向目标用户展示区块链私钥。本申请实施例中,可以通过设置问题,使得用户获得其对应的区块链私钥时,需要答对问题的答案后,才会向用户展示其对应的区块链私钥,保证用户对应的区块链私钥的安全性。该问题为与用户相关的问题,私密性更强,用户对应的区块链私钥的保密性更好,进而用户对应的区块链私钥的安全性更高。
在一种实现方式中,获得用于获取目标用户对应的区块链私钥的获取请求的步骤,包括:
通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,目标二维码为:对区块链私钥进行编码后而生成的二维码。
在一种实现方式中,在获得区块链私钥的步骤之前,方法还包括:
当判断目标问题对应的目标答案和目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;
获得目标密钥,其中,目标密钥为:用于对加密后的区块链私钥进行解密的密钥;
获得区块链私钥的步骤,包括:
利用目标密钥对加密后的区块链私钥进行解密,得到区块链私钥。
在一种实现方式中,目标问题为第一数量个;
在判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤之前,还包括:
检测设备环境,获得检测结果;
判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配的步骤,包括:
基于检测结果,判断目标问题对应的目标答案和目标问题对应的待验证答案是否匹配,其中,当检测结果为第一检测结果,且确定至少存在第二数量个目标问题对应的目标答案与目标问题对应的待验证答案相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配;当检测结果为第二检测结果,且确定每一目标问题对应的目标答案与目标问题对应的待验证答案均相同时,判定目标问题对应的目标答案和目标问题对应的待验证答案匹配,第二数量小于第一数量。
在一种实现方式中,在基于目标用户的用户标识,确定目标问题以及目标问题对应的目标答案的步骤之前,还包括:
展示待设置问题;
基于目标用户的选择指令,从待设置问题中确定出目标用户选中的待设置问题,作为目标问题;
获得针对目标问题设置的目标答案;
针对目标用户的用户标识,记录目标问题以及目标问题对应的目标答案。
在一种实现方式中,在展示待设置问题的步骤之前,还包括:
接收目标用户触发的设置问题指令,其中,设置问题指令用于:指示展示待设置问题。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质和计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。
Claims (15)
- 一种区块链私钥的获取方法,其特征在于,所述方法包括:获得用于获取目标用户对应的区块链私钥的获取请求,其中,所述获取请求包括:所述目标用户的用户标识;基于所述目标用户的用户标识,确定目标问题以及所述目标问题对应的目标答案;获得所述目标问题对应的待验证答案;判断所述目标问题对应的目标答案与所述目标问题对应的待验证答案是否匹配;当判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配时,获得所述区块链私钥,并向所述目标用户展示所述区块链私钥。
- 根据权利要求1所述的方法,其特征在于,所述获得用于获取目标用户对应的区块链私钥的获取请求的步骤,包括:通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,所述目标二维码为:对所述区块链私钥进行编码后而生成的二维码。
- 根据权利要求2所述的方法,其特征在于,在所述获得所述区块链私钥的步骤之前,所述方法还包括:当判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;获得目标密钥,其中,所述目标密钥为:用于对加密后的所述区块链私钥进行解密的密钥;所述获得所述区块链私钥的步骤,包括:利用所述目标密钥对所述加密后的区块链私钥进行解密,得到所述区块链私钥。
- 根据权利要求1所述的方法,其特征在于,所述目标问题为第一数量 个;在所述判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案是否匹配的步骤之前,所述方法还包括:检测设备环境,获得检测结果;所述判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案是否匹配的步骤,包括:基于所述检测结果,判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案是否匹配,其中,当所述检测结果为第一检测结果,且确定至少存在第二数量个所述目标问题对应的目标答案与所述目标问题对应的待验证答案相同时,判定所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配;当所述检测结果为第二检测结果,且确定每一所述目标问题对应的目标答案与所述目标问题对应的待验证答案均相同时,判定所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配,所述第二数量小于所述第一数量。
- 根据权利要求1-4任一项所述的方法,其特征在于,在所述基于所述目标用户的用户标识,确定目标问题以及所述目标问题对应的目标答案的步骤之前,所述方法还包括:展示待设置问题;基于所述目标用户的选择指令,从所述待设置问题中确定出所述目标用户选中的待设置问题,作为目标问题;获得针对所述目标问题设置的目标答案;针对所述目标用户的用户标识,记录所述目标问题以及所述目标问题对应的目标答案。
- 根据权利要求5所述的方法,其特征在于,在所述展示待设置问题的步骤之前,所述方法还包括:接收所述目标用户触发的设置问题指令,其中,所述设置问题指令用于:指示展示待设置问题。
- 一种区块链私钥的获取装置,其特征在于,所述装置包括:第一获得模块,用于获得用于获取目标用户对应的区块链私钥的获取请求,其中,所述获取请求包括:所述目标用户的用户标识;第一确定模块,用于基于所述目标用户的用户标识,确定目标问题以及所述目标问题对应的目标答案;第二获得模块,用于获得所述目标问题对应的待验证答案;判断模块,用于判断所述目标问题对应的目标答案与所述目标问题对应的待验证答案是否匹配;获得展示模块,用于当判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配时,获得所述区块链私钥,并向所述目标用户展示所述区块链私钥。
- 根据权利要求7所述的装置,其特征在于,所述第一获得模块,具体用于通过扫描目标二维码的方式,获得用于获取目标用户对应的区块链私钥的获取请求,其中,所述目标二维码为:对所述区块链私钥进行编码后而生成的二维码。
- 根据权利要求8所述的装置,其特征在于,所述装置还包括:第三获得模块,用于在所述获得所述区块链私钥之前,当判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配时,获得加密后的区块链私钥;第四获得模块,用于获得目标密钥,其中,所述目标密钥为:用于对加密后的所述区块链私钥进行解密的密钥;所述获得展示模块,具体用于利用所述目标密钥对所述加密后的区块链私钥进行解密,得到所述区块链私钥,并向所述目标用户展示所述区块链私钥。
- 根据权利要求7所述的装置,其特征在于,所述目标问题为第一数量 个;所述装置还包括:检测模块,用于在所述判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案是否匹配之前,检测设备环境,获得检测结果;所述判断模块,具体用于基于所述检测结果,判断所述目标问题对应的目标答案和所述目标问题对应的待验证答案是否匹配,其中,当所述检测结果为第一检测结果,且确定至少存在第二数量个所述目标问题对应的目标答案与所述目标问题对应的待验证答案相同时,判定所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配;当所述检测结果为第二检测结果,且确定每一所述目标问题对应的目标答案与所述目标问题对应的待验证答案均相同时,判定所述目标问题对应的目标答案和所述目标问题对应的待验证答案匹配,所述第二数量小于所述第一数量。
- 根据权利要求7-10任一项所述的装置,其特征在于,所述装置还包括:展示模块,用于在所述基于所述目标用户的用户标识,确定目标问题以及所述目标问题对应的目标答案之前,展示待设置问题;第二确定模块,用于基于所述目标用户的选择指令,从所述待设置问题中确定出所述目标用户选中的待设置问题,作为目标问题;第五获得模块,用于获得针对所述目标问题设置的目标答案;记录模块,用于针对所述目标用户的用户标识,记录所述目标问题以及所述目标问题对应的目标答案。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:接收模块,用于在所述展示待设置问题之前,接收所述目标用户触发的设置问题指令,其中,所述设置问题指令用于:指示展示待设置问题。
- 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的计算机程序时,实现权利要求1-6任一所述的区块链私钥的获取方法步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-6任一所述的区块链私钥的获取方法步骤。
- 一种计算机程序产品,所述计算机程序产品用于在运行时执行权利要求1-6中任一项所述的区块链私钥的获取方法步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811133232.9 | 2018-09-27 | ||
CN201811133232.9A CN109272317A (zh) | 2018-09-27 | 2018-09-27 | 一种区块链私钥的获取方法、装置及电子设备 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020062974A1 true WO2020062974A1 (zh) | 2020-04-02 |
Family
ID=65198644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/092971 WO2020062974A1 (zh) | 2018-09-27 | 2019-06-26 | 一种区块链私钥的获取方法、装置及电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109272317A (zh) |
WO (1) | WO2020062974A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116112167A (zh) * | 2023-04-13 | 2023-05-12 | 恒生电子股份有限公司 | 密钥管理系统、方法及装置 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109272317A (zh) * | 2018-09-27 | 2019-01-25 | 北京金山安全软件有限公司 | 一种区块链私钥的获取方法、装置及电子设备 |
CN110688410B (zh) * | 2019-09-23 | 2021-03-19 | 创新先进技术有限公司 | 一种基于区块链的提议处理方法、装置及电子设备 |
CN117981272A (zh) * | 2021-09-07 | 2024-05-03 | 洪沛桦 | 去中心化零信任身份核实认证系统及方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017044554A1 (en) * | 2015-09-11 | 2017-03-16 | Aware, Inc. | Biometric verification of a blockchain database transaction contributor |
CN106548345A (zh) * | 2016-12-07 | 2017-03-29 | 北京信任度科技有限公司 | 基于密钥分割实现区块链私钥保护的方法及系统 |
CN108235805A (zh) * | 2017-12-29 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | 账户统一方法、装置及存储介质 |
CN108418680A (zh) * | 2017-09-05 | 2018-08-17 | 矩阵元技术(深圳)有限公司 | 一种基于多方安全计算技术的区块链密钥恢复方法、介质 |
CN109272317A (zh) * | 2018-09-27 | 2019-01-25 | 北京金山安全软件有限公司 | 一种区块链私钥的获取方法、装置及电子设备 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104580264B (zh) * | 2015-02-13 | 2019-04-26 | 人民网股份有限公司 | 登录方法、登录装置以及登录和注册系统 |
CN106570710A (zh) * | 2016-10-27 | 2017-04-19 | 纸飞机(北京)科技有限公司 | 一种商品防伪方法及装置 |
CN106686008B (zh) * | 2017-03-03 | 2019-01-11 | 腾讯科技(深圳)有限公司 | 信息存储方法及装置 |
-
2018
- 2018-09-27 CN CN201811133232.9A patent/CN109272317A/zh active Pending
-
2019
- 2019-06-26 WO PCT/CN2019/092971 patent/WO2020062974A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017044554A1 (en) * | 2015-09-11 | 2017-03-16 | Aware, Inc. | Biometric verification of a blockchain database transaction contributor |
CN106548345A (zh) * | 2016-12-07 | 2017-03-29 | 北京信任度科技有限公司 | 基于密钥分割实现区块链私钥保护的方法及系统 |
CN108418680A (zh) * | 2017-09-05 | 2018-08-17 | 矩阵元技术(深圳)有限公司 | 一种基于多方安全计算技术的区块链密钥恢复方法、介质 |
CN108235805A (zh) * | 2017-12-29 | 2018-06-29 | 深圳前海达闼云端智能科技有限公司 | 账户统一方法、装置及存储介质 |
CN109272317A (zh) * | 2018-09-27 | 2019-01-25 | 北京金山安全软件有限公司 | 一种区块链私钥的获取方法、装置及电子设备 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116112167A (zh) * | 2023-04-13 | 2023-05-12 | 恒生电子股份有限公司 | 密钥管理系统、方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
CN109272317A (zh) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102307665B1 (ko) | 신원 인증 | |
WO2020062974A1 (zh) | 一种区块链私钥的获取方法、装置及电子设备 | |
US10313881B2 (en) | System and method of authentication by leveraging mobile devices for expediting user login and registration processes online | |
CN109587162B (zh) | 登录验证方法、装置、终端、密码服务器及存储介质 | |
US10445487B2 (en) | Methods and apparatus for authentication of joint account login | |
US9577999B1 (en) | Enhanced security for registration of authentication devices | |
US9780950B1 (en) | Authentication of PKI credential by use of a one time password and pin | |
WO2017032263A1 (zh) | 身份认证方法及装置 | |
US8656486B2 (en) | Biometric sensor for human presence detection and associated methods | |
US8452980B1 (en) | Defeating real-time trojan login attack with delayed interaction with fraudster | |
WO2019153857A1 (zh) | 一种数字钱包资产保护方法、装置、电子设备及存储介质 | |
TWI512526B (zh) | 帳號密碼重置系統及方法 | |
EP3206329B1 (en) | Security check method, device, terminal and server | |
US20200007334A1 (en) | User authentication using a companion device | |
US20170310487A1 (en) | Method for updating seed data in dynamic token | |
US20180262471A1 (en) | Identity verification and authentication method and system | |
US10333707B1 (en) | Systems and methods for user authentication | |
CN110505185A (zh) | 身份验证方法、设备和系统 | |
CN111783049A (zh) | 一种基于区块链的用户信息处理方法及系统 | |
EP3336734B1 (en) | Fingerprint information secure call method, apparatus, and mobile terminal | |
CN113221095A (zh) | 一种应用程序保护方法、装置、电子设备及存储介质 | |
US11425165B2 (en) | Methods, systems, articles of manufacture and apparatus to reduce spoofing vulnerabilities | |
WO2020062973A1 (zh) | 一种二维码生成方法、装置及电子设备 | |
US9210134B2 (en) | Cryptographic processing method and system using a sensitive data item | |
CN113127818A (zh) | 一种基于区块链的数据授权方法、装置及可读存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19864830 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19864830 Country of ref document: EP Kind code of ref document: A1 |