Bitcoin txcomment
BT currency is a kind of virtual currency proposed by a Japanese in 2008 and officially issued in 2009
BT coin is like a gold mountain with a total amount of 21 million gold coins (the upper limit of the total amount is designed to be 21 million). To get it, players need to use the computing power of the computer to calculate a group of numbers according to the designer's algorithm, just like everyone working together or calculating a mathematical problem separately, each group of numbers can be obtained, Then you will get a BT coin, and the world can only proce 25 at most every 10 minutes. This calculation process is vividly called mining
of course, these mathematical problems are becoming more and more difficult. From 2009 to now, the output of BT coins is about 10.4 million. The more the quantity on hand, the more difficult the output will be. bitcoin is scarce. The upper limit of issuance (21 million) has been set. The difficulty of obtaining bitcoin increases geometrically. It is estimated that it will take hundreds of years to complete
it's ridiculous to say that it's an international QB. It's all virtual currencies, but the security and versatility of BT currency are incomparable to QB. TX is closed, QB is finished. But if BT currency is to collapse, it will not be possible unless there is a global power outage or the global Internet is paralyzed
with regard to the use of BT currency, the world has begun to accept the use of BT currency. Germany first recognized the legality of BT currency, and China also has a trading website BTChina, which can directly exchange BT currency into various current currencies of most countries, including RMB. In China, there are many sellers who accept BT coin on Taobao, and there are also many stores and supermarkets that begin to accept BT coin in Beijing, Shanghai and other large and medium-sized cities
just now, the BTC / RMB exchange rate in this second is 1 / 4888.03, which is still very valuable, but mining needs a lot of investment in advance. A professional mining machine (professional configuration for BT coin computer) is about 40000, 60 such machines work 24 hours, the output can be about 50. In addition to the astonishing power consumption and custody costs, the cost will be recovered in about a month. If you want to make money by mining your ordinary computer, it's a fable. If the owner has no capital investment, it is suggested to give up. The standard configuration of 5000 computers on the market, 48 hours of work also only dig out 0.001 BT coin... Thanks to grandma's house, the main reason is that there is capital investment in the building, so we have to hurry up. At present, it is estimated that the proction and income can still be profitable for 3 or 4 years at most. After this time, mining will not be able to make ends meet.
the reason why we need six confirmations is that it is more difficult to obtain the optimal solution (to prevent single node fraud). One block may also be able to get an optimal solution, and it is basically impossible to get six blocks together. It has nothing to do with bifurcation
in short, slicing is a partition method to divide computing power and storage workload in a point-to-point network. After slicing, each node no longer needs to deal with the transaction load of the whole network, It only needs to process the transactions in the partition (or partition)
just like the current blockchain, the information contained in the partition is jointly maintained by multiple nodes, thus ensuring the decentralization and security of the ledger. After the partition is enabled, everyone can still see all the information in the ledger, but people no longer need to process and store all the information
if the thing that proces bitcoin is analogous to a software, such as QQ, then bitcoin is QB. The only difference is that QB is controllable, and there are as many Tencent as you want. Bitcoin is uncontrollable and the total amount is fixed. The more you dig, the less you dig. This is why bitcoin is more and more valuable than bitcoin. What bitcoin and QB have in common is that they are both virtual currencies
if you can't understand it, you can call the one that proces bitcoin gold mine, and bitcoin is the gold in the gold mine.
Bitcoin (bitcoin: bitcoin) is a kind of network virtual currency, which can buy real-life goods. It is characterized by decentralization, anonymity, and can only be used in the digital world. It does not belong to any country or financial institution, and is not subject to geographical restrictions. It can be exchanged anywhere in the world. Therefore, it is used as a money laundering tool by some criminals. In 2013, the U.S. government recognized the legal status of bitcoin, making the price of bitcoin soar. In China, on November 19, 2013, a bitcoin was equivalent to 6989 yuan
on January 7, 2014, Taobao announced that it would ban the sale of Internet virtual currencies such as bitcoin and lightcoin from January 14. On February 26, 2014, Democratic Senator Joe Manchin of West Virginia issued an open letter to several regulatory departments of the federal government of the United States, hoping that relevant institutions would pay attention to the status quo of bitcoin encouraging illegal activities and disrupting the financial order, and demanded that actions be taken as soon as possible to completely ban the electronic currency. On January 11, 2017), the Shanghai headquarters of the people's Bank of China and the Shanghai Municipal Finance Office carried out on-site inspection of bitcoin China, focusing on whether the enterprise carried out credit, payment, exchange and other related businesses without permission or license; Implementation of anti money laundering system; Fund security risks, etc. On January 12, 2017, the business management department of the people's Bank of China also entered the trading platforms such as "fire coin net" and "currency bank" in Beijing
on May 12, 2017, a global outbreak of bitcoin virus madly attacked public and commercial systems! Nearly 74 countries in the world have been seriously attacked
from August 1, 2017, global bitcoin trading platform will suspend recharge and withdrawal services. Bitcoin China digital asset trading platform will stop new user registration on September 14, and all trading businesses will be stopped on September 30
public key and private key are terms in asymmetric encryption of modern cryptography. They usually encrypt information with public key and decrypt information with private key. Why? Because when you watch TV dramas, telegrams are encrypted symmetrically. The disadvantages of this encryption method are obvious. If someone knows the key and encryption method, they can decrypt the telegrams according to the encryption method. Until asymmetric encryption, the situation has changed. Public key is the key that can be made public all over the world. For example, when you communicate with Google, you encrypt with the 1024 bit public key given by Google and send it to Google. Only he has the corresponding private key, and only he can decrypt it, so the communication security is ensured
2. Bitcoin mainly uses ECDSA, which is the elliptic curve signature algorithm, This algorithm has two characteristics. Note that these two points are very important to the following
A. as long as you know the private key, you can calculate the corresponding public key
B. If you have signed something with the private key, you can use the public key to calculate whether you signed it or not
3. After knowledge preparation, let's start with the transaction of bitcoin. In fact, bitcoin has no wallet, only transaction bills, and the whole bitcoin is a lot of transaction bills
for example:
bill 1 transfers from a to B to XXX bitcoin
Bill 2 transfers from B to C and D to XXX bitcoin
bill 3 transfers from C to e to XXX bitcoin
.... Anyone who downloads the client can receive all the bills from the day when bitcoin was established, so as long as all the bills are downloaded, they will naturally know how much money should be left on each account (think carefully here)
4. The account of bitcoin is the public key mentioned just now
5, Here is the core part!!! Each bill is a piece of data. After you sign it, it will be sent to the whole network, and the data structure will be reversed into easy to understand Chinese. The explanation is as follows:
from (who sent it, including two parts)
previous TX: the ID of the bill for which you want to spend the money, that is to say, any money you spend should have been transferred to you, You need to show the ID of the bill
scriptsig: your signature for this transaction is to hash the bill with your private key, only you can do this hash
to (who accepts, including two parts)
value: how much to send
scriptpubkey: the public key of the other party, and the bitcoin account is a public key
6, How to send it? Bitcoin communication is not so complicated. You can compare it to IRC channel, but different from ordinary "IRC", any client is an "IRC" server. When you start the client, you will receive the client address with public IP around, that is, the "server" list. This list is constantly refreshed, and it is all other bitcoin users, So when you shout a word in this "IRC", people around you will hear it and spread it all over the world
7. After sending the signature to the whole world, all the clients who receive this list will verify whether your signature is correct, whether you sent it, and whether you have so much money (according to the historical transaction, you can calculate how much money you have to spend)
if you have calculated this transaction, it's OK, Basically, the transfer is successful
8. In fact, the other party has accepted bitcoin, but in order to spend it, he must have the private key corresponding to the address (public key). So he can fill in the from header of a form. Previous TX is the serial number of the transaction just now. Scriptsig fills in the hash signed with his private key...
I hope my answer can help you. If you don't understand anything, you can ask.
public key and private key are the terms of asymmetric encryption in modern cryptography. They usually encrypt information with public key and decrypt information with private key. Why? Because when you watch TV dramas, telegrams are encrypted symmetrically. The disadvantages of this encryption method are obvious. If someone knows the key and encryption method, they can decrypt the telegrams according to the encryption method. Until asymmetric encryption, the situation has changed. Public key is the key that can be made public all over the world. For example, when you communicate with Google, you encrypt with the 1024 bit public key given by Google and send it to Google. Only he has the corresponding private key, and only he can decrypt it, so the communication security is ensured
2. Bitcoin mainly uses ECDSA, which is the elliptic curve signature algorithm, This algorithm has two characteristics. Note that these two points are very important to the following
A. as long as you know the private key, you can calculate the corresponding public key
B. If you have signed something with the private key, you can use the public key to calculate whether you signed it or not
3. After knowledge preparation, let's start with the transaction of bitcoin. In fact, bitcoin has no wallet, only transaction bills, and the whole bitcoin is a lot of transaction bills
for example:
bill 1 transfers from a to B to XXX bitcoin
Bill 2 transfers from B to C and D to XXX bitcoin
bill 3 transfers from C to e to XXX bitcoin
.... Anyone who downloads the client can receive all the bills from the day when bitcoin was established, so as long as all the bills are downloaded, they will naturally know how much money should be left on each account (think carefully here)
4. The account of bitcoin is the public key mentioned just now
5, Here is the core part!!! Each bill is a piece of data. After you sign it, it will be sent to the whole network, and the data structure will be reversed into easy to understand Chinese. The explanation is as follows:
from (who sent it, including two parts)
previous TX: the ID of the bill for which you want to spend the money, that is to say, any money you spend should have been transferred to you, You need to show the ID of the bill
scriptsig: your signature for this transaction is to hash the bill with your private key, only you can do this hash
to (who accepts, including two parts)
value: how much to send
scriptpubkey: the public key of the other party, and the bitcoin account is a public key
6, How to send it? Bitcoin communication is not so complicated. You can compare it to IRC channel, but different from ordinary "IRC", any client is an "IRC" server. When you start the client, you will receive the client address with public IP around, that is, the "server" list. This list is constantly refreshed, and it is all other bitcoin users, So when you shout a word in this "IRC", people around you will hear it and spread it all over the world
7. After sending the signature to the whole world, all the clients who receive this list will verify whether your signature is correct, whether you sent it, and whether you have so much money (according to the historical transaction, you can calculate how much money you have to spend)
if you have calculated this transaction, it's OK, Basically, the transfer is successful
8. In fact, the other party has accepted bitcoin, but in order to spend it, he must have the private key corresponding to the address (public key). So he can fill in the from header of a form. Previous TX is the serial number of the transaction just now. Scriptsig fills in the hash signed with his private key
Mining
and then explain the mining part. I'm trying my best to simplify the whole process to make it easier for you to understand, so the problems of mining and double spending (counterfeiting currency, spending the same sum of money twice) are specially removed
in fact, after reading the above explanation, there will be a question, since they are all transaction records, where did the initial money come from? The transaction has to have the original part of the money, which is the money from mining. After mining, you will also get a transaction record. But from is very special, and the whole system also recognizes this from. In addition, in fact, the bill is attached to the block, and after the bill is sent to the whole network, It's not right that the whole network should be calculated.
just now, it's said that the whole network should be calculated together. According to the bitcoin rule, the first calculated reward is mining income. Now the reward amount is 25 bitcoin, so
If I only use one PC, it's too weak, so I have a mining machine. The function of mining is to check whether the transaction of bitcoin is correct. Mining machine is to calculate faster than others
money laundering
many people who talk about bitcoin can't explain the problem of money laundering if they are not really experienced, and this problem is related to the essence of bitcoin. Why bitcoin can launder money is also determined by the characteristics of bitcoin. As I explained above, the bill of bitcoin is just one in (from) and one out (to). In fact, bitcoin protocol allows countless in and out as long as the total amount of from is equal to the total amount of to, In order to better understand the image of you, I specially found a transaction of multiple from and multiple to from the actual bitcoin transaction records. The screenshot is as follows, and the link is here https://blockchain.info/zh-cn/tx/