区块链钱包地址生成规则是什么,区块链钱包地址生成规则
请查看相关英文文档
『一』 How to get the Bitcoin wallet address? It is not the Bitcoin address but the wallet address!
First of all, you should imagine the concept of a "wallet" in your mind. Your bitcoins are stored in your "wallet". A wallet can contain many, many...many addresses. The form of the address is the form.
Using the Bitcoin address generated in the Bitcoin wallet, you can receive Bitcoins from others, and you can also transfer the Bitcoins in your account to other people's Bitcoin addresses. A Bitcoin address is like a bank card number and has the functions of payment, transfer, and cash withdrawal. However, when transferring money, you can only make a Bitcoin transfer if you know someone else's Bitcoin address.
If we simply compare a Bitcoin wallet to a bank card account, then the Bitcoin wallet address can be regarded as a bank card account number. The difference is that the Bitcoin address does not need to be stored on the network, and it can exist independently of your wallet.
(1) Blockchain wallet address generation rules Extended reading:Bitcoin address is a string of letters and numbers consisting of 26 to 34 digits. It looks like a bunch of garbled characters. To put it bluntly, this is just like your bank card number. Through the blockchain search, you can check all transfer records of each Bitcoin address, which is open and transparent.
Bitcoin wallet address generation: randomly select 256-bit binary numbers to form a private key, and then generate an address through an encryption function. This generation direction is one-way. That is to say, you cannot calculate the private key through decryption method once you know the address. As it cannot be cracked by current human computer computing power, you can safely publish the address online.
Reference link: Bitcoin|Network
『二』How is the Bitcoin address generated?
Bitcoin uses the elliptic curve algorithm to generate public and private keys. , the secp256k1 curve is selected. The generated public key is a 33-byte large number, and the private key is a 32-byte large number. The public key and private key are directly saved in the wallet file wallet.dat. The Bitcoin address we use when receiving and sending Bitcoin is obtained by algorithmic processing of the public key. The specific process is that the public key is first processed by the SHA-256 algorithm to obtain a 32-byte hash result, and then processed by the RIPEMED algorithm. Finally, we get the 20-byte summary result, and then go through the character conversion process to get the address we see. This character conversion process is the same as that of the private key. The step is to first increase the input content (for the public key, it is a 20-byte summary result, and for the private key, it is a 32-byte large number) and increase the version number. After continuous After two SHA-256 algorithms, the first 4 bytes of the last hash result are taken as a check code and attached to the end of the input content, and then Base58 encoded to obtain a string. Qiaomante Blockchain Professional Station Qiao Education Online is a professional blockchain training workstation that engages in blockchain-related training and has been certified by the Ministry of Education.
『三』What is a wallet address
Wallet addresses generally appear in Bitcoin investment transactions. For example, Bitcoin wallet addresses are the most common and are a combination of numbers and letters, like bank card numbers. , represents the Bitcoin account. Users can obtain wallet addresses through different channels, such as exchanges, Bitcoin clients, and online wallets.
Both parties in a Bitcoin transaction need a "Bitcoin wallet" similar to an email address and a "Bitcoin address" similar to an email address. Just like sending and receiving emails, the remitter pays Bitcoin directly to the other party according to the recipient's address through a computer or smartphone.
A Bitcoin address is a string of letters and numbers approximately 33 characters long, always starting with 1 or 3. Bitcoin software can automatically generate addresses. When generating addresses, there is no need to connect to the Internet to exchange information, and it can be done offline. There are so many Bitcoin addresses available.
Characteristics of wallet address
The wallet address randomly selects 256-bit binary numbers to form a private key, and then generates the address through an encryption function. This generation direction is one-way. That is to say, once you know the address, you cannot calculate the private key through decryption.
Using the Bitcoin address generated in the Bitcoin wallet, you can receive Bitcoins from others, and you can also transfer the Bitcoins in your account to other people's Bitcoin addresses. A Bitcoin address is like a bank card number and has the functions of payment, transfer, and cash withdrawal. However, when transferring money, you can only make a Bitcoin transfer if you know someone else's Bitcoin address.
Reference for the above content: Network-Bitcoin
『四』 [Blockchain Course] 3.1—The Concept and Characteristics of Digital Wallets
1. The concept of wallet
A traditional wallet in life is equivalent to a container that can be used to store cash, but for digital currency wallets, it is not used to store digital currencies; and management container (including private key and public key). The digital wallet has an address (similar to your bank card account number) and a private key (similar to your bank card password).
Private key: The user uses the private key to sign the transaction, thereby proving that he has the right to output the transaction. The transaction information is not stored in the wallet, but in the blockchain.
Public key: used to generate addresses and store transactions. Information is generated by the private key through an asymmetric encryption algorithm.
Wallet address: It is a 42-digit hexadecimal hash value string starting with a double letter (representing the currency). The address of ETH is a 42-digit hexadecimal hash value string starting with 0x. For example: If a wallet is compared to a bank card, then the wallet address is the bank card number.
The relationship between the three is simply: the private key generates the public key, and the public key generates the address. In shortIn short, the address is your account, bank card number, and the private key is your account password. So if someone steals your private key, they will definitely have ownership of your account.
2. Characteristics of wallet
Analogy to a bank card, the private key is like our bank card password + bank card account number, and the digital currency address generated based on the public key is like Our bank card account number is used as the transfer address for transactions. Digital currency is stored in the trading market. The bank card of the wallet keeps our address and password information, giving us control over the digital currency corresponding to the address.
3. The value of wallet to blockchain
Encrypted digital currency is a digital currency based on blockchain technology. Digital currency wallets are specially used to manage these Application of assets. The wallet application creates one or more wallet addresses based on cryptographic principles, and each wallet address corresponds to a key pair: a private key and a public key.
The public key is generated by performing certain mathematical operations based on the private key, and corresponds to the private key one-to-one. The public key is mainly used for external transactions. Each transaction must use the private key to sign the transaction record to prove control over the assets in the relevant wallet address.
The private key is the only certificate that can prove control over digital assets. For digital asset wallets, the private key is the most important. The way the private key is generated and stored determines whether the asset is safe or not.
So the purpose of the wallet is to store the private key. As long as you have the private key, it means you have the corresponding token.
However, the current digital currency market has problems such as inconvenient digital management, high transaction and exchange thresholds, insufficient blockchain performance and unreasonable design, high blockchain development costs, difficulty in connecting to reality, and lack of application scenarios. And other issues. To put it simply, tokens developed based on different public chains require their own wallets, so our mobile phones are filled with apps for multiple wallets.
4. Several key words of digital wallet:
1. Wallet name:
The wallet name of the digital currency wallet is when you create the wallet Account name or nickname, each wallet address corresponds to an account name, because usually digital wallets can create multiple wallet addresses. In order to facilitate identification and management, it is necessary to set a name for each wallet address.
2. Password:
When you create a digital currency wallet account, you need to set a password. When you transfer and pay, you need to use this password to confirm; Password confirmation is also required when backing up and exporting the private key or keystore; in addition, if you use keystore to import the wallet, password confirmation is also required, and usingThe password can be reset when the private key is imported.
3. Mnemonic phrase:
When you create a wallet, you will be asked to record a string of mnemonic phrases, usually consisting of multiple (12, 15, 18 , 21 digits) composed of irregular English words without any rules, equivalent to the password of your digital wallet + payment password. You will be prompted to save the mnemonic phrase when creating a wallet. Please be sure to save it. It is recommended to record it in a separate notebook with a pen and keep your notebook.
4. Keystore:
The keystore is a file (json) where the wallet stores the private key. The wallet password is required when using this file. When you choose to export or import keystore, you need to enter a password. This password is the password you originally set for this wallet. This is different from using a private key or mnemonic phrase to import a wallet. Using a private key or mnemonic phrase to import a wallet does not require If you know the original password, you can reset it directly.
『五』In a blockchain-based digital currency like Honesty Coin, what exactly are the private keys, public keys, and addresses?
When many newbies first enter the market, I am confused by the relationship between private keys, public keys, addresses, etc. Some even lost their private keys, and there was a lot of money in the address, but they just couldn't get it out. Today Xiaobai will explain to you the relationship between private keys, public keys, and addresses.
The relationship between the private key, public key and address is:The private key is converted (generated) into a public key, and then converted into an address. If there is Bitcoin or integrity coins on an address, you can Spend the integrity coins above using the private key converted to this address. The generation of public key and address both depends on the private key, so the private key is the most important.
The same is true for mobile wallets, but because the file management method of mobile phones is not as convenient as that of computers. Therefore, generally mobile wallets will provide a function called or similar to "Export Private Key". Through this function, the private key can be exported in various forms.
For example, the Bitcoin mobile wallet can be exported as a QR code, which can be printed or scanned onto paper. When changing your mobile phone, install your Bitcoin wallet and scan this QR code to migrate your Bitcoins. The Bitcoin mobile wallet and the Integrity Coin mobile wallet can be exported as a clear text string and printed on paper - this is a paper wallet.
The paper wallet allows users to go to any terminal with a Bitcoin or Integrity Coin wallet to spend your Bitcoin or Integrity Coin.
As the wallet is lost or damaged, the private key will be lost, thereby completely losing the right to transfer the digital currency. To prevent such a tragedy, remember to always back up the data in your wallet. In addition to the address, all private keys are also saved during the backup.
SummaryThe private key must be protected to prevent loss and forgetting. The method will be cleared when clearing information on the mobile phone. It is best to copy it by hand, but do not disclose it.
Be careful of your own walletIf it is lost or damaged, it will lead to the loss of the private key and the loss of the right to transfer digital currency. Otherwise, no matter how many coins you have, you will not be able to withdraw them, it is not useless.
『Lu』 What is a valid address in the currency circle
After creating an ETH wallet, a 42-bit string starting with 0x will be generated, which is the wallet address. One wallet corresponds to one wallet address. , the address is unique and cannot be modified, which means that the transfer and payment addresses of all tokens in a wallet are the same. Therefore, you will find that the payment addresses for ETH-based tokens are all the same.
Since the blockchain is decentralized, all transaction records of the address can be queried. In the previous article "Data can speak, what are the big money in the currency circle thinking?" 》, which takes advantage of this feature. This is also the reason why some cryptocurrencies such as Bitcoin have weak anonymity.
Imagine that in the future you use Bitcoin to pay for a carton of milk in a supermarket, then the supermarket will know that the owner of this address is you. Social engineering hackers have also matched you with your address through some information on the Internet... Of course, this is far from the truth.
2. Password = bank card password
After successfully creating the wallet, you need to set a password. On the one hand, it is needed when transferring money. On the other hand, you need to enter a password when importing the wallet using the officially provided file. The password can generally be changed, but some wallets must provide a private key to change the password.
However, although we have made the above analogy. But having an address and password is not equivalent to having a bank card number and password. Because the former still cannot withdraw the money, but the latter can. If you want to withdraw coins in the former, you will also need your wallet.
3. Private key = bank card + password
When you register a wallet, a private key consisting of 64 character strings will be automatically generated for you. A wallet has only one private key and cannot be modified. In the imported wallet, enter the private key and set a password (no need to enter the original password), you can enter the wallet and have control of the wallet, and you can transfer all the coins in the wallet.
Another noun is involved here: mnemonic. As the name suggests, the mnemonic phrase is mainly used to facilitate you to remember the private key. The string of the private key has no rules, while the mnemonic phrase has certain rules. Generally, the mnemonic phrase has the same function as the private key and needs to be kept properly.
In the real world, if your wallet is lost or the money on your bank card is transferred, it is still possible to get it back. Since the blockchain is decentralized and anonymous, if you lose your wallet and private key, it is almost impossible to retrieve them.
Having said so much, I just want to emphasize the importance of private keys. Generally, private keys should not be placed on cloud servers such as cloud disks or emails, nor should they be sent in chats, or saved on a computer. It is recommended to disconnect and save.
『撒』 What is the relationship between private key, public key and address in blockchain
BlockThe relationship between the chain private key, public key and address is that the private key generates a public key, and the public key is converted into an address. So the private key is the most important. The three are irreversible. The address cannot generate a public key, and the public key cannot be converted into a private key.
The blockchain address is again, which usually consists of a string of letters and numbers of 26 to 35 characters. The blockchain address is mainly derived from the public key, block The chain address is equivalent to the bank card number we usually use. It can be disclosed to anyone with no security restrictions. Its main function is to receive and send digital assets on the blockchain.
Blockchain technology is now in its early stages of development, but because of its decentralization, security, non-tampering and other characteristics, it may have killer-level applications in life and work in the future and has attracted much attention from various countries. Pay attention to. This article is for reference only, please leave a message for discussion.
『8』 Imtoken wallet "address, password, private key, mnemonic phrase, Keystore"
Before using imToken, there are several terms that must be deeply understood, otherwise it may Causing the loss of blockchain assets, these terms are address, password, private key, mnemonic, and keystore.
If we take a bank account as an analogy, the corresponding contents of these 5 words are as follows:
Address = bank card number
Password = bank card password< br />
Private key = bank card number + bank card password
Mnemonic phrase = bank card number + bank card password
Keystore + password = bank card number + bank card Password
Keystore ≠ Bank card number
Address = bank card number
1. Generate
After creating the wallet, a A 42-bit string starting with 0x. This string is the wallet address. One wallet corresponds to one wallet address. The address is unique and cannot be modified. That is to say, the transfer and payment addresses of all tokens in a wallet are the same. For example, the transfer and payment address of ETH in a wallet is the same as the transfer and payment address of EOS. This is different from that on the trading platform. The transfer and payment addresses for different tokens on the platform are generally different. Therefore, you must confirm the address before transferring money to the trading platform.
2. Purpose
The wallet address can be used to receive money transfers from others, and can also be used as a certificate for transferring money.
Password = bank card password
1. Settings
When creating a wallet, you need to set a password. This password requiresIt should be no less than 8 characters. For security reasons, it is best to make the password more complex. The password can be modified or reset. There are two ways to modify the password. One is to modify the password directly, which requires entering the original password. If you forget the original password, use the mnemonic phrase or private key to import the wallet, and set a new password at the same time.
2. Purpose
The password has two uses. One is the payment password when transferring money, and the other is the login password when importing the wallet using keystore.
3. Features
In the real world, a bank card only corresponds to one password. After the password is modified, the original password will lose its effect. But in the imToken wallet, it is different. A wallet can use different passwords on different mobile phones, and they are independent of each other and do not affect each other. For example, if a password is set in mobile wallet A, importing the wallet on mobile phone B and setting a new password will not affect the password usage of mobile wallet A.
Private key = bank card number + bank card password
1. Export
After creating the wallet, enter the password to export the private key. This private key It is a plain text private key, consisting of a 64-bit string. A wallet has only one private key and cannot be modified.
2. Purpose
In the imported wallet, enter the private key and set a password (without entering the original password), you can enter the wallet and have control of the wallet. You can transfer the tokens in the wallet.
Mnemonic phrase = bank card number + bank card password
Mnemonic phrase = private key
1. Backup
After creating the wallet, a backup mnemonic function will appear. Select the backup mnemonic and enter the password. 12 words will appear. There is a space between each word. This is the mnemonic. There is only one mnemonic for a wallet. The word cannot be modified.
2. Purpose
The mnemonic is another form of private key and has the same function as the private key. In the import wallet, enter the mnemonic and By setting a password (without entering the original password), you can enter the wallet and have control of the wallet, and you can transfer the tokens in the wallet.
3. Features
The mnemonic phrase can only be backed up once. After the backup, it will never be displayed in the wallet again, so be sure to copy it down when backing up.
keystore+password=bank card number+bank card password
Keystore≠ Bank card number
keystore=encrypted private key
keystore+password=private key
1. Backup
In wallet There is a backup keystore function. Select the backup keystore, enter the password, and a large section of characters will appear. This is the keystore.
2. Purpose
In the imported wallet, select the official wallet, enter the keystore and password, and you can enter the wallet. It should be noted that this password is the wallet password originally set on this phone. This is different from using a private key or mnemonic phrase to import a wallet. Using a private key or mnemonic phrase to import a wallet does not require knowing the original password. You can directly reset it. Set password.
3. Features
The keystore is an encrypted private key and is closely related to the wallet password. After the wallet password is modified, the keystore will change accordingly. When using the keystore to import the wallet , you need to enter a password. This password is the wallet password when backing up the keystore, and has nothing to do with subsequent password changes.
6. Conclusion
In the real world, if you lose your bank card and forget your password, you can go to the bank to help you find it, and your money is still yours. Money cannot be lost, this is the advantage of centralization.
But in the blockchain world, no one stores your wallet information except yourself. If your wallet information is lost, no one can help you retrieve it, not even the wallet company. Therefore, as long as you protect your wallet information, the property in your wallet belongs only to you and no one can take it away. This is the advantage of decentralization.
1. Forget
What will be the consequences if you forget your wallet information? There are several situations:
(1) If the address is forgotten, you can use the private key, mnemonic phrase, keystore + password, and import it into the wallet to retrieve it.
(2) If you forget your password, you can use your private key, mnemonic phrase, and import it into your wallet to reset your password.
(3) If the password is forgotten and there is no backup of the private key and mnemonic phrase, the password cannot be reset and the token cannot be transferred, which is equivalent to losing control of the wallet.
(4) If the password is forgotten, the keystore will lose its function.
(5) If you forget the private key, you can export the private key as long as your wallet has not been deleted and the password has not been forgotten.
(6) If you forget the private key, you can also use mnemonics and keystore+password, import the wallet to retrieve it.
(7) If you forget the mnemonic phrase, you can import the private key, keystore+password into the wallet and back up the mnemonic phrase again.
(8) If you forget the keystore, as long as your wallet has not been deleted and the password has not been forgotten, you can back up the keystore again.
(9) If you forget the keystore, you can import the private key and mnemonic phrase into the wallet to back up the keystore again.
As can be seen from the above, as long as there is information in "private key, mnemonic phrase, Keystore + password", the wallet is there. Therefore, it is most important to back up your "private key, mnemonic phrase, Keystore + password".
2. Leakage
It is important to back up your wallet information, and it is also important to prevent wallet information from being leaked. What will be the consequences if wallet information is leaked? There are several situations:
(1) The address is leaked, it doesn’t matter.
(2) The password is leaked, it doesn’t matter.
(3) If the address + password are leaked, it doesn’t matter as long as the phone is not lost.
(4) The keystore is leaked, but the password is not. It doesn’t matter.
(5) If the keystore+ password is leaked, others can enter the wallet and transfer the coins.
(6) If the private key is leaked, others can enter the wallet and transfer the coins.
(7) If the mnemonic phrase is leaked, others can enter the wallet and transfer the coins.
It can be seen from the above that as long as one piece of information in "private key, mnemonic phrase, Keystore + password" is leaked, others will have control of your wallet, and the coins in your wallet will be Others move away. Therefore, the "private key, mnemonic phrase, Keystore + password" must not be leaked. Once the possibility of leakage is discovered, the coins inside must be transferred immediately.
3. Backup
Since the private key, mnemonic phrase, Keystore + password are so important, how to save them? The safest way is: handwritten paper < br />
Since the Keystore contains a lot of content, it is inconvenient to copy it by hand, and it is not safe to save it on a computer. Therefore, it is not necessary to back up the Keystore. It is enough to just copy the private key and mnemonic phrase by hand. Pay attention to the following points:
(1) Make several copies, place them in different safe areas, and tell your family members.
(2) Verify the handwritten content and import it into the wallet to see if it can be successful to prevent copying errors.
(3) Do not disseminate backup information on Internet-connected devices, including email, QQ, WeChat, etc.
(4) Teach your family how to operate a wallet.
If you need to query your blockchain assets, you can click on the corresponding blockchain asset link below, enter the asset address and click to query.
BTC blockchain query link https://btc.com/
ETH series blockchain query link https://etherscan.io/
< br /> ETC Blockchain Query http://gastracker.io/
ZEC Blockchain Query https://explorer.zcha.in/
BTS Block Chain query https://bitshares.openledger.info/#/dashboard
『玖』 How to form a withdrawal address
Withdrawal addresses, just like bank card numbers, are used to Receive digital currency assets. This address is equivalent to the account name in WeChat Alipay, but this account name is rather special, consisting of 34 letters and a string. One kind of withdrawal address is generated when registering a blockchain wallet, and the other is automatically generated by the exchange for the user. If you want to withdraw the coins, you need to fill in the withdrawal address. Just follow the withdrawal steps and follow the reminders.
Warm reminder:
1. The above explanation is for reference only and does not make any suggestions.
2. Before investing, it is recommended that you first understand the risks of the project and have a clear understanding of the project's investors, investment institutions, on-chain activity and other information, rather than investing blindly or entering the fund by mistake. Investment involves risks, so be cautious when entering the market.
Response time: 2021-02-01. For the latest business changes, please refer to the official website of Ping An Bank.
[I know about Ping An Bank] Want to know more? Come and see "I Know Ping An Bank"~
https://b.pingan.com.cn/paim/iknow/index.html