Block chain Learning (4): The basic concepts and tools of the ether square Geth, browser-solidity, mist__ ether Square

Source: Internet
Author: User

In the course of my research on the technology of Ethernet square, due to the relatively few data, it took a lot of detours. So here we will not first introduce the grammatical structure of solidity, but will be in the next phase, from the actual combat, to introduce you to Geth, browser-solidity, mist these three tools, and in the process of constantly explaining the basic concept of the ether.

Through the actual use of these tools, as well as the basic concept of the etheric square to deepen understanding of the second stage to learn solidity language can be more effective (after all, language learning is very fast, especially in a class of JS language) ether basic concept of the ether square, The simplest way to say this is: Block chain technology + intelligent contract. Like Ethernet square and block chain technology, there are transaction,block, the relationship between account and account needs to be performed with transaction, and any transaction need to be generated by digging the blocks. The Ethernet square differs from the original Bitcoin technology by implementing an intelligent contract based on the solidity language, and the smart contract as a special account, so that in the intelligent contract can also achieve a specific way to achieve the implementation of the Intelligent contract EVM (Ethernet square virtual machine), through the Ethernet square virtual machine, So that the solidity such a class JS code into the block chain can be executed on the encryption code. Unlike Bitcoin, where gas is used in the transaction of the ether, a contract or a transaction of gas is fixed (depending on the size and complexity of the code), and the gas price is determined by Oracle in the ether square. The Ethernet workshop also builds a more complete, open source ecosystem, not only the low-level geth, the programming solidity, the contract online browser Browser-solidity, the contract wallet Mist/wallet, the Ethernet Square front-end development framework truffle, A wide range of open source Dapp and so on, convenient for everyone to start quickly, and developed a suitable for landing block chain applications. Interested in block chain technology, also welcome to contact me, or visit our Ethernet Chinese Web http://www.ethchinese.com geth Tool Introduction Geth tool is Go ethereum, is the official client of the Ethernet (Go language implementation) Through the Geth of some basic commands, it is convenient to create a private chain of the etheric square.

Geth--datadir "./" init Genesis.json
geth--datadir "./"--nodiscover console 2>>geth.log
The Geth command line contains most of the etheric square commands, including new accounts, the transfer of the etheric currency between accounts, digging, obtaining balances, and deploying an Ethernet square contract. Of course, the shortcomings of Geth is also very obvious, geth or the bottom of the content, many operations require more complex input. So we're going to introduce browser-solidity browser-solidityThis is the Ethernet square intelligent Contract browser compiler, direct access to the site can, of course, if you feel too slow and unstable, you can build their own. Browser-solidity is very fast because it runs in memory, so it's easy to develop debugging for some simple features, such as arithmetic. In Browser-solidity, we will repeat some basic concepts, such as transaction,gas,account and so on. Browser-solidity's shortcomings are also obvious, that is, because it runs in memory, so the contract development, debugging & testing involving accounts is quite weak. So I'm going to introduce you to mist, the official Wallet tool. MistMist is the official wallet of the ether square, he can connect the production network, test the network, more can by setting parameters of the way, connect our own private network The mist is fully aligned with the network established by Geth after GETH.IPC files are connected, and the contracts deployed on mist are actually deployed on the Geth network. A new account on the Geth network can also be seen on the Mist tool. Through mist, we have explained the core concepts of Ethernet square in more detail, including: blocks, Transaction, gas, accounts, contracts, constructors in contracts, variables and methods.

Through the introduction of Geth, Browser-solidity, Mist three tools, we provide a good tool to develop, debug and test our intelligent contracts.

In the following article, we will formally introduce you to the three major tools Geth/browser-solidity/mist


Original address: http://www.ethchinese.com/?p=651

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.