Skip to content

Commit

Permalink
add explanation utxo
Browse files Browse the repository at this point in the history
  • Loading branch information
jrakibi committed Jan 9, 2025
1 parent 9067c09 commit 15db19a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions decoding/utxo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ images:
Tracking user balances in decentralized networks relies on two models:

1. **Account Model** (Ethereum): Tracks balances like a bank ledger (simple and intuitive).
2. **UTXO Model** (Bitcoin): Tracks specific unspent outputs from transactionscomplex but powerful.
2. **UTXO Model** (Bitcoin): Tracks specific unspent outputs from transactions (complex but powerful)

---

Expand Down Expand Up @@ -61,13 +61,11 @@ Bob has three "bills" (UTXOs):
- One 3 BTC UTXO
- One 2 BTC UTXO

To spend 7 BTC, Bob must:
To spend 7 BTC, Bob has multiple options:

1. Use the 5 BTC UTXO
2. Use the 3 BTC UTXO
3. Get 1 BTC back as "change" (new UTXO)

Key Points:
1. Use the 5 BTC and 3 BTC UTXOs and receive 1 BTC back as 'change' (a new UTXO).
2. Alternatively, use the 5 BTC and 2 BTC UTXOs without needing any change.
Key Points:

- UTXOs can only be spent once (like using a paper bill)
- Each transaction creates new UTXOs
Expand Down

0 comments on commit 15db19a

Please sign in to comment.