A recent academic study says Tezos is threatened by âselfish mining,â providing a valid attack model for other live and up-and-coming proof-of-stake (PoS) cryptocurrencies.
Thatâs the finding from Selfish Behavior in the Tezos Proof-of-Stake Protocol, published last November by then-Harvard researcher and current Google engineering intern Michael Neuder.
The paper from Neuder and other Harvard researchers shows the profitability â albeit small â of âselfish endorsingâ attacks in Tezos, a variant of selfish mining.Â
Luckily for Tezos, the selfish mining concern can easily be patched through the networkâs flexible on-chain governance model, which conducts periodic votes for protocol changes in lieu of hard or soft forks.
âIt was a great research paper and weâd love to see more focus on economic and complex-system-interactions in cryptocurrency systems in academic and industrial research,â Tezos Foundation Chief Security Officer Ryan Lackey told CoinDesk in an email. âThanks to our governance model, itâs pretty easy to get [the fix] adopted.â
However, the ability to address governance issues quickly raises questions concerning possible trade-offs involved with on-chain governance, how voting works and the possible outcomes of staking centralization.
As described and proven by the researchers, a Tezos baker (the blockchainâs term for âminerâ) can be rationally incentivized to create their own blocks and receive endorsements from other bakers not connected to the main chain, creating a secondary invalid chain.
Through the attack, the initial baker gains both the block and endorsement reward for the invalid block and can continue the attack until detected. If exposed, the bakerâs stake is âslashed,â punishing the baker for dishonest mining.
In Tezos, stakers gain fractions of a block reward for endorsing the creation of a new block, which packages network transactions. Selfish mining occurs in Nakamoto-style consensus mechanisms, like Tezos, which follow the longest chain rule. Under the rule, the longest chain, containing the most work, is generally considered the correct pathway by network participants.
The attack is far from lucrative, however, for two reasons.
The net payout of an attack is insignificant â a mere 255 XTZ ($336 at todayâs prices) for staking 40 percent of the networkâs outstanding supply in one year. Itâs also highly costly if detected: Validators can have their stake in the network taken away if dishonesty is detected. Still, according to Messari research analyst Wilson Withiam, the study exposes understudied aspects of PoS.
âIt goes to show how little we know about PoS mechanisms, let alone one in a working environment,â Withiam told CoinDesk. âAs the less understood consensus mechanism next to Proof-of-Work, most PoS attack vectors may remain unknown, and code changes like those implemented via [Tezos governance update] Babylon could continue to unveil new vulnerabilities on live networks.â
Withiam said that with more PoS networkâs launching in the near future, such as Eth 2.0 and Libra, understanding selfish-mining attacks remains âvital.â
The attack may be unlikely due to the high costs, but Tezos is still taking the issue seriously. An ongoing election is expected to pass a network upgrade altering endorsement incentives, according to Adrian Brink of Tezos blockchain research firm Cryptium Labs.
âItâs important to understand that most of these attacks (like selfish baking) are not short-term dangers but rather long-term dangers, since they are obvious if executed and only start to have a serious impact if executed over months to years,â Brink said via email.
The incident highlights Tezosâ on-chain governance, a unique feature among current blockchain protocols.
For selfish mining, Brink said changing incentives to decrease the likelihood of attacks is the goal.
â[The update] hardens the security model in order to make more likely attacks (such as the selfish baking attack) unprofitable for attackers unless they acquire a very large percentage of the stake,â said Brink.
Even with all the fancy coding, developing a holistic system remains difficult, said Brink.
âGenerally itâs impossible to build a security model which is secure against everything,â he said. âBitcoinâs mining model has many weaknesses and there have been countless papers written about it. So the trick with designing these systems is to make the right trade-offs.â
Network attack vectors such as selfish mining highlight Tezosâ on-chain governance and the ability to address headaches before they become migraines.Â
Yet, compared to other chains, Tezos has taken the unexplored path when it comes to large-cap coins requiring censorship-resistance and stability.Â
For Tezos, the mounting centralization of staking on exchanges could have many unknown consequences.
As data firm Coinmetrics pointed out, the number of addresses staking 0.1 XTZ or more on Coinbase jumped 30 percent in one month following the exchangeâs âfree stakingâ announcement. What are the possible outcomes for mass staking on publicly identifiable â and therefore censorship prone â exchanges?
âStaking with coins held on an exchange is simpler than delegating or staking directly,â said Castle Island Ventures partner Nic Carter. âItâs not surprising to me. Exchanges are kind of neo-banks serving the crypto community.â (Carter holds investments in XTZ.)
Carter said voting-based systems such as PoS require âa robust civil society.â In other words, information and participation are worth their weight in gold for these protocols.
âI think Tezos has done well in that respect,â Carter said. âThey have high participation and generally an eagerness on the part of token holders to participate. Whether this impairs the censor resistance of the protocol â thatâs an interesting question we will grapple with soon, I believe.â