Virtual currencies are becoming more pervasive, thanks largely to the increased popularity of bitcoin, which is being used by online merchants and some traditional retailers. But the wider acceptance is attracting law-enforcement scrutiny.