Cryptocurrencies have garnered much attention in recent years, both from the academic community and industry. One interesting aspect of cryptocurrencies is their explicit consideration of incentives at the protocol level, which has motivated a large body of work, yet many open problems still exist and current systems rarely deal with incentive related problems well. This issue arises due to the gap between Cryptography and Distributed Systems security, which deals with traditional security problems that ignore the explicit consideration of incentives, and Game Theory, which deals best with situations involving incentives. With this work, we offer a systematization of the work that relates to this problem, considering papers that blend Game Theory with Cryptography or Distributed systems. This gives an overview of the available tools, and we look at their (potential) use in practice, in the context of existing blockchain based systems that have been proposed or implemented.
Since the deployment of Bitcoin in 2009, cryptocurrencies have garnered much attention from both academia and industry. Many challenges in this area have since been recognized, from privacy and scalability to governance and economics. In particular, the explicit consideration of incentives in the protocol design of cryptocurrencies (or “cryptoeconomics”) has become an important topic.
The importance of economic considerations in security has been acknowledged since work by Anderson , who recognized that many security failures could be explained by applying established ideas from Game Theory (GT) and Economics. However, the incentives at play tend to be external to the system design, and sometimes implicit, leading to failures when the the intended use of systems is misaligned with the incentives of users.
Cryptocurrencies, on the other hand, explicitly define some incentives in the design of their system, for example in the form of mining rewards, suggesting that they could be properly aligned and avoid traditional failures. Unfortunately, many attacks related to incentives have nonetheless been found for many cryptocurrencies , due to the use of lacking models. While many papers aim to consider both standard security and game theoretic guarantees, the vast majority end up considering them separately despite their relation in practice.
Here, we consider the ways in which models in Cryptography and Distributed Systems (DS) can explicitly consider game theoretic properties and incorporated into a system, looking at requirements based on existing cryptocurrencies.
As we are covering a topic that incorporates many different fields coming up with an extensive list of papers would have been quite challenging, and would lead to an output of much greater length. In order to pick a representative subset of papers, we started by looking at existing surveys on the topic of Game Theory and Security , as well as specific book chapters on the topic e.g., Chapter in the book by Nisan et al. . We then looked at work published in popular Cryptography venues (e.g., IACR conferences), Security conferences (e.g., FC), as well as Distributed System venues (e.g., PODC) and interdisciplinary venues (e.g., WEIS, ACM Economics and Computation, P2PECON, GameSec), looking specifically for papers that cover both Game Theory and Security.
Different papers sometimes present different definitions for similar concepts, so we do not always include all these definitions. We also omit to present work on security and game theory that does not directly relate to what we discuss, e.g., the body of work by Tambe et al.  about physical security and allocation of limited security resources, or by Grossklags et al.  about security investments. Instead, we focus on some specific models of interest that we think are more appropriate, and match these with problems in the security of cryptocurrencies.
Our goal is to give an overview of the intersection of the three fields that are essential to the design of cryptocurrencies: Cryptography, Distributed Systems and Game Theory. Our contribution is an analysis of existing work that proposes solutions to this problem. Our analysis highlights new concepts introduced by these papers, as well as deficiencies. We do this in the context of security requirements that we formulate, arguing that they address deficiencies in existing security models that fail to cover all aspects of a decentralized cryptocurrency. We also discuss open challenges and how they could be addressed.
Section 3 introduces Game Theory and cryptocurrencies, and discusses security in the context of a decentralized system. In Section 4 we then look at the intersection of Cryptography and Game Theory, followed by the intersection of DS and Game Theory in Section 5. We then look at how these results are used in Section 6, where we look at proposed systems and their failures, tracing back to deficiencies identified in the two previous sections. In Section 7 we give a comparative table of some of the concepts presented in this paper and how they could be used in blockchain research, we discuss the open challenges posed by failures that are observed, and how they could be addressed. Finally, Appendix 9 collects formal definitions for the concepts presented in the paper.
The work that most closely resembles ours are the previous surveys bridging Computer Science and Game Theory . They were of great inspiration for this work, but they are quite outdated (dating back to 2002, 2005, 2007, 2008, 2010) given the recent output of research tied to cryptocurrencies and other blockchain based systems.
On the topic of blockchains, many SoK papers and surveys exist that cover consensus protocols and security . These are very different from our work as we present general concepts and definitions related to designing decentralized systems with incentives. In particular, many concepts presented in this paper were not introduced in the context of consensus, but rather in the context of secure multiparty computation (MPC) or other problems tied to distributed systems. Most of the work presented in this SoK does not directly concern blockchains, which is the motivation behind this work.
In this section we briefly introduce game theoretic tools that are mentioned throughout the paper such as solutions concepts and mechanism design (MD). For a complete introduction to Game Theory, the reader is invited to look at any of the books (or other resources) on the topic . For the sake of exposition we omit to cover concepts that are relevant e.g., correlated equilibria, Pareto efficiency and the single deviation test, as these do not appear in the papers we mention. We also discuss the interface between Game Theory and Cryptography and Security in practice, and briefly introduce Distributed Systems and cryptocurrencies.
A game is defined by a set of players and a set of actions for each player. A strategy for player is defined as a function from its local state to actions.
Game Theory uses solution concepts in order to predict the outcome of a game, the most well known is the Nash equilibirum (NE). A strategy is a Nash equilibrium if given that all the other players follow this strategy, player is better off playing it as well.
It is often unrealistic to assume that players have complete information about the game they are in. A game where players do not always know what has taken place earlier in the game is said to have imperfect information. In the case where players do not know the type of the other players, which determines their utility function, the game is said to have incomplete information.
The players then have a probability distribution over the types of other players. Their beliefs are expressed as conditional probabilities based on the information they have, which they can update using Bayes’ theorem when they gain new information, leading games of this form to be called Bayesian games.
Players now also think about expected payoffs, so the standard definition of a NE is no longer ideal but we can define a Bayesian Nash equilibrium (BNE) analogously by replacing utilities with expected utilities, although we still refer to them simply as utilities.
While Game Theory is typically about understanding the behavior of players in a given game, systems are usually designed and implemented with a goal in mind e.g., preventing double spending in cryptocurrencies. To achieve this, our goals can be expressed as a social choice function (SCF), a function that given the preference (or types) of all players outputs an outcome. For example, in a voting system, given all the ranked preferences of voters, a SCF will choose a candidate.
Once we have a target outcome in mind, the idea is to make sure that the incentives are designed in a way such that selfish players reach this outcome. In some ways, this can be thought of as reversing the basic idea of Game Theory, designing a game that leads to a specific outcome.
For example in a voting system we would like to design a system where given all the preferences of the players, the one chosen by the SCF is elected, one way to do this is to incentivize players to report their truthful preferences. A mechanism can also be viewed as a protocol, with the corresponding game being thought of as having the protocol as the recommended strategy, and deviations from the protocol as other possible strategies.
It must be pointed out that doing this in practice is not always easy, as experimental Game theory reveals. Gneezy and Rustichini  looked at the effects of implementing fines at a nursery in order to reduce the rate at which parents collected their child late. Intuitively, this should motivate parents to arrive on time but parents instead interpreted the fine as a way of paying for extra childcare, and started coming even later. Furthermore, once the fine was removed as it was counter productive, the parents behavior did not revert back so the system had been irreversibly damaged.
A very important result in MD is the revelation principle that states that any social choice function that can be implemented by any mechanism can be implemented by a direct truthful mechanism. A mechanism is direct if players need only reveal their type/utility function to the designer of the game and truthful if players’ best strategy is to reveal their true type.
Both Game Theory and Security deal with the interaction of agents, but they differ noticeably in how they model these agents. Security deals with adversaries, agents that aim to circumvent or break a security property of the system. The value that an adversary attaches to their success is not usually given, as security should ideally be robust to any adversary, although they may have computational limitations. Game Theory, on the other hand, deals with rational (sometimes also called selfish) agents that assign a value to their goals, and would rather optimize their payoff than achieve an arbitrary goal, but they typically do not have restrictions (e.g., computational) like a security adversary would.
In practice, this translates to different assumptions being used when formally modelling a game or the security of a system, making it difficult to prove statements involving security and game theoretic properties. As both deal with different types of agents, a proof will involve complexity from both sides and quickly become hard to manage, leading to a disjoint treatment of both aspects in works that attempt to cover both. There are nonetheless inherent connections as security often uses game based proofs, although an adversary wins if they have a high enough probability of succeeding in their attack rather than if their utility is high enough. But if we assume that the adversary has a high payoff associated with the success of their attack, then we start to recover game theoretic intuition.
For proofs based on the simulation (ideal/real world) paradigm, some connections are also evident. The idea behind the simulation paradigm first originated in the context of secure computation. Goldreich et al.  introduced the idea of bypassing the need for a trusted third party (i.e., a mediator) in games of incomplete information, by replacing it with a protocol that effectively simulates it such that any information known by players at any step of game is the same as they would have known in an execution of the game involving the trusted third party. This was refined by Micali and Rogaway  in terms of ideal and secure function evaluation. The ideal function evaluation corresponds to the evaluation of the function with a trusted third party that receives the private inputs of the parties and evaluates the function before returning the result to each party, achieving the best possible result. The secure function evaluation involves the parties trying to replace the trusted third party with a protocol, which is considered secure if the parties cannot distinguish between the ideal and secure function evaluations, meaning that an adversary is not able to gain anything significant. Simulation has become a powerful tool for cryptographers  and Canetti’s Universal Composability Model  expands on these ideas to provide a framework for secure composability of protocols.
Because the security of most decentralized systems, like cryptocurrencies, is linked not only to the security of the protocols, but also to having a majority of participants following the rules, decentralization and incentives have to be considered.
The ideal system does not depend in any way on any single party, which requires it to be decentralized. Troncoso et al.  give an overview of decentralized systems, defining a decentralized system as “a distributed system in which multiple authorities control different components and no single authority is fully trusted by all others”. This highlights the fact that every component of the system should be decentralized, and in particular a single authority distributing its own system (or component) is not decentralized. This can be hard to achieve in practice, and the level of decentralization of a system should always be looked at critically. A decentralized system where all important parties are independent but under the jurisdiction of a single government may not truly be decentralized. All these independent parties may also depend on a very few hardware manufacturers (or other service providers).
Incentives are key to achieving an honest majority. Azouvi et al.  give an overview of the role incentives play in security protocols, including cryptocurrencies, highlighting the fact that achieving guarantees of equilibria on paper may not be meaningful in practice when the wrong assumptions and models are used. What does security mean in this context? Clearly, protocols that are cryptographically secure, and that achieve safety (i.e., the guarantee that nothing bad will happen) and liveness (i.e., the guarantee that something good will happen) are needed, otherwise nothing else would work. But if the security of the system also depends on achieving a high enough degree of decentralization, more is required. In particular, decentralization relates to the participants and their behavior rather than solely the protocol. Any decentralized protocol can always be ran in a centralized manner, so it is not enough to design a system that can be used in a decentralized manner. Rather, the requirement is to design a system that is advantageous to use in decentralized manner.
Doing this naturally requires a better understanding of why users would want to be decentralized rather than try to gain more individual control of the system for themselves, so security is no longer just about the protocol itself, but also about how it can be used and how it is used.
Bitcoin represents an important innovation from classical consensus protocols as it is fully open and decentralized. In the Bitcoin consensus protocol (sometimes called Nakamoto consensus) participants can join and leave as they wish, and Sybils are handled through the use of Proof-of-Work (PoW).
The data structure that keeps track of the state of the system in Bitcoin is a chain of chronologically ordered blocks i.e., the blockchain, with each block containing a list of transactions. To win the right to append a block (and win the block reward), participants compete to solve a computational puzzle i.e., a PoW. They include in their block the solution to that puzzle, the PoW, such that other players can verify its correctness. This block then initiate a new puzzle to be solved. This process of creating new blocks is called mining and participants in this protocol are called miners.
The security of Bitcoin relies on a majority of the mining power (i.e., hashing power) in the network following the protocol, whether because they are honest or simply rational. Taking control of half of the computational power of Bitcoin for only an hour has a considerable cost (around 670k USD  as of May 2019), although it is with reach of potential adversaries. This cost depends on the hash rate of the network (i.e., the cost of mining) and the price of Bitcoin in USD as once mining is no longer profitable for some miners they are likely to stop mining, reducing the hashing power required to control a majority of the network.
This is one of the reason why Bitcoin’s security is so tightly linked to incentives, as when mining is no longer worthwhile the security of the network decreases. Participation in the network is also rewarded by financial gain (through block rewards and transaction fees). The more participants there are, the harder it is to attack the network since the cost for mounting a 51% attack (where an adversary takes control of more than half of the computational power) increases. These financial motivations are thus also paramount.
Since Bitcoin’s deployment, many alternative cryptocurrencies that similarly rely on a blockchain have emerged. The most popular of these is Ethereum , which differs from Bitcoin in that it provides a more complex scripting language meaning that rather than processing simple transactions, nodes in the system execute a script that allows users to perform multitude of functionalities (so-called smart contracts).
This section considers work at the intersection of Game Theory and Cryptography. Cryptography usually considers a worst-case adversary, but by relaxing this assumption, it is possible to design protocols that bypass impossibility results or achieve better efficiency than existing ones, while maintaining a realistic adversarial model.
Initiated by Dodis, Rabin and Halevi  rational cryptography is a subfield of cryptography that incorporates incentives in cryptographic protocols. In this context, new adversaries and their capabilities have to be defined, as well as how to account for incentives and how protocols can be proven secure for such adversaries.
First, we note that most of this work  focuses on multi-party secret sharing or secure function evaluation. Thus, no monetary incentive is usually considered. As pointed out by Dodis and Rabin , in a rational cryptographic context, the utilities of the players are usually dependent on cryptographic considerations such as: correctness (a player prefers to compute the function correctly), exclusivity (a player prefers that other players do not learn the value of the function correctly), privacy (a player does not want to leak information to other players), voyeurism (a player wants to learn as much as possible about the other parties).
In addition to the above, other interesting parameters can come to play in the adversary’s utility function. For example, Aumann and Lindell  formalized the concept of covert adversaries that may deviate from the protocol but only if they are not caught doing so. As they argue, there are many obvious situations where parties cannot afford the effect of being caught cheating.
Covert adversaries are somehow similar to adding a punishment to the utility function. Rational players do not want to be caught cheating as the punishment decreases their utility. In Aumann and Lindell’s setting the protocol detects the cheating, but in practice we need to incentivize participants to do so. Some work considers adding adversarial behavior together with rational adversaries , we consider this further in Section 5.
In terms of equilibria, the solution concepts proposed in these works are often extensions of a Nash Equilibria (NE), introduced in Section 3. For example, Halpern and Teague look for a NE that remains after other NE that are weakly dominated (i.e., at best only as good as others) are removed through iterated deletion, where all dominated strategies are removed at each step . Asharov et al.  adapt the simulation-based definition to capture game-theoretic notions of (for example) fairness, meaning that one party learns the output of a computation if and only if the other does as well. As their notions are weaker than standard cryptographic definitions, they can be achieved in some settings where impossibility results usually hold in traditional cryptography.
Following the work presented above, Garay et al. propose Rational Protocol Design (RPD) . In this setting, they define a game between the designer of the protocol and the attacker . The game is parametrized by a multi-party functionality and consists of two sequential moves. In the first step, sends to the description of the protocol that honest parties are supposed to execute. In the second step, chooses a polynomial-time interactive Turing machine (ITM) to attack the protocol. The game is zero-sum in the original paper, but was later adapted to be a non-zero sum game in the context of Bitcoin .
In follow-up work , notions of fairness are also considered, and provide a mean of comparison between protocols i.e., which protocol is the fairer. Informally, a protocol will be at least as fair as another protocol if the utility of the best adversary attacking (i.e., the adversary which maximizes is no larger than the utility of the best adversary attacking , except for some negligible quantity.
The solution concept introduced within the RPD framework is subgame perfect equilibrium where the parties’ utilities are close to their best response utilities. When it comes to security, the RPD framework defines the notion of attack-payoff security. Informally, attack payoff security states that an adversary has no incentive to deviate from the protocol.
Another concept, incentive compatibility, was introduced in a follow-up work of RPD . Here, the definition is slightly different than the definition usually given within Mechanism Design (MD) where participants achieve the best outcome by revealing their true preferences. Informally, incentive compatibility states that agents gain some utility when participating in the protocol i.e., they choose to play instead of “staying at home”.
Apart from the recent work of Badertscher, et al. , rational cryptography does not consider monetary payment.
One important drawback of RPD is that it does not consider the presence of irrational adversaries despite the fact that in security, we do not always know the motivation of an attacker. RPD uses a relaxed functionality to allow for some defined attacks but this may not cover all attacks, leaving the door open to potential attacks. The UC model does not automatically start accounting for all possible incentives - this is a clear flaw as we know that only arbitrarily considering incentives leads to failures (e.g., failure of considering outside incentives, or in general "soft" incentives like political and other external incentives ).
Rather than starting from a cryptographic setting and incorporating game theoretic notions, as presented above, one can also start from a game theoretic setting and from there move towards cryptographic notions by considering the computational aspects of games. This approach is taken in a body of work by Halpern and Pass that considers Bayesian machine games first introduced in a preprint  that has later appeared in different forms , primarily venues focused on Economics rather than Security.
A Bayesian machine game (BMG) is defined very similarly to a standard Bayesian game (introduced in Section 3), it only differs in that it considers the complexity (in computation, storage cost, time or otherwise) of actions in the game. This is done by having players pick machines (e.g., a TM or ITM) that will execute their actions and defining a complexity function for that machine, which the utility takes into account.
A Nash equilibrium for a BMG is expressed in the usual way, but it now takes into account the machine profile rather than a strategy profile. There is, however, an important distinction to make between a standard Nash equilibrium and a Nash equilibrium in machine games, which is that the latter may not always exist. The necessary conditions for the existence of a Nash equilibrium in a machine game are given by Halpern and Pass  to be a finite type space, bounded machines and a computable game. A follow up paper by Halpern et al.  discusses the general question of the existence of a Nash equilibrium for resource bounded players.
So far, the discussion of computational games has not yet touched on security related issues, but Halpern and Pass prove an equivalence theorem that relates the idea of universal implementation in a BMG to the standard notion of secure computation in Cryptography . Intuitively, this goes back to the work of Goldreich, Micali and Widgerson  that first expressed (to the best of our knowledge) the idea of secure computation as the replacement of a mediator in a game that preserves an equilibrium.
A universal implementation corresponds to the idea that a BMG implements a mediator if whenever a set of players want to truthfully provide their input to the mediator, they also want to run their machine using the same input, preserving the equilibrium and action distribution. There are then multiple equivalence theorems of different strength (up to the information theoretic case), that relate flavors of secure computation to flavors of implementation. The relation is important, as it not only implies that secure computation leads to a form of game theoretic implementation, but also the reverse. This opens up the option that the guarantees of (some flavor of) secure computation could be achieved by considering the Game Theory of a problem, although it is not clear whether this process would be more efficient.
BMG have natural applications to known security problems. For example, dealing with covert adversaries as described by Aumann and Lindell  (introduced above) can be done by introducing a (two player, for example) mediated game where the honest strategy is to report your input to the mediator and output its reply (with utility ), and the string punish can be output by a player to ensure the other receives payoff . Then any secure computation with respect to covert adversaries with deterrent (probability of getting caught cheating) is an implementation of the mediator as the expected utility of a cheating player will be , which is the same as that of the honest strategy.
In this section, we present the work that is at the intersection of Game Theory and Distributed Systems, looking at concrete problems that have been well studied. For each case we will illustrate important concepts and techniques used.
Algorithmic mechanism design (AMD) is concerned with designing games such that self-interested players achieve the game designer’s goals, in the same way that distributed systems designers aim, for example, to achieve agreement in the presence of Byzantine players. AMD was first introduced by Nisan and Ronen  who proposed that an algorithm designer should ensure that the interests of participants in a distributed setting are best served by behaving correctly i.e., the algorithm designer should aim for incentive compatibility. The framework of Nisan and Ronen is defined for a centralized computation, but it has been extended to distributed algorithmic mechanism design (DAMD) following work by Feigenbaum et al. on cost sharing algorithms for multicast transactions . This lead to further developments and applications of DAMD to interdomain routing, web caching, peer-to-peer file sharing, application layer overlay networks and distributed task allocation, which are summarized in a review by Feigenbaum and Shenker .
Public goods, which are produced at a cost but available to use for free, naturally occur in distributed systems. In a public goods game, players choose to contribute a certain amount, with all contributions being combined and distributed among all players. Naturally, this can lead to players rationally deciding to contribute less to maximize their utility. They may even contribute nothing, which is generally referred to as free riding.
Varian first considered modelling the reliability of a system as a public good . The reliability can either depend on the total effort (sum of the efforts exerted by the individuals), on the weakest link (minimum effort) or on the best shot (maximum effort). E.g., if there is a wall defending a city, its reliability can depend on the sum of all the work provided by the builders (total effort), on the lowest height (weakest link) or if we consider several walls, on the highest one (best shot). In the case of total effort the NE corresponds to all players free riding on the player with highest benefit-cost ratio. Moreover, the effort exerted in the NE is always lower than the social optimum i.e., the best outcome across all players.
Peer-to-peer file sharing also provides an interesting case of a networked system that has faced free riding . As explained by Babaioff et al. , solutions to this problem could be based on a reputation system, barter or currency. Another approach, that would not need to keep any long term state information is to replace indirect reciprocity with direct reciprocity. For example, a file in BitTorrent is partitioned into smaller chunks, requiring repeat interactions among peers and enforcing more collaboration between them . In practice, however, this has been shown to not be very effective as it is not robust to strategic agents  and induces free riding . There is also the problem of dealing with newcomers, as an adversary can create new identities in order to abuse the system. Analyzing the incentives at play, Feldman et al.  suggest that penalizing all newcomers may be an effective way of dealing with the problem, as it is not possible to penalize only users abusing the system.
In addition to free-riding, there are many other parameters that a selfish player could abuse in a P2P file sharing system e.g., when to join or leave, who to connect to, untruthful sharing information, and so on. This is the problem of hidden actions i.e., how peers selfishly behave when their actions are hidden from the rest of the network. In order to analyze the degradation due to hidden actions, Babaioff et al.  apply the principal-agent framework, due to the similarity of the hidden action problem with that of moral hazard. This framework is used in economics when one entity, the principal, employs a set of agents to take actions on its behalf. In order to capture the efficiency of a system in that framework, they define the Price of Unaccountability of a technology as the worst ratio between the principal’s utility in the observable-actions case and the hidden actions case. Dealing with observable and hidden actions relates to the transparency of the system, which can be approached from a cryptographic point of view to ensure that agents all see the same set of actions . Another solution, Karma , proposes a system for peer-to-peer resource sharing that avoids free riding, based on a combination of reputation system and consensus protocols.
Another important problem in Distributed Systems where rationality can cause problems is routing . The problem is to find a path that minimizes the latency between a source and a target. One of the difficulties in doing so is that in a decentralized communication network it is not always possible to impose some routing strategy to nodes in order to, for example, regulate the load on a route. As highlighted in our background on Game Theory in Section 3, nodes usually act according to their own interests, which can be orthogonal to the overall optimal equilibrium. A game theoretic measure used by Roughgarden and Tardos in the context of routing is the Price of Anarchy , which quantifies how much a system degrades due to selfish behavior. More formally, assuming we have a measure of the efficiency of each outcome, the Price of Anarchy is the ratio between the equilibrium and the optimal outcome. Inspired by this measure, Grossklags et al.  introduce the Price of Uncertainty, which measures the cost of incomplete information compared to that of complete information. An important observation is that assuming fixed possible losses, which is reasonable in the case of mining where one can at most lose the fixed cost hardware (and electricity) or stake, the more players are in the network, the less information matters. This also ties in to the value of information i.e., the possible change in utility from gaining information, which is defined for a computational setting by Halpern and Pass .
We now look at the example of consensus. The approach here is to use incentives to bypass impossibility results on Byzantine Agreement or improve on existing constructions. In order to apply GT to DS, additional adjustments have to be made. For example, traditional GT considers deviation from only one agent (as in a NE) while in practice agents form coalition. In addition, in a DS it is important to consider multiple types of failures (e.g., processors may crash) that are not considered in GT.
In order to account for both of these requirements, the BAR model defined by Aiyer et al.  introduces three different types of players: Byzantine, altruistic (players that simply follow the rules) and rational players. In this case, the expected utility of a rational player is usually defined by considering the worst configuration of Byzantine players and the worst set of strategies that those Byzantine players could take, assuming all other non-Byzantine players obey the specified strategy profile. The goal of the BAR model is to provide guarantees similar to those of Byzantine fault tolerance to all rational and altruistic nodes, as opposed to all correct nodes. Two classes of protocols meet this goal, Incentive-Compatible Byzantine Fault Tolerant (IC-BFT) protocols and Byzantine Altruistic Rational Tolerant (BART) protocols. IC-BFT protocols, which are a subset of BART protocols, ensure that the protocol satisfies security and is the optimal one for rational nodes, while a BART protocol simply ensures security properties.
Groce et al.  introduce similar notions, perfect and statistical security, which state that in the presence of a rational adversary, the protocol still satisfies the security properties (e.g., consistency and correctness for consensus). They show feasibility results of information-theoretic (both perfect and statistical) Byzantine Agreement, assuming a rational adversary and complete or partial knowledge of the adversary preferences. Their protocols are also more efficient than traditional Byzantine Agreement protocols.
In the DAMD setting , participants are split into obedient, faulty, strategic and adversarial nodes of the network. The split follows the same lines as that of the BAR model, but separates the adversarial nodes from those that are faulty with no strategic goal. Computational restrictions here are expressed with regards to the solution concepts rather than the agents. This ties into topics in computational Game Theory, as a solution to a DAMD problem requires not only that incentive compatibility is achieved, but also that the solution be computationally tractable, which is not always the case. (The tractability of computing Nash equilibria, or approximations, is out of the scope of this paper.) The takeaway is that many solutions on paper are not straightforwardly obtained in an algorithmic setting, whether centralized or decentralized, and even approximations may not be enough.
When it comes to adapting a NE to consider coalitions and irrational players Abraham et al.  extend the work of Halpern and Teague  to consider multiple players. They introduce the concept of robustness that encompasses two notions, resilience and immunity. Resilience captures the fact that a coalition of players has no incentive to deviate from the protocol, and is similar to the concept of collusion-proof NE . Immunity captures the fact that even if some irrational players are present in the system, the utilities of the other players are not affected. An equilibrium that is both resilient to coalitions of up to players, and immune to up to irrational players is then said to be -robust
Robustness is a very strong property, but it is hard to achieve in practice. Clement et al.  show that no protocol is -robust if any node may crash and communication is necessary and costly. When designing cryptocurrencies, however, it is not unusual to consider that communication is free.
As discussed in Section 4.1 with covert adversaries, it can be helpful to add a form of punishment to enforce correct behavior by rational players. Halpern et al.  define a punishment strategy such that for any coalition of at most players and up to irrational players, as long as more than players use the punishment strategy and the remaining players play the equilibrium strategy, then if up to players collude, they will be worse off than they would have been if the rational players had played the equilibrium strategy. The idea is that by having more than players use the punishment strategy is enough to stop players colluding and deviating from the equilibrium strategy.
As systems realistically involve rational and irrational players, it is important to consider how rational players react to the presence of irrational players. Moscibroda et al.  do this by considering a system with only rational and Byzantine players. They differentiate between an oblivious and non oblivious model i.e., whether selfish players know the existence of Byzantine players or not. They define a Byzantine Nash equilibria that extends NE in the case where irrational players are present. In a Byzantine Nash equilibria no selfish player can reduce their perceived expected cost, which depends on their information, by changing their strategy, given that the strategies of all other players are fixed.
In GT and MD, a concept very often discussed is the Price of Anarchy , which was introduced in the case of selfish routing. Moscibroda et al.  extend this to their setting, by defining the Byzantine Price of Anarchy that quantifies how much an optimal system degrades due to selfish behavior, when malicious players are introduced. More formally, it is the ratio between the worst social cost of a Byzantine Nash equilibrium and the minimal social cost, where the social cost of a strategy profile is the sum of all individual costs i.e., the optimality of each outcome.
The price of Malice is used to see how a system of purely selfish players degrades in the presence of malicious irrational players. More formally it is the ratio between the worst Byzantine Nash Equilibrium with malicious players and the Price of Anarchy in a purely selfish system.
Moscibroda et al.  also introduced the idea that Byzantine players can improve the overall system, which they called the fear factor. The intuition is that the rational players will adapt their strategies by fear of the actions of irrational players, rendering the overall system better. The example they introduce where this can be observed is virus inoculation. Based on the assumption that some players are irrational and will not get vaccinated, rational players will be incentivized to get vaccinated. In the case where everyone is rational, there is no equilibrium since as long as enough people get vaccinated, the rest of the population is safe. Thus irrational players here can make the overall system better.
We now consider blockchain based cryptocurrencies, which are an important example of systems involving aspects of both traditional security and game theoretic aspects. In this section we review the work that has been done by the security and distributed systems communities on blockchains that consider game-theoretic notions.
We start by reviewing the work that give some game-theoretic analysis of Bitcoin. We then illustrate how these analysis fell short with attacks that have been found on Bitcoin’s incentives. We then gove an overview of the work that has been done on blockchain consensus protocols that considers the question of incentives and try to thwart these attacks. As we argued in Section 3, having a system that is secure with some bounded number of Byzantine faults is not enough to have a decentralized system as decentralization cannot be assumed. Rather, incentives should be designed to ensure enough participation and prevent coalitions. We therefore also discuss work focusing on incentivizing decentralization. We then review the work on payment channels before finally presenting some notions of fairness with respect to blockchains’ reward systems.
Along the way, we also highlight new concepts of interest that have been introduced in this field as well as how they relate to what we have previously discussed in this paper.
Nakamoto’s original Bitcoin paper  provided only informal security arguments but several papers have since formally argued the security of Bitcoin in different models , usually based in the simulation setting presented in Section 3, but without a consideration of incentives.
In early work in this area Kroll et al.  show that there is a NE in which all players behave consistently with Bitcoin’s reference implementation, along with infinitely many equilibria in which they behave otherwise e.g., where they all agree to change a rule. Attacks like selfish mining  put this into question, showing that their model did not encompass behavior that could realistically occur. More recently, Fiat et al.  showed that the only possible pure equilibria in Bitcoin’s mining are very chaotic (miners quitting and starting again periodically) or non-existent, depending on the configuration of players..
More recently Garay et al.  proved the security of Bitcoin in the RPD framework that was introduced in Section 4.1. Their approach is based on the observation that Bitcoin works despite its flaws, and they prove that Bitcoin is secure by relying on the rationality of players rather than an honest majority. This model inherits the flaws discussed in Section 4.1 e.g., they do not consider fully malicious players. Their model also does not encompass attacks on Bitcoin’s incentive structure that we now describe.
With time, many attacks related to incentives in cryptocurrencies have been found, typically involving either external incentives (e.g., in bribery attacks) or the unintended use of a cryptocurrency’s technical mechanisms. The effect of these attacks results in lowering the power required for a 51% attack to less than 51%.
Selfish mining  involves a rational miner increasing their expected utility by withholding their blocks instead of broadcasting them to the rest of network, giving them an advantage in solving the new proof-of-work and making the rest of the network waste computation by mining on a block that is not the top of the chain.
Inspired by techniques introduced by Gervais et al. , Sapirshtein et al.  use Markov Decision Processes (MDP) to find the optimal strategy when doing selfish mining. (MDP are used to help make decisions in a discrete state space where outcomes are partially random.) They show that with this strategy, an adversary could mount a 51% attack with less than 25% of the computational power. This problem is further studied by Hou et al.  using deep reinforcement learning. They suggest that selfish mining becomes less effective when performed by multiple adversaries. In addition to withholding their own block, miners are neither incentivize to propagate information (e.g. transactions or blocks) to the rest of network.
This is a problem that also exist in any P2P systems  that researchers have also looked into solving, using techniques similar to those proposed in Distributed Systems .
Another issue is the verifier dilemma , which shows that miners are not incentivized to verify the content of blocks, especially when this incurs an important computation on their end.
Mining gaps are another type of attack on incentives  where the time between the creation of blocks increases because miners wait to include enough transactions (in order to get the transaction fees).
Bribery attacks are another family of attacks that are often thought of as an example of the tragedy of the commons, which describes a situation when individuals acting selfishly affect the common good . In our context, it captures the fact that miners have to balance their aim to maximize their profit with the risk of affecting the long term health of the cryptocurrency they mine, potentially reducing its price and their profit.
Bonneau  first proposed that an adversary could mount a attack at a much reduced cost by renting the necessary hardware for the length of the attack rather than purchasing it. More generally, a briber could pay existing miners to mine in a certain way, without ever needing to acquire any hardware. This lead to a series of papers  that show it is possible to introduce new incentives to an existing cryptocurrency, internally or externally, in ways that do not require trust between miners and briber (e.g., using smart contracts).
Ethereum’s uncle reward mechanism (that allows blocks that were mined but not appended to the blockchain to later be referenced in another block for a reward) can be used to subsidize the cost of bribery attacks  and selfish mining . This is unfortunate, as they were originally introduced to aid decentralization  but have now been found to introduce incentives that work against this, by reducing the mining power required to perform certain attacks.
This puts into question the value of saying that a cryptocurrency is incentive compatible if new incentives can later be added. A cryptocurrency also does not exist in a vacuum, and external incentives can always manifest in adversarial ways. Goldfinger attacks, proposed by Kroll et al. , involve an adversary paying miners of a cryptocurrency to sabotage it by mining empty blocks. In some cases, even the threat of this type of attack can be enough to kill off a cryptocurrency, as users would not want their investments to disappear if the attack happens, and thus would not invest. As a Goldfinger attack can be implemented through a smart contract in another cryptocurrency , it is not inconceivable that this could be attempted in practice. This clearly shows that incentives from outside the cryptocurrency itself must be considered.
Budish  proposes an economic analysis of 51% attack and double spending and shows that the Nakamoto consensus has inherent economic limitations. In particular, he shows from a strictly economic point of view that the security of the blockchain relies on scarce, non-repurposable resources (i.e., ASICs) used by miners as opposed to Nakamoto’s vision of “one-CPU-one-vote”, and that the blockchain is vulnerable to sabotage at a cost linear in the amount of specialized computational equipment devoted to its maintenance.
As an alternative to existing systems, like Bitcoin and Ethereum, that have been shown to be vulnerable to the attacks we have just described, systems based on BlockDAGs rather than blockchains have been proposed . In this model, the data structure is a Directed Acyclic Graph (DAG) of blocks, meaning that each block can have more than one parent block. When creating a new block, a miner points to all the blocks that they are aware of, revealing their view of the blockchain. This exposes more of the decision making of the players and relates to the idea of hidden actions discussed in Section 5.
Due to some additional inherent flaws in Bitcoin e.g., scalability and energy consumption, new design papers are constantly proposed by both the academic community and industry, but many leave the treatment of incentives as future work. In particular, very few papers propose an incentive scheme associated with their consensus protocols . Moreover, the solution concepts considered in these papers are often overly-simplistic; e.g., some coalition proof NE that does not consider the impact of irrational players . Only Solidus  and Fantômette  consider robustness (introduced in Section 5).
In his draft work about incentives in Casper , Buterin introduces the griefing factor which is the ratio of the penalty incurred to the victim of an attack and the penalty incurred by the attacker. The idea of a griefing factor intuitively makes sense, as disputes in the real world can be resolved by fining a party according to the damages caused, and from a modelling point of view gives a quantifiable punishment that can be explicitly taken into account when computing equilibria. He also proves that following the protocol in Casper is a NE as long as no player holds more than a third of the deposit at stake.
Due to the lack of formal model, it can be expected that more incentive related attacks will be proposed. For example, attacks on cryptocurrencies using PoS are now already appearing , further highlighting the need for better models.
Additionally to the consensus rules, another route to improving the incentivization of cryptocurrencies is through their transaction fees market. As pointed out by Lavi et al.  “competition in the fee market is what keeps the rational behavior of Bitcoin’s users (partially) aligned with the goal of buying enough security for the entire system” and is thus crucial for its security. This problem is related to that of auction theory  and some of the literature of that field could be used here.
Bitcoin has evolved to become different, in many ways, from the intended design and the idea of “one-CPU-one-vote” envisioned by Nakamoto. Because the price of mining has increased exponentially with the popularity of Bitcoin, miners have started forming mining pools, where they join their resources to mine, together, more blocks.
This is obviously a big threat to the security of cryptocurrencies as this could enable 51% attacks, which have already happened to other cryptocurrencies. As of November 2019, the most important attack has targeted Ethereum Classic, which is the 16th largest cryptocurrency by market cap .
The centralization of cryptocurrencies’ has been empirically analyzed by Gencer et al.  who measured how decentralized Bitcoin’s and Ethereum’s network are. They found that three or four mining pools control more than half of the hash power of the network. This highlights the need for further research studying this occurrence of centralization and how decentralization can be maintained in practice.
Several papers propose a game-theoretic analysis of the mining pools. Arnosti et al.  model hardware investments from miners as a game, Leonardos et al.  model mining as an oceanic game, used to analyze decision making in settings with small numbers of big players and large numbers of individually insignificant players. Lewenberg et al.  model the mining game as a transferable utility coalitional game, which allows players to form coalitions and to divide their payoffs amongst themselves. As a solution concept, they use the core, the set of feasible allocations that cannot be improved upon by a coalition, which describes stability in coalitional games. It captures the condition under which the agents would want to form coalitions rather than not i.e., whether there exist any sub-coalition where agents could have gained more on their own. This concept is often opposed to the Shapley value in Game Theory, which defines a fair way to divide the payment among the members of a coalition based on their respective contribution, but without any consideration for stability, unlike the core. Lewenberg et al. additionally define the defection function that captures the fact that not every agent subset can collaborate and form a new coalition. They show that mining pools are generally unstable, no matter how the revenue is shared, some miners would be incentivized to switch to a different pool.
Eyal  also studies the stability of mining pools and proposes an attack where pools infiltrate other pools to sabotage them by joining the pool and earning rewards, but without actually contributing i.e., not revealing when they find a PoW solution. There exists configurations in which this attack constitutes a NE and an example of a tragedy of the commons.
Mining pools can also attack each other through distributed denial of service (DDoS) attacks to lower the expected success of a competing pool (large ones in particular), rather than increasing their own computational power . Over a two year period, Vasek et al.  found that 62.5% of mining pools accounting for more than 5% of the Bitcoin network power had been targeted, while only 17.1% of the smaller pools had been targeted. This has general implications for the mining ecosystem, as a peaceful equilibrium would require an increase to the cost of attacks and to the miner migration rate (miners switching pools), with no pool being significantly more attractive than others .
Brünjes et al.  introduce and study reward sharing schemes that promote the fair formation of stake pools in a PoS blockchain. They argue that a NE only considers myopic players, i.e., players who ignore the responses to their own actions. As a result, they consider the notion of non-myopic Nash equilibrium (based on previous work by Fiat et al. ), which captures the effects that a certain move will incur anticipating a strategic response from the other players.
Luu et al.  use smart contracts to decentralize mining by incuring mining fees lower than centralized mining pools. Miller et al.  present several definitions and constructions for “non-outsourceable” puzzles. Both papers use informal arguments to justify their construction as opposed to a formal model.
In a recent paper, Kwon et al.  propose a formal model for the decentralization of blockchains, and show that full decentralization is impossible unless there exists a Sybil cost.
In order to overcome the scalability issues of Bitcoin, a new concept, referred to as layer 2 or payment channels has been proposed . The idea is that since the network cannot handle enough transactions, participants can take some transactions off-chain i.e., outside the main network, by opening a channel between themselves. This is done by locking a deposit on the blockchain, opening the channel and transacting on the channel, then settling the overall balance of all transactions on-chain so that the blockchain will see only two transactions (locking the funds and settling the balance).
Several designs have been proposed to achieve this . The high level idea is that participants will create evidence of each of their transactions (e.g., using signatures) so that whenever someone tries to cheat the other party can prove it and receive the cheating party’s deposit as compensation.
In this setting, the security relies on the fact that cheating is easily detectable due to cryptographic evidence and on the financial punishment associated with it. So again, incentives are tightly linked to security. A few papers  present formal models to analyze the security of these payment channels. They are based on the UC-model mentioned in Section 3 but do not consider utilities although it is an important part of the security of the system.
In order to facilitate payment channels, a routing solution has been proposed . There are usually difficulties in this case, due to the need for collaterals to be locked by everyone on the routing path. This work is related to the one on selfish routing discussed in Section 5.
A problem with payment channels is the requirement for participants to be online to detect cheating i.e., the cheater broadcasting an old balance to the blockchain. McCorry et al.  propose delegating this task to a third party, a watch tower, but it is unclear how incentives should be designed in this context.
Fairness in cryptocurrencies is implicitely captured by the notion of chain quality introduced by Garay et al. , which states that an adversary should not contribute more blocks to the blockchain than what they are supposed to i.e., proportionally to their computational power in the PoW setting.
Chen et al.  recently showed that a proportional reward system is the unique allocation rule that satisfies properties of symmetry, budget balance (weak or strong), sybil-proofness, and collusion-proofness, which are desirable.
In the PoS setting, Fanti et al.  define the notion of equitability that corresponds to how much a node’s initial investment (i.e., stake) can grow or shrink, and address the problem of the “rich get richer” in PoS cryptocurrencies (which arguably also exists in PoW cryptocurrencies). They propose a geometric reward function that they prove is more equitable i.e., the distribution of stake stays more stable. In general, the problem of compounding of wealth is reinforced by the fact that early adopters of a cryptocurrency have a significant advantage, benefiting from the ease of mining (or staking) and greatly cheaper coin prices in the early days. Dealing with this is more of a macroeconomic problem that to the best of our knowledge has not yet received any attention.
Within each section of this paper, we have reviewed models that draw on game theoretic tools and could thus be used to address problems in blockchain based cryptocurrencies. Table 1 gives a summary of some these models, and we will now discuss general points and lessons that can be drawn from the work so far.
The most immediate problem that most models try to address is the consideration of incentives at the level of security properties by encoding utility functions and some notion of equilibrium into a modified definition of the traditional security property. For example, RPD does this for UC security and the BAR model does this for distributed systems. Already, however, some differences emerge.
First, there are differences in the types of players. Different models assume players can be some subset of honest, rational, or Byzantine. How well the assumed types of players reflect the reality of the system will have a great impact on the usefulness of the model, regardless of its technical merits.
In particular, while honest and Byzantine players can be defined with respect to a protocol and whether or not they follow it, the meaning of a rational player is harder to pin down. This is because a player is in practice not rational only with respect to a protocol and the incentives in the system that the protocol is part of, but also with respect to a variety of possible external incentives. We have referred to this with respect to rational cryptography and bribery attacks, but it is a more general point that Ford and Böhme have explicitly highlighted .
Security models are built such that within the model, properties can remain true up to some amount of adversarial capabilities e.g., a third of Byzantine nodes and computational capabilities, but it is not clear how valid the models are when the assumed player types differ from reality. Moreover, comparing the models presented in this paper would require a concrete idea of what the correct assumptions that can be made about participants in cryptocurrencies are. Each model is constructed to work better than others within the constraints of their assumptions. As remarked by Box, “all models are wrong, but some are useful” . It seems that the current limitation of the existing literature is in understanding how useful these models are in practice rather than in introducing new models.
In Economics, Becker pointed out long ago that it was not always clear what rationality implied, because some observed behavior was compatible with both rational and irrational behavior , and concluded that perhaps irrationality deserved to be studied with more attention. Behavioral Economics and, more broadly, experimental data driven work has taken an important place in Economics to understand why certain models did not work in practice. Perhaps the same should be done here.
For example, mining rewards can be designed as part of a protocol to ensure some level of decentralization but the utility function of miners will also depend on their individual economic environment that the protocol cannot fix. In this case, relating the economics of miners to their relationship with the system could do more to ensure some level of decentralization than tweaking the rewards given out by the protocol.
Second, there are the way coalitions of players are treated. Pools are being observed and studied carefully in the community, but some important problems remain under-studied. It could be argued that in some cases pools somehow self-regulate as in, for example, the case of the Ghash.io Bitcoin pool that once got more than 51% of the hashing power but then decided to withdraw part of it . This could be because of the fear of loss of confidence users of the system, which if it is justified, would mean that the incentives were to some extent aligned to prevent a 51% attack.
Coalitions are also easily abstracted as an entity controlling a fixed share of power in the system but this ignores costs inherent to colluding such as, for example, communications costs as a coalition much reach some form of consensus on what actions it takes. In the same way that results are obtained for a whole system based on assumed proportions of player types in the system, perhaps useful results can be obtained based on the proportions of player types in a coalition with respect to that coalition.
Security researchers and cryptographers have been interested in incorporating game theoretic notions to their models for many years. In this work, we have highlighted existing concepts and explained how and where they could be used for specific applications.
The approach taken in most of the papers that we described here is to extend a field by for example incorporating utility functions (Rational Cryptography) or computation (Bayesian Machine Games). No completely new theory has appeared and it would be interesting to see a new theory built from the ground up to address considerations of incentives at all stages of the design process, rather than adapting existing models. We hope that this paper will give some inspiration towards new formal models.
The authors would like to thank their anonymous reviewers for their useful feedback. Alexander Hicks is supported by OneSpan1 and UCL through an EPSRC Research Studentship.
In this appendix, we provide formal definitions for some of the concepts presented in the main body of the paper that are not formally defined.
To start off, we introduce the standard definitions for Bayesian games and mechanisms.
Bayesian game setting: A Bayesian game setting is a tuple , where:
N is a finite set of players;
O is a set of outcomes;
is a set of possible joint type vectors
is a (common prior) probability distribution on ; and
, where is the utility function for each player
Mechanism for a Bayesian game setting: A mechanism for a Bayesian game setting is a pair (A,M), where
, where is the set of actions available to agent
maps each action profile to a distribution over outcomes
We now move on to concepts presented in Section 4.
subgame perfect equilibrium : Let be an attack game. A staretgy profile is an subgame perfect equilibrium in if: (1) for any , , and (2) for any , .
Attack-payoff security : Let be an attack model and let be a protocol that realizes functionality . is attack-payoff secure in if where is the “dummy” hybrid protocol (i.e.,the protocol that forwards all inputs and outputs from the functionality , see Section 3) and is the maximized ideal expected payoff of an adversary.
Incentive compatibility : Let be a protocol and be a set of PT protocols that have access to the same hybrids as . We say that is incentive compatible in the attack model if and only if for some is a subgame perfect equilibrium in the attack game defined by .
Bayesian Machine Game : A Bayesian machine game G is described by a tuple where:
is the set of players, is the set of possible machines
is the set of type profiles where the st element in the profile corresponds to nature’s type
is a distribution on
is a complexity function
is player i’s utility function.
Given a Bayesian machine game G, a machine profile , and , is an -best response to (the tuple consisting of all machines in other than ) if, for every ,
is an -Nash equilibrium of G if, for all players i, is an -best response to . A Nash equilibrium is a -Nash equilibrium.
Universal implementation : Suppose that is a set of n-player canonical games, is a subsets of , and are mediators, are interactive machines, and . is a -universal implementation of with error if, for all , all games with input length n and all if is a -robust -safe -NE in the mediated machine game then
(Preserving equilibrium) is a -safe -NE in the mediated machine game
(Preserving Action Distributions) For each type profile , the action profile induced by in is identically distributed to then action profile induced by M in .
Sequential equilibrium in computational games : A pair consisting of a machine profile and a belief system is called a belief assessment. A belief assessment is an interim (resp. ex ante) sequential equilibrium in a machine game if is compatible with and for all players , states of , and machines compatible with and such that (the set of possible machines) (resp. is a local variant of ), we have
Finally, we give definitions for concepts presented in Section 5.
Incentive-Compatible Byzantine Fault Tolerant (IC-BFT) protocols : A protocol is IC-BFT if it guarantees the specified set of safety and liveness properties and if it is in the best interest of all rational nodes to follow the protocol exactly.
Byzantine Altruistic Rational Tolerant (BART) protocols : A protocol is BART if it guarantees the specified set of safety and liveness properties in the presence of all rational deviations from the protocol.
Perfect security  : A protocol for broadcast or consensus is perfectly secure against rational adversaries controlling t players with utility U if for every t-adversary there is a strategy S such that for any choice of input for honest players 1. (S is tolerable): S induces a distribution of final outputs D in which no security condition is violated with nonzero probability, and 2. (S is Nash): For any strategy with induced output distribution D’ : .
Statistical Security : A protocol for broadcast or consensus is statistically secure against rational adversaries controlling t players with utility U if for every t-adversary there is a strategy S such that for any choice of input for honest players S induces a distribution of final outputs when the security parameter is k and the following properties hold: 1. (S is tolerable): no security condition is violated with nonzero probability in Dk for any k, and 2. (S is statistical Nash): for any strategy with induced output distributions there is a negligible function such that .
(k,t)-robustness : A strategy profile is a (k,t)-robust equilibrium if for all we have:
(k,t)-punishment : A joint strategy is a (k, t)-punishment strategy with respect to if for all such that C, T, P are disjoint, , for all , for all , for all we have .