ia

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:

Introducing the new Blockchain.com monthly newsletter — April Edition: “After the Dust Settles”

The quality of information and data in crypto has improved in recent years, so you may be asking why another monthly newsletter?There are still some big data and analysis gaps in crypto. Crypto markets are nowhere near as widely served with reliable research and data as traditional markets. Indeed, the March 12–13th crypto stress test demonstrated there are also still some very significant issues with the state of crypto exchange infrastructure.What you can expect from our monthly newsletterOur intention with this newsletter is to avoid repeating what you can find

Ethereum DApps: How to Listen for Events

Using the instance we created in step 2, we can subscribe to listen out for any events that it emits.Figure 4: Subscribe to ‘MyEvent’As stated earlier, the event we want to listen for is called MyEvent, and figure 4 shows us how. Our myContract instance has an accessor called events from which we can target MyEvent. This is an asynchronous function that returns a promise, and it’s called every time MyEvent is emitted.Line 3 defines what happens once data has been returned from the promise. Here we’re simply logging the

The crypto lending industry — a ticking time bomb, rather than a shortcut to mainstream adoption

In his book “Extraordinary Popular Delusions and the Madness of Crowds”, Charles Mackay says that men think in herds and go mad in herds, while they only recover their senses slowly, and one by one. That was written in 1841. Today, it is even more relevant.The most illustrious collective obsession in the past decade is cryptocurrencies. For the last couple of years, we witnessed industry-specific shocks with varying implications, be it exchange hacks, scam schemes, or else. Although covered in controversies, in the long-term, the rise of cryptocurrencies should be

Video: Blockchain.com’s Crypto Market Update — April

Today we’re excited to share the video recording of Blockchain.com’s Crypto Market Update discussion on April 2nd, 2020 between our Co-founder, Nic Cary, and Head of Research, Dr. Garrick Hileman.In the webinar, they cover:Price: what gold price in 2008–2011 may say about BTC?On-chain data: hashrate drop & upcoming halveningHistory: doesn’t always repeat, but often rhymesCOVID-19: winners & losersQ&A from attendeesWatch the full recording now on our YouTube. Source: https://medium.com/blockchain/video-blockchain-coms-crypto-market-update-april-bd3362feb32c?source=rss----8ac49aa8fe03---4

With Reserve Requirement for Banks Set to Zero by the Fed, You Need to Think Making Bitcoin Your…

If you continue to trust the banks, it will be at your own risk.The month of March 2020 is forever etched in history. The strong spread of the coronavirus around the world will have played the role of trigger in the economic crisis announced for years… Source: https://medium.com/in-bitcoin-we-trust/with-reserve-requirement-for-banks-set-to-zero-by-the-fed-you-need-to-think-making-bitcoin-your-6b358acb264f?source=rss-------8-----------------cryptocurrency

Evolution of‘Payments’ Will Bolster Next-Generation Businesses

Humans have always been on a developmental journey. When we are born into thousands of years of inventions and improvements, it’s easy to take for granted what’s around us— as if they always existed. We seldom think about the changes it took to get to where we are.Take for example, the creation of language and how that opened up a new course in human history. How it led to communication, collaboration, communities and organizations. From there, people organized a set of doctrines and came up with story-telling, a precursor to