Why does the bitcoin address keep changing
Publish: 2021-05-08 05:12:15
1. bitcoin uses elliptic curve algorithm to generate public key and private key, and chooses secp256k1 curve. The generated public key is a 33 byte large number, and the private key is a 32 byte large number. The wallet file wallet.dat directly stores the public key and private key. The bitcoin address we use when receiving and sending bitcoin is obtained after the public key is processed by the algorithm. The specific process is that the public key is first processed by SHA-256 algorithm to get 32 byte hash result, then processed by ripemed algorithm to get 20 byte summary result, and then the address we see is obtained through the character conversion process. This character conversion process is the same as that of the private key. The steps are as follows: first, add the version number to the input content (the summary result of 20 bytes for the public key and the large number of 32 bytes for the private key). After two successive SHA-256 algorithms, take the first 4 bytes of the hash result of the last time as the check code and attach it to the back of the input content, and then encode it with base58, Get the string. Qiaoman special zone blockchain professional station chain Qiaoyu online is a blockchain professional training workstation engaged in blockchain related training and certified by the Ministry of ecation.
2. Bitcoin transaction transfers are all transferred out through the bitcoin wallet, but a wallet has many receiving addresses, and the amount of each receiving address is still independent (address a receives 10 transactions, which are separated). When transferring, the transaction ID (transaction record in the address) under the address is used to transfer out, and all record addresses will be recorded when bitcoin transfers out, It is equivalent to the current account of the account book
3. It is a kind of risk asset, which will fluctuate naturally, mainly in financial attribute
4. The owner of the building is energetic and seems to be able to do a counter experiment; Don't connect the computer to the Internet. Take a wallet from an external USB flash drive and put it in to see if it can show how much money there is? In fact, the experiment in front of you should not be that the wallet can automatically generate a new address without networking, but that there are a large number of hidden change old addresses of your own in it. However, a large number of hidden change old addresses should be in the wallet.dat file, not in the empty wallet terminal software.
5. The process of BTC address generation is as follows. You can check bitcoin Chinese wiki completely:
bitcoin address generation process
(Note: some numbers are marked with & quot; 0x" Begin with, meaning that the number is in hexadecimal notation& quot; 0x" It doesn't have any meaning in itself. It's a conventional writing method handed down from C language. For example, 0xa is 10 in decimal system. In addition, 1 byte = 8-bit binary = 2-bit hexadecimal)
in the first step, randomly select a 32 byte number and size from 1 to 0xFFFF ffff ffff ffff ffff ffff ffff fffe baae dce6 af48 a03b BFD2 5e8c d036 4141 as the private key
in the second step, the elliptic curve encryption algorithm (ecdsa-secp256k1) is used to calculate the uncompressed public key corresponding to the private key A total of 65 bytes, 1 byte is 0x04, 32 bytes are x coordinates, and 32 bytes are y coordinates
the third step is to calculate the SHA-256 hash value of the public key
the fourth step is to take the previous step result and calculate the ripemd-160 hash value
the fifth step is to take the previous step result and add the address version number (bitcoin main network version number "0x00")
00
the sixth step is to take the previous step result, Calculate the SHA-256 hash value
Step 7, take the result of the previous step, and then calculate the SHA-256 hash value (HA HA)
Step 8, take the first four bytes (8-bit hexadecimal)
d61967f6
Step 9 of the result of the previous step, and add these four bytes after the result of step 5, As a check (this is the hexadecimal form of the bitcoin address)
00d61967f6
Step 10: change the address with base58 notation (this is the most common form of bitcoin address)< br />
bitcoin address generation process
(Note: some numbers are marked with & quot; 0x" Begin with, meaning that the number is in hexadecimal notation& quot; 0x" It doesn't have any meaning in itself. It's a conventional writing method handed down from C language. For example, 0xa is 10 in decimal system. In addition, 1 byte = 8-bit binary = 2-bit hexadecimal)
in the first step, randomly select a 32 byte number and size from 1 to 0xFFFF ffff ffff ffff ffff ffff ffff fffe baae dce6 af48 a03b BFD2 5e8c d036 4141 as the private key
in the second step, the elliptic curve encryption algorithm (ecdsa-secp256k1) is used to calculate the uncompressed public key corresponding to the private key A total of 65 bytes, 1 byte is 0x04, 32 bytes are x coordinates, and 32 bytes are y coordinates
the third step is to calculate the SHA-256 hash value of the public key
the fourth step is to take the previous step result and calculate the ripemd-160 hash value
the fifth step is to take the previous step result and add the address version number (bitcoin main network version number "0x00")
00
the sixth step is to take the previous step result, Calculate the SHA-256 hash value
Step 7, take the result of the previous step, and then calculate the SHA-256 hash value (HA HA)
Step 8, take the first four bytes (8-bit hexadecimal)
d61967f6
Step 9 of the result of the previous step, and add these four bytes after the result of step 5, As a check (this is the hexadecimal form of the bitcoin address)
00d61967f6
Step 10: change the address with base58 notation (this is the most common form of bitcoin address)< br />
6. It's no use mining with N cards!! You are not good at your lessons. I only started to understand bitcoin last night! Remember to do your homework! If I don't want to discourage you, I suggest you give up, because in 2013, the output of the mine was halved, and the corresponding cost increased. Besides, there are professional mining machines now. Let's say, doing business by yourself is a loss business! Welcome to ask, the official website said that there is no risk
7. It needs professional miner.
8. You can take a taxi. It's very expensive. But there are buses directly to the city. After you come out, look carefully for the bus stops nearby.
Hot content