Saturday, December 15, 2012

30 times more likely to be shot by police than in a mass shooting

Naturally, in the wake of another massacre, this time at an elementary school, calls for increased gun control are ringing loud. 20 of the victims in this shooting were children.
As a father myself, the horror of the experiencing the merciless killing of my child is too unbearable to even imagine. That said, I'd like to offer some perspective in this tragic time.
Over the last 10 years, approximately 194 individual have perished as a result of mass shootings in the US[1]. Compare that to the fact that 100 people per day die in car crashes[2], and 2640 per year from house fires[3].

How many people are killed by police each year in the US? We don't know, because it seems no one actually tracks this information, which is rather curious. Someone did collect data from news stories around the internet in 2011.
In 2011, according to data I have collected, police officers in the United States shot 1,146  people, killing 607[4].
About 20 people die each year in mass shootings, as noted above. You are 30 times more likely to be shot and killed by an agent of the state than you are by sociopath on a rampage. But I repeat myself.

Saturday, December 1, 2012

Where do bitcoins reside?

A common misunderstanding amongst new bitcoin users is that their bitcoins actually reside on their computer. In order to understand where bitcoins actually reside, it is necessary to grasp three concepts: a ledger, private key encryption and bitcoin addresses.

The ledger

A ledger is just a book of transactions. A transaction log. The book has pages, and each row on the page describes the date, source, destination and amount transferred. Auxiliary columns may be present, but aren't the focus of this article.

The bitcoin system relies on a global, public ledger called the blockchain. In a sense, a ledger is a chain of pages, each page appearing sequentially. Likewise, the blockchain is composed of pages, or blocks. Each page in a ledger will generally have the same number of transactions, precisely because the number of rows that fits on a page is fixed. This is not the case with a block. Any number of transactions may appear in a block.

The blockchain represents the entire history of bitcoin transactions. The first block is known as the genesis block. New pages are added to the bitcoin ledger approximately every 10 minutes. The process by which pages are added is a collective problem solving endeavour. The group or individual which solves the problem is then awarded 25 bitcoins (an amount which decreases over time). The details of this process are particularly complicated, let's address that another day.

If you possess any bitcoins now, you could determine the page in which they came into existence by looking at the blockchain.

Private key encryption

Private key encryption is a mouthful to say, especially if you've never heard of it before. There's a good chance you have created an account on some site somewhere. Generally the process is the same: choose a username and a password. Sometimes you can use your email address as your username. If so, then understanding private key encryption really isn't that big of a leap.

Just as you have a username and password, you have a public key and a private key. A difference is that the public key can be computed from the private key. Exactly how this occurs (it's mathematically complex) isn't important, but just worth understanding that the two are related to each other. You cannot however generate a private key from a public key. This is what allows you to share your public key.

What does a private key look like? Here's an example:
If you used this as a password, it would be a fairly strong one, but a bit difficult to remember.

If we convert the above private key into a public key, what does that look like?
This public key representation is actually a bitcoin address.

Bitcoin addresses

When you want to send bitcoins to someone, they must provide you with a bitcoin address. If you want to receive bitcoins, you'll need one as well. Acquiring one is not difficult. The bitcoin client you are using should have a means for generating one. If you are using an online wallet, it will have that functionality built into it.

Suppose you send 5 bitcoins to the following bitcoin address / public key: 1LpiMNtNR18UEJNBxCZx3p32tAkWsAGuPJ. What happens? Once the transaction is verified and a page is generated, the blockchain (the global public ledger) now associates those 5 bitcoins with the above address. The only way to access those bitcoins is with the equivalent private key. Without the private key, there is no way to access the coins.

When the coins are sent to the address above, the transaction is signed using your private key. The bitcoin network will only verify such transactions that are properly signed by the correct private key. The signing process releases the association the coins have with your private key. After being released, they are then assigned to the new address, the address you are sending to.

As a result of the above, bitcoins do not exist on your computer. Rather, what exists are public and private keys. Technically speaking, even they don't need to exist. A private key can be written down on a piece of paper, and the public key generated from it without ever touching a computer or a network. Coins can then be sent to that public key. When you're ready, you can import the private key into the bitcoin client you are using and reassign the coins to another address.

A variety of tools exist online for generating "offline" bitcoin addresses, I'll cover those in a later post. For now, try out the site below.


To actually get your hands dirty with bitcoin public and private keys, visit this site: Also refer to this article.