Stop being deceived by blockchain, keep your wallet safe

1. Outline of the story
Recently, everyone’s circle of friends has been swept by blockchain-related news, and some people even predicted that 2018 will be the year of the explosion of blockchain technology. In the second half of 2017, the news of various ICOs continued, and I followed suit and participated in it.
At the beginning of 2018, major exchanges began to launch various virtual currencies, and aunties from all over the world also began to enter the market. Various projects based on blockchain technology emerged one after another, but also saw the emergence of many fake virtual currencies. . Just develop a website, find a few platforms, and start publishing.

2. Blockchain practice
(1) Official wallet download
First, download a wallet from Ethereum. There are two ways to download, one is to download from the official website https://ethereum.org , and the other is to download from the mirror https:/ /github.com/ethereum/mist/releases , choose the version suitable for your computer.

Here, for the download is the mac version, as follows:



After the download is complete, install



(2) Synchronizing code and nodes
This process takes a long time and is related to the current network. It may take several hours, and the synchronization may even fail.




During the synchronization process, we can create an account using the Ethereum wallet.
Click "USE THE MAIN NETWORK" to start using the Ethereum wallet. In addition, if you click "USE THE TEST NETWORK", you will enter the test network. If you do not need additional testing, you do not need to enter the test network.

After that, there will be operations related to setting the account password:




Enter the account password, and then click NEXT. At this time, you will see your key, click create, the creation is complete, and you will be prompted to backup the keyfile and password.



Back up your account by doing the following:



The wallet will automatically open the Ethereum file and you can see:




The private key is in the keystore, just back up the keystore file. If there is a large amount of ether in the account, it is recommended to store it offline, remove the keystore file, and save it in a USB flash drive. When you plan to transfer, just move the keystore file back to the original location. If you change the computer, just copy the keystore to the corresponding file of the new computer wallet. The datachain file can also be copied without having to download the blocks again.

(3) Wait for the synchronization block to complete After
a period of time, if the synchronization is successful, the following page will appear with the LAUNCH APPLICATION button:




(4) Knowledge related to smart contracts
Before deploying contracts to issue tokens, it is necessary to understand the concepts related to smart contracts.

Smart contracts are an idea put forward by Nick Szabo in the 1990s, almost the same age as the Internet. Due to the lack of a credible execution environment, smart contracts have not been applied to the actual industry. Since the birth of Bitcoin, people have realized that the underlying technology blockchain of Bitcoin can inherently provide a credible execution environment for smart contracts. Ethereum First saw the fit of blockchain and smart contracts, released the white paper "Ethereum: The Next Generation of Smart Contracts and Decentralized Application Platforms", and has been committed to making Ethereum the best smart contract platform, so Bitcoin leads the way Blockchain, Ethereum resurrects smart contracts.

A smart contract program is not just a computer program that executes automatically: it is itself a system participant. It responds to the information it receives, it can receive and store value, and it can send information and value out.

This program is like a person who can be trusted to temporarily keep assets and always act according to the rules in advance.

The following diagram is a smart contract model: a piece of code (smart contract), deployed on a shared, replicated ledger, that maintains its own state, controls its own assets, and responds to incoming external information or assets.



Smart contract model: It is a computer program running on a replicable, shared ledger that can process information, receive, store and send value.

The Ethereum project borrows the technology of the Bitcoin blockchain and expands its scope of application. If Bitcoin is a special-purpose calculator using blockchain technology, then Ethereum is a general-purpose computer using blockchain technology. Simply put, Ethereum = blockchain + smart contracts.

与比特币相比,以太坊最大的不同点是:它可以支持更加强大的脚本语言(用技术语言讲就是图灵完备的脚本语言),允许开发者在上面开发任意应用,实现任意智能合约,这也是以太坊的最强大之处。作为平台,以太坊可以类比于苹果的应用商店,任何开发者都可以在上面开发应用,并出售给用户。
(5)部署合约,发行代币
接下来就是重头戏了,现在的ico很多都是用这种方式骗钱,20分钟发行一种代币,然后圈钱。
打开以太坊钱包,点击LAUNCH APPLICATION,开始部署合约。
1)点击右上角的CONTRACTS



2)点击DEPLOY NEW CONTRACT


3)粘贴合约代码
在下图的SOLIDITY CONTRACT SOURCE CODE,下面粘贴 https://www.ethereum.org/token 页面中,THE CODE的代码。



粘贴完成后,代码编译通过,右侧就会自动生成让我们选择合约:




下拉选择Token ERC 20,此时又会自动生产三个参数列表:



Initial Supply:表示要发行多少个币,此处我们填入10万。

Token Name:表示发行的币的名字,我们姑且就叫“做头发”币吧。

Token synbol:表示币的符号,就叫ZTF。
4)发布
上面的信息填好之后,最下方有个DEPLOY按钮,点击之前,钱包里要有少量的ETH,作为执行合约的Gas。




然后点击发布,由于鄙人钱包里没有ETH,后面的步骤,截取了其他朋友发布成功的图,如有侵权,请联系本人。




输入密码,并点击SEND TRANSACTION 便可完成合约部署和代币发行,发布完成后如下:


合约不会第一时间出来,任何特殊账户之间的Transaction都需要挖矿挖出来,并得到各个区块的确认。一段时间之后,合约才会出现。

三、总结
发行了代币后,发行方就可以写个白皮书,然后各种朋友圈宣传,然后又是ICO,又是私募。这钱是不是赚的很快,简直是抢啊。
所以,大家还是不要跟风,区块链技术的确很伟大,但是我们要参与真正好的项目,不要被别人蒙骗了,看好自己的钱袋,谨慎投资。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325721581&siteId=291194637