Bitcoin: how to regulate a virtual currency