Mitigating the Risks of Digital Currencies