A Learning Cryptocurrency