Core miner
1) wallet. It's used to store your bitcoin balance. In principle, as long as you have the private key of your own bitcoin address, you can use your own bitcoin
2) verify the transaction or payment. After receiving the transaction, the bitcoin node will use certain algorithms to verify the validity of a transaction. If you only change the balance of bitcoin in your computer, others will not recognize it. Similarly, your wallet will not recognize the transaction changed by others
3) mining. Core wallet can start mining function through a command to join the mining army, while SPV wallet usually can't (SPV is just passing by). However, it is not the node type that hinders home computer mining, but the rapid development of professional mining machines. Compared with ordinary computers, the computing power of ordinary computers is very small. Mining by ordinary computers is like digging your own backyard with a hoe, and then expecting to dig out gold
because of the demand of bitcoin users, bitcoin exchange was born. The exchange provides a place for centralized trading. People put money on the exchange, and the exchange will match and trade together, similar to stocks and securities. Therefore, banning exchanges does not mean banning bitcoin. Bitcoin network cannot be banned. Bitcoin is sent to the exchange's wallet, and all you see is a balance given to you by the exchange. In fact, you no longer have your own bitcoin. Bitcoin network is global. Where there is a network, there will be bitcoin. After the exchange closes, bitcoin will not disappear, but will return to where it should be.
At the end of March this year, bitmainland launched an ant miner X3 based on ASIC, which is mainly aimed at Monroe coin (XmR) and cryptonight algorithm dependent cryptocurrency. Monroe coin immediately issued a counter statement that it will change the core algorithm to fight against the invasion of ASIC computing power
what would be the result if it appeared in the world of digital cryptocurrency? That is, the wrong calculation results may be brought into the whole network without being discovered
More importantly, if a "calculator manufacturer" monopolizes the calculator market, it can also deliberately proce this kind of calculator with errors to change the mathematical rulesafter all, the "calculation" in the field of crypto digital currency is not as simple as 1 + 2 + 3. You can't compare paper currency with special currency by hand
the practical significance of computing power monopoly in mainland China
we have learned about attacks based on 51% computing power in various articles P>
but the reality is that although the global power of 78% was in Chinese mainland, fortunately, they were scattered in different pools and controlled by different people. p>
although all POW based cryptocurrencies have the risk of being attacked by 51%, few people can really launch attacks e to the dispersion of computing power
but what if the miners themselves don't want to attack, but the mining machinery manufacturers attack
still using the analogy just now, although each miner subjectively wants to do the problem checking independently, their calculator is manipulated remotely and gives consistent wrong answers. This may pose a great threat to digital cryptocurrency
however, the manufacturer with the absolute voice of mining machinery had such a problem in mainland China
in April 2017, the back door of antbled came out. Although this is described as a "vulnerability" in Chinese, antbled is more like a function that has been implemented and designed
anonymous people found that after an ant miner made by bitmainland was connected to the network, it would communicate with a domain name held by bitmainland on a regular basis and return the miner's serial number, MAC address and IP address to bitmainland's server. If the server of bitcontinent gives a negative signal, the miner will stop running
although bitcontinental responded that they could not shut down any mining machines that did not belong to them. However, the bitcoin core team has proved in experiments that this function has no verification. Anyone can shut down mining machines by forging DNS - but it also means that bitcoin mainland has the ability to shut down any sold mining machines
After, bitcontinent fixed this "loophole", but it caused heated discussion in the community. This has also set the tone that almost all pow blockchain communities are biased against mainland China
a few months later, under the leadership of bitcontinent, viabtc g out the first block and made a hard bifurcation with the blockchain of bitcoin. From then on, bitcoin BCH (bitcoin cash) appeared in the world
will the monopoly of mining machinery destroy the distributed system
facing this problem, we should have a clear answer now. That is, the monopoly of mining machinery will certainly affect the safe operation of pow digital cryptocurrency
the problem is not whether bitcontinental and its founder Wu Jihan are trustworthy, but that one of the values of any blockchain system is to operate safely without trust in any single company or indivial
even if the ASIC miner is not monopolized by bitmainland, the ASIC miner itself will increase the concentration of computing power
the ASIC used for mining has great requirements for ventilation, power and site, and has no use except for mining. At the same time, the calculation difficulty of the whole network is increased e to the powerful computing power
as a result, it is very difficult for external players to start mining in the next software on the computer as they did five years ago. And the recent centralized exchange is caused by frequent black incidents, which also proves that concentration in this unregulated market will definitely lead to insecurity
assuming that the bitcoin network runs on top of one million miners, no one can shut it down. And if the bitcoin network runs on 20 large mines, it's much easier to shut it down P>
and by the end of 2017, 78% of the effort was concentrated in mainland China, which led to a real possibility of Chinese mainland regulators' launching a deadly attack against the special currency. p>
moreover, most of the scenarios of using digital cryptocurrency are related to "decentralization". Once centralized, it means that these scenarios no longer exist. It turns a project that might have value into a pure waste of computing power
Then, what measures should we take in the face of this situationfirst of all, as the project side, it may be time to give up the pure POW mechanism. In fact, in many projects of issuing cryptocurrency, especially in asset securitization projects. Similar to the concept of stock in the real world, POS itself is more reasonable than pow
in the media that don't know about blockchain, we often hear such words as "bitcoin wastes a lot of computing power and has no value", which is reasonable to some extent. It is difficult for a POW based blockchain to bind the value of the project itself to the issued digital cryptocurrency - because the real value behind the price of the currency does not come from the project, but from the cost of maintaining computing power
and the hybrid mode of pow + POS is more like the future. In the hybrid mode, both coin holders and miners can participate in the major decisions of this community. If a decision is widely accepted, the blockchain will be soft forked to the latest state without excessive intervention of developers, and there will be almost no private resistance of miners or mining machines
secondly, as a retail miner, if you are still digging a pure POW mechanism currency, you should unconditionally support the bifurcation activities initiated by the community to resist the ASIC mining machine, even if it will lead to the failure of your mining machine
this may sound contradictory, but in the long run, it is better to promote the reform of the community and get more benefits in a currency controlled by the monopoly of computing power. Because in many conflicts between computing power and community in the past, the ultimate result is that the computing power owner will forcibly keep the old algorithm to hard fork the blockchain
just like Eth and etc, the classic Ethereum (etc), which belongs to the computing power master, has lost the support of developers and become an air coin with no vitality and impossible to develop applications
as a retail leek, you should be careful to trade the non mainstream digital currencies (except bitcoin) supported by bitmainland mining machinery, so as to avoid falling into a blockchain in which bitmainland controls the computing power completely
finally, if you are bitcontinent, what should you do
bitcontinent's goal is to become Intel, AMD and NVIDIA, make greater contributions to the whole computer instry, and become a great company, not just entangled in the immediate interests of mining
Wall Street financiers have long seen through the violence brought about by NVIDIA's video card mining. The rise and fall of the company's stock price has been consistent with the price of bitcoin, and even affected by the digital currency market. Citron, a well-known short seller, has recently been bearish on NVIDIA, arguing that the company has focused too much on providing services for digital currency miners rather than on serious businesses such as artificial intelligence, games and driverless driving
the mission of chip manufacturers is to provide more powerful chips to drive more intelligent services, and finally contribute to the real world, rather than become monopoly tycoons in the virtual world. When we no longer enter the gate of the virtual world, the only thing left is a deserted land
in an interview with US media last year, Wu Jihan disclosed that he would make an IPO with a market value of billions of dollars. As a company about to go public, bitmainland should not only be responsible to investors, but also accept investors' questions about the sustainability of its business. "If your mining machinery goes public, it will encounter a fork, what should you do?"
and this question, which needs to be asked after the listing, has already appeared: the current price of the split coin xmo after the Monroe team split is $7.50, while the current price of the real Monroe coin XmR is $194, and the split coin is completely abandoned by the Monroe community
before bitcontinent becomes the name of all blockchain communities, we can rely on the huge amount of capital accumulated in recent years to transform into an artificial intelligence chip company along the previous plan, rather than continue to develop a variety of digital currency mining machines to extract the last drop of oil before the ecological collapse
content source: phoenix.com
dpos mechanism
in recent years, e to the resource waste of pow, unstable block output, and the existence of computing power attack, although POW is recognized as the most widely used and secure consensus mechanism, there is still a great risk of being attacked for the block chain with insufficient computing power in the whole network. More and more consensus mechanisms are proposed to be used in blockchain projects for trial and experiment. Dpos is one of the mainstream consensus mechanisms, and LBTC has adopted this mechanism. Dpos ensures that the voting right is in the hands of the coin holder, so the coin holder will be able to choose whether to pass the motion by voting, so as to determine the development direction of the project. At the same time, it also means that the development direction of the project depends on the hands of the people who care about the project itself, and the power of wisdom will promote the better development of the project. At the same time, the advantages of dpos mechanism are that there is no computing power attack, strictly abide by the time block and save resources
dpos advantages of LBTC
the dpos mechanism of LBTC also has its own characteristics: the number of nodes of LBTC is 101, compared with 21 or 51 nodes, the coin holder can vote for 51 nodes at most once in the wallet of LBTC, which further reces the risk of centralization; LBTC can output blocks stably in 3 seconds, and the block size of 2m ensures that LBTC is 400 times more efficient than bitcoin, and the transaction speed can reach more than 2000 transactions per second; The most important difference between LBTC and other projects is that LBTC's dpos mechanism has the rule of irreversible block. When the number of block agents reaches 90% or more in one round, or when the number of block agents exceeds 70%, the first block in the previous round can be considered as irreversible, so as to prevent bifurcation
LBTC's defense measures
in addition to dpos consensus mechanism, LBTC's technical level has other highlights
first of all, LBTC can prevent [replay attack]. What is a replay attack? Each bitcoin account will have a corresponding number of lbtcs based on its bitcoin balance. If the address, private key, algorithm, etc. on each chain are the same, and the transaction format is the same, the transaction initiated on one blockchain can be put on another blockchain for rebroadcasting, and may also be confirmed. This is the "replay attack.". In short, when a user transfers LBTC, BTC may also be transferred at the same time. LBTC modifies the hash algorithm in transaction signature. In the hash algorithm, "LBTC" field is added to LBTC. The hash generated by LBTC and BTC will be different. LBTC and bitcoin do not recognize each other's transactions, so as to prevent replay attacks
secondly, to prevent [forged mining]. There are no concepts of voting and balance in bitcoin transaction. In order to maximize the stability of LBTC, a new output composed of OP return is added in coinbase transaction. Op-return data is composed of three fields: publickey, time and sign (time). Time represents the timeliness of transaction. Publickey verifies sign (time), which is the principle of asymmetric encryption algorithm to prevent forgery and mining. LBTC has 101 nodes. Assuming that the attacker has 30 nodes, if the remaining 71 nodes are forged, other nodes can mistakenly think that the attacker's chain is the longest and block out. This is a forgery mining attack
thirdly, prevent [double flower attack]. Double spending attack is a money spent twice, it can also be called double payment attack. For example, BTG, which has attracted wide attention before, recently suffered 51% attacks. A malicious miner obtained at least 51% of the computing power of the BTG network, temporarily controlled the BTG blockchain, quickly raised money after recharging the exchange, then reversed the block, and successfully implemented Shuanghua. Due to the irreversible block mentioned above, when the transaction of LBTC block is confirmed, it is impossible to roll back, so as to prevent the double flower attack
Fourth, multithreading. In LBTC's transaction consistency and legitimacy check, the data that can be merged and integrated are merged and executed by multi thread, which greatly improves the transaction efficiency and enhances the performance of LBTC
code logic of LBTC
in addition, in terms of code logic, LBTC is divided into protocol layer, consensus layer and application layer. When it is necessary to transfer value, the transaction is completed through the protocol layer link and consensus layer. This process can not only be used as the exchange of value, but also as the value intermediary in the tripartite connection. The application layer is mainly based on smart contract. In the future, LBTC will realize the function of gateway based on smart contract. The payment gateway implements asset issuance, asset transaction, currency exchange, chain interaction and so on
that's why LBTC can say that it wants to do global value internet protocol. Through the payment gateway, it can exchange any currency, not only between currencies, but also between legal currency and digital currency. Isn't that very convenient? One click conversion is to buy eth with vnd and transfer it to her British cousin in the distance. She dislikes it and immediately changes it to EOS. After one second, it is changed to pound sterling. There is no need for extra conversion steps. It's good to get it in one step? Such an analysis, in fact, from the technical code level analysis of LBTC is quite reliable. However, compared with those experts, Xiaobian won't deceive you. Whether LBTC can realize decentralized value Internet Protocol in the future, focusing on code will be a more intuitive way GitHub of LBTC: https://github.com/lbtcio/lbtc-core
how to use gateway
next, we talk about the specific implementation of the gateway's "conversion and circulation", which can be roughly divided into three kinds:
first, after the LBTC system has built the gateway technology, with the gateway as the bridge, user a can convert any currency into LBTC, and then send it to any user B who wants to send it, while user B can convert LBTC into any currency he needs, Does this sound like what you usually do on the exchange? I think this is one of the reasons why LBTC proposes to be a "decentralized exchange"
Second, user a can deposit the funds in the gateway trusted by user B and transfer them to user B through the gateway
thirdly, LBTC will provide the function of "any user can issue token" in the early stage of gateway construction. Therefore, in the LBTC system, if user a has a good reputation, is recognized by everyone, and issues its own a token (of course, it should include the asset chain realized by asset mortgage), a can use its own a token for user B's currency exchange. After that, user a can redeem the a token exchanged to B. A is the gateway role in the transaction process
in the process mentioned above, the functions of asset issuance, asset transaction, currency exchange and chain interaction are realized respectively
the gateway is similar to the function of a bank, which can mainly solve the problem of cross-border transfer. With the high TPS and low handling charge of LBTC, it will be very convenient to realize cross-border transfer. For example, if you need to remit money from China to the U.S., you need to remit RMB to China's LBTC gateway, and then the U.S. gateway will receive the LBTC from China's gateway, convert it into U.S. dollars, and forward it to the U.S. account. In the above gateway system, it can be concluded that both payment parties do not need to join the network, just need to trust the gateway
although the gateway solves the problems of slow speed and high handling charge of traditional transfer payment, it also faces new problems
then there is a problem
in addition to the standard institutions or project parties invited by LBTC can become gateways, ordinary users can buy and sell with each other (in fact, this kind of behavior is more inclined to loan, if it is only the business between acquaintances, it will form a small independent network), How to prove that gateway is a trustworthy organization or indivial
how to extend the gateway of LBTC to cooperate with large organizations is obviously a problem for the team. Ripple has developed more mature. At present, it has cooperated with MUFG in Japan, Westpac in Australia and Standard Chartered Bank in the UK. With ripple, star currency and other payment digital currencies in front, LBTC needs to have more characteristics if it wants to go out of its own route. This can be expected in the later intelligent contract route planning
however, ripple is also accused of being too centralized because of its distribution mode. LBTC has 101 nodes because of its dpos mechanism, and because it is a bifurcated coin, it will be distributed to bitcoin holders 1:1 when it is issued. This can be said to be the inherent advantage of LBTC - it has wide dispersion. If it can be supported and recognized by the public in the future, it can reach a consensus, Then it will form a congenital advantage of wide distribution
in addition, how can we prove that assets really exist in reality and can be used as collateral in the process of asset chain? In addition to large-scale institutions such as banks, small-scale network also has its inevitability. The proof of assets on the asset chain is a very important part. If it is not regulated and certified, it is very likely that the gateway will run away or false gateway will occur. Although the gateway is exemplified as "Taobao" platform, in theory, the platform can not manage the business content, but the platform has supervision on the quality of goods, otherwise it will cause confusion
decentralized exchanges
let's go back to the first point and talk about my ideas on decentralized exchanges. At present, mines and centralized exchanges are the protagonists in the early development of blockchain. With the rise of more and more exchanges, centralized exchanges fall into manipulation scandals and so on, which bring room for the growth of decentralized exchanges. Decentralized transaction is very likely to bring value to the field of blockchain and become the real protagonist in the era of blockchain. With gateway technology, LBTC can realize decentralized exchange. In the decentralized exchange of LBTC, the user's own currency will be kept by himself, which prevents the possibility of losing the currency in the centralized exchange. At the same time, it can also prevent the opaque system transactions, operational and technical risks. According to the previous gateway interview, LBTC will also work with reliable project parties to put on the stock exchange for the benefit of all community members. Generally speaking, LBTC's development route is relatively clear, and its goal in the field of payment is also very clear. Hold on, partners, the future is promising!
LBTC was highly forked in block 499999 of bitcoin on December 23, 2017, with a circulation of 21 million, and does not support segwit.