Author | Cuo Pi To judge whether a person really understands blockchain, you can first ask: "I transfer tokens to you, what is your wallet address?" This touchstone can easily distinguish many people. In the blockchain world, if you don't have your own wallet address, you are just a bystander. To create a wallet, you need to get your own wallet address first. For example, this is a valid Bitcoin address: Just like a bank account, with it, anyone can transfer money to you. In fact, anyone can generate their own wallet independently and without an Internet connection. How is this done? 01 This involves a basic concept in cryptography: public key encryption technology. In public key encryption technology, public keys and private keys appear in pairs. Things encrypted by public keys can be decrypted by private keys, and things encrypted by private keys can be decrypted by public keys. You can imagine the relationship between the two as the relationship between a locked box and a key. This feature is used for encryption and signing. The encryption process is like putting the letter to be sent into a box, locking it, writing the address on it, and then sending it out. Both the sender and the recipient are relieved because no one else can open the box. The signing process is similar to showing a key to others . Only you can open a locked box. If someone opens the box with the key you sent, then the contents of the box must be what you sent. You hold the private key in your hand, which cannot be disclosed in any case; your wallet address is the converted public key known to the world. If the key information can be opened by the public key, it means that it was encrypted by someone who knows the private key. Therefore, once any transaction is encrypted with your private key, the recipient can decrypt it with your public key, which is considered to be an operation authorized by you. 02 Several key information in the Bitcoin world are generated in this order: first generate a private key, then calculate the public key from the private key, and then calculate the wallet address from the public key through a series of hashes. Private key → Public key → Wallet address The above derivation order is one-way and the reverse is impossible. In other words, the public key cannot be obtained from the wallet address, and the private key cannot be obtained from the public key. The wallet address transformed from the Bitcoin public key can be imagined as a username, which can be known to the whole world; the private key can be imagined as a password, which only you know. The private key is the beginning of everything. The private key is an arbitrary number greater than zero and less than 2 to the power of 256, such as the following private key: It should be noted that the private key is not randomly generated, which is very risky! Then, the private key is used to generate the corresponding public key through the elliptic curve function, such as the following: After a series of hash encryptions, a Bitcoin address is finally formed, such as the following: 1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm The private key is like the "Open Sesame" in the story of "Alibaba and the Forty Thieves". Anyone in the world who knows the spell "Open Sesame" can find the cave in the mountain and open the door. Whether a person has an account depends on whether he knows the spell. The forty thieves can take away the treasure after knowing the spell, and Alibaba can also take away the treasure after knowing it . As for whether there is gold and silver treasure in the cave, that is another matter. If you are reading this article, knowing the Bitcoin private key (number 1) in this article means that we have control over the "money" in this address. In the world of Bitcoin, although it is impossible to know who is behind the address, all transactions in the history of this address are public and can be queried through the blockchain browser. |
>>: Cryptocurrency exchange Bitmart hacked, losing nearly $200 million
Some people's palms will have overlapping, co...
We all know that the moles on a person's face...
From a health perspective, a sunken forehead indi...
Bitcoin’s hash rate recently hit a new all-time h...
Recently, Scott Dunlap, Vice President of adidas ...
In the past two months, the price of Bitcoin deno...
We work hard every day so that we can live a bett...
Regulators have increased their activities in the...
A person's facial features can often reveal g...
People with sunken eye sockets are wary A person ...
Filfox browser data shows that the current block ...
Nowadays, many men are very casual when it comes ...
What kind of face always makes things go wrong fo...
If a woman has a crooked mouth, what kind of fate...
Ethereum's spring is still going on. From $8....