Chapter 13: Writing Secure Contracts
Security is an important aspect of any software solution, and smart contracts are no different. In fact, security is more important for smart contracts, since they are custodians of assets and value. Any security lapse can result in hackers siphoning assets belonging to others. There have been multiple cases where multi-million dollars' worth of assets were transferred by hackers to their own accounts. Smart contracts are one of the easiest targets to hack within the Ethereum ecosystem. This chapter will show you some of the ways to solve general security issues within smart contracts. We will also enumerate security best practices for them.
In this chapter, we will cover the following topics:
- The importance of security in smart contracts
- Improvements in Solidity for solving underflow and overflow hacks
- Solving reentrancy hacks in Solidity
- Security best practices from an audit and implementation perspective
By...