What is a Bitcoin?

We’ll dive into bitcoin wallets in the next few lessons, but, in order to understand what a wallet is doing, you need to understand what a bitcoin actually is.

Have you read the Bitcoin whitepaper yet? If not you really should! Check it out here -> https://bitcoin.org/bitcoin.pdf

From the bitcoin whitepaper, “We define an electronic coin as a chain of digital signatures.” Bitcoins are not really digital “coins”. They don’t have serial numbers or a set unit; they don’t ‘live’ in a wallet. Bitcoin’s are just divisible and joinable ledger entries that ‘live’ on the bitcoin blockchain.

Here we’ll introduce you to the concept of UTXO’s or unspent transaction outputs. Every transaction has inputs and outputs. To understand this let’s walk through an example.

When a bitcoin is first created, it is given to a miner as a mining reward. Currently, the mining reward for a block is 12.5 bitcoin or BTC. The transaction that gives the miner these funds is called a coinbase transaction. The 12.5 BTC is sent to the address that the miner has specified. That 12.5 BTC is now an unspent transaction output that can be used in another transaction.

Let’s imagine that our miner, Alice, now wants to pay for some server space using BTC. She purchases 0.05 worth of hosting from Bob. In that transaction, she uses the only UTXO that she has which is worth 12.5 BTC.

The transaction breaks up the input worth 12.5 BTC, sending 0.05 to Bob, and 12.449 going back to Alice with the remainder of 0.001 being offered as a transaction fee for the miner who mines the block the transaction is in.

Bitcoin transaction fees: Transaction fees on the bitcoin network are not specified but implied in the remainder of any UTXO that is not sent back to the sender as change. Also, fees are generally not calculated base on the value of the transaction but instead based on the size of the transaction data.

After the transaction is mined, Alice now has a UTXO worth 12.449 and Bob has a UTXO worth 0.05.

We’ll cover bitcoin transactions in some detail in Part II. The important takeaway for the moment is that bitcoin’s are UTXO’s, which are ledger entries, that live on the bitcoin blockchain. Holding bitcoins means holding, managing and securing the private keys that control those UTXO’s that live on the shared network ledger.