How Will We Onboard Earth’s 7.753 Billion People To The Lightning Network?

I ran the numbers, let’s see how we can onboard the entire population of Earth onto the Lightning Network, how long it might take, and what we can do to speed the process up 👇
To onboard onto the lightning network it requires sending btc into a 2-of-2 multisig funding transaction with your channel partner. To optimize space in this transaction we want 1 native segwit input and a single channel funding output. This produces a tx of roughly 121vbytes.
If 100% of the transactions in a block were these channel opening txs we could onboard about 8,264 people to lightning per block. With a global population of 7.753 billion people it would take roughly 938,166 blocks or 17.8 YEARS for everyone on Earth to have a channel.
Can we do any better? Thankfully, we have a couple options. One option that is possible today is to use batching! Batching means we can open more than one channel in a single transaction. This means each additional channel can be represented by another output in the funding tx.
Each additional output we add consumes roughly 32vbytes. With batching the best-case scenario is to fill the block with 1 transaction with 1 input and as many outputs as we can fit. At 32vbytes per output this means we could open 31,247 channels per block!
Batching gets us a 3.78x improvement and drops the time to onboard the entire Earth to just 4.7 years. This isn’t terrible but it assumes we can use 100% of the block space for almost 5 years. In reality it will happen slower over a longer time period. Can we do even better?
It turns out we can, just not (easily) today. The next optimization would be to support more than two people per channel and use signature aggregation to keep the output size small. A Multiparty Channel extends the 2-of-2 multisig to a larger N-of-N multisig.
In theory this N could be 10, 100, maybe even 1000. At 10 people per channel we could onboard 312,470 people per block and the entire earth in just 172 days. While batching gave us a modest improvement in efficiency, multiparty channels allow us to scale in orders of magnitude.
Theoretically they could be built today without any changes to Bitcoin but would require a massive engineering effort because of the complexities of lightning’s penalty mechanism. Eltoo’s symmetric settlement txs greatly simplify the implementation of multiparty channels.
So can we onboard the entire population to lightning in a reasonable amount of time? It seems like the answer is yes, eventually we will get there. Will everyone on Earth want to be on lightning and need their own channel(s)? That’s not certain but I sure hope so!

• • •

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

Keep Current with John Cantrell

John Cantrell 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 @JohnCantrell97

4 Jan
You probably saw the image of the Bitcoin genesis block with Satoshi’s hidden message in it over a thousand times yesterday (happy belated bday!).

If you were at all curious how Satoshi actually sent the hidden message in the genesis block then read more below 👇
The message is actually embedded in the first transaction ever made on the Bitcoin blockchain. It is part of a special transaction called a coinbase transaction (and no, nothing to do with the shitcoin casino company – though that is where their name came from!).
Every block mined *must* contain at least one transaction, the coinbase transaction, and it has the ability to generate up to the current block reward new bitcoins. Because it generates new coins, It’s the only transaction that must not spend another transaction’s output.
Read 5 tweets
3 Jan
Most of my career I worked on web tech using js and ruby. Typed, compiled languages were alien to me but I was intrigued by the reliability, performance, and usability Rust offers. The rust-bitcoin ecosystem finally motivated me to start my Rust journey. Here’s how I did it 👇
📕The Book - doc.rust-lang.org/book

The book is single handedly the best resource for starting out in Rust. I recommend reading through this at least once to get a good overview and then use it as needed as a reference when a specific topic comes up in your programming.
🧙‍♂️Rust Analyzer - rust-analyzer.github.io

The Rust compiler is known for producing errors that are actually helpful. Rust Analyzer is a plugin that brings this info to you in real time as you code. It also automatically surfaces docs, auto-completion, and so much more.
Read 6 tweets
19 Jun 20
I got a lot of great feedback and questions after posting my article about brute forcing yesterday

I wanted to address a question that came up over and over again because I think a lot of people extrapolated what I did to the false conclusion that Bitcoin isn't safe or secure /0
Q: Are my bitcoins stored in a wallet generated from a 12-word mnemonic safe?
A: Yes, just don't give out any of your words on Twitter.

Brute forcing @alistairmilne's wallet was only possible because he publicly exposed eight words from his twelve word mnemonic seed. /1
It would take the same system that brute forced the last 4 words of his mnemonic 837 quintillion millennium to brute force all possible 12 word mnemonics. /2
Read 8 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

Too expensive? 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 on Twitter!

:(