Blockchain

Algorand’s solution to the blockchain trilemma

Triangle image with text blockchain trilemma

The Blockchain Trilemma

Most blockchains suffer from a trilemma when decentralization, scalability and security cannot be ensured on the blockchain at the same time.

Firstly, decentralization is defined as that property of the blockchain where all stake holders have access to the same amount of resources.
Secondly, scalability where the blockchain is able to process an ever increasing number of transactions within the smallest acceptable “deterministic” time.
Thirdly, any security transaction wherein the blockchain network is able to process the transaction without the possibility of any form of attack.
Most blockchains in today’s world suffers from one if not two of these issues. For example, bitcoin’s blockchain mining is highly concentrated. It is well known that scaling is also a significant problem with bitcoin’s blockchain – since the maximum number of transactions per second processable by the network has been limited by the block-size, and mining algorithm combined.

Algorand – a Blockchain that supports transactions of all types, including smart contracts, promises to be a solution for all three, through a unique and clever “true proof of stake” algorithm. Silvio Micali, the ACM Turing award winner and MIT Computer Science professor and his students are behind this phenomenal idea that accomplishes all three together.

Algorand accomplishes a proof of stake through a three stage process – which  doesn’t depend only on how much stake a miner has on the network. The protocol that Algorand uses is called the Byzantine Agreement protocol. BA not only satisfies some additional properties, but is very fast. Roughly said, its binary-input consists of 3 steps in which one of the participants sends a message ot all other players. The network is complete and synchronous,  where only those who are online at any given instant of time can participate.

In the paper the describes Algorand, Chen and Micali describe a unique mechanism for describing how blocks are generated.  More on this in a future post.

Smart Contracts and Web Assembly

Recent developments in the Ethereum development community have contributed to a multitude of competing programming languages to write smart contracts that run on the Ethereum virtual machine. What if the Virtual Machine itself were to be changed? and the programming language  used to write smart contracts were to change from solidity to other commonly used languages such as C/C++ or even the most secure programming language of Rust, which One of the arguments for supporting this change is the need to support different kinds of hardware (from small devices that run on micro-controllers, to the largest quantum computer), software operating systems and browsers.  WebAssembly (abbreviated Wasm), is a binary instruction format for a stack-based Virtual Machine that runs within the javascript virtual machine supported by most of today’s browsers. Wasm is significantly developed and has a seemingly large list of tools that will enable users to build all kinds of apps. A detailed documentation of wasm and all tools supported is provided at this link. https://github.com/mbasso/awesome-wasm

EWasm ArchitectureFigure 2. Depicts the Ethereum Web Assembly and Ethereum Virtual Machine interface and how they inter-operate.

While Wasm apps are slowly gaining ground for different device based applications, the Ethereum foundation is promoting the development of Ethereum Wasm (https://ewasm.readthedocs.io/en/mkdocs/). E-Wasm is a full stack virtual machine layer on top the Ethereum Virtual Machine, that brings all the benefits of WASM i.e., security, portability, speed, and low memory footprint. This layer supports writing of smart contracts in other programming languages such as C/C++/Rust thereby . E-Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications in the most commonly used programming languages. The design and specification of EWasm will make development and deployment of Smart contracts atop Ethereum secure and accessible to the common masses without needing the complex syntax of the Solidity programming language. 

Web3 Infrastructure and their effects on today’s cloud-based services

turned-onsilver iMac

Web3

Web3 is the name given to the decentralized web where applications, services and infrastructure are all hosted decentrally. Some of the protocols that drive the web3 are IPFS and Smart Contract platforms and networks such as Ethereum. The infrastructure side will definitely see significant amount of decentralization at every layer.
For example, financial services are already being decentralized through services such as  Celsius.io, nexo.io, compound.finance, etc. Ethereum based smart contracts already operate these markets in ways that were not possible. For example, savings interest rates on crypto holdings (even stable coins) in these markets are way higher than what banks can afford.

Infrastructure

Another interesting area where this is happening is on the infrastructure side – both hardware, computing power, and on software services and support. the protocol that is seeing a resurgence in applications is that of ipFS. It may be a decade away as yet, but using cryptographic means, it might be possible in the near future to get significantly large storage at a fraction of the cost that it would otherwise.  Many crypto-platforms such as Filecoin and already releasing their early prototypes onto the market. Similarly,  firms such as infura.io support Ethereum smartcontracts with  IPFS protocols enabling infrastructure support for a lot of backend software such as for decentralized exchanges for creating financial products, testing them, etc… Sia – is another platform that resembles FileCoin.

Applications

There are more than 3 million smart contracts on ethereum alone, and many more on other platforms such as EoS, Tron and a host of other applications. These applications are on their way to decentralize everything from insurance, to banking , to holding assets. With the ZeroX protocol it is possible to exchange any type of securitized asset and exchange it for anything else in the world.

The web3 – as we are seeing it, will be a tectonic shift in the overall internet industry, that will see a new set of business models that will transform the way we work and live, with a lot more decentralization in the wealth and power created and shared.

DEFI ANALYTICS AND APPLICATIONS

Analytics in computer

The GROWTH OF PRODUCTS

Among the 100+ products (and growing)- a list of products and services running decentralized finance applications we have these sets of projects that provide deep Analytics for decentralized finance. Defi Pulse is one of them ( https://defipulse.com/). A clear aspect of this market is how the Maker platform that we have blogged about repeatedly has dominated the discourse both in terms of decentralized governance, ecosystem participation and value locked up and distributed among their users. As of date, approximately $700 million has been locked up on five categories i.e., lending, decentralized exchanges, derivatives, payments and assets.

Among the different forms of Defi applications we see evolving and documented on Defi pulse are the categories of lending markets (Cash loans or crypto-loans which can collateralize against the borrower’s own crypto-currency holdings), decentralized exchanges where users exchange crypto-tokens with each other, derivatives (both first order and second order ones), payment systems such as Lightning network, etc. and asset securitization mechanisms.

ASSET SECURITIZATION

The asset securitization platforms though have higher potential for growth, if legal blockades against cryptocurrency based smart contracts are entirely  removed and the legal mechanisms to enforce these (probably through other layers of smart contracts) are figured out by these audiences.  As an example, if someone were to securitize a 1 acre land holding, and were to sell 10% of the corresponding tokens to a particular individual in exchange for either another asset (token or cash or an equivalent), then would such a token sale be legally valid. There are already several attempts do this both from a legal and from a technology standpoint – though a successful implementation could possibly mean a shift in many areas.

Here is an example :- https://consensys.net/blockchain-use-cases/real-estate/

Insights from Ethereum Analytics

What is truly amazing about Ethereum Analytics on ethinfo.com is that it provides data backed evidence of all aspects of the blockchain ecosystem. As we’re ending 2019 – here are some insights:

  1. The network transaction fees has remained mostly constant for all of 2019 except for occasional spikes indicating that there is no surge in the number of transactions happening on the network.
Network fees

2. The total ethereum network utilization chart shows that the ether network utilization has been between 80 and 100 for almost all of this year, with some instances where the network utilization has been upto 98%.

The above image shows how much of the ethereum network is spread around the world. What is interesting to note is that despite the severe ban on “Cryptocurrencies” and other allied technologies in mainland china, there seems to be more than 1073 ethereum nodes active at this point. However, it is likely that these nodes are being run out of Hong Kong’s datacenters and not on mainland china. Similarly, India has about 160 ethereum nodes active at this point – despite the legal ambiguity.

The above graph shows that the overall network difficulty as measured in TeraHashes has continuously increased over the past year.

In conclusion – we have a network that supports cryptocurrencies that is sufficiently decentralized and is bursting at its seams in terms of network throughput with the utilization of about 90% with near-constant/predictable transaction fees. If this network moves toward Proof of Stake and some of the changes such as sharding were to play out on schedule, we will see a significant number of apps being deployed on the global platform.

Maker DAO’s decentralized Governance model

Maker Token Holder

Often, two detrimental factors affect open source software development.

1. COST OF OPEN SOURCE DEVELOPMENT – COMPENSATION AND OPERATING COSTS

One, the team that builds and later maintains the open-source software is often under-compensated or have to look out to organizations for funding. More often than that the extremely talented software developers and leaders have to engage in other professions or freelance for corporations so as to sustain their own lifestyles which allows them to contribute to open source. Later these organizations themselves impose rules/restrictions and such on these teams of developers leading them to lose track. The fallacies and problems of development are outlined in the Eric S Raymond essay on “The Cathedral and The Bazaar”. Quoting from the essay —- Brooks (the author of The Mythical Man-Month) even made an off-hand observation related to this: “The total cost of maintaining a widely used program is typically 40 percent or more of the cost of developing it. Surprisingly this cost is strongly affected by the number of users. More users find more bugs.” [emphasis added].

2. GOVERNANCE, MANAGEMENT AND OVERALL ENHANCEMENT OF THE SOFTWARE

While governance, management and enhancement of software has had its own perils, very often open-source software development projects have no particular structure. Very often leaders emerge from within and are strongly supported by sets of developers in their direction of development and vision. However, these single team led projects or leadership-driven approaches have shortfalls – they often do not incentivize the crowd or the public to contribute to the software’s development direction. They also are limited by the leader’s vision, the team’s bandwidth, and limitations. It’s almost like planetary exploration. Those who got there first and created the universe control everything therein. Those who come later or who want to improve the planet have only so much say, and if they want to are free to fork the code base and recreate the entire network – which is almost impossible.

MAKER DAO elegantly solves both these problems through an innovative governance protocol. Firstly, Maker allows for public financial innovation wherein individual teams are allowed to propose enhancements to the Maker platform. Each proposal submitted as a smart contract is voted on by the holders of the Maker Token. Each proposal is submitted as a smart contract and has two parts :

  1. The actual proposal to be implemented on the Maker platform and the details of the implementation. An example proposal is given here: https://vote.makerdao.com/executive-proposal/adjust-debt-ceilings-sai-stability-fee-and-the-dsr
  2. The fee that the team demands in order for the proposal to be implemented and released to the public is attached as part of the proposal.
  3. Later those who hold the Maker tokens vote for or against the proposal (http://vote.makerdao.com). Once they vote for change and this change reaches a majority count, the proposal becomes “Active”
  4. The Maker Platform generates the fee demanded by the team in order to execute the corresponding proposal improvement, and the proposal goes live after execution. Once the proposal goes live, the team is compensated with the corresponding tokens.
  5.  However, problems persist with this mode of governance. Often, voting is proportional to the number of maker tokens held by the voter. This is currently not yet centralized, however, given that the distribution of tokens as seen from etherscan.io   is as follows: i.e, https://etherscan.io/token/tokenholderchart/0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2   – A total of 884,824.48 tokens held by the top 100 accounts from the total supply of 1,000,000.00 tokens. Secondly, such forms of voting- accomplished via a smart contract often suffer from the same problems as other cryptocurrency-related problems i.e, anonymity, collusion, multiple-accounts for the same individual, lack of identity, etc…. These problems are definitely extremely difficult to solve and need potentially different types of smart contracts and multiple layers of incentives and punishments to prevent a systemic breakdown of governance. Interesting problems to solve….for those interested in computing and in-game theory.
Maker Top 100 Token Holders

Earning interest while you HODL

currency and coin image

Cryptocurrencies and primarily Ethereum backed ones create new modes of earning interest. What was once an ICO backed increased adoption of cryptocurrencies – after being hyper-regulated, and banned by countries, has now transformed into an economy of regulated less riskier Decentralized Finance.

The premise for earning interest in cryptocurrency markets is simple, and below I list a few means to do so* . As a disclaimer, users who choose one of these means do so at their own risk.

  • Crypto-Exchanges and Margin Trading
    • Writing a crypto-exchange allowing traders to trade coins in exchange of small commissions per trade. There are more than 100+ decentralized exchanges which use smart contracts to swap one cryptocurrency to another. This approach needs deep expertise in a variety of areas including cybersecurity. The list of known ones is here (State of Decentralized Exchanges)
    • Margin Trading – On exchanges such as Poloneix.com users can lend their HODL-coins to others who trade on their behalf.
  • DeFI interest earning applications
    • With applications such as compound.finance, nexo.io, celsius.network and a host of others, users can invest their HODL -coins and earn interest off those coins based on rates determined by the network. These applications provide extremely high liquidity and enable users to withdraw the very same day.
  • Staking networks
    • Cryptocurrencies such as Tezos enable users to delegate their Tezos to bakers, who pay them interests. In fact, staked.us provides support to stake more than 10 different cryptocurrencies.
  • Collateralized Debt Bonds using Maker Platform
    • The Maker Network and crypto-platform enable users to set collaterals in their own bonds such that their existing crypto-currencies (e.g., ethereum, augur, etc) can be baked from the maker platform. The smart contract which locks the users’ cryptocurrency then issues a stablecoin known as DAI based on the existing governance rates of exchange. This DAI can either be invested in other DeFI platforms or can be locked into a savings platform through a Dai Savings Rate contract thus enabling them to earn interest on existing Dai holdings.

0X and the mission to enable “almost” free value flows

0X Token Symbol

The 0X token and protocol is one of the several generalized decentralized token exchange enablers. Their mission has been to decentralize the exchange of value.

While this mission per-se is genuinely a hard problem, whenever exchange of value happens – many intermediaries extract “fees”. Consider a simple case where you go to a store and buy a $5 item. Often there are several costs associated with the good’s sale, which we don’t pay attention to. For example, the state taxes, the value taxes, the surplus earned by the seller and many others. Often – despite the buyer willing to pay for the good immediately, the good itself is not available for sale. These challenges though multi-fold increase the difficulty in trade for the seller and for the buyer too….

Very often however, certain types of financial products are not even made possible by financial restrictions and often by meagre lack of imagination in the financial industry. For example, if one wanted to sell a portion of his mortgage to a lender who offers a lower rate than the current mortgage rate, that is difficult, since there are transfer fees in between. The transfer fees are significantly high that it discourages such transfers…. All of this though 99% of the regular checking accounts and savings accounts give their billions of holders less than 2% interest rates in the US, and in some cases like in Japan a negative interest rate. This 2% in absolute terms, if inflation adjusted would also be negative.

Similarly, if one were to create a peice of art or an e-book and sell it, the intermediary seller recieves a huge commission for the same. Often if the intermediary is a platform, the platform shares a meagre amount to the end seller. With smart contracts and tokenization of assets through smart contracts, it is possible to convert any asset (physical or virtual or even nonphysical) to tokens. Later those tokens can be put out on sale on a marketplace where takers (i.e., buyers) can buy it. Buying again can be apportioned using traditional bidding or at a fixed price. Similarly, apportioning of value based assets, token based assets, etc… all can facilitate the same.

0X (ZeroX) is a platform and a protocol that provides APIs, programming toolkits and interfaces that are user friendly. It is a layer atop Ethereum’s complex Solidity based interface, that allows users to create decentralized exchanges for “custom” tokens. The decentralized exchanges can then be used to trade “standard” established tokens such as bitcoin, ethereum, etc.. in exchange for “custom” tokens created by the user.

In fact within a few minutes one can create a simple web based interface ( with a Javsascript frontend) to create a simple token exchange for a “custom” token to be exchanged with any “standard” token, which underlying it can embody any complex smart contract. Such flexibility in creating newer types of financial assets and allowing a meaningful trade which is instantaneous, at almost no transaction cost – that too decentralized without a large intermediary firm controlling all transfers, and monitoring it, etc.. gives rise to several possibilities….

A future post will walk through the decentralization process using 0X.

DeFi- Decentralized Finance through Smart contracts & Stablecoins

DeFi Text with cryptocurrency image

It is well known that stable coins and stable coin issuance has given rise to accelerated adoption of cryptocurrencies and blockchain finance overall. Nevertheless, the reason for this adoption increase is in the ability to transport cryptocurrencies i.e., stable coins across exchanges, accounts, boundaries and even physically store it on a ledger or software such as exodus.

Decentralized finance using smart contracts and stable coins has seen profitable innovation in financial management, some of which are incomprehensible with traditional forms of money or other assets. For example, an exchange/defi institution situated in the USA can attract capital in USDC and then can lend it out to banks/financial institutions/retailers in other geographies for a higher rate of interest. In the process, they can then return a part of the profits to their end customers. The crux of the rule is that while retailers cannot lend internationally, institutions can.

Smart contract applications such as compound.finance which operate on the Ethereum network using ERC220 standards, attract investments in stable-coins such as DAI, USDC as stable coins and BTC, ETH, BAT, 0X, WBTC as cryptocurrencies. They create a lending contract between borrower and lender and facilitate paying back the borrowed amount in cryptocurrencies.

There are also a host of exchanges, wallets and applications like Celsius, nexo.io, Coinbase and Blockfi which provide interests ranging from 7% to 1.25% on your stablecoin holdings. The nexo.io also insure your stablecoin holdings using a federal program like the FDIC assuring customers of the safety of one’s holdings…

You might actually be better off just converting your fiat holdings to cryptocurrencies and earning interest off the holdings. This way it is a win-win situation for you. We are still scratching the surface of decentralized finance and as time goes by newer and newer innovations in this space will make finance accessible, decentralized and viable to both lenders and borrowers.