12. Smart Contract Security and Best Practices

By Victor Fang, PhD*

* Victor Fang, PhD, is founder and CEO of AnChain.ai.

A smart contract, coined by American computer scientist Nick Szabo, is the revolutionary feature that defines blockchain 2.0, compared to the peer-to-peer decentralized transactions in the blockchain 1.0 era such as Bitcoin, Ripple, and so on.

As of 2019, Ethereum is the most widely adopted smart contract-enabled blockchain. An Ethereum smart contract is decentralized software that can be executed and verified on the Ethereum public blockchain.

Ethereum smart contracts are programmed in Solidity, a JavaScript-like programming language (ECMAScript syntax), and they run in the Ethereum Virtual Machine (EVM). You can learn more ...

Get Building Blockchain Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.