In the blockchain, all of the user's assets are stored in the blockchain, and the private key is used to prove control over the assets on the chain. Without the private key, you cannot control your assets. So the essence of the wallet is a private key management tool. The user can use the wallet to create a private key, keep the private key, and sign the transaction using the private key.
The essence of creating a wallet by users using Dalong Wallet is that a set of mnemonics is randomly generated. Due to the decentralized nature, Dalong Wallet does not store the privacy information of the user's wallet. Therefore, after generating the mnemonic, the user must keep it. This set of mnemonics can derive the private key of the wallet. The public key can be used to derive the public key of the wallet, and the public key can be used to derive the wallet address.
According to the above description, if we want to retrieve the mnemonic, we need to know the process of generating the mnemonic: first generate a 128-bit random number, plus the check 4 digits of the random number, and get a number of 132 bits. Then, divide each 11 bits, so that there are 12 binary numbers, and then use each number to check the word list defined by BIP39, so that 12 mnemonics are obtained. Then the question comes, is it possible to collide with the mnemonic through brute force?
Let's calculate the number of mnemonics that can be generated. BIP39's mnemonic vocabulary contains a total of 2048 words, and each set of mnemonics has a total of 12 words. According to the formula: n!/( n - r )!, the calculated quantity is 2048!/(2048-12)! = 5.2715379713014884760003093175282 e+39.
You may not have a concept about this number. Let's take an example. The amount of sand on the earth is about 1 followed by 18 zeros. If you can generate one million mnemonics per second, you can generate 1000000*60*60*24*365=3.1536 e+13 mnemonics a year, and you need to traverse all the mnemonics in about 1.6715937e+26 years. Therefore, brute force is impossible to succeed.
Therefore, for the user, if the mnemonic and private keys are all lost, they cannot be retrieved by brute force. Because of the decentralized nature of the Dalong wallet, it is impossible to retrieve it from us. However, if the mnemonic is lost, the private key is still stored and does not affect the use of the wallet.
Comments
0 comments
Please sign in to leave a comment.