solidity

Smart Contracts: Don’t Reinvent the Wheel

SafeMathIn most modern programming languages, safety in arithmetic operations is accounted for, so little thought goes into their implementation. However, in Solidity, overflows and underflows present a security risk.SafeMath is a library that ensures safe arithmetic operations by reverting the transaction if the bounds of an integer data type are exceeded.SafeMath example.The using statement indicates to the compiler that the contract is using functions defined in SafeMath for uint operations. Instead of using arithmetic operators (+, -, *, /, %), use the functions add(), sub(), mul(), div(), and mod(). Source:

Google Chrome Leads the Pack, but Privacy-Oriented Browsers Gain Traction

In recent months, big-name players like Google and Apple have been going the extra mile to showcase their privacy features to the world. However, as most people are now aware, these multinational companies have business models that are centered around collecting and aggregating the data of their customers. In this regard, growing interest in privacy-first browsers like Brave clearly suggests a collective increase in internet users’ concern over how their personal information is being accumulated, stored and utilized on a day-to-day basis.Individuals all over the globe have become so accustomed to