Blockchain Academy (1): Introduction to Blockchain

In front of the words:

I believe readers who are reading this article must have heard of blockchain, and also believe that blockchain is a promising, even disruptive technology. But you may be confused at the same time. Although there are some general concepts about the blockchain, it is not so easy when it comes to how to apply the blockchain technology and how to program the blockchain. Then congratulations! Come to the right place. This tutorial mainly introduces a main genre of blockchain technology: the programming of Ethereum. I hope that after reading this tutorial, readers can learn and master the programming of Ethereum and its smart contracts, and be able to apply blockchain technology to in the actual project development.

Finally, let me introduce myself: Net name "Nebula", founder of Ethernet Chinese Network (www.ethchinese.com), senior Internet practitioner. He has been engaged in the research and exploration of Internet finance, Ethereum technology, hyperledger, Bitcoin and other blockchain technologies. Now he is mainly devoted to the training, promotion and ecological construction of blockchain technology.

If you are interested in the article, welcome to join the blockchain school community:

QQ group: 559649971 (Blockchain Academy fan group)
Personal WeChat: steven_k_colin


WeChat public account: ethchinese

Well, enough nonsense, let's get to the point!

Blockchain primer

What exactly is blockchain?

Blockchain (English: Blockchain) is a distributed database originating from Bitcoin. Blockchain is a series of data blocks associated with cryptographic methods. Each data block contains several Bitcoin network transactions. The information is used to verify the validity of its information (anti-counterfeiting) and generate the next block. (taken from wiki)

Definition of Blockchain Technology:

Blockchain is a distributed ledger , a technical solution to collectively maintain a reliable database in a decentralized and trustless manner.

From a data perspective:

Blockchain is a distributed database that is almost impossible to change. "Distributed" has two meanings, one is distributed storage, and the other is jointly maintained by all participants

Several characteristics of blockchain technology

  • (1) Anonymous
  • (2) Immutable and encrypted security
  • (3) No need to trust the system
  • (4) Distributed decentralization
  • (5) Transaction transparency

Quoted from

Based on the above advantages, the Bitcoin system has realized a self-running trading system with a trading volume of billions, which has been running stably for many years 7*24 hours globally. Bitcoin buying and selling between any two accounts is faithfully recorded on a large number of redundant ledgers.

In the Bitcoin network, any account is anonymous, and transactions between any account cannot be tampered with and will be recorded on every node. Then, through the Bitcoin incentive mechanism for mining, the self-operation of this network is realized without any centralized trading system.

Ethereum

So what is Ethereum?

Ethereum is an open-source, smart-contract-enabled public blockchain platform that provides a decentralized virtual machine (EVM) for processing peer-to-peer contracts through its dedicated cryptocurrency, Ethereum (from wiki)

The simplest way to say it is: blockchain technology + smart contracts.

On the basis of inheriting the blockchain technology, Ethereum realizes the support for smart contracts, so that the blockchain technology can be combined with commercial applications, and the project can be implemented.

In the Ethereum network, a smart contract is also regarded as a special account, so that users can call properties and methods in the account by transacting with the account. Thus, the realization of smart contracts is supported from the underlying technology.

Technical Architecture Diagram

What is a smart contract?

The five characteristics of blockchain technology have been said before. Ethereum inherits all the above blockchain technologies and provides support for smart contracts. Thus, the blockchain technology is extended from the original transaction function between accounts to a platform that can realize smart contracts . This smart contract can be a crowdfunding contract, a mathematical formula, or a completely random number.

As long as the smart contract is deployed on the Ethereum network, it is born with the five characteristics of blockchain technology, and because it is written in a javascript-like language, it can implement a lot of complex business logic.

This tutorial mainly introduces the programming of smart contracts. By writing smart contracts that conform to your own business logic, you can easily implement various blockchain-based projects.

In the next chapter, we will start with the simplest smart contract and give you a quick introduction to what a smart contract looks like?

Original link: http://www.ethchinese.com/?p=603

Guess you like

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