In my study of Ethereum technology, because of less relevant information, so took more detours. So here we will not introduce the grammatical structure of solidity, but will be in the next stage, from the actual combat, in succession to introduce Geth, browser-solidity, mist these three tools, and in the process of constantly explaining the basic concept of ethereum.
Through the practical use of these tools, as well as the basic concept of ethereum to deepen understanding, for the second stage of learning solidity language can be more effective (after all, language learning is very fast, especially a class of JS language) ethereum basic concept Ethereum, The simplest argument is: Blockchain technology + smart contracts. Ethereum and blockchain technology, there are transaction,block, the relationship between the account and the account needs to be executed with transaction, any transaction need to have a mining block to produce. Ethereum and the original Bitcoin technology is different from the implementation of the solidity language-based smart contract, and the smart contract as a special account, so that in the smart contract can also be implemented in a specific way to achieve the smart contract can be executed by the EVM (Ethereum virtual machine), through the Ethereum virtual machine, Thus, the solidity class JS code becomes the encryption code that can be executed on the block chain. Unlike bitcoin technology, where gas is required for transaction in Ethereum, a contract or a trading gas is fixed (depending on the size and complexity of the code), and the gas price is determined by the Oracle in Ethereum. Ethereum also built a more complete, open-source ecosystem, not only the underlying geth, programming solidity, contract online browser browser-solidity, contract wallet Mist/wallet, Ethereum front-end development framework Truffle, A wide variety of open source Dapp, and so on, for everyone to quickly get started, and to develop suitable for landing blockchain applications. Interested in blockchain technology, also welcome to contact me, or visit our Ethernet http://www.ethchinese.com Geth Tool Introduction Geth tool is Go Ethereum, is the official Ethereum client (Go language implementation) With some basic commands of Geth, it is easy to create a private chain of ethereum.
Geth--datadir "./" init Genesis.json
geth--datadir "./"--nodiscover console 2>>geth.log
Geth's command line contains most of the Ethereum commands, including the new account, the transfer of the etheric currency between accounts, the mining, the balance, the deployment of the Ethereum contract, etc. Of course, the shortcomings of Geth is also obvious, geth or the underlying content, many operations require more complex input. So we're going to introduce browser-solidity
browser-solidityThis is the Ethereum smart contract browser compiler, direct access to the site can, of course, if the speed is too slow and unstable, can also build their own. Browser-solidity is very fast because it runs in memory, and it is very easy for some simple functions, such as arithmetic, to develop and debug. Browser-solidity we will be repeating some basic concepts, such as transaction,gas,account and so on. The disadvantage of browser-solidity is also obvious, because it is running in memory, so it is quite powerless to develop, debug & test the contracts involved in the account. So I'll introduce you to mist, the official Wallet tool.
MistMist is the official Ethereum wallet that connects the production network to the test network and can be connected to our own private network by setting parameters. Mist is connected with the GETH.IPC file, it is fully aligned with the network established by Geth, and the contract deployed on Mist is actually deployed on the Geth network. Create a new account on the Geth network, or you can see it on the Mist tool. Through mist, we explain the core concepts of ethereum in more detail, including: chunks, Transaction, gas, accounts, contracts, constructors, variables, and methods in the contract.
Through the introduction of Geth, Browser-solidity, Mist three tools, we provide a good tool to develop, debug and test our smart contracts.
In the following article, we will formally introduce to you three tools geth/browser-solidity/mist
Original address: http://www.ethchinese.com/?p=651