...by Daniel Szego
quote
"On a long enough timeline we will all become Satoshi Nakamoto.."
Daniel Szego

Sunday, October 29, 2017

Micro-economical considerations of the cryptocurrency mining


Cryptocurrency mining especially proof of work can be analysed from a pure micro-economical point of view. First of all, the market is about transaction validation. The mining economy is split into two parts: the miners provide the supply for transaction validation. Other actors, like users, merchants, exchange services that send transaction into the system provide the demand for transactions. 

It started somehow in a way that everyone could  run mining on a simple laptop, implying practically a perfect competition between suppliers with minimal fix costs and entry barriers. As the hardware requirements developed further the fix costs of the miners were getting bigger and bigger, implying centralization efforts which was manifested for example in the appearance of mining pools. It means that the transaction validation market moved from the perfect competition to the monopoly direction, having at the moment somewhere at the stage of oligopoly. 

In this sense we might as well define centralization and decentralization in the sense of market structure, meaning that in a total decentralized application the transactions of the application are executed on a supplier market that is globally distributed and is in the state of perfect competition.    

The rebirth of classical numerical economic theories at cryptoecomomics


Classical numerical economic theories, like microeconomics or game theory were once vital elements of every economic analysis. However in the meantime, even if these theories are part of the general university education, they seem to be less popular comparing to more "human-oriented" areas, like behavior based models. However, it is foreseen that these theories will have a rebirth in the area of public Blockchain and other distributed ledger technologies, implying the theoretical area as cryptoeconomics. 

In this area, we can actually work pretty well with the homo-economicus assumptions: we basically dealt with actors that are either humans, or simply computer algorithms, that do not know and do not trust each other, so the major motivation of the cooperation is simply the profit maximization.   

Supply demand analysis of the Bitcoin transaction fee

Recent events showed an extreme increase in the bitcoin price especially at the end of summer, implying situation in which the transaction fee itself was sometimes bigger than the amount to be transferred. Certainly with the SegWit and SegWit2x activations, the situation will be better, however the basic problem will not be solved. 

Transaction fees are basically priced on the market based on supply and demand (Figure 1). Demand curve seem to be relative simple, if the transaction fee is high, people tend to send as little amount of transactions as possible. If the price is low however, than a big number of microtransactions can be carried out without a huge cost implication. Supply curve however is a little bit special. On on hand, it might make sense to carry out transactions even if the transaction fee is zero or negative, because the miners reward is not only based on the transaction fees, but on a block reward as well. On the other hand, because of the block limit, the possible number of transactions is limited to around 7, meaning that the supply curve will change to vertical at this point, meaning that the supply is perfectly inelastic.     


Figure 1, supply demand curve for the Bitcoin transaction fee.

Figure 1, shows that cause of the fast increase of the transaction fee pretty well. As Bitcoin is slowly reaching the mainstream adaptation,  the demand curve will generally increase, slipping to right and high. As soon as the demand curve reaches the vertical part of the supply curve, even a small amount of change in the demand results a huge increase in the transaction fee.

The situation will be better, but actually will not be solved by the SegWit activation, as the vertical point of the supply curve will only be at a higher value but do not disappear totally. As a consequence, we will face with the same problem probably in a year as the general demand for Bitcoin transaction increases. 



Saturday, October 28, 2017

What is the difference between a real estate and a cryptocurrency

This was actually a general question in of of the community blog, however it is interesting generally, so I try to answer it generally.

Both cryptocurrencies and real estates are assets. The only difference is that a cryptocurrency is digital asset meaning the ownership is guaranteed by network protocols and cryptography. On the other hand, a real estate is a physical asset, meaning that even if they are administrated by a Blockchain protocol, the value of the ownership of the asset is guaranteed by the government.   

It is important to note however, that in both cases only the ownership of the asset is guaranteed, the value itself is not guaranteed. In both cases the value of the asset is based on pure market mechanism, namely on supply and demand. It is certainly true that at the moment the price volatility of a real estate is much smaller than at a cryptocurrency, however this might change on a long run because of the network effect, as cryptocurrencies will be reaching mainstream adaptation.

Blockchain as a management or leadership philosophy


"Agile leadership", "Agile management", "Data-driven leadership", "Lean management", "AI in leadership", "How AI will redefine the management", "Lean Leadership" .... Business and management philosophies seem sometimes lack of the original new ideas, instead they borrow ideas from the technology field and try to adapt somehow to an absolutely other field. Classical nowadays example is the Agile leadership and Agile management, which has got the original root in the software development, however it is widely used from classical project management to leadership philosophies with more or less success. Similarly lean, or 6 sigma were actually rather special techniques for production until they were adapted to a broader audience. AI (Artificial Intelligence) and machine learning have been starting to appear in the technology hype phase, however there are already initiatives to define data-driven leadership, and there is brainstorming as well to define AI in leadership.

Surely, there will be initiatives to adapt Blockchain or rather in broader aspect decentralization as a management, business or leadership philosophy. Actually, we have already seen the first initiatives, the DAO (Decentralized Autonomous Organisation) that were trying to replace some of the core management functions with smart contracts. Unfortunately the project was hacked, as a consequence the initiative did not really reach the Hype phase. However, the DAO is only one part of the spectrum. As it is possible to replace most of the core management administration and coordination with smart contracts, it is still pretty much an illusion to automate everything from leadership to doing business. On the other hand, management and leadership philosophies are simply products that are sold among the others to managers and leaders, so automating everything might not be the best selling argument for some of the target groups. 

As a consequence, I am sure that Blockchain or Decentralization will appear as a general management or leadership philosophy as well that has got the roots in the technology field itself but will adapt most of the ideas. How will this new philosophy look like ? Well, we can only guess: It will be probably prefer platform thinking, it will automate most of administration tasks with smart contracts (and hopefully rather with gamification than with some boring administrative tasks), it will be exponential, it will consider non-humans as well both and employees or as customers .... 

If it generally make sense to have decentralized management or leadership philosophy? 
That is actually a pretty good question but considering the recent Blockchain hype, the general philosophy side will appear, independently if it makes sense or not. Just as Lean, Agile and Data-driven have been already appeared on the management and leadership philosophy side. 






Notes on Initial Coin Offering


Well, ICO (Initial Coin Offering) it a topic that is pretty much highly discussed at the moment. On the one hand the whole are is basically a wild west, apart from the good intention start-ups, there are a lot of Ponzi schemes, Pump and Dump schemes, or simply tokens that provide nothing in exchange to the value of the token. 

On the other hand, the whole ICO market shows that the idea is actually a pretty much working idea, summarizing the advantages in three major points:

1. The area is booming of innovations: there are a lot of experimental initiatives to try out in which fields is it possible to use the decentralized model, how they might work and how they do not. 

2. There is pretty huge demand on the market: If I am someone that wants to invest some money into a start-up, it is pretty difficult to do it otherwise. Certainly I can buy some stocks on the finance market, however on the one hand stocks are investments of big companies, not exactly start-ups, on the other hand there is a financial border for most people throughout the world of investing in stocks. ICO on the other hand is available for everyone on a self-service basis. 

3. There is a huge supply on the market: for every start-up, there is not necessarily an easy way to collect funds. To get venture capital, is usually not an easy process and the result is pretty much questionable as well. On the other hand, latest news have been demonstrated that raising money with the help of an ICO can be pretty fast and pretty successful.    

Does Cryptocurrency mean the end of Fiat money ?


Perhaps the question itself is a little bit provocative, however we might as well consider the appearance of the cryptocurrencies simply from an evolutionary perspective. As barter was replaces by primitive, following coinage, then paper money and fiat currencies, perhaps cryptocurrencies are simple the new stage of the financial technology evolution. Certainly for the first run Bitcoin and other technologies provide rather a simple money transferring technology. However, there not seem to be any reason why the technology could not extend to a broader area, providing general financial services besides money transfer. One example for that is the appearance of cryptograhicaly funding services, like ICO-s that have the chance to replace the whole venture capitaslim. In this sense, we might as well easily imagine that in a twenty years, fiat style currencies will hundred percent replaced by crypto style financial services.    

Notes on purchasing power of a cryptocurrency



As cryptocurrencies are getting into the mainstream, we might as well start to think over if there is a meaningfully definition of purchasing power of a cryptocurrency.

"Purchasing power is the number and quality or value of goods and services that can be purchased with a unit of currency." - Wikipedia.

However, we need some differentiation here. For the first run, the question is what goods and services can you buy directly with the given cryptocurrency. Certainly there is always the possibility to exchange the given crypto into some other crypto or some fiat currency, however it is pretty much the question if we want to consider purchasing power this indirect way as well. On the other hand general price volatility is somehow feel to be somehow pretty high.

Considering these facts, I think we should distinguish two different measures: 

1. Cryptocurrency coverage: A measure that show what, how many goods or services, can you buy for a given cryptocurrency. It is certainly not so easy to formulate it exactly, however we can argue that Bitcoin has certainly a bigger coverage than Litecoin, which has surely a bigger price coverage than the other noname cryptos. 

2. Cryptocurrency purchasing power: it should look similar to the classical purchasing power, like we might as well interpret as the purchasing power of the crypto after changing it to US dollar for example. Certainly the US dollar choice is pretty arbitrary, the reason for that is that most services and goods that are sold by crypto at the moment are usually denominated in US dollar. However on a long run, perhaps better measures can be found as well.      

Tuesday, August 8, 2017

Forks in Blockchains, forks in cryptocurrencies

Introduction

Last week, we encountered one of the most important and surprising events of Bitcoin's cryptocurrency: The currency was hard-forked, meaning it was finally separated into two different competing crytopocurrency, Bitcoin Cash was born out of Bitcoin. In the following article we briefly summarize what exactly means if a Blockchain system is forking and what are the consequences in a short and long term.

Forks in a Blockchain

From a technical point of view a Blockchain based system has got two important building blocks: the P2P network, containing a huge amount of independent nodes and the distributed ledger itself in which e summarize the valid transactions of the system in blocks (Picture 1). One important feature of the system is that the nodes independently store the entire block chain and each block is chained together by a special cryptographic pointer (u.n hash pointer). One of the most important elements of the algorithm is the decentralized consensus, which is a mechanism for summing up new transactions into a block and attaching this block into the chain. There are several algorithms for consensus, but perhaps the most important is the so called Proof of Work where some special mining nodes solve an algorithmically difficult cryptographic puzzle. The node that first solves the puzzle and attaches  the new block into the chain takes a reward for it.


Picture 1, Standard forks in a Blockchain

Given that nodes are geographically distributed across the globe, there may be two separate independent blocks in the network that solves the puzzle and attached a new block, for example, a miners in China will pick "Block 4" and a miners in Canada will use the "Blokk 4 * ", so the nodes in Canada consider another Blockchain valid than the nodes in China (Picture 1). This situation is called the Blockchain fork. It is important to note that it is normal to have such a forks only on short-term, because an important property of consensus algorithm, that always the most longest Blockchain should be considered as a valid Blockchain. If, for example, Chinese miners find a "Block 5" Five and spread over the network, Canadian nodes will automatically detect that the longest chain is "Block 4" - "Block 5" and it will be considered as a valid one. "Block 4 *" will be ineffective (Orphaned Blocks) and the transactions in it will be processed in a new block based on "Block 5".

Although it may seem a bit odd for the first run that forking occurs in the Blockchain during normal operation, however they rarely take long and rarely longer than one or two blocks. In order to create a a forking situation, mining nodes in two different parts of the world needs to find a valid block roughly at the same time. In order for a fork to survive, it is necessary to find the next blocks "Blocks 5" and "Blocks 5" at roughly again at the same time. With the number of blocks, this chance decreases exponentially; the probability that a 6 long fork  is created microscopically small. That is the reason for example that as a rule of thumb one has to wait 6 validations for a Bitcoin transaction, meaning that the transaction is part of a block that has already been  followed by 5 further mined blocks, so the chance of forking is minimal.

Hard fork versus soft fork

Certainly, the situation can be more complicated. The problem is that the software on each node is not static one but it is constantly being developed. New versions and updates of software often affect what we consider to be valid transactions or valid blocks. In addition, since it is a massively distributed public network, each node operator can freely decide whether or not to run the new version of the software. If half of the nodes work with an old software and consider the transactions as valid under the old rules, whilst the other half already take the new rules into account, it can cause long running forks in the Blockchain (Picture 2).


Picture 2, forks at software update

Practically speaking, there are two kinds of different forks. At the so called soft-fork, the new software is compatible with the old one in a sense that the new software only narrows the range of possible valid transactions or blocks. With other words, if an updated node finds a transaction or block valid, than the old nodes will find it valid as well. For soft-forks, if the updated software is running for most of the nodes, only short-term forks will be created in the block chain. On the contrary, at hard-fork  the new software is not compatible with the old one (Picture 2). If not all of the nodes are updated to the new software version, it causes that the Blockchain will eventually branch out into two competing ones: old nodes will build blocks with old rules and only these blocks will be stored, new nodes will count with the new rules and only blocks are stored that are validated by them. Virtually the system is split into two parallel subsystems.

Picture 3, soft fork versus hard fork

Value of a cryptocurrency

Of course, it is an interesting question is how good or bad is when a block chain-based system finally forks. The value of most cryptocurrency and Blockchain based services are relative complex concept that depends on the following major independent actors and groups:

- Developers: The more developers support the system, the faster you can implement new services, fixing existing errors and more.
- Operators - Miners: The more independent nodes are in the world, the more robust and stable the whole system works. The more miners working with more sophisticated tools the harder it is to break the system.
- Traders: Traders have the interest of a more stable and reliable operation and that a huge amount of users can buy with the given cryptocurrency.
- Customers: For them the major motivation is to have the possibility to buy as many shops as possible and that the  the whole system operates smoothly.
- Investors and Speculators: This category usually uses the given cryptocurrency only to realize short or long-term profit on exchange rate changes.

Generally speaking the more stakeholder or the bigger community is to be found the more stable is the system and basically it the interest of almost everyone that the system behaves stable.    Overall, it is overall interest that the more people use the system and the more stable it runs, so a hard-core is fundamentally no long-term advantage, but finding a common solution with such a large number of independent actors is relatively difficult. In addition, it is worth mentioning that if a block chain system hard-fork-ol then existing cryptovaluta can be used in both new systems, of course another question is what happens to the exchange rates after block chain branching.

Bitcoin fork: Bitcoin and Bitcoin Cash

The Bitcoin protocol has long been suffering from a pretty serious scalability problem: the 10-minute block validation time and 1 MB block sizes allow the entire network to handle approximately 7 transactions per second, compared to Visa with the few thousands or even PayPal's hundreds of transactions per second. There have been a number of technical solutions to solve the problem that usually work with increasing block size, however these software updates risks a hard-forks. As mentioned above, hard-fork can be avoided if all participants agree hundred percent and all operators and miners will install the new software version roughly at the same time.

To avoid this risk for a hard fork, an alternative possibility has been proposed that is backwards compatible and might make only a soft-fork. it operates with a special extra block complementing the original blocks of the chain (SegWit), so the transaction number per second can be doubled. In the Bitcoin community, a long-term discussion was carried out which version is more practical: the main criticism of the SegWit system argued that this is just a temporary solution that needs to be upgraded on a long run. The debate escalated on August 1 as a group of operators miners and programmers rolled out a version that uses an 8 MB block size and that is incompatible with the old software version. This caused a permanent fork in the Bitcoin Blockchain and a new cryptocurrency called the Bitcoin Cash was borne. At the end of the hard-fork, nodes and miners who updated their software processed the blocks and transactions of the new Bitcoin Cash system, operators and miners running the old version stayed with the old system. 

Of course, it is an interesting question what happens on a long run with Bitcoin Cash. It is important to note that community support for the new cryptocurrency is pretty low even if it is technically more advanced than the classic Bitcoin. With other words, only a small number of operators support the new system and fewer customers and merchants are available. As a consequence, the chance that a stable and long-running cryptocurrency has been borne seems to be little at the moment.