Bitcoin is a poor currency and a crazy investment — but the technology behind it is a real breakthrough.