Understanding Overflow and Underflow Attacks on Smart Contracts

One of the best outcomes of blockchain is smart contracts, a computer protocol that facilitates, verifies, and sometimes implements a contract or negotiation. Smart contracts' exciting uses are record keeping in healthcare, real estate, property ownership, insurance, and voting systems.  Despite the preference for smart contracts, one cannot claim that it is a fully secure system. Any unexpected and unwanted elements in a smart contract can have enormous consequences. For example, a bug in a smart contract may trigger it…