A North Korean agent, a stolen-credit-card peddler and the mastermind of an $80 million Ponzi scheme had a common problem. They needed to launder their dirty money.

They found a common solution in ShapeShift AG, an online exchange backed by established American venture-capital firms that lets people anonymously trade bitcoin, which police can track, for other digital currencies that can’t be followed.

Since...