Source code analysis of block chain cat raising
blockchain is a new application mode of distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and other computer technologies. Blockchain is an important concept of bitcoin. It is essentially a decentralized database. At the same time, as the underlying technology of bitcoin, it is a series of data blocks generated by using cryptographic methods. Each data block contains a batch of information about bitcoin network transactions, Used to verify the validity of its information (anti-counterfeiting) and generate the next block
if such technology wants to be put into application, the biggest problem is the "Impossible Triangle problem"
that is, scalability, decentralization and security cannot be achieved at the same time, and only two of them can be achieved
most of the existing public chain projects in the market are difficult to put into use on a large scale
Just at the beginning of this month, a game of raising cats with blockchain suddenly became hot all over the world. As far as I know, this is a very simple game. If it is put into the game application market, it will sink to the bottom immediately. To put it bluntly, this is a nurturing game of buying cats, breeding, breeding and buying cats
but why does such a simple nurturing game cause a worldwide upsurge? I don't think it's because the game is interesting and the image is cute
the most important point is that the game has profits
players can pay for cats, pay for kittens (a small fee) and borrow others' cats to have kittens (a little more); Then you can sell your own cat for breeding kittens, or you can sell it directly to get profits without a cap
the sale of cats is completed in the form of auction on the website. The currency of transaction is ether currency, which can be converted into cash in foreign exchanges. Therefore, under the premise that users can continue to consume (kittens) and trade (CATS), blockchain kittens become an asset that can generate cash flow returns
secondly, the return is speculative
the setting of blockchain cat is that two cats can have kittens, but each cat has several elements, including generation, gene tag, etc. Gene tag represents scarcity and scarcity represents value; The higher the generation, the faster the reproction, so it is also positively related to the value
the generation of gene tags is a black box, which is an opaque part of the game (most of the games are open source and open in the white paper). For now, at least, there is no clear analysis of how to get a cat with scarce labels. Therefore, every time a kitten is born, it is possible to give birth to a valuable rare breed, and even the program settings of the game itself may have random parameters
this makes the whole game full of uncertainty and speculation. A speculative game, like gambling, is easy to attract people's attention and capital investment
secondly, blockchain itself has been a hot topic in recent two years. Many people are willing to try new things, before many people are difficult to understand blockchain technology. Now there is a simple and easy-to-use application for everyone to participate in the block
although the popularity of this game has little to do with the blockchain technology, it is a very successful example of the application of blockchain technology
first of all, it must be pointed out that the relationship between DAPP and app is not the relationship between who replaces who or who eliminates who, but the coexistence relationship, or DAPP is the enrichment and improvement of app< Secondly, DAPP is the proct of the development of the times and the progress of science and technology
because DAPP is directly linked to blockchain technology, it is associated with transaction data, transaction assets, and tamperable decentralized storage< In his book decentralized applications, Johnston believes that a DAPP application should meet all the following conditions:
1. An application must be completely open source, autonomous, and no entity controls most of its tokens. The application must be able to upgrade according to the market feedback and technical requirements, but the upgrade can only be carried out after the application users reach a consensus< Second, the application data must be encrypted and stored on the public blockchain
3. The application must have a token mechanism (it can use the existing token or issue a new built-in token), and the miner or application maintenance node needs to get token reward
fourthly, the generation of application token must be based on the standard encryption algorithm, and valuable nodes can get the token reward of the application according to the algorithm
in short, an application running on the public chain in the form of smart contract can be called DAPP. Different from the conventional app, DAPP's logic (source code), stored proceres and stored results are open and transparent, and can't tamper with the storage logic and content< At present, dapps meeting the above conditions include the following categories:
content dapps -
the coupling between blockchain and content vertical field is very good. Using the characteristics and technology of blockchain, there are more and more platforms to do content, and the competition on this track is extremely fierce, such as steemit abroad, currency, Primas, fulcrum, Youxiang, etc Pressone et al<
DAPP for games -
such as the "blockchain cat raising" incident, which was very popular last year. In this game, players can buy, sell and breed different kinds of kittens. The popularity of this game even caused serious congestion of Ethereum network. Now the blockchain game is not limited to the Buddhist pet game, other blockchain Gobang, drifting bottle, card games and so on
with the development of the times and the more mature and popular blockchain technology, DAPP will be paid more and more attention, and more and more dapps will appear in various scenes of life.