John Adler | ✨⛽ Profile picture
Sep 26, 2020 21 tweets 5 min read Read on X
What Avalanche is Not, Episode 2

Last episode, we discussed fees and how it's impossible for Avalanche's X-Chain to have non-fixed fees without making fundamental trade-offs. On today's episode: rewards, and how they're similarly impossible.

Let's start by clearing up some confusion from last time. It's not “impossible, period” to have non-fixed fees in Avalanche; rather, it's impossible without making some additional trade-offs to fundamental assumptions or guarantees provided by AC.

The recurring thesis of these threads is that there's no silver bullet solution. Everything is simply a point in the trade-off space. And we'll explore the concessions Avalanche needs to make in order to provide the guarantees and performance it promises.

Before we dive into today's episode, let's do a quick overview of how Classical Consensus protocols and Avalanche Consensus (AC), used by Avalanche's X-Chain, work.
In Classical Consensus, all validators talk to all other validators to vote on the next block proposed by a leader.
All-to-all communication is expensive, and this generally requires quadratic message complexity that must be processed by all validators, i.e. at least cubic network overhead (excluding cryptographic optimizations, e.g. signature aggregation, which is a story for another day).
As a result of this communication complexity, classical consensus protocols generally don't scale beyond a few hundred validators before consensus overhead becomes unwieldy.
Avalanche Consensus on the other hand uses random subsampling. Every round, each validator asks a fixed number of other validators (weighted by stake) for their votes. They repeat this for a number of rounds, progressively building their confidence in the network's opinion.
The proofs are involved, but show that under certain assumptions AC can come to consensus with no leader on a DAG of transaction batches with negligible probability of failure. With constant communication complexity, AC can handle millions of validators!

arxiv.org/abs/1906.08936
With that out of the way, let's get to the meat of today's episode: rewards. Permissionless consensus protocols require some sort of incentive, otherwise they rely purely on altruism. And we all know how well altruism works long-term, especially when that altruism is expensive.
Nakamoto Consensus introduced the Nakamoto Incentive, a pair of carrot and stick. The carrot (incentive) is a block reward (+ fees), while the stick (disincentive) is a penalty if a majority attack is attempted. We'll look at penalties in the next episode.
So, how does Avalanche handle rewards? In the same PR that was merged around 24 hours prior to mainnet launch, (somewhat) explicit validator rewards were added to the docs for the first time. Let's take a closer look!

Here are the validator rewards:

“A validator only receives a reward if they are sufficiently correct and responsive while it was validating. The size of the reward depends on how long they validate, how much they stake, and how many AVAX tokens exist.” Image
"Sufficiently correct and responsive" isn’t particularly informative, so let's examine the token whitepaper:

files.avalabs.org/papers/token.p…
Here's the relevant section in question, on the token minting (i.e. reward) mechanism. Not much information here either! 🤔

Let's break down the two facets of the reward structure. Image
First, uptime/correctness. The whole reason AC scales to a much larger validator set than Classical protocols is that at no point are validators privy to the votes of the entire validator set. That's kind of the whole point!
If validators don't know how all other validators have voted, we can't reliably come to consensus automatically on the uptime of a validator (without regressing to all-to-all communication of course). It's, quite simply, impossible.
Consider this scenario: Alice refuses to communicate with Bob, but communicates with all other nodes. Bob can't prove to other nodes that Alice is doing this. When it's time to mint coins, Alice is assigned a nice reward because she had 100% uptime, as seen by everyone but Bob.
What is Bob to do?

Reject the state transition, permanently forking himself off the network irrecoverably? Congrats, you've just introduced a DoS vector!

Accept the state transition? Congrats, you're not actually coming to consensus on uptime!
Second, responsiveness. Again, we can't come to consensus on this without making a fundamental concession, e.g. extremely aggressive synchrony assumptions.
To show this, consider two groups of nodes, geographically separated. They have low-latency communication within a group but high latency between groups. Clearly the two groups cannot come to agreement on the latency of any one node. Latency is a two-way street after all!
And that's a wrap for today's thread. We discussed why coming to consensus on rewards is impossible given the current assumptions and guarantees AC, and Avalanche, promise. Next episode, we'll discuss the other facet of the Nakamoto Incentive: penalties.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with John Adler | ✨⛽

John Adler | ✨⛽ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @jadler0

Jun 23, 2022
SwaySwap, a blazingly fast dex for the Fuel devnet, is out. A short thread on how Fuel @fuellabs_ eliminates the need for token approvals.

This means fewer transactions to interact with a dapp, and no infinite-approvals i.e. more secure in case of hacks.

While ETH can be *pushed* with contract calls on Ethereum, ERC-20 tokens cannot. `approve` and `transferFrom` must be used (in two separate transactions) to first approve an amount of tokens for a receiving contract to *pull*, then for the receiving contract to actually pull.
This leads to poor UX and higher cost: 2 txs instead of 1.

To work around this, many apps use infinite approvals, where you approve the contract to use your entire token balance. Problem: if the contract is exploitable, *all* your tokens are gone.

Read 4 tweets
Sep 26, 2020
What Avalanche is Not, Episode 3

Last episode, we discussed rewards. On today's episode, the other half of the Nakamoto Incentive: penalties. We will show how Avalanche does not provide the accountable safety property that modern PoS protocols have.

The Nakamoto Incentive is both an incentive (rewards + fees) and a disincentive (penalties for both individuals and majorities). Both are necessary for permissionless consensus protocols to function without having to heavily rely on altruism.

Note that it is absolutely critical that incentives be in place. It is *not* sufficient to prove that a permissionless consensus protocol is live and safe under an honest majority. It must also be shown that the protocol incentivizes an honest majority.

Read 15 tweets
Sep 24, 2020
What Avalanche is Not, Episode 1

This is the first in a series of tweet threads that will discuss fundamental shortcomings or pitfalls of the Avalanche Consensus protocol, and its instantiation in Avalanche. On today’s episode: fees.
Now that the Avalanche mainnet has launched, “we have a secret plan that will fix this issue and we won’t tell you until mainnet” is no longer an excuse. So let’s dig in and find out which issues were actually unfixed, and more interestingly, unfixable.

You may have seen comparison tables like this one being circulated. But remember that when it comes to decentralized protocols, there’s always a catch. There is no free lunch and there are always trade-offs. We’ll find out in these threads what those are.

Image
Read 16 tweets
Sep 13, 2020
Just published "Nakamoto Consensus Requires Social Coordination and Subjectivity"

TL;DR Nakamoto Consensus, contrary to popular belief, is not objective. It has a subjective component, just like the weak subjectivity assumption required in PoS protocols.

talk.lazyledger.io/t/nakamoto-con…
We've been told for years now by Bitcoin maximalists that PoS protocols require *fundamentally* stronger trust assumptions than PoW, in the form of weak subjectivity (asking a trusted third-party for a checkpoint if you've been offline for a while). We've been told a lie.
It's not that PoS protocols do not require social coordination; rather, it is that Nakamoto Consensus does require social coordination!

How so? It's all in the incentives.
Read 5 tweets
Aug 5, 2020
Optimistic rollups have taken Ethereum by storm as a promising avenue for exploring different execution models and enabling dynamic heterogeneous sharing on Ethereum today.

Here’s a thread on the precursors to ORU: scaling techniques that were so close, but didn’t quite make it.
I’ll be covering two techniques in this thread: the earlier “shadow chains” and the more recent “plasma rollup.” There are many more techniques (too many to enumerate) that share many common features with ORU, but none of these have the exact same properties as ORU.
First up, shadow chains, proposed in 2014. Are shadow chains *literally* optimistic rollups? Let’s find out! Here’s the original post on the Ethereum blog:

blog.ethereum.org/2014/09/17/sca…
Read 27 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(