We learned yesterday that when you own Bitcoin, you control keys that can spend UTXOs. In case you missed it:

Let me explain how with proper UTXO management you can save money and maintain your privacy 👇
How can learning to manage your UTXOs help you save money?

Well if you remember from this thread:

We learned that the cost to send Bitcoin is proportional to the size of the tx and that the size of the tx depends on the size of the inputs and outputs.
The UTXOs we control are used as inputs for all txs that we make. This gives us control over the size of our tx.

When picking inputs to use we need to make sure the total amount in is >= the total amount going out. We can save money by minimizing the number of inputs we use.
For example, if we are trying to send 50,000 sats and we have UTXOs with the following amounts: 12K, 15K, 25K, and 51K.

We could create this transaction using 3 inputs (12K+15K+25K >= 50K) or we could use 1 input (51K > 50K).

Using 1 input will be much cheaper than using 3.
The other way we can save money is if we remember that segwit transactions get a 25% discount on fees. This depends on what inputs you use in your transaction.

If you have segwit inputs to spend then you will be able to take advantage of this discount.
Make sure you use a wallet that generates native segwit receive addresses (they start with bc1). This will ensure that you will always get the 25% fee discount when you make transactions.

Luckily, as of 2022, almost all wallets will offer you this functionality.
So how can UTXO management help maintain your privacy?

Every transaction on the blockchain is publicly visible.

This means everyone can see every UTXO that is spent and where it is sent to. This includes a full history of everywhere it has been and everywhere it will go.
This means privacy is hard to come by so you need to do everything you can to maintain it. You do this by being careful about the UTXO’s you use in a tx.

When you spend multiple UTXOs in a tx you are broadcasting to everyone that all of these UTXOs belong to the same person.
For example, imagine you bought some Bitcoin from exchange ABC where you had to provide personal identifying information.

When you withdraw your coins from this exchange, they know exactly who owns those UTXOs and can track every tx that you make with them.
You might have other separate sets of UTXOs from other exchanges, selling goods/services, or mining. Exchange ABC doesn’t know these UTXO’s are yours.

However, if you make a tx that spends UTXOs from the set they know is yours and from one of these other sets then..
…they can be pretty sure that you also own those other UTXO’s and can add them to the list of UTXOs they know you control.

So how can you avoid this?

Make sure your wallet lets you label every single UTXO you own. Label them by describing where they came from.
If you know where each UTXO came from then when you construct txs you can make sure to never combine UTXOs from different groups.

This is great to make sure you don’t lose privacy by allowing companies to learn about all of the UTXOs you own.

What about gaining privacy?
One tactic to gain privacy is called a coinjoin. This is when you create a single tx that spends UTXOs from multiple people and redistributes them amongst the group.

This breaks the assumption that all UTXOs used in a tx are from the same person but is a topic for another day
To summarize, in order to save money and help maintain your privacy you need to make sure your wallet lets you:

- control which UTXOs are used in a tx.
- Label your UTXOs so you don’t cross-contaminate sets.
- Use segwit receive addresses (bc1) to help you save on fees.
I hope this helped you understand how you can save some money and maintain your privacy by managing your UTXOs more carefully.

Be sure to smash that like and retweet button so everyone can learn about Bitcoin.

Follow me if you want to learn more about Bitcoin every single day

• • •

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

13 Jan
You probably saw the news this week that two people have solo mined a Bitcoin block and earned 6.25 BTC worth over $250,000. You’re probably wondering

What is solo mining?
How much does it cost?
What are the odds?
Should you be mining?

Let me break it down for you 👇
Solo mining is exactly what it sounds like. It’s what you probably think of when you think of mining. It means someone is mining all by themselves.

So why is it explicitly called out as “solo mining”? It’s because the norm these days is to mine as part of a pool.
What is a mining pool? Well as more and more people mine it becomes harder and harder to mine a block by yourself.

This means the time it takes for you to find a block is also increasing. In order to generate a steady stream of revenue miners often pool together.
Read 15 tweets
11 Jan
You’ve decided it makes sense to own some Bitcoin, congrats! You took an important step but you might be wondering…

What do I really own?
Where and what exactly are the coins?

I’ve been working on Bitcoin for years, let me help explain it in simple terms 👇
First things first, if your Bitcoin is still on an exchange or some other custodial service then you don’t really own any Bitcoin. You own a promise or an IOU that will hopefully be redeemable for Bitcoin some day.

Not your keys, not your coins. A thread for another day.
Ok so you have your keys but what coins do you actually have?

There’s not some record in a database that says “Alice owns X Bitcoins”.

Technically, you have keys that can sign a transaction that spends an unspent transaction output (UTXO).

Let’s further break that down:
Read 8 tweets
10 Jan
🧙‍♂️
Did you know it’s technically possible for your lightning channel partner to attempt to steal money that is supposed to belong to you?

Let me explain how that’s possible and why they likely won’t try it 👇
To understand why this is possible we need to understand how payments are made over lightning channels.

Let’s imagine Alice opens a 100,000 sat channel with Bob by funding a 2-of-2 multisig address that can only be spent from using both Alice and Bob’s signature.
Before Alice locks her funds in the multisig they create a commitment tx that spends from the multisig address sending Alice her 100,000 sats and 0 sats to Bob.

She gets Bob to sign it but doesn't broadcast it so she can get her money out of the multisig if Bob disappears.
Read 10 tweets
9 Jan
1/13
Bitcoin Mining and Proof of Work Explained

Mining is often talked about in the media as some dark art that involves ‘solving complicated math problems’ but in reality it’s pretty easy to understand.

Let me break it down for you 👇
2/ Miners need to show proof that they’ve done a certain amount of work in order for the block they are mining to be valid. When you mine a block you earn the current period’s mining reward (currently 6.25 BTC) and all of the fees from the transactions they include in the block.
3/ So how can one prove they’ve done a certain amount of work without anyone there to watch them do it? Well, they can find the answer to a problem that we know takes them a certain amount of work to solve. There are lots of things that could be used to prove someone did work.
Read 13 tweets
8 Jan
You’ve probably heard Bitcoin lets you send money for free. You’ve also probably heard Bitcoin transactions are too expensive.

What’s going on here and why is there so much confusion around the cost to send Bitcoin? It’s kind of complicated, so let me break it down for you 👇
Technically it’s possible to make a Bitcoin transaction for free but in practice it’s really difficult. There’s nothing stopping miners from including transactions that do not pay a fee but most nodes on the network won’t relay transactions with a fee under a certain amount.
This means you either need to be a miner or somehow send your transaction directly to a miner. The latter case is still unlikely to work unless the miner is your friend because miner’s are incentivized to include transactions that pay them the most in fees.
Read 15 tweets
7 Jan
If you’ve spent any time researching Bitcoin then you’ve probably heard about the Lightning Network but…

Why does it exist?
What is it?
How does it help Bitcoin scale?

I’ve been working with it for years, let me help explain it in simple terms 👇
Bitcoin produces blocks every 10 mins and they can hold a limited number of transactions. This limited space creates a fee market where users can bid for their transactions to be included in a block. This means transactions take at least 10 minutes and must pay fees to miners.
The Lightning Network is a p2p network of payment channels

A payment channel is a contract between two people where they commit funds using a single onchain tx. Once the funds are committed they can make an unlimited amount of instant & free payments over the channel.
Read 14 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!

:(